/* ─── VILLA SOU — Shared Stylesheet ─────────────────────────────────────── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream:      #F7F1E8;
  --stone:      #D4C5A9;
  --terracotta: #A0522D;
  --gold:       #C9A75A;
  --navy:       #1C2B3A;
  --sage:       #7A8C6E;
  --white:      #FDFAF6;
  --dark:       #0D1720;
}

html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--white); color: var(--navy); overflow-x: hidden; }

/* ─── NAV ─────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: 66px;
  background: linear-gradient(to bottom, rgba(13,23,32,.45) 0%, rgba(13,23,32,0) 100%);
  transition: background .45s;
}
nav.scrolled { background: rgba(13,23,32,.96); backdrop-filter: blur(12px); }
nav.solid    { background: rgba(13,23,32,.96); }

.nav-logo {
  position: absolute; left: 60px; top: 50%; transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 300; letter-spacing: .28em;
  color: #fff; text-decoration: none;
  z-index: 1002; white-space: nowrap;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  position: absolute; right: 60px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 32px; list-style: none;
  z-index: 1002;
}
.nav-links a {
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.8); text-decoration: none;
  transition: color .3s; padding-bottom: 3px;
  border-bottom: 1px solid transparent; white-space: nowrap;
  cursor: pointer; pointer-events: all;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }

.nav-burger {
  display: none;
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer; background: none; border: none; padding: 4px;
  z-index: 1002;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px; background: #fff;
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── HERO SLIDESHOW (home) ──────────────────────────────────────────────── */
.hero { position: relative; height: 100vh; min-height: 700px; overflow: hidden; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.8s ease-in-out; }
.slide:nth-child(odd)  { animation: kb1 15s ease-in-out infinite alternate; }
.slide:nth-child(even) { animation: kb2 15s ease-in-out infinite alternate; }
.slide.active { opacity: 1; }
@keyframes kb1 { from { transform: scale(1); } to { transform: scale(1.07) translateX(-1%); } }
@keyframes kb2 { from { transform: scale(1.05) translateY(-1%); } to { transform: scale(1) translateY(1%); } }
.hero-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, rgba(10,18,28,.55) 0%, rgba(10,18,28,.05) 30%, rgba(10,18,28,.65) 100%); pointer-events: none; }
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; padding: 0 60px 80px; }
.hero-eyebrow { font-size: .62rem; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(3.5rem,7vw,7.5rem); font-weight: 300; line-height: .95; color: #fff; letter-spacing: .04em; margin-bottom: 22px; }
.hero-title em { font-style: italic; color: var(--stone); }
.hero-subtitle { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 44px; max-width: 460px; line-height: 2; }
.hero-cta { display: inline-flex; align-items: center; gap: 12px; font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 5px; transition: border-color .3s, color .3s; }
.hero-cta:hover { border-color: var(--gold); color: var(--gold); }
.hero-cta::after { content: '→'; }
.slide-dots { position: absolute; right: 56px; bottom: 88px; z-index: 4; display: flex; flex-direction: column; gap: 10px; }
.dot { width: 2px; height: 20px; background: rgba(255,255,255,.3); cursor: pointer; transition: background .4s, height .4s; }
.dot.active { background: var(--gold); height: 36px; }
.scroll-ind { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.45); font-size: .52rem; letter-spacing: .28em; text-transform: uppercase; animation: bounce 2.2s infinite; }
.scroll-ind::after { content: ''; display: block; width: 1px; height: 44px; background: linear-gradient(to bottom, rgba(255,255,255,.38), transparent); }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }

/* ─── INNER PAGE HERO (with slideshow) ───────────────────────────────────── */
.page-hero { position: relative; height: 72vh; min-height: 520px; overflow: hidden; margin-top: 0; }
/* static single-image fallback */
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* slideshow slides */
.ph-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.8s ease-in-out;
}
.ph-slide.active { opacity: 1; }
.ph-slide:nth-child(odd)  { animation: kb1 18s ease-in-out infinite alternate; }
.ph-slide:nth-child(even) { animation: kb2 18s ease-in-out infinite alternate; }
.page-hero-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, rgba(10,18,28,.25) 0%, rgba(10,18,28,.6) 100%); display: flex; align-items: flex-end; padding: 0 80px 72px; }
.page-hero-text .page-label { font-size: .6rem; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.page-hero-text h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.8rem,5vw,5.5rem); font-weight: 300; line-height: 1; color: #fff; letter-spacing: .04em; }
.page-hero-text h1 em { font-style: italic; color: var(--stone); }

/* ─── SHARED UTILITIES ───────────────────────────────────────────────────── */
.section-label { font-size: .6rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.section-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.section-label.light { color: rgba(255,255,255,.55); }
.section-label.light::before { background: rgba(255,255,255,.4); }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem,3.8vw,3.5rem); font-weight: 300; line-height: 1.08; color: var(--navy); margin-bottom: 24px; }
.section-title em { font-style: italic; color: var(--terracotta); }
.section-title.light { color: #fff; }
.section-body { font-size: .8rem; line-height: 2; color: #4A5568; font-weight: 300; max-width: 560px; }
.section-body.light { color: rgba(255,255,255,.7); }
.section-body p+p { margin-top: 1.1em; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s ease, transform .85s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .15s; }
.rd2 { transition-delay: .30s; }
.rd3 { transition-delay: .45s; }

/* ─── STAT STRIP ─────────────────────────────────────────────────────────── */
.stat-strip { background: var(--navy); padding: 44px 60px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.stat { text-align: center; flex: 1; padding: 0 16px; }
.stat:not(:last-child) { border-right: 1px solid rgba(255,255,255,.1); }
.stat-n { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 7px; }
.stat-l { font-size: .58rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.45); }

/* ─── STORY (2-col) ──────────────────────────────────────────────────────── */
.story { display: grid; grid-template-columns: 1fr 1fr; min-height: 88vh; }
.story-img { overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s; }
.story-img:hover img { transform: scale(1.04); }
.story-text { padding: 90px 80px; display: flex; flex-direction: column; justify-content: center; background: var(--cream); }
.story-text.right { background: var(--white); order: -1; padding: 90px 80px 90px 60px; }
.story-text.dark { background: var(--navy); }
.story-text.dark .section-title { color: #fff; }
.story-text.dark .section-body { color: rgba(255,255,255,.65); }

/* ─── SECTION SLIDESHOW (.ss inside .story-img) ─────────────────────────── */
.ss { position: relative; width: 100%; height: 100%; }
.ss-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease-in-out;
}
.ss-slide.active { opacity: 1; }
.ss-slide:nth-child(odd)  { animation: kb1 16s ease-in-out infinite alternate; }
.ss-slide:nth-child(even) { animation: kb2 16s ease-in-out infinite alternate; }

/* ─── PULL QUOTE ─────────────────────────────────────────────────────────── */
.pull-quote { background: var(--terracotta); padding: 90px 60px; text-align: center; position: relative; overflow: hidden; }
.pull-quote::before { content: '"'; font-family: 'Cormorant Garamond', serif; font-size: 28rem; color: rgba(255,255,255,.05); position: absolute; top: -60px; left: 20px; line-height: 1; pointer-events: none; }
.pull-quote blockquote { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.7rem,3.2vw,2.8rem); font-weight: 300; font-style: italic; color: #fff; max-width: 860px; margin: 0 auto 20px; line-height: 1.45; position: relative; z-index: 1; }
.pull-quote cite { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* ─── FEATURES GRID ──────────────────────────────────────────────────────── */
.features { padding: 90px 60px; background: var(--white); }
.features-hdr { max-width: 580px; margin-bottom: 70px; }
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: var(--stone); }
.feat-card { background: var(--white); padding: 48px 36px; transition: background .4s; }
.feat-card:hover { background: var(--cream); }
.feat-icon { width: 36px; height: 1px; background: var(--gold); margin-bottom: 24px; }
.feat-name { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 500; color: var(--navy); margin-bottom: 12px; }
.feat-desc { font-size: .76rem; line-height: 1.9; color: #6B7280; font-weight: 300; }

/* ─── FULL-BLEED PANORAMIC ───────────────────────────────────────────────── */
.panoramic { position: relative; height: 68vh; overflow: hidden; }
.panoramic img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.pano-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,18,28,.6) 0%, rgba(10,18,28,.08) 65%); display: flex; align-items: flex-end; padding: 56px 80px; }
.pano-caption { max-width: 480px; }

/* ─── PHOTO GRIDS ────────────────────────────────────────────────────────── */
.photo-section { padding: 90px 60px; }
.photo-section.cream { background: var(--cream); }
.photo-section.white { background: var(--white); }
.photo-section.navy  { background: var(--navy); }
.photo-section.dark  { background: var(--dark); }
.photo-hdr { margin-bottom: 52px; }

.pg { display: grid; grid-template-columns: repeat(12,1fr); grid-auto-rows: 300px; gap: 4px; }
.pi { overflow: hidden; cursor: pointer; position: relative; }
.pi::after { content: ''; position: absolute; inset: 0; background: rgba(28,43,58,0); transition: background .38s; }
.pi:hover::after { background: rgba(28,43,58,.22); }
.pi img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s; }
.pi:hover img { transform: scale(1.05); }
.p3  { grid-column: span 3; }
.p4  { grid-column: span 4; }
.p5  { grid-column: span 5; }
.p6  { grid-column: span 6; }
.p7  { grid-column: span 7; }
.p8  { grid-column: span 8; }
.p12 { grid-column: span 12; }

/* night photo tall rows */
.pg.tall { grid-auto-rows: 420px; }
.pg.short { grid-auto-rows: 220px; }

/* gallery category label */
.gcat { grid-column: span 12; padding: 24px 0 8px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; }
.gcat-lbl { font-size: .58rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 14px; }
.gcat-lbl::before { content: ''; display: block; width: 20px; height: 1px; background: var(--gold); }
.gcat.first { border-top: none; margin-top: 0; }
.gcat-desc { font-size: .72rem; line-height: 1.9; color: rgba(255,255,255,.42); font-weight: 300; max-width: 680px; margin-top: 10px; }

/* ─── SPACE CARD (interiors) ─────────────────────────────────────────────── */
.space-section { padding: 90px 60px; }
.space-section:nth-child(even) { background: var(--cream); }
.space-section:nth-child(odd)  { background: var(--white); }
.space-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1320px; margin: 0 auto; }
.space-inner.flip { direction: rtl; }
.space-inner.flip > * { direction: ltr; }
.space-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.space-photo-main { grid-column: span 2; height: 360px; overflow: hidden; }
.space-photo-sub  { height: 200px; overflow: hidden; }
.space-photo-main img, .space-photo-sub img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s; }
.space-photo-main:hover img, .space-photo-sub:hover img { transform: scale(1.04); }
.space-text { padding: 20px 0; }

/* single large image side-by-side text */
.space-solo { height: 540px; overflow: hidden; }
.space-solo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── LIGHTBOX ───────────────────────────────────────────────────────────── */
.lb { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(8,13,20,.97); align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.lb-close { position: absolute; top: 26px; right: 34px; color: rgba(255,255,255,.55); font-size: 1.7rem; cursor: pointer; background: none; border: none; transition: color .3s; line-height: 1; }
.lb-close:hover { color: var(--gold); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,.45); font-size: 2.4rem; cursor: pointer; transition: color .3s; padding: 18px; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-prev:hover,.lb-next:hover { color: var(--gold); }
.lb-ctr { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.28); font-size: .58rem; letter-spacing: .22em; }

/* ─── PAGE NAV TILES (home) ──────────────────────────────────────────────── */
.page-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.page-tile { position: relative; height: 480px; overflow: hidden; text-decoration: none; display: block; }
.page-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s; }
.page-tile:hover img { transform: scale(1.06); }
.tile-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,18,28,.75) 0%, rgba(10,18,28,.1) 50%); transition: background .4s; }
.page-tile:hover .tile-overlay { background: linear-gradient(to top, rgba(10,18,28,.85) 0%, rgba(10,18,28,.25) 60%); }
.tile-text { position: absolute; bottom: 0; left: 0; right: 0; padding: 36px 36px; }
.tile-label { font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.tile-title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; color: #fff; line-height: 1.1; }
.tile-arrow { display: inline-block; margin-top: 12px; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* ─── LOCATION BANNER ────────────────────────────────────────────────────── */
.loc-banner { height: 58vh; position: relative; overflow: hidden; }
.loc-banner img { width: 100%; height: 100%; object-fit: cover; }
.loc-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(28,43,58,.82) 38%, transparent); display: flex; align-items: center; padding: 0 80px; }
.loc-text { max-width: 460px; }

/* ─── INTERIOR FEATURES GRID ─────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: var(--stone); margin-top: 8px; }
.feat { background: var(--white); padding: 48px 36px; transition: background .4s; }
.feat:hover { background: var(--cream); }
.feat-icon { width: 28px; height: 2px; background: var(--gold); margin-bottom: 22px; font-size: 0; color: transparent; }
.feat h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 500; color: var(--navy); margin-bottom: 12px; }
.feat p { font-size: .76rem; line-height: 1.9; color: #6B7280; font-weight: 300; }
@media (max-width: 780px) { .features-grid { grid-template-columns: 1fr; } }

/* ─── SPECS ──────────────────────────────────────────────────────────────── */
.specs-wrap { padding: 90px 60px; background: var(--cream); }
.specs-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; max-width: 1200px; }
.specs-list { list-style: none; }
.specs-list li { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.specs-list li:first-child { border-top: 1px solid rgba(0,0,0,.07); }
.sk { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.sv { font-family: 'Cormorant Garamond', serif; font-size: 1.12rem; color: var(--terracotta); font-weight: 500; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
footer { background: var(--dark); padding: 56px 60px; display: flex; justify-content: space-between; align-items: center; }
.foot-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 300; letter-spacing: .26em; color: rgba(255,255,255,.38); }
.foot-logo span { color: var(--gold); }
.foot-nav { display: flex; gap: 28px; }
.foot-nav a { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.28); text-decoration: none; transition: color .3s; }
.foot-nav a:hover { color: var(--gold); }
.foot-copy { font-size: .58rem; letter-spacing: .15em; color: rgba(255,255,255,.18); }

/* ─── HAMBURGER ──────────────────────────────────────────────────────────── */
.nav-burger {
  display: none;                 /* hidden on desktop */
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer; background: none; border: none; padding: 4px;
  position: relative; z-index: 1002; flex-shrink: 0; margin-left: 16px;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px; background: #fff;
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  nav { padding: 0 32px; }
  .nav-logo { left: 32px; }
  .nav-links { right: 32px; gap: 22px; }
  .nav-links a { font-size: .58rem; letter-spacing: .14em; }
}
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-logo { left: 20px; }
  .nav-links { right: 20px; gap: 16px; }
  .nav-links a { font-size: .52rem; letter-spacing: .1em; }
}
@media (max-width: 780px) {
  /* Show burger, hide inline links */
  .nav-burger { display: flex; }
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed; inset: 0; top: 0; right: 0; transform: none;
    z-index: 1001;
    display: none;
    flex-direction: column; align-items: center; justify-content: center; gap: 36px;
    background: rgba(13,23,32,.98);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: .9rem; letter-spacing: .24em; color: rgba(255,255,255,.85); }
  .hero-content, .page-hero-overlay { padding-left: 24px; padding-right: 24px; padding-bottom: 48px; }
  .slide-dots { display: none; }
  .stat-strip { flex-wrap: wrap; padding: 32px 24px; }
  .stat:not(:last-child) { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 20px; }
  .story, .space-inner, .space-inner.flip { grid-template-columns: 1fr; direction: ltr; }
  .story-img { height: 52vw; min-height: 240px; }
  .story-text, .story-text.right { padding: 52px 24px; order: initial; }
  .features, .specs-wrap, .photo-section, .space-section { padding: 52px 24px; }
  .feat-grid { grid-template-columns: 1fr; }
  .pg { grid-auto-rows: 180px; }
  .pg.tall { grid-auto-rows: 260px; }
  .p3,.p4,.p5,.p6,.p7,.p8,.p12 { grid-column: span 6; }
  .page-tiles { grid-template-columns: 1fr; }
  .page-tile { height: 320px; }
  .space-photos { grid-template-columns: 1fr; }
  .space-photo-main { grid-column: span 1; height: 240px; }
  .space-photo-sub { height: 180px; }
  .space-solo { height: 260px; }
  .specs-inner { grid-template-columns: 1fr; gap: 36px; }
  .loc-overlay { padding: 0 24px; }
  .panoramic { height: 44vh; }
  .pano-overlay { padding: 32px 24px; }
  footer { flex-direction: column; gap: 20px; padding: 36px 24px; text-align: center; }
  .foot-nav { flex-wrap: wrap; justify-content: center; }
  .pull-quote { padding: 52px 24px; }
}
