/* ==========================================================================
   Seven Sierra — minimal landing page
   Palette: two brand colours (#D6C0A8 sand, #461122 brown) + their tints/shades
   ========================================================================== */

:root {
  /* brand */
  --sand: #D6C0A8;
  --brown: #461122;

  /* tints & shades of the two brand colours */
  --paper: #F7F2EC;        /* lightest sand — page background */
  --sand-soft: #EDE2D6;    /* soft sand — alternate sections */
  --sand-light: #E8D9C9;   /* sand for small text on brown */
  --brown-dark: #330C19;   /* hover state (darker #461122) */
  --ink: #3A2417;          /* deepest brown — body text */
  --muted: #6E5A4C;        /* secondary text */
  --night: #2A0A14;        /* footer — darker shade of #461122 */
  --error: #A8321E;

  --line: rgba(70, 17, 34, .22);
  --line-light: rgba(232, 217, 201, .26);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --sec: clamp(84px, 11vw, 152px);
  --hdr-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  font: 400 16px/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 64px; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
.sec-brown :focus-visible, .hero :focus-visible, .ftr :focus-visible { outline-color: var(--sand); }
::selection { background: var(--sand); color: var(--ink); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only, .hp-field {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- type ---------- */
.eyebrow {
  margin-bottom: 22px;
  font: 600 11.5px/1.4 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brown);
}
.h2 {
  font: 400 clamp(38px, 5.2vw, 68px)/1.04 var(--serif);
  letter-spacing: -.012em;
  color: var(--ink);
}
.h2 em, h1 em { font-style: italic; color: var(--brown); }
.lead {
  max-width: 44ch;
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--muted);
}
.lead b { font-weight: 600; color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 30px;
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 0; background: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 11px; }
.btn-block { width: 100%; }
.btn-solid { background: var(--brown); color: var(--paper); }
.btn-solid:hover { background: var(--brown-dark); }
.btn-solid:disabled { opacity: .6; cursor: progress; }
.btn-sand { background: var(--brown); color: var(--paper); }
.btn-sand:hover { background: var(--brown-dark); }
.btn-ghost-light { background: var(--brown); color: var(--paper); }
.btn-ghost-light:hover { background: var(--brown-dark); }
/* on #461122 backgrounds a sand border keeps the #461122 button visible */
.sec-brown .btn-sand { border-color: var(--sand); }
.sec-brown .btn-sand:hover { background: var(--sand); color: var(--ink); }
.btn-line { border-color: currentColor; }
.btn-link {
  min-height: 0; padding: 0 0 8px;
  color: var(--brown); border-bottom: 1px solid var(--line);
}
.btn-link:hover { border-bottom-color: var(--brown); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--paper);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
  box-shadow: inset 0 -1px 0 rgba(247, 242, 236, .18);
}
.hdr-in {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  height: var(--hdr-h);
  transition: height .4s var(--ease);
}
.hdr.is-scrolled { background: var(--paper); color: var(--ink); box-shadow: inset 0 -1px 0 var(--line); }
.hdr.is-scrolled .hdr-in { height: 68px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand b { font: 500 25px/1 var(--serif); letter-spacing: .03em; }
.brand small { margin-top: 5px; font-size: 9.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; opacity: .75; }
.nav { display: flex; gap: 38px; }
.nav a {
  position: relative; padding: 6px 0;
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.hdr-actions { display: flex; align-items: center; gap: 24px; }
.hdr-phone { font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.hdr .btn-line { background: var(--brown); color: var(--paper); border-color: var(--brown); }
.hdr .btn-line:hover { background: var(--brown-dark); border-color: var(--brown-dark); }

.menu-toggle {
  display: none; position: relative; width: 40px; height: 40px;
  padding: 0; border: 0; background: none;
}
.menu-toggle span {
  position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--brown); color: var(--paper);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav nav a {
  display: flex; align-items: baseline; gap: 18px; padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
  font: 400 34px/1.1 var(--serif);
}
.mobile-nav nav a span { font: 600 11px var(--sans); letter-spacing: .2em; color: var(--sand-light); }
.mobile-nav-foot p { margin-top: 16px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sand-light); text-align: center; }
.mobile-nav .btn-solid { border-color: var(--sand); }
.mobile-nav .btn-solid:hover { background: var(--sand); color: var(--ink); }
body:has(.mobile-nav.is-open) .hdr { background: transparent; color: var(--paper); box-shadow: inset 0 -1px 0 var(--line-light); }
body:has(.mobile-nav.is-open) .hdr .btn-line { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100vh; min-height: 100svh;
  color: var(--paper); background: var(--night);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  animation: heroZoom 2.6s var(--ease) both;
}
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(46, 28, 18, .55) 0%, rgba(46, 28, 18, 0) 26%, rgba(46, 28, 18, .05) 50%, rgba(46, 28, 18, .82) 100%),
    linear-gradient(90deg, rgba(46, 28, 18, .5) 0%, rgba(46, 28, 18, 0) 62%);
}
.hero-in { padding-top: calc(var(--hdr-h) + 48px); padding-bottom: clamp(44px, 7vh, 80px); }
.hero .eyebrow { color: var(--sand-light); }
.hero h1 {
  font: 400 clamp(50px, 8.2vw, 120px)/.98 var(--serif);
  letter-spacing: -.018em;
}
.hero h1 em { color: var(--sand); }
.hero-sub {
  max-width: 46ch; margin: 26px 0 22px;
  font-size: clamp(15px, 1.25vw, 18px); color: rgba(247, 242, 236, .88);
}
.hero-price {
  margin-bottom: 34px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sand-light);
}
.hero-price b {
  margin: 0 6px; font: 500 clamp(30px, 2.8vw, 40px)/1 var(--serif);
  letter-spacing: 0; text-transform: none; color: var(--paper);
}
.hero-facts { position: relative; margin: 0; box-shadow: inset 0 1px 0 rgba(247, 242, 236, .22); }
.hero-facts-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-facts-in > div { padding: 22px 0 26px; }
.hero-facts-in > div + div { padding-left: 28px; box-shadow: inset 1px 0 0 rgba(247, 242, 236, .22); }
.hero-facts dt { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--sand-light); }
.hero-facts dd { margin-top: 6px; font: 400 23px/1.2 var(--serif); }

/* ---------- section index ---------- */
.index { border-bottom: 1px solid var(--line); background: var(--paper); }
.index-in { display: flex; overflow-x: auto; scrollbar-width: none; }
.index-in::-webkit-scrollbar { display: none; }
.index a {
  flex: 1 1 0; display: flex; align-items: baseline; gap: 10px;
  padding: 24px 22px; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); border-left: 1px solid var(--line);
  transition: color .3s var(--ease);
}
.index a:first-child { border-left: 0; padding-left: 0; }
.index a span { font: italic 500 16px/1 var(--serif); letter-spacing: 0; color: var(--brown); }
.index a:hover { color: var(--ink); }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec); }
.sec-sand { background: var(--sand-soft); }
.sec-brown { background: var(--brown); color: var(--paper); }
.sec-brown .eyebrow { color: var(--sand-light); }
.sec-brown .h2 { color: var(--paper); }
.sec-brown .h2 em { color: var(--sand); }
.sec-brown .lead { color: rgba(247, 242, 236, .84); }

.sec-head { margin-bottom: clamp(48px, 6vw, 84px); }
.sec-head.split {
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 28px 72px;
}
.sec-head.split > .lead, .sec-head.split > .btn { justify-self: end; }

.frame { overflow: hidden; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }

/* overview */
.overview {
  display: grid; grid-template-columns: 5fr 6fr; align-items: center;
  gap: clamp(44px, 7vw, 120px);
}
.overview .lead { margin-top: 28px; }
.credits { margin-top: 44px; }
.credits div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 15px 0; border-top: 1px solid var(--line);
}
.credits div:last-child { border-bottom: 1px solid var(--line); }
.credits dt { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.credits dd { font: 500 21px/1.2 var(--serif); text-align: right; }
.overview-media .frame { aspect-ratio: 4 / 5; }
.overview-media figcaption {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 14px;
  font-size: 13.5px; color: var(--muted);
}
.overview-media figcaption span { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line);
}
.stats li { padding: 30px 24px 0 0; }
.stats li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.stats b { display: block; font: 400 clamp(44px, 4.6vw, 64px)/1 var(--serif); color: var(--brown); }
.stats span { display: block; margin-top: 12px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* reasons */
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 44px; }
.reasons li { padding-top: 26px; border-top: 1px solid var(--brown); }
.reasons .num { font: italic 500 19px/1 var(--serif); color: var(--brown); }
.reasons h3 { margin: 30px 0 12px; font: 500 27px/1.15 var(--serif); }
.reasons p { font-size: 14.5px; color: var(--muted); }

/* villas */
.villas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); }
.villa .frame { aspect-ratio: 3 / 2; }
.villa:hover .frame img { transform: scale(1.04); }
.villa-body { padding-top: 34px; }
.villa-tag { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--brown); }
.villa h3 { margin: 10px 0 6px; font: 400 clamp(32px, 3vw, 42px)/1.1 var(--serif); }
.villa-size { font: 400 23px/1.3 var(--serif); }
.villa-size span { font: 500 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.villa-desc { max-width: 46ch; margin: 16px 0 26px; font-size: 15px; color: var(--muted); }
.spec-list div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--line); font-size: 14px;
}
.spec-list div:last-child { border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); }
.spec-list dd { font-weight: 500; text-align: right; }
.villa .btn-row { margin-top: 34px; gap: 32px; }

/* specs (brown band) */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 44px; }
.specs li { padding: 26px 0 36px; border-top: 1px solid var(--line-light); }
.specs b { display: block; font: 400 clamp(40px, 4vw, 54px)/1 var(--serif); color: var(--paper); }
.specs b small { font-size: .42em; color: var(--sand-light); }
.specs span { display: block; margin-top: 16px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sand-light); }
.specs i { display: block; margin-top: 6px; font-style: normal; font-size: 14px; color: rgba(247, 242, 236, .84); }

/* video reels (portrait 9:16) */
.reel { position: relative; overflow: hidden; aspect-ratio: 9 / 16; background: var(--night); }
.reel video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel-arch { border-radius: 999px 999px 0 0; }   /* Spanish arch */
.reel-sound {
  position: absolute; right: 14px; bottom: 14px; z-index: 1;
  width: 42px; height: 42px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(247, 242, 236, .45); border-radius: 50%;
  background: rgba(42, 10, 20, .5); color: var(--paper); backdrop-filter: blur(4px);
  transition: background-color .3s var(--ease);
}
.reel-sound:hover { background: var(--brown); }
.reel-sound-left { right: auto; left: 14px; }
.reel-sound svg { width: 18px; height: 18px; }
.reel-sound .i-on, .reel-sound[aria-pressed="true"] .i-off { display: none; }
.reel-sound[aria-pressed="true"] .i-on { display: block; }
.media-cap {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 14px;
  font-size: 13.5px; color: var(--muted);
}
.media-cap span { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.sec-brown .media-cap { color: rgba(247, 242, 236, .8); }

/* story (brand film) */
.story-in { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(44px, 7vw, 120px); }
.story .lead { margin-top: 28px; }
.story-quote {
  margin: 40px 0 0; padding: 26px 0; border-block: 1px solid var(--line-light);
  font: italic 400 clamp(26px, 2.6vw, 36px)/1.2 var(--serif); color: var(--sand);
}
.story-close { margin-top: 28px; font-size: 15px; color: rgba(247, 242, 236, .84); }
.story-close em { font: italic 400 22px/1.3 var(--serif); color: var(--paper); }
.story-media { justify-self: end; width: min(100%, 400px); }

/* master plan */
.plan-grid { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); gap: clamp(16px, 2.2vw, 32px); align-items: start; }
.plan-frame { position: relative; overflow: hidden; aspect-ratio: 2382 / 1684; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.plan-frame .plan-open, .plan-frame img { display: block; width: 100%; height: 100%; }
.plan-frame img { object-fit: cover; }
.plan:not(.is-unlocked) .plan-frame img { transform: scale(1.04); }
.plan.is-unlocked .plan-frame .plan-open { cursor: zoom-in; }
.plan-lock {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px; text-align: center; background: rgba(247, 242, 236, .38);
}
.plan-lock-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 4px;
  border-radius: 50%; background: var(--brown); color: var(--paper);
}
.plan-lock-icon svg { width: 24px; height: 24px; }
.plan-lock h3 { font: 400 clamp(26px, 2.6vw, 36px)/1.1 var(--serif); color: var(--ink); }
.plan-lock p { max-width: 36ch; margin-bottom: 10px; font-size: 14px; color: var(--ink); }
.plan.is-unlocked .plan-lock { display: none; }
.plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin-top: 22px; }
.plan-status { flex-basis: 100%; font-size: 13.5px; color: var(--brown); }
.plan-status:empty { display: none; }

/* tabs */
.tabs {
  display: flex; gap: 44px; overflow-x: auto; scrollbar-width: none;
  margin-bottom: 52px; border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; padding: 0 0 18px; border: 0; background: none;
  font: 400 28px/1.1 var(--serif); color: var(--muted);
  transition: color .3s var(--ease);
}
.tab span { margin-left: 10px; font: 600 10.5px var(--sans); letter-spacing: .18em; text-transform: uppercase; vertical-align: middle; }
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--brown); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabs-sm { gap: 30px; margin-bottom: 22px; }
.tabs-sm .tab { padding-bottom: 14px; font: 600 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }

/* amenities */
.amen {
  display: grid; grid-template-columns: 7fr 5fr; align-items: start;
  gap: clamp(40px, 6vw, 96px);
  animation: fadeIn .6s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.amen .frame { aspect-ratio: 16 / 11; }
.amen-copy h3 { font: 400 34px/1.1 var(--serif); }
.amen-copy > p { margin: 10px 0 28px; color: var(--muted); }
.amen-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.amen-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.amen-list li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--brown); }

/* gallery */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 16vw, 232px); gap: 12px;
}
.gal { position: relative; padding: 0; border: 0; overflow: hidden; background: var(--sand); cursor: zoom-in; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gal::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(46, 28, 18, 0); transition: background-color .4s var(--ease);
}
.gal:hover img { transform: scale(1.05); }
.gal:hover::after { background: rgba(46, 28, 18, .12); }
.gal.big { grid-column: span 2; grid-row: span 2; }
.gal.wide { grid-column: span 2; }

/* location */
.location { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.times li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.times li:first-child { border-top: 1px solid var(--line); }
.times b { flex: none; font: 400 30px/1 var(--serif); color: var(--brown); }
.times small { font: 600 10.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.map { aspect-ratio: 4 / 3; background: var(--sand-soft); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.4) sepia(.18); }
.location-side > .btn-link { margin-top: 20px; }
.nearby { margin-top: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 9px 15px; border: 1px solid var(--line); font-size: 13.5px; }

/* contact */
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 7vw, 120px); align-items: start; }
.contact .lead { margin: 26px 0 40px; }
.contact-meta div { padding: 16px 0; border-top: 1px solid var(--line-light); }
.contact-meta div:last-child { border-bottom: 1px solid var(--line-light); }
.contact-meta dt { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--sand-light); }
.contact-meta dd { margin-top: 6px; max-width: 46ch; font-size: 14.5px; color: rgba(247, 242, 236, .88); }
.contact-meta dd a { font: 400 30px/1.2 var(--serif); color: var(--paper); }
.contact-meta dd a:hover { color: var(--sand); }
.form-card { padding: clamp(30px, 4vw, 54px); background: var(--paper); color: var(--ink); }
.form-card h3 { margin-bottom: 28px; font: 400 34px/1.1 var(--serif); }

/* ---------- forms ---------- */
.fld { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.fld > label, .fld > legend {
  display: block; margin-bottom: 4px; padding: 0;
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.field {
  width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(58, 36, 23, .3); border-radius: 0;
  font: 400 16px/1.4 var(--sans); color: var(--ink); background: transparent;
  transition: border-color .3s var(--ease);
}
.field:focus { outline: none; border-bottom-color: var(--brown); }
.field.is-invalid { border-bottom-color: var(--error); }
select.field {
  appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23461122' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 2px center / 16px no-repeat;
}
.field-error { margin-top: 6px; font-size: 12.5px; color: var(--error); }
.iti { display: block; width: 100%; }
.iti__selected-country { background: transparent !important; }
.iti--container, .iti__dropdown-content { z-index: 300; }
.consent { display: flex; gap: 10px; margin: 6px 0 26px; font-size: 12px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent input { flex: none; margin: 3px 0 0; accent-color: var(--brown); }
.radio-row { display: flex; gap: 10px; margin-top: 8px; }
.radio-row label { flex: 1; cursor: pointer; }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row span {
  display: block; padding: 12px 10px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; text-align: center;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.radio-row input:checked + span { background: var(--brown); border-color: var(--brown); color: var(--paper); }
.radio-row input:focus-visible + span { outline: 2px solid var(--brown); outline-offset: 2px; }
.form-status { margin-top: 14px; font-size: 13.5px; }
.form-status.ok { color: var(--brown); }
.form-status.err { color: var(--error); }

/* ---------- footer ---------- */
.ftr { padding: clamp(64px, 8vw, 100px) 0 48px; background: var(--night); color: var(--sand-light); }
.partners {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 36px 48px;
  padding-bottom: 56px; border-bottom: 1px solid var(--line-light);
}
.partners li { display: flex; flex-direction: column; gap: 16px; }
.partners small { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.partners img { width: auto; height: 50px; object-fit: contain; }
/* Aldars gold logo sits on its brand green */
.partners .logo-aldars { display: block; padding: 14px 20px; background: #183731; }
.partners .logo-aldars img { height: 36px; }
.ftr-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding: 56px 0;
}
.ftr .brand b { color: var(--paper); }
.ftr-grid p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: rgba(247, 242, 236, .78); }
.ftr-grid .brand + p { margin-top: 18px; max-width: 28ch; }
.ftr-grid h4 { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); }
.ftr-grid a:hover { color: var(--sand); }
.fine { padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 12px; line-height: 1.7; color: rgba(232, 217, 201, .72); }
.fine + .fine { padding-top: 14px; border-top: 0; }

/* ---------- floating actions ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--brown); color: var(--paper);
  box-shadow: 0 10px 30px rgba(46, 28, 18, .28);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.wa-float:hover { background: var(--brown-dark); transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; }
.sticky-bar { display: none; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 16px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(46, 28, 18, .62); backdrop-filter: blur(3px); }
.modal-panel { position: relative; transform: translateY(16px); transition: transform .45s var(--ease); }
.modal.is-open .modal-panel { transform: none; }
.enquiry {
  display: grid; grid-template-columns: .85fr 1fr;
  width: min(900px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  background: var(--paper);
}
.enquiry-visual img { width: 100%; height: 100%; object-fit: cover; }
.enquiry-body { position: relative; padding: 52px 46px 40px; }
.enquiry-body h2 { margin: 2px 0 8px; font: 400 40px/1.08 var(--serif); }
.enquiry-sub { margin-bottom: 30px; font-size: 14px; color: var(--muted); }
.close-btn {
  position: absolute; top: 14px; right: 14px; width: 42px; height: 42px;
  display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--ink);
}
.close-btn svg { width: 22px; height: 22px; }
.close-btn:hover { color: var(--brown); }

/* lightbox */
.lightbox { background: rgba(30, 18, 11, .95); }
.lightbox figure { max-width: min(1200px, 88vw); }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; }
.lightbox figcaption { margin-top: 16px; font-size: 13px; text-align: center; color: var(--sand-light); }
.lb-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(214, 192, 168, .4); background: rgba(30, 18, 11, .4); color: var(--paper);
  transition: background-color .3s var(--ease);
}
.lb-btn:hover { background: var(--brown); border-color: var(--brown); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav, .hdr-phone { display: none; }
  .menu-toggle { display: block; }
  .hdr-actions { gap: 12px; }
  .reasons, .specs { grid-template-columns: repeat(2, 1fr); }
  .reasons li { margin-bottom: 40px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .sec-head.split { grid-template-columns: 1fr; }
  .sec-head.split > .lead, .sec-head.split > .btn { justify-self: start; }
  .overview, .villas, .amen, .location, .contact-in, .story-in, .plan-grid { grid-template-columns: 1fr; }
  .story-media { justify-self: center; width: min(100%, 360px); }
  .plan-video { justify-self: center; width: min(100%, 320px); }
  .overview-media .frame { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n + 3) { margin-top: 28px; }
  .hero-facts-in { grid-template-columns: repeat(2, 1fr); }
  .hero-facts-in > div:nth-child(3) { padding-left: 0; box-shadow: none; }
  .hero-facts-in > div:nth-child(n + 3) { box-shadow: inset 0 1px 0 rgba(247, 242, 236, .22); }
  .hero-facts-in > div:nth-child(4) { box-shadow: inset 1px 0 0 rgba(247, 242, 236, .22), inset 0 1px 0 rgba(247, 242, 236, .22); }
  .enquiry { grid-template-columns: 1fr; }
  .enquiry-visual { display: none; }
}

@media (max-width: 768px) {
  :root { --hdr-h: 68px; }
  .hdr.is-scrolled .hdr-in { height: 60px; }
  .hdr .btn-line { display: none; }
  .brand b { font-size: 22px; }
  .hero-in { padding-bottom: 36px; }
  .hero-sub { margin: 20px 0 16px; }
  .hero-price { margin-bottom: 26px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .hero-facts-in > div { padding: 16px 0 18px; }
  .hero-facts-in > div + div { padding-left: 18px; }
  .hero-facts dd { font-size: 19px; }
  .index a { flex: 0 0 auto; padding: 18px 16px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; gap: 8px; }
  .amen-list { grid-template-columns: 1fr; }
  .tabs { gap: 28px; margin-bottom: 36px; }
  .tab { font-size: 24px; }
  .tab span { display: block; margin: 6px 0 0; }
  .ftr { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  .wa-float { display: none; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .sticky-bar {
    position: fixed; inset: auto 0 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr 1.3fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--paper); box-shadow: 0 -1px 0 var(--line);
  }
  .sticky-bar a, .sticky-bar button {
    display: grid; place-items: center; height: 58px; padding: 0; border: 0;
    font: 600 11.5px var(--sans); letter-spacing: .16em; text-transform: uppercase;
    background: none; color: var(--ink);
  }
  .sticky-bar a + a { box-shadow: inset 1px 0 0 var(--line); }
  .sticky-bar button { background: var(--brown); color: var(--paper); }

  /* popup becomes a bottom sheet */
  .modal:not(.lightbox) { place-items: end stretch; padding: 0; }
  .enquiry { width: 100%; max-height: 92svh; }
  .modal:not(.lightbox) .modal-panel { transform: translateY(100%); }
  .modal.is-open:not(.lightbox) .modal-panel { transform: none; }
  .enquiry-body { padding: 40px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
  .enquiry-body h2 { font-size: 34px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

@media (max-width: 560px) {
  .reasons { grid-template-columns: 1fr; }
  .reasons h3 { margin-top: 16px; }
  .reasons li { margin-bottom: 32px; }
  .specs { gap: 0 22px; }
  .specs li { padding: 20px 0 26px; }
  .specs b { font-size: 36px; }
  .specs span { letter-spacing: .14em; }
  .ftr-grid { grid-template-columns: 1fr; gap: 28px; }
  .partners { justify-content: flex-start; }
  .partners img { height: 42px; }
  .partners .logo-aldars { padding: 12px 16px; }
  .partners .logo-aldars img { height: 30px; }
  .credits div { flex-direction: column; gap: 4px; }
  .credits dd { text-align: left; }
  .plan-lock { gap: 8px; padding: 16px; }
  .plan-lock p { display: none; }
  .plan-lock-icon { width: 44px; height: 44px; }
  .plan-lock h3 { font-size: 24px; }
  .plan-lock .btn { min-height: 46px; padding: 0 22px; }
}

/* Cormorant defaults to old-style figures (110 reads as "IIO"); use lining figures.
   Kept last because the `font` shorthand used above resets font-variant-numeric. */
.hero-facts dd, .hero-price b, .stats b, .specs b, .times b, .villa-size, .credits dd, .contact-meta dd a,
.reasons .num, .index a span, .h2, h1, .tab { font-variant-numeric: lining-nums; }
