/* South Haven Samana — southhavensamana.com
   Palette, type scale, layout primitives, then sections in page order. */

/* ---------- Tokens ---------------------------------------------------- */

:root {
  /* SAMANA navy. --ink-2 is the brand value; the ground is a darker mix of it
     so navy surfaces read as a lift rather than as the whole page. */
  --navy:       #13294b;
  --ink:        #0a1730;
  --ink-2:      #13294b;
  --ink-3:      #1b3765;
  --line:       rgba(196, 214, 240, 0.18);
  --line-solid: #24406b;

  --sand:       #eef3fa;
  --sand-dim:   #b7c5db;
  --muted:      #8496b2;

  --gold:       #c19a5b;
  --gold-soft:  #e0c493;
  --gold-dim:   rgba(193, 154, 91, 0.14);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --pad:  clamp(20px, 5vw, 48px);
  --sec:  clamp(72px, 10vw, 140px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ------------------------------------------------------ */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Light sections ---------------------------------------------
   Solid navy end to end was too heavy, so the page alternates: dark bands
   for the renders, off-white bands for reading and for the floor plans.
   These re-point the same tokens the components already use, so nothing
   inside a light section needs its own override. */

.section-light {
  --ink:       #f3f1ec;
  --ink-2:     #ffffff;
  --ink-3:     #eae6de;
  --line:      rgba(19, 41, 75, 0.15);

  --sand:      #13294b;
  --sand-dim:  #48597a;
  --muted:     #7d8ba3;

  /* Darker than the navy-band gold: #9a7433 only hit 3.8:1 on this ground,
     and the eyebrows are 11px. #856124 clears 4.5:1. */
  --gold:      #856124;
  --gold-soft: #7d5a20;

  background: var(--ink);
  color: var(--sand);
  border-top: 1px solid rgba(19, 41, 75, 0.15);
  border-bottom: 1px solid rgba(19, 41, 75, 0.15);
}

/* The map is inverted to sit on navy; on an off-white band it reads as-is. */
.section-light .map-wrap iframe { filter: grayscale(1) contrast(1.04); }

/* The image tag is meant to read as a label pinned to the render. Following
   the light tokens would make it cream-on-cream and dissolve into the band,
   so it keeps the navy block here. */
.section-light .split-media .tag {
  background: var(--navy);
  color: #c19a5b;
}

/* ---------- Layout primitives ------------------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { position: relative; }

.section { padding: var(--sec) 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::after {
  content: '';
  height: 1px;
  width: 54px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.eyebrow.center { justify-content: center; }
.eyebrow.center::before {
  content: '';
  height: 1px;
  width: 54px;
  background: linear-gradient(270deg, var(--gold), transparent);
}

.h2 { font-size: clamp(34px, 5.4vw, 62px); }
.h3 { font-size: clamp(24px, 3vw, 34px); }

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--sand-dim);
  max-width: 60ch;
  font-weight: 300;
}

.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Buttons ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 38px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #0a1730;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.btn-ghost {
  background: transparent;
  color: var(--sand);
  border-color: rgba(239, 231, 218, 0.3);
}

.btn-ghost:hover {
  background: var(--sand);
  color: var(--ink);
  border-color: var(--sand);
}

.btn-block { width: 100%; }

/* ---------- Scroll progress + header ----------------------------------- */

#scrollProgress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}

#scrollProgress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.45s var(--ease), padding 0.45s var(--ease), border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(8, 19, 40, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

/* Over the hero the nav sits on whatever the render happens to be doing —
   the lit SAMANA sign runs straight through it. This scrim keeps the links
   readable there and fades out once the solid header takes over. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 15, 32, 0.8) 0%, rgba(6, 15, 32, 0.35) 60%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.site-header.scrolled::before { opacity: 0; }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; flex-direction: column; line-height: 1; }

.brand-logo {
  /* Intrinsic 900x266. height drives the size so the header can shrink on
     scroll; align-self stops the column flexbox stretching it sideways to
     match the wider text line underneath. */
  height: 34px;
  width: auto;
  align-self: flex-start;
  transition: height 0.45s var(--ease);
}

.site-header.scrolled .brand-logo { height: 28px; }


.nav-desktop {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-desktop a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}

.nav-desktop a:hover { color: var(--sand); }
.nav-desktop a:hover::after { width: 100%; }

.nav-desktop .btn {
  padding: 12px 26px;
  color: #0a1730;
}
.nav-desktop .btn::after { display: none; }
.nav-desktop .btn:hover { color: #0a1730; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1px;
  background: var(--sand);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* flex-start, not center: a centred column clips its overflow at BOTH ends
     and the top half becomes unreachable. The auto-margin pseudo-elements
     below re-centre the list whenever it does fit. */
  justify-content: flex-start;
  gap: 24px;
  /* Top padding clears the fixed header, which sits above this drawer. */
  padding: 104px 24px 44px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
  z-index: 99;
}

/* Soak up the spare space so the list reads as centred on a tall phone, and
   collapse to nothing on a short one so it scrolls from the first item. */
.nav-mobile::before,
.nav-mobile::after {
  content: '';
  margin: auto;
}

.nav-open .nav-mobile { opacity: 1; visibility: visible; }

.nav-mobile a {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--sand);
  flex-shrink: 0;
}

/* Nine items do not fit a 640px-tall phone at full size. */
@media (max-height: 720px) {
  .nav-mobile { gap: 14px; padding-top: 92px; }
  .nav-mobile a { font-size: 23px; }
}

.nav-mobile a.btn {
  font-family: var(--sans);
  font-size: 12px;
  color: #0a1730;
  margin-top: 10px;
}

/* ---------- Hero -------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: heroDrift 22s var(--ease) forwards;
}

@keyframes heroDrift {
  from { transform: scale(1.1); }
  to   { transform: scale(1); }
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 15, 32, 0.74) 0%, rgba(6, 15, 32, 0.16) 34%, rgba(6, 15, 32, 0.9) 88%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(40px, 7vw, 84px);
  padding-top: 140px;
}

.hero h1 {
  font-size: clamp(46px, 9vw, 116px);
  line-height: 0.94;
  margin: 0 0 6px;
}

/* Was a span inside the H1, which made the heading read "Southbound living
   South Haven Samana". Lifted out so the H1 is the target phrase alone. */
.hero-kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-soft);
  font-size: clamp(24px, 4.7vw, 60px);
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
}

.hero-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-dim);
  margin: 22px 0 0;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  right: var(--pad);
  z-index: 3;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

/* ---------- Split panels ------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.split.reverse .split-media { order: 2; }

.split-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.split-media:hover img { transform: scale(1.045); }

.split-media .tag {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--ink);
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 14px 22px;
}

.body-copy p { color: var(--sand-dim); margin: 0 0 20px; }
.body-copy p:last-child { margin-bottom: 0; }
.body-copy strong { color: var(--sand); font-weight: 400; }

/* ---------- Parallax band ----------------------------------------------- */

.band {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band .parallax {
  position: absolute;
  inset: -12% 0;
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--py, 0), 0);
  will-change: transform;
}

.band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 19, 40, 0.92) 0%, rgba(8, 19, 40, 0.6) 55%, rgba(8, 19, 40, 0.32) 100%);
}

.band-inner {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 9vw, 110px) 0;
}

.band-quote {
  font-family: var(--serif);
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.15;
  max-width: 20ch;
  margin: 0;
}

.band-quote em { color: var(--gold-soft); font-style: italic; }

/* ---------- Residences -------------------------------------------------- */

/* Real cards: their own surface, their own border, real space between them,
   and a lift on hover — not three cells sharing one grid rule. */
.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 54px;
}

.res-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 42px 34px 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

/* Gold rule that draws itself across the top on hover. */
.res-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width 0.55s var(--ease);
}

.res-card:hover {
  transform: translateY(-6px);
  border-color: rgba(193, 154, 91, 0.45);
  box-shadow: 0 26px 54px rgba(4, 10, 22, 0.42);
}

.res-card:hover::before { width: 100%; }

.res-card .res-type {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

.res-card h3 {
  font-size: 32px;
  margin-bottom: 10px;
}

.res-price {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}

.res-price strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  text-transform: none;
}

.res-desc {
  color: var(--sand-dim);
  font-size: 15px;
  margin: 0 0 26px;
}

.res-specs {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  /* Pushes the CTA block to the bottom so buttons line up across the row. */
  flex: 1;
}

.res-specs li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.res-specs li span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  color: var(--muted);
  align-self: center;
}

.res-specs li span:last-child { color: var(--sand); text-align: right; }

.res-cta { margin-top: auto; }

.res-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.res-link::after {
  content: ' →';
  color: var(--gold);
}

.res-link:hover { color: var(--sand); }

/* ---------- Amenities --------------------------------------------------- */

.amen-cluster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
  margin-top: 60px;
}

.amen-col h3 {
  font-size: 25px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.amen-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.amen-col li {
  font-size: 15px;
  color: var(--sand-dim);
  padding: 9px 0 9px 22px;
  position: relative;
}

.amen-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.amen-media {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1px;
  margin-top: 60px;
  background: var(--line);
  border: 1px solid var(--line);
}

.amen-media figure { margin: 0; position: relative; overflow: hidden; }
.amen-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.amen-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(6, 15, 32, 0.9));
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
}

/* ---------- Payment plan ------------------------------------------------ */

.pay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 54px;
}

.pay-card {
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 42px 36px;
  position: relative;
}

.pay-card.featured { border-color: rgba(193, 154, 91, 0.5); }

.pay-card .badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--gold);
  color: #0a1730;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 14px;
}

.pay-card h3 { font-size: 28px; margin-bottom: 4px; }

.pay-card .pay-note {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: block;
}

.pay-steps { list-style: none; margin: 0; padding: 0; }

.pay-steps li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  color: var(--sand-dim);
}

.pay-steps li:last-child { border-bottom: 0; }

.pay-steps b {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--sand);
}

.pay-foot {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Floor plans ------------------------------------------------- */

.plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 46px 0 34px;
  justify-content: center;
}

.plan-tab {
  background: transparent;
  border: 1px solid var(--line);
  padding: 12px 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-dim);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.plan-tab:hover { border-color: rgba(193, 154, 91, 0.5); color: var(--sand); }

.plan-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a1730;
}

.plan-panel { display: none; }
.plan-panel.active { display: grid; }

.plan-panel {
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: clamp(26px, 4vw, 52px);
}

.plan-img {
  background: #f6f4f0;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.plan-img img { max-height: 560px; width: auto; margin: 0 auto; }

.plan-body h3 { font-size: 34px; margin-bottom: 6px; }

.plan-body .plan-kicker {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 22px;
}

.plan-body p { color: var(--sand-dim); font-size: 15px; }

.plan-specs {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
}

.plan-specs li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.plan-specs li span:last-child { color: var(--sand); }

/* ---------- Film band ---------------------------------------------------
   Decorative, muted, no controls — it is wallpaper, not a player, so it takes
   no pointer events and no tab stop. */

.film {
  position: relative;
  width: 100%;
  line-height: 0;
  background: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.film-video {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* ---------- Gallery ----------------------------------------------------- */

.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 54px;
}

.gal-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink-2);
  aspect-ratio: 4 / 3;
}

.gal-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity 0.5s var(--ease);
}

.gal-item:hover img { transform: scale(1.06); opacity: 0.82; }

.gal-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(6, 15, 32, 0.88));
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.gal-item:hover figcaption { opacity: 1; transform: none; }

/* Touch screens never fire :hover, so the captions above would never show and
   the renders would sit unlabelled. Pin them open there instead. */
@media (hover: none) {
  .gal-item figcaption { opacity: 1; transform: none; }
}

/* ---------- Lightbox ---------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 12, 26, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 6vw;
}

.lightbox.open { display: flex; }

.lb-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lb-figure img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  object-fit: contain;
}

#lbCap {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-dim);
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--sand);
  width: 50px;
  height: 50px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover { border-color: var(--gold); color: var(--gold); }

.lb-close { top: 24px; right: 24px; }
.lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Location ---------------------------------------------------- */

.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: start;
}

.landmarks {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.landmarks li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--sand-dim);
}

.landmarks li span:last-child {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold-soft);
  white-space: nowrap;
}

.map-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.9) contrast(0.85);
  pointer-events: none;
}

.map-wrap.active iframe { pointer-events: auto; }

.map-activate {
  position: absolute;
  inset: 0;
  background: rgba(8, 19, 40, 0.4);
  border: 0;
  color: var(--sand);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.map-wrap.active .map-activate { display: none; }

/* ---------- Investment stats -------------------------------------------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 54px;
}

.stat {
  background: var(--ink-2);
  padding: 40px 26px;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 14px;
}

.stat span {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- FAQ --------------------------------------------------------- */

.faq-list {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 26px 44px 26px 0;
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--sand);
  cursor: pointer;
  position: relative;
  transition: color 0.3s var(--ease);
}

.faq-q:hover { color: var(--gold-soft); }

.faq-q::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--gold);
  transition: transform 0.35s var(--ease);
}

.faq-q[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.faq-a p {
  margin: 0 0 26px;
  color: var(--sand-dim);
  font-size: 15.5px;
  max-width: 78ch;
  padding-right: 40px;
}

/* ---------- Enquiry ----------------------------------------------------- */

.enquire {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.enquire-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}

.form-card {
  border: 1px solid var(--line);
  background: var(--ink);
  padding: clamp(26px, 4vw, 44px);
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--sand);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--ink-3);
}

.field textarea { resize: vertical; min-height: 96px; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c19a5b' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.phone-row {
  display: grid;
  /* Wide enough for flag + dial code; the country name after it truncates. */
  grid-template-columns: 132px 1fr;
  gap: 10px;
}

.phone-row select {
  text-overflow: ellipsis;
  padding-right: 32px;
  background-position: right 11px center;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg {
  font-size: 13.5px;
  margin: 0 0 14px;
  min-height: 1px;
}

.form-msg.err { color: #e08d7a; }


.enquire-points {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
}

.enquire-points li {
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--sand-dim);
  font-size: 15px;
  position: relative;
}

.enquire-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 23px;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Modals ------------------------------------------------------ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(5, 12, 26, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  overflow-y: auto;
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  display: none;
  width: 100%;
  max-width: 540px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: clamp(26px, 4vw, 44px);
  position: relative;
  margin: auto;
}

.modal.active { display: block; }

.modal h3 { font-size: 30px; margin-bottom: 8px; }
.modal > p { color: var(--sand-dim); font-size: 14.5px; margin: 0 0 26px; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--line);
  color: var(--sand);
  font-size: 18px;
  cursor: pointer;
}

.modal-close:hover { border-color: var(--gold); color: var(--gold); }

.modal-success { text-align: center; }

.modal-success .tick {
  width: 62px;
  height: 62px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  color: var(--gold);
  font-size: 26px;
}

/* ---------- Sticky CTA -------------------------------------------------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(8, 19, 40, 0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 12px var(--pad);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.sticky-cta.show { transform: none; }

.sticky-cta .sc-txt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand-dim); }
.sticky-cta .sc-txt b { color: var(--gold-soft); font-weight: 400; }
.sticky-cta .btn { padding: 13px 24px; }

/* ---------- Footer ------------------------------------------------------ */

.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 70px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 54px;
}

.footer-brand .brand-logo { height: 30px; width: auto; }
.footer-blurb { color: var(--muted); font-size: 14px; max-width: 42ch; margin: 20px 0 0; }

.site-footer h4 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
  font-weight: 400;
}

.footer-nav a, .footer-contact p {
  display: block;
  font-size: 14px;
  color: var(--sand-dim);
  margin-bottom: 11px;
  transition: color 0.3s var(--ease);
}

.footer-nav a:hover { color: var(--gold-soft); }

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  padding-bottom: 34px;
}

.footer-legal p {
  font-size: 11.5px;
  line-height: 1.75;
  color: #6f6b64;
  margin: 0 0 12px;
  max-width: 105ch;
}

.footer-legal strong { color: var(--muted); font-weight: 400; }

/* ---------- Reveals ----------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ---------- Responsive -------------------------------------------------- */

@media (max-width: 1080px) {
  .res-grid { grid-template-columns: 1fr; }
  .amen-cluster { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .split, .loc-grid, .enquire-grid, .plan-panel.active, .pay-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { aspect-ratio: 3 / 2; }
  .sticky-cta { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .amen-media { grid-template-columns: 1fr; }
  .plan-img img { max-height: 420px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  /* One column: at 166px wide the interior renders were unreadable, and five
     tiles after the full-width first one always orphaned the sixth. */
  .gal-grid { grid-template-columns: 1fr; }
  .gal-item,
  .gal-item:nth-child(1) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }
  .gal-item figcaption { font-size: 11px; padding: 30px 18px 15px; }
  .field-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .sticky-cta .sc-txt { display: none; }
  .sticky-cta .btn { width: 100%; }
}

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