/* ==========================================================================
   Starling nekretnine — Rudeš (Rašenički put) novogradnja
   Brand truth: logo ink #0D494F (petrol teal) + #B01F24 (crimson starling).
   Type: THE CLIENT'S OWN WEBFONTS, read off starling.hr's stylesheet, not a look-alike.
         Hammersmith One  (their --f2, every title/header on their site)
         Source Sans Pro  (their --f1, their body face)
   Ground: warm ivory/sand, pulled from the project's own oak + beige interiors.
   ========================================================================== */

:root {
  --teal:        #0D494F;
  --teal-deep:   #06343A;
  --teal-ink:    #072A2E;
  --teal-soft:   #1C6A70;
  --crimson:     #B01F24;
  --crimson-dk:  #8E181D;

  --sand:        #F4EEE4;
  --sand-2:      #E9E0D2;
  --paper:       #FCFAF6;
  --white:       #FFFFFF;

  --text:        #1B2B2C;
  --text-soft:   #4E5F60;
  --text-mute:   #74807F;
  --on-dark:     #EEF3F2;
  --on-dark-mute:#A8BFBF;

  --line:        rgba(13, 73, 79, .16);
  --line-soft:   rgba(13, 73, 79, .09);
  --line-dark:   rgba(238, 243, 242, .18);

  /* THE CLIENT'S REAL WEBFONTS, lifted from starling.hr's own stylesheet
     (sites_templates/115/.../style_4100.css): --f2 "Hammersmith One" is their title
     face, --f1 'Source Sans Pro' their body face. Do not substitute a look-alike. */
  --display: "Hammersmith One", "Arial Black", Impact, sans-serif;
  --sans:    "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --track-lockup: .30em;   /* the logo's own descriptor tracking */
  --wrap: 1200px;
  --radius: 3px;

  --shadow-sm: 0 1px 2px rgba(7, 42, 46, .06), 0 4px 14px rgba(7, 42, 46, .05);
  --shadow-md: 0 2px 6px rgba(7, 42, 46, .07), 0 18px 44px rgba(7, 42, 46, .10);
  --shadow-lg: 0 4px 12px rgba(7, 42, 46, .09), 0 34px 80px rgba(7, 42, 46, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  /* Their site runs body at 300. On a paid-traffic lander that is too thin to read on a
     phone, so the lightness comes from colour instead and the weight stays at 400. */
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- scroll reveal (progressive enhancement — see LEARNED_RULES [reveal]) ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- type primitives ---------- */
/* The topbar is fixed, so an anchored CTA would land its target underneath it. */
[id] { scroll-margin-top: 96px; }

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 44px, 860px); margin-inline: auto; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: clamp(10px, .78vw, 12px);
  font-weight: 500;
  letter-spacing: var(--track-lockup);
  text-transform: uppercase;
  color: var(--teal-soft);
}
.eyebrow--dark { color: var(--on-dark-mute); }
.eyebrow--crimson { color: var(--crimson); }

h1, .h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.05rem, 4.4vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -.018em;
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -.014em;
  text-wrap: balance;
  max-width: 20ch;
}
h3, .h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.12rem, 1.4vw, 1.34rem);
  line-height: 1.28;
  letter-spacing: -.008em;
}
.lead {
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.62;
  color: var(--text-soft);
  max-width: 62ch;
  text-wrap: pretty;
}
.body-p { color: var(--text-soft); text-wrap: pretty; max-width: 66ch; }
.display-em { font-family: var(--sans); font-style: italic; font-weight: 600; color: var(--teal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 2.05rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--sans); font-size: .84rem; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase; text-decoration: none;
  transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease), transform .22s var(--ease), box-shadow .28s var(--ease);
}
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--crimson { background: var(--crimson); color: #fff; box-shadow: var(--shadow-sm); }
.btn--crimson:hover { background: var(--crimson-dk); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.13); border-color: #fff; }
.btn--outline { background: transparent; color: var(--teal); border-color: var(--line); }
.btn--outline:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn--full { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px clamp(22px, 3vw, 46px);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.topbar__logo { display: inline-flex; align-items: center; min-height: 44px; }
.topbar__logo img { height: 34px; width: auto; transition: opacity .3s var(--ease); }
.topbar__logo .logo-light { display: block; }
.topbar__logo .logo-dark { display: none; }
.topbar__right { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.topbar__loc {
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.82); white-space: nowrap;
}
.topbar .btn { min-height: 44px; padding: 0 1.4rem; font-size: .72rem; letter-spacing: .15em; }

.topbar.is-stuck {
  background: rgba(252, 250, 246, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px rgba(7,42,46,.06);
  padding-block: 11px;
}
.topbar.is-stuck .logo-light { display: none; }
.topbar.is-stuck .logo-dark { display: block; }
.topbar.is-stuck .topbar__loc { color: var(--text-mute); }
.topbar.is-stuck .btn--ghost { color: var(--teal); border-color: var(--line); }
.topbar.is-stuck .btn--ghost:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: flex-end; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; animation: heroDrift 26s var(--ease) forwards; }
@keyframes heroDrift { from { transform: scale(1.075); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__media img { animation: none; } }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,32,36,.62) 0%, rgba(6,32,36,.14) 26%, rgba(6,32,36,.30) 55%, rgba(6,32,36,.86) 100%),
    linear-gradient(85deg, rgba(6,32,36,.60) 0%, rgba(6,32,36,.12) 62%);
}
.hero__inner { width: min(100% - 44px, var(--wrap)); margin-inline: auto; padding: 150px 0 clamp(40px, 6vh, 76px); color: #fff; }
.hero .eyebrow { margin-bottom: 22px; color: rgba(255,255,255,.86); }
.hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 30px rgba(4,26,29,.42); }
.hero__sub {
  margin-top: 22px; max-width: 50ch;
  font-size: clamp(1.03rem, 1.35vw, 1.24rem); line-height: 1.6;
  color: rgba(255,255,255,.90); text-wrap: pretty;
  text-shadow: 0 1px 18px rgba(4,26,29,.5);
}
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero__chips { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(255,255,255,.24); }
.hero__chip { padding: 18px 34px 4px 0; margin-right: 34px; }
.hero__chip b {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.12; letter-spacing: -.01em; color: #fff;
}
/* DIRECT child only. The big number is `<b><span data-count>34</span></b>`, so a descendant
   `.hero__chip span` also matched the counter and rendered the headline figure at 11px. */
.hero__chip > span {
  display: block; margin-top: 5px;
  font-size: 11px; font-weight: 400; letter-spacing: .17em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.hero__chip--live b { color: #fff; }
.hero__chip--live b::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--crimson); margin-right: 11px; vertical-align: middle;
  box-shadow: 0 0 0 4px rgba(176,31,36,.28);
}

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 9vw, 132px) 0; }
.sec--sand { background: var(--sand); }
.sec--sand2 { background: var(--sand-2); }
.sec--paper { background: var(--paper); }
.sec--white { background: var(--white); }
.sec--dark { background: var(--teal-ink); color: var(--on-dark); }
.sec--dark h2, .sec--dark h3 { color: #fff; }
.sec--dark .lead, .sec--dark .body-p { color: var(--on-dark-mute); }
.sec--tight { padding-block: clamp(54px, 6vw, 84px); }

.sec-head { margin-bottom: clamp(38px, 4.5vw, 60px); }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head .lead { margin-top: 18px; }
.sec-head--center { text-align: center; }
.sec-head--center h2 { margin-inline: auto; }
.sec-head--center .lead { margin-inline: auto; }

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

/* ---------- stat strip ---------- */
.stats { background: var(--teal-ink); color: #fff; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line-dark);
}
.stat { padding: clamp(30px, 3.4vw, 46px) clamp(18px, 2.2vw, 32px); border-right: 1px solid var(--line-dark); }
.stat b {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2.3rem); line-height: 1.06; letter-spacing: -.012em; color: #fff;
}
.stat span {
  display: block; margin-top: 11px;
  font-size: 11px; letter-spacing: .17em; text-transform: uppercase; color: var(--on-dark-mute);
}
.stat--accent b { color: #fff; }
.stat--accent b em { font-style: normal; color: #FF7A80; }

/* ---------- split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 5vw, 82px); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split__media--wide img { aspect-ratio: 16 / 11; }
.split__badge {
  position: absolute; left: -22px; bottom: 30px;
  background: var(--crimson); color: #fff;
  padding: 14px 22px; border-radius: var(--radius);
  font-size: 11px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase;
  box-shadow: var(--shadow-md);
}
.split__body > * + * { margin-top: 20px; }

/* ---------- benefit grid ---------- */
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bcard { background: var(--paper); padding: clamp(26px, 2.6vw, 38px); transition: background .3s var(--ease); }
.bcard:hover { background: var(--white); }
.bcard__ic { width: 30px; height: 30px; color: var(--teal-soft); margin-bottom: 20px; }
.bcard__ic svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.2; fill: none; }
.bcard h3 { font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: .01em; margin-bottom: 9px; color: var(--text); }
.bcard p { font-size: .96rem; color: var(--text-soft); text-wrap: pretty; }
.sec--sand .bcard { background: rgba(255,255,255,.55); }
.sec--sand .bcard:hover { background: #fff; }

/* ---------- unit cards ---------- */
.units { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.4vw, 34px); }
.unit {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.unit:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.unit__img { position: relative; }
.unit__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.unit__tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(6,32,36,.86); color: #fff; backdrop-filter: blur(6px);
  padding: 8px 15px; border-radius: 2px;
  font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.unit__body { padding: clamp(24px, 2.4vw, 34px); display: flex; flex-direction: column; flex: 1; }
.unit__price {
  font-family: var(--display); font-size: clamp(1.6rem, 2.1vw, 2rem); line-height: 1.06; letter-spacing: -.014em;
  color: var(--teal); margin: 4px 0 4px;
}
.unit__area { font-size: .84rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-mute); }
.unit__list { margin: 22px 0 0; display: grid; gap: 10px; }
.unit__list li { display: grid; grid-template-columns: 18px 1fr; gap: 11px; font-size: .96rem; color: var(--text-soft); }
.unit__list li::before {
  content: ""; width: 7px; height: 7px; margin-top: .55em; border-radius: 50%;
  background: var(--crimson); opacity: .75;
}
.unit__who {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  font-size: .95rem; color: var(--text-soft);
}
.unit__who b { font-weight: 500; color: var(--teal); }
.unit__foot { margin-top: auto; padding-top: 26px; }

.unit-note {
  margin-top: clamp(20px, 2.4vw, 30px); padding: 20px 26px;
  background: var(--white); border: 1px solid var(--line-soft); border-left: 3px solid var(--crimson);
  border-radius: var(--radius); font-size: .98rem; color: var(--text-soft);
}
.sec--sand .unit-note { background: rgba(255,255,255,.7); }

/* ---------- gallery ---------- */
/* Uniform tiles, no spans. The earlier layout mixed --w2/--h2 spans into a 4-column grid,
   which left real holes mid-grid and a ragged last row. 15 photos divide exactly into
   5 columns (3 rows) and 3 columns (5 rows); at 2 columns the odd one out spans both. */
.gal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gal__item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand-2); cursor: zoom-in; border: 0; padding: 0; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal__item:hover img { transform: scale(1.05); }
.gal__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,32,36,0) 55%, rgba(6,32,36,.34) 100%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.gal__item:hover::after { opacity: 1; }
.gal__item:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }
.gal__item img { aspect-ratio: 4 / 3; }
.gal__zoom {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(252,250,246,.92); display: grid; place-items: center;
  opacity: 0; transform: scale(.85); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gal__zoom svg { width: 15px; height: 15px; stroke: var(--teal); stroke-width: 1.8; fill: none; }
.gal__item:hover .gal__zoom { opacity: 1; transform: scale(1); }
.gal-note { margin-top: 20px; font-size: .88rem; color: var(--text-mute); }

/* lightbox */
.lbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,26,29,.95); display: none; align-items: center; justify-content: center; padding: 30px; }
.lbox[data-open="1"] { display: flex; }
.lbox img { max-width: min(1400px, 94vw); max-height: 86vh; object-fit: contain; border-radius: var(--radius); }
.lbox__x, .lbox__nav {
  position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); color: #fff;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 20px;
  transition: background .25s var(--ease);
}
.lbox__x:hover, .lbox__nav:hover { background: rgba(255,255,255,.26); }
.lbox__x { top: 24px; right: 24px; }
.lbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }
.lbox__count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .16em; }

/* ---------- video ---------- */
.vid { position: relative; border-radius: var(--radius); overflow: hidden; background: #06202400; box-shadow: var(--shadow-lg); }
.vid video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #062024; }
.vid__poster { position: absolute; inset: 0; }
.vid__poster img { width: 100%; height: 100%; object-fit: cover; }
.vid__poster::after { content: ""; position: absolute; inset: 0; background: rgba(6,32,36,.30); }
.vid__play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  background: transparent; border: 0; width: 100%; height: 100%;
}
.vid__playbtn {
  width: clamp(74px, 8vw, 100px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(252,250,246,.94); display: grid; place-items: center;
  box-shadow: 0 10px 44px rgba(4,26,29,.4);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.vid__play:hover .vid__playbtn { transform: scale(1.07); background: #fff; }
.vid__playbtn svg { width: 32%; fill: var(--teal); margin-left: 12%; }
.vid__label {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(20px, 3vw, 34px);
  color: #fff; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(4,26,29,.7); white-space: nowrap;
}
.vid.is-playing .vid__poster, .vid.is-playing .vid__play, .vid.is-playing .vid__label { display: none; }

/* ---------- floor plan ---------- */
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 70px); align-items: center; }
.plan__img { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 34px); box-shadow: var(--shadow-sm); }
.plan__img img { width: 100%; }
.plan__body > * + * { margin-top: 18px; }
.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 26px; }
.spec div { background: var(--paper); padding: 17px 20px; }
.spec dt { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); }
.spec dd { margin: 6px 0 0; font-size: 1rem; font-weight: 400; color: var(--text); }
.sec--sand .spec div { background: rgba(255,255,255,.62); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 17px; border: 1px solid var(--line); border-radius: 100px;
  font-size: .88rem; color: var(--text-soft); background: var(--white);
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal-soft); }
.sec--dark .chip { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: var(--on-dark); }
.sec--dark .chip::before { background: #FF7A80; }

/* ---------- availability meter ---------- */
.avail { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 76px); align-items: center; }
.meter { margin-top: 30px; }
.meter__bar { height: 10px; border-radius: 100px; background: rgba(255,255,255,.14); overflow: hidden; }
/* display:block is load-bearing — this is a <span>, and width/height are ignored on an
   inline box, so without it the fill measured 0px wide however the JS set the width. */
.meter__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--crimson), #E0555A); border-radius: 100px; transition: width 1.6s var(--ease); }
.meter__legend { display: flex; justify-content: space-between; margin-top: 15px; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--on-dark-mute); }
.meter__legend b { color: #fff; font-weight: 500; }
.avail__num { font-family: var(--display); font-size: clamp(3.6rem, 8.5vw, 6.6rem); line-height: .96; letter-spacing: -.02em; color: #fff; }
.avail__num em { font-style: normal; color: #FF7A80; }
.avail__numlbl { margin-top: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-mute); }

/* ---------- lead form ---------- */
.formsec { background: var(--teal-ink); color: var(--on-dark); position: relative; overflow: hidden; }
.formsec::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/img/ext-2.webp") center/cover no-repeat;
  opacity: .13; filter: grayscale(.4);
}
.formsec > * { position: relative; }
.formwrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 82px); align-items: start; }
.formwrap__intro > * + * { margin-top: 20px; }
.formwrap__intro h2 { color: #fff; }
/* .formsec is its own dark band, not .sec--dark, so .lead kept its dark-on-light
   colour and the intro paragraph sat almost invisible on the teal. */
.formsec .lead, .formsec .body-p { color: var(--on-dark-mute); }
.formwrap__points { margin-top: 30px; display: grid; gap: 14px; }
.formwrap__points li { display: grid; grid-template-columns: 20px 1fr; gap: 13px; font-size: 1rem; color: var(--on-dark-mute); }
.formwrap__points li svg { width: 18px; height: 18px; margin-top: .35em; stroke: #FF7A80; stroke-width: 1.6; fill: none; }

.card-form {
  background: var(--paper); border-radius: var(--radius); padding: clamp(26px, 3vw, 42px);
  box-shadow: var(--shadow-lg); color: var(--text); position: relative; overflow: hidden;
}
.card-form::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--crimson); }
.lf-progress { height: 3px; background: var(--line); border-radius: 100px; overflow: hidden; margin-bottom: 26px; }
.lf-progress span { display: block; height: 100%; width: 33%; background: var(--teal); border-radius: 100px; transition: width .45s var(--ease); }

.lf-step { display: none; }
.lf-step.active { display: block; animation: stepIn .4s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.lf-q { font-family: var(--display); font-size: clamp(1.14rem, 1.5vw, 1.35rem); font-weight: 400; line-height: 1.3; letter-spacing: -.008em; margin-bottom: 8px; color: var(--teal-ink); }
.lf-hint { font-size: .95rem; color: var(--text-soft); margin-bottom: 22px; }

.lf-choices { display: grid; gap: 10px; }
/* Legibility over delicacy: these are the words a paid visitor has to read to convert,
   so they sit at full body weight in the darkest ink, not a thin grey. */
.lf-choice {
  text-align: left; padding: 16px 19px; min-height: 58px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: 1.02rem; font-weight: 600; color: var(--teal-ink);
  transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.lf-choice::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--line); transition: border-color .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease);
}
.lf-choice:hover { border-color: var(--teal); background: rgba(13,73,79,.04); transform: translateX(3px); box-shadow: var(--shadow-sm); }
.lf-choice.sel { border-color: var(--teal); background: rgba(13,73,79,.07); }
.lf-choice.sel::after { background: var(--crimson); border-color: var(--crimson); box-shadow: inset 0 0 0 3px var(--paper); }

.lf-fields { display: grid; gap: 13px; }
.lf-field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 7px; }
.lf-field input {
  width: 100%; min-height: 54px; padding: 0 17px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: 1.02rem; color: var(--teal-ink);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.lf-field input::placeholder { color: #93A0A0; }
.lf-field input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,73,79,.12); }
.lf-field input[aria-invalid="true"] { border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(176,31,36,.12); }

.lf-consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-top: 20px; font-size: .9rem; color: var(--text-soft); line-height: 1.5; }
.lf-consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); flex: 0 0 auto; }
.lf-consent a { color: var(--teal); text-underline-offset: 3px; }
.lf-consent.attention { animation: shake .5s; }
.lf-consent.attention input { outline: 2px solid var(--crimson); outline-offset: 3px; }
@keyframes shake { 0%,100%{transform:translateX(0)} 22%{transform:translateX(-6px)} 44%{transform:translateX(6px)} 66%{transform:translateX(-4px)} 88%{transform:translateX(4px)} }

.lf-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.lf-back { background: none; border: 0; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); padding: 8px; min-height: 44px; }
.lf-back:hover { color: var(--teal); }
.lf-reassure { margin-top: 15px; font-size: .88rem; color: var(--text-soft); text-align: center; text-wrap: pretty; }
.lf-err { margin-top: 13px; font-size: .88rem; color: var(--crimson); display: none; }
.lf-err.on { display: block; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 46px 26px 0; position: relative;
  font-family: var(--display); font-size: clamp(1rem, 1.2vw, 1.16rem); font-weight: 400; line-height: 1.38; letter-spacing: -.006em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 13px;
  border-right: 1.5px solid var(--teal-soft); border-bottom: 1.5px solid var(--teal-soft);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { padding: 0 clamp(0px, 4vw, 60px) 28px 0; color: var(--text-soft); text-wrap: pretty; max-width: 74ch; }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; margin-top: clamp(34px, 4vw, 52px); }
.trust div { background: var(--teal-ink); padding: clamp(26px, 3vw, 38px); text-align: center; }
.trust b { display: block; font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.06; letter-spacing: -.012em; color: #fff; }
.trust span { display: block; margin-top: 11px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-mute); }
.stars { display: block; margin-top: 10px; color: #E8B54A; letter-spacing: .2em; font-size: 1.35rem; }

/* ---------- final band ---------- */
.band { background: var(--teal); color: #fff; text-align: center; }
.band h2 { color: #fff; margin-inline: auto; }
.band p { margin: 18px auto 0; max-width: 56ch; color: rgba(255,255,255,.84); text-wrap: pretty; }
.band .btn { margin-top: 32px; }

/* ---------- footer ---------- */
.foot { background: var(--teal-ink); color: var(--on-dark-mute); padding: clamp(46px, 5vw, 66px) 0 34px; font-size: .88rem; }
.foot__top { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start; padding-bottom: 30px; border-bottom: 1px solid var(--line-dark); }
.foot img { height: 34px; width: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__links a { text-decoration: none; transition: color .25s var(--ease); display: inline-flex; align-items: center; min-height: 44px; }
.foot__links a:hover { color: #fff; }
.foot__bot { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .82rem; color: rgba(168,191,191,.72); }
.foot__note { max-width: 70ch; margin-top: 20px; font-size: .8rem; line-height: 1.6; color: rgba(168,191,191,.62); }

/* ---------- sticky mobile CTA ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none;
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  background: rgba(252,250,246,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -1px 0 var(--line), 0 -8px 26px rgba(7,42,46,.08);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.stickybar.on { transform: none; }
.stickybar .btn { width: 100%; min-height: 52px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .bgrid { grid-template-columns: repeat(2, 1fr); }
  .gal { grid-template-columns: repeat(3, 1fr); }   /* 15 photos = 5 exact rows */
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .wrap, .wrap-narrow { width: min(100% - 34px, var(--wrap)); }
  .split, .plan, .avail, .formwrap { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split__media img { aspect-ratio: 16 / 11; }
  .split__badge { left: 14px; bottom: 14px; }
  .units { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 26px 20px; }
  .trust { grid-template-columns: 1fr; }
  .avail__num { font-size: clamp(3.6rem, 20vw, 6rem); }
  .topbar__loc { display: none; }
  .formsec::before { opacity: .09; }
}

@media (max-width: 640px) {
  .topbar { padding: 12px 18px; }
  .topbar__logo img { height: 27px; }
  .topbar .btn { display: none; }
  .topbar.is-stuck { padding-block: 9px; }
  .stickybar { display: block; }
  .hero { min-height: 92svh; }
  .hero__inner { padding-top: 118px; padding-bottom: 34px; }
  .hero h1 { max-width: 100%; }
  .hero__chips { margin-top: 30px; }
  .hero__chip { padding: 15px 18px 4px 0; margin-right: 18px; }
  .hero__chip span { font-size: 10px; letter-spacing: .13em; }
  .hero__cta .btn { width: 100%; }
  .bgrid { grid-template-columns: 1fr; }
  /* 2 columns and an odd number of photos would leave a half-empty last row,
     so the final tile spans the full width instead of dangling. */
  .gal { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gal__item:last-child:nth-child(odd) { grid-column: span 2; }
  .gal__item:last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
  .gal__zoom { display: none; }
  .spec { grid-template-columns: 1fr; }
  .foot__top { flex-direction: column; }
  .lbox { padding: 16px; }
  .lbox__x { top: 12px; right: 12px; width: 44px; height: 44px; }
  .lbox__nav { width: 44px; height: 44px; }
  .lbox__nav--prev { left: 8px; }
  .lbox__nav--next { right: 8px; }
  body.has-sticky { padding-bottom: 74px; }

  /* Mobile legibility floor: nothing under 13px on a phone (LEARNED_RULES [mobile]).
     Tracked uppercase labels are the offenders — every one of them is a 10-11px caps
     run on desktop. Raising the size alone would wrap them, so the tracking comes down
     with it. */
  .eyebrow { font-size: 13px; letter-spacing: .2em; }
  .hero__chip span,
  .stat span,
  .trust span,
  .avail__numlbl,
  .meter__legend,
  .split__badge,
  .unit__tag,
  .vid__label,
  .spec dt,
  .lf-field label,
  .topbar__loc { font-size: 13px; letter-spacing: .12em; }
  .foot, .foot__bot, .foot__note { font-size: 13px; }
  .btn { font-size: 13px; letter-spacing: .12em; }
  .lf-back { font-size: 13px; }
  .vid__label { white-space: normal; text-align: center; width: min(92%, 420px); }

  /* The hero's slow zoom-out scales the <img>, so its BOUNDING BOX is wider than the
     viewport even though .hero__media clips it. No sideways scroll results, but a
     rect-based overflow check cannot see the clip. Drop the drift on phones (where the
     effect is barely visible anyway) and keep it on desktop. */
  .hero__media img { animation: none; transform: none; }
}
