/* ==========================================================================
   MARK CONSTRUCTIONS — Design system
   --------------------------------------------------------------------------
   Sections
     01  Tokens (all colors, type sizes, radii, shadows, layout live here)
     02  Responsive token overrides (max-width: 768px)
     03  Reset / base
     04  Layout utilities      .container .section
     05  Typography utilities .t-*
     06  Buttons
     07  Cards
     08  Forms
     09  Tags
     10  Links / misc utilities
     11  Reveal + reduced motion
     12  Header
     13  Mobile menu overlay
     14  Footer
   Rule: nothing below :root declares a literal color, radius or shadow.
   ========================================================================== */

/* ==========================================================================
   01 — TOKENS
   ========================================================================== */

:root {
  /* ---- Color ---------------------------------------------------------- */
  --parchment:   #FDFDF7;   /* page background */
  --warm-sand:   #F5F2DE;   /* cards, soft sections */
  --card:        #F7F7F0;
  --driftwood:   #E7E3E1;   /* secondary button surface */
  --ink:         #000000;
  --graphite:    #666666;   /* secondary text */
  --stone:       #999999;
  --ash:         #D3D3D3;
  --white:       #FFFFFF;   /* text on dark */

  --orange:      #FB5F1C;   /* the logo mark colour — fills, bars, dots, underlines, icons, borders */
  --orange-hover:#E7571A;   /* ~8% darker */
  --on-orange:   #0D1B3E;   /* text ON orange: navy is ~5.5:1, white only ~3.1:1 */
  --peach:       #FDF0E7;   /* orange-tinted card surface */

  --navy:        #0D1B3E;   /* dark sections */
  --blue:        #1B3FA8;   /* small tags / accents only */
  --whatsapp:    #25D366;

  --heading:     var(--navy);   /* all .t-* headings on light backgrounds */
  --text:        #18213B;       /* body text */

  /* very light tints — hex/rgb live here, never in the rules below */
  --glow-orange:   rgba(251,95,28,0.06);    /* = --orange at 6% */
  --glow-blue:     rgba(27,63,168,0.05);    /* = --blue at 5% */
  --grid-line:     rgba(255,255,255,0.05);  /* grid over navy */
  --grid-line-sand:rgba(13,27,62,0.06);     /* grid over warm sand */
  --orange-soft:   rgba(251,95,28,0.12);    /* .icon-circle fill */

  /* hero scrim — layered navy, so white copy stays readable on any photo */
  --scrim-top:     rgba(13,27,62,0.80);
  --scrim-left:    rgba(13,27,62,0.75);
  --scrim-mid:     rgba(13,27,62,0.45);
  --scrim-right:   rgba(13,27,62,0.10);
  --scrim-bottom:  rgba(13,27,62,0.70);
  --scrim-top-h:   260px;                   /* how far the top gradient reaches */

  --glass-bg:      rgba(255,255,255,0.14);
  --glass-line:    rgba(255,255,255,0.30);
  --glass-dark-bg:   rgba(13,27,62,0.72);   /* caption chips over photos */
  --glass-dark-line: rgba(255,255,255,0.25);
  --veil:          rgba(13,27,62,0.62);     /* dialog backdrop */
  --sheet-line:    rgba(0,0,0,0.06);        /* drawing-sheet ruled grid */
  --fab-pulse:     rgba(251,95,28,0.45);    /* floating button attention ring */
  --fab-pulse-out: rgba(251,95,28,0);

  --line:        rgba(0,0,0,0.10);
  --tint:        rgba(0,0,0,0.04);
  --tint-input:  rgba(0,0,0,0.03);

  --parchment-glass: rgba(253,253,247,0.88);  /* scrolled header */
  --white-soft:      rgba(255,255,255,0.72);  /* muted text on dark */
  --white-80:        rgba(255,255,255,0.80);  /* intro sub-heading on navy */
  --white-85:        rgba(255,255,255,0.85);  /* hero sub-heading over the scrim */
  --white-line:      rgba(255,255,255,0.15);  /* hairlines on dark */
  --navy-veil:       rgba(0,0,0,0.35);

  /* ---- Type ----------------------------------------------------------- */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fw-light:   300;
  --fw-regular: 400;
  --fw-medium:  500;

  --fs-display:     96px;  --lh-display:     0.9;    --ls-display:     -0.045em;
  --fs-heading-lg:  60px;  --lh-heading-lg:  0.96;   --ls-heading-lg:  -0.04em;
  --fs-heading:     48px;  --lh-heading:     1;      --ls-heading:     -0.027em;
  --fs-heading-sm:  36px;  --lh-heading-sm:  1.1;    --ls-heading-sm:  -0.014em;
  --fs-subheading:  30px;  --lh-subheading:  1.14;   --ls-subheading:  -0.03em;
  --fs-body-lg:     23px;  --lh-body-lg:     1.25;   --ls-body-lg:     -0.02em;
  --fs-body:        18px;  --lh-body:        1.5;    --ls-body:        -0.01em;
  --fs-body-sm:     16px;  --lh-body-sm:     1.5;
  --fs-caption:     14px;  --lh-caption:     1.5;
  --fs-caption-sm:  12px;  --lh-caption-sm:  1.5;

  --fs-nav:   15px;
  --fs-btn:   15px;
  --fs-label: 14px;

  /* ---- Radii ---------------------------------------------------------- */
  --r-xs:   4px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-pill: 24px;

  /* ---- Shadows -------------------------------------------------------- */
  --shadow-subtle: 0 0.5px 2px rgba(0,0,0,.12);
  --shadow-md:     0 2px 10px rgba(0,0,0,.08);
  --shadow-sm:     0 2px 4px rgba(0,0,0,.2);

  /* ---- Layout --------------------------------------------------------- */
  --max-w:       1280px;
  --gutter:      24px;
  --header-h:    72px;

  /* Section rhythm: one token drives every vertical band. Mobile value first,
     the desktop clamp is set in the min-width block below (svh where supported,
     vh as the fallback). */
  --section-y:   56px;

  /* ---- Logo (square single-colour mark + live wordmark text) ---------- */
  --logo-h:                48px;   /* icon height — header */
  --logo-h-compact:        40px;   /* icon height — header below 600px */
  --logo-h-overlay:        44px;   /* icon height — mobile overlay */
  --logo-h-footer:         48px;   /* icon height — footer */
  --logo-wordmark:         20px;
  --logo-wordmark-compact: 18px;
  --logo-wordmark-tight:   16px;   /* tightest phones — see fit checks */
  --logo-wordmark-weight:  600;    /* wordmark is not a weight-300 headline */
  --logo-gap:              12px;

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

/* ==========================================================================
   02 — RESPONSIVE TOKEN OVERRIDES
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --gutter:      20px;

    --fs-display:    52px;
    --fs-heading-lg: 40px;
    --fs-heading:    36px;
    --fs-heading-sm: 28px;
    --fs-subheading: 24px;
    --fs-body-lg:    20px;
  }
}

/* desktop section rhythm: scales with the viewport height instead of a fixed 120px */
@media (min-width: 901px) {
  :root { --section-y: clamp(64px, 9vh, 96px); }
}

@supports (height: 1svh) {
  @media (min-width: 901px) {
    :root { --section-y: clamp(64px, 9svh, 96px); }
  }
}

/* ==========================================================================
   03 — RESET / BASE
   ========================================================================== */

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

/* the hidden attribute must win over component display values */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--parchment);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1 0 auto; }

img,
svg { max-width: 100%; }

img { display: block; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--fw-light);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-heading-lg); }
h2 { font-size: var(--fs-heading); }
h3 { font-size: var(--fs-heading-sm); }
h4, h5, h6 { font-size: var(--fs-subheading); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

button { font: inherit; }

::selection {
  background: var(--orange);
  color: var(--on-orange);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.icon {
  display: block;
  flex: 0 0 auto;
}

/* ==========================================================================
   04 — LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* compact band — stats strip */
.section--tight { padding-block: calc(var(--section-y) * 0.6); }

/* closers — closing band and the JV panel section */
.section--jv { padding-block: calc(var(--section-y) * 0.75); }

.section--sand { background: var(--warm-sand); }

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy .t-muted { color: var(--white-soft); }

/* sub-headings inside a navy band sit at 80% white */
.section--navy .t-body-lg { color: var(--white-80); }

/* Parchment with two very faint radial tints — no hard edges */
.section--glow {
  background-color: var(--parchment);
  background-image:
    radial-gradient(60% 55% at 88% 2%, var(--glow-orange), transparent 70%),
    radial-gradient(55% 50% at 4% 98%, var(--glow-blue), transparent 70%);
  background-repeat: no-repeat;
}

/* Faint architectural grid over a navy band */
.section--grid { position: relative; }

.section--grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, var(--grid-line) 0 1px, transparent 1px 64px);
}

.section--grid > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   05 — TYPOGRAPHY UTILITIES
   ========================================================================== */

.t-display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-weight: var(--fw-light);
}

.t-heading-lg {
  font-size: var(--fs-heading-lg);
  line-height: var(--lh-heading-lg);
  letter-spacing: var(--ls-heading-lg);
  font-weight: var(--fw-light);
}

.t-heading {
  font-size: var(--fs-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  font-weight: var(--fw-light);
}

.t-heading-sm {
  font-size: var(--fs-heading-sm);
  line-height: var(--lh-heading-sm);
  letter-spacing: var(--ls-heading-sm);
  font-weight: var(--fw-light);
}

.t-subheading {
  font-size: var(--fs-subheading);
  line-height: var(--lh-subheading);
  letter-spacing: var(--ls-subheading);
  font-weight: var(--fw-light);
}

.t-body-lg {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  letter-spacing: var(--ls-body-lg);
  font-weight: var(--fw-regular);
}

.t-body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-weight: var(--fw-regular);
}

.t-body-sm {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  font-weight: var(--fw-regular);
}

.t-caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-regular);
}

.t-caption-sm {
  font-size: var(--fs-caption-sm);
  line-height: var(--lh-caption-sm);
  font-weight: var(--fw-regular);
}

.t-medium { font-weight: var(--fw-medium); }
.t-muted  { color: var(--graphite); }
.t-stone  { color: var(--stone); }

/* A long word in any type style can never force horizontal scroll */
.t-display,
.t-heading-lg,
.t-heading,
.t-heading-sm,
.t-subheading,
.t-body-lg,
.t-body,
.t-body-sm,
.t-caption,
.t-caption-sm { overflow-wrap: break-word; }

/* Headings are navy on light backgrounds, white on the navy bands.
   Body copy inherits --text from the base rule. */
.t-display,
.t-heading-lg,
.t-heading,
.t-heading-sm,
.t-subheading { color: var(--heading); }

.section--navy .t-display,
.section--navy .t-heading-lg,
.section--navy .t-heading,
.section--navy .t-heading-sm,
.section--navy .t-subheading { color: var(--white); }

/* ==========================================================================
   06 — BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--tint);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-btn);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: var(--ls-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease),
              box-shadow .2s var(--ease),
              background-color .2s var(--ease),
              color .2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.btn:active { transform: translateY(0); }

.btn--wide { width: 100%; }

.btn-primary {
  background: var(--orange);
  color: var(--on-orange);
}
.btn-primary:hover { background: var(--orange-hover); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--ink);
}

.btn-ghost {
  background: var(--tint);
  color: var(--ink);
  border-radius: var(--r-pill);
}
.btn-ghost:hover { background: var(--driftwood); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

/* outline button for light backgrounds */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* full-width card button with the arrow pushed to the right */
.btn-arrow {
  width: 100%;
  justify-content: space-between;
}

/* ---- button label + icon -------------------------------------------------
   A .btn is an inline-flex box, so a label <span> inside it is blockified, and
   the injected icon is display:block (from the shared .icon rule). That put the
   icon on its own line above the label and made the button 63px tall instead of
   46px. Icons injected INTO a label are pulled back onto the label's row and
   placed after the text; icons that are already siblings of the label keep the
   normal flex row. */
.btn > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn > span .icon { order: 2; }

.btn > .icon { flex: 0 0 auto; }

/* ==========================================================================
   07 — CARDS
   ========================================================================== */

.card {
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-sand {
  background: var(--warm-sand);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-subtle);
}

.card-hover {
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* raised white card used for content that has to lift off the page */
.card-raise {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .card-sand { padding: 24px; }
}

/* ==========================================================================
   08 — FORMS
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
select,
textarea {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--tint-input);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-btn);
  line-height: 1.4;
  letter-spacing: var(--ls-body);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--card);
}

::placeholder { color: var(--stone); opacity: 1; }

label {
  display: block;
  margin-bottom: 8px;
  color: var(--graphite);
  font-size: var(--fs-label);
  line-height: var(--lh-caption);
}

.field { margin-bottom: 24px; }

/* ==========================================================================
   09 — TAGS
   ========================================================================== */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--ink);
  font-size: var(--fs-caption);
  line-height: 1.2;
}

.tag--blue {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

/* feature tag: an orange check icon then the text */
.tag--feature { padding-left: 11px; }
.tag--feature .icon { color: var(--orange); }

/* ==========================================================================
   10 — LINKS / MISC UTILITIES
   ========================================================================== */

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--ash);
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
/* navy text + orange underline: orange text under 24px is too low contrast */
.link:hover {
  color: var(--heading);
  text-decoration-color: var(--orange);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--gutter);
  z-index: 300;
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--white);
  font-size: var(--fs-btn);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

[data-count] { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   11 — REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
  transition-delay: var(--d, 0s);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn:hover,
  .card-hover:hover { transform: none; }

  .site-header,
  .nav-drop,
  .mobile-menu,
  .m-acc__panel { transition: none !important; }
}

/* ==========================================================================
   12 — HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--parchment);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}

.site-header.scrolled {
  background: var(--parchment-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
}

/* ---- Logo -------------------------------------------------------------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--logo-gap);
  flex: 0 0 auto;
  color: var(--navy);
  text-decoration: none;
}

.logo-icon {
  display: block;
  height: var(--logo-h);
  width: auto;
  flex: 0 0 auto;
}

.logo-text {
  flex: 0 0 auto;
  color: inherit;
  font-size: var(--logo-wordmark);
  font-weight: var(--logo-wordmark-weight);
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.logo--dark { color: var(--white); }

/* Logo sits in these two places at their own sizes */
.mobile-menu .logo-icon { height: var(--logo-h-overlay); }
.site-footer .logo-icon { height: var(--logo-h-footer); }

@media (max-width: 600px) {
  .site-header .logo-icon { height: var(--logo-h-compact); }
  .logo-text { font-size: var(--logo-wordmark-compact); }
}

/* Small phones: the header row and the overlay row (mark + wordmark + button)
   only just fit, so the wordmark steps down before anything else changes. */
@media (max-width: 400px) {
  .logo-text { font-size: var(--logo-wordmark-tight); }
}

/* ---- Desktop nav ------------------------------------------------------- */

.nav-desktop { flex: 0 1 auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-body);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  border-radius: var(--r-xs);
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s var(--ease);
}

.nav-link:hover { color: var(--heading); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex: 0 0 auto;
}

.nav-link .icon { transition: transform .25s var(--ease); }
.nav-item--has-drop:hover .nav-link .icon,
.nav-item--has-drop:focus-within .nav-link .icon { transform: rotate(180deg); }

/* ---- Dropdown ---------------------------------------------------------- */

.nav-drop {
  position: absolute;
  top: 100%;
  left: -14px;
  padding-top: 10px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  z-index: 20;
}

.nav-item--has-drop:hover .nav-drop,
.nav-item--has-drop:focus-within .nav-drop {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.nav-drop__panel {
  min-width: 232px;
  padding: 8px;
  background: var(--parchment);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}

.nav-drop__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-drop__link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: var(--fs-nav);
  font-weight: var(--fw-regular);
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.nav-drop__link:hover {
  background: var(--tint);
  color: var(--heading);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.nav-drop__link.is-active {
  color: var(--heading);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

/* ---- Header actions ---------------------------------------------------- */

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.header-phone:hover {
  color: var(--heading);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.nav-toggle:hover { background: var(--tint); }

/* ---- Header responsive ------------------------------------------------- */

@media (max-width: 1180px) {
  .header-phone { display: none; }
}

@media (max-width: 1024px) {
  .header-inner { gap: 20px; }
  .nav-list { gap: 20px; }
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 600px) {
  .header-inner { gap: 12px; }
  .btn-whatsapp .btn-label { display: none; }
  .btn-whatsapp { padding: 12px 14px; border-radius: var(--r-pill); }
}

@media (max-width: 480px) {
  .header-inner { gap: 10px; }
}

/* Narrowest phones: even with the 16px wordmark the row does not fit alongside
   the header WhatsApp button, so the button yields. The same button is always
   available at the bottom of the mobile overlay. */
@media (max-width: 360px) {
  .header-actions .btn-whatsapp { display: none; }
}

/* ==========================================================================
   13 — MOBILE MENU OVERLAY
   ========================================================================== */

body.menu-open { overflow: hidden; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) 32px;
  background: var(--navy);
  color: var(--white);
  overflow-y: auto;
  visibility: hidden;
  transform: translateX(100%);
  /* visibility flips instantly when opening, and waits for the slide-out when closing */
  transition: transform .35s var(--ease), visibility 0s linear .35s;
}

.mobile-menu.open {
  visibility: visible;
  transform: none;
  transition: transform .35s var(--ease), visibility 0s linear 0s;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  flex: 0 0 auto;
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.mobile-menu__close:hover { background: var(--white-line); }

.mobile-menu__nav {
  flex: 1 1 auto;
  padding-top: 28px;
}

.mobile-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  color: var(--white);
  font-size: 32px;
  font-weight: var(--fw-light);
  letter-spacing: -0.02em;
  line-height: 1.25;
  transition: color .2s var(--ease);
}
.mobile-link:hover,
.mobile-link.is-active { color: var(--orange); }   /* 32px display link — over the 24px text limit */

.pill-new {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: var(--on-orange);
  font-size: var(--fs-caption-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  line-height: 1.2;
}

.m-acc__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: inherit;
  font-size: 32px;
  font-weight: var(--fw-light);
  letter-spacing: -0.02em;
  line-height: 1.25;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.m-acc__btn .icon { transition: transform .28s var(--ease); }
.m-acc__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.m-acc__btn.is-active { color: var(--orange); }

.m-acc__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s var(--ease);
}
.m-acc__panel.open { max-height: 260px; }

.m-sub {
  display: block;
  padding: 8px 0 8px 4px;
  color: var(--white-soft);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-regular);
  transition: color .2s var(--ease);
}
.m-sub:hover,
.m-sub.is-active {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--white-line);
  flex: 0 0 auto;
}

.mobile-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: var(--fs-body-lg);
  letter-spacing: var(--ls-body-lg);
  transition: color .2s var(--ease);
}
.mobile-phone:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

/* ==========================================================================
   14 — FOOTER
   ========================================================================== */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-block: 72px 32px;
  flex: 0 0 auto;
}

.footer-grid {
  display: grid;
  /* proportions chosen so the long email address fits on one line in the
     Contact column at every 4-column width, while the brand column still fits
     the wordmark-sized tagline and the other two keep their longest labels */
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr) minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 48px;
}

.footer-tagline {
  margin: 18px 0 0;
  color: var(--white);
  font-size: var(--fs-body-lg);
  letter-spacing: var(--ls-body-lg);
  line-height: var(--lh-body-lg);
}

.footer-note {
  margin: 10px 0 0;
  color: var(--white-soft);
  font-size: var(--fs-caption);
}

.footer-heading {
  margin: 0 0 18px;
  color: var(--white-soft);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  letter-spacing: 0;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link,
.footer-line {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--white);
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: color .2s var(--ease);
}

.footer-link:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.footer-line { color: var(--white-soft); }

/* ---- footer rows: one icon box, centred on the FIRST text line -----------
   Every footer row (phones, email, hours, address, Instagram, Facebook) puts a
   20x20 icon box on the first line of its text. The rows are flex-start, and
   the box is pushed down by half the difference between the line box
   (line-height 1.5 × font-size) and the box — expressed in em so it stays
   correct at any font size. For one-line rows the two centres coincide; for a
   wrapped row such as the address the icon follows the first line. Because the
   box is the same size everywhere, all the icons share one left edge, one size
   and one stroke weight (they all ship the same 24x24 viewBox and 1.6 stroke). */
.footer-link .icon,
.footer-line .icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: calc((1.5em - 20px) / 2);
}

.footer-link .icon { color: var(--white); }
.footer-line .icon { color: var(--white-soft); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--white-line);
  color: var(--white-soft);
  font-size: var(--fs-caption);
}

.footer-bottom p { margin: 0; }

.rera-slot {
  color: var(--white-soft);
  font-size: var(--fs-caption);
}
.rera-slot[hidden] { display: none; }

/* Four columns only once the wordmark-sized brand column and the long email
   address (about 272px plus its icon) both fit in the Contact column — that
   needs roughly 1176px of viewport. Below that the grid goes to two columns,
   where Contact is the first column and so gets the extra room the email needs,
   and to one column on phones. */
@media (max-width: 1200px) {
  .footer-grid {
    /* two columns, row-major: brand + quick on top, Contact + Follow below.
       Contact is the first column, so that is the one that gets the extra room
       the long email address needs. */
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 40px 32px;
  }
}

@media (max-width: 900px) {
  .site-footer { padding-block: 56px 28px; }
  .footer-bottom { margin-top: 48px; }
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* ---- RERA block (footer slot) ------------------------------------------ */

.rera-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 40px;
}

.rera-line {
  margin: 0;
  color: var(--white-soft);
  font-size: var(--fs-caption);
  overflow-wrap: anywhere;
}

.rera-qr {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: var(--r-xs);
  background: var(--white);
}

.rera-slot a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rera-slot a:hover { text-decoration-color: var(--orange); }

/* ==========================================================================
   15 — VILLA PAGE (villas.html)
   ========================================================================== */

/* ---- Intro (navy band) -------------------------------------------------- */

/* stacked below 1024px: text, then the slider; the 40/60 split lives in the
   >=1024px block at the end of the file, together with the RERA badge slot */
.villa-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.villa-intro__sub { color: var(--white-80); }

.villa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.villa-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--ink);
  font-size: var(--fs-btn);
  font-weight: var(--fw-medium);
  transition: background-color .2s var(--ease), color .2s var(--ease),
              text-decoration-color .2s var(--ease);
}
.pill-link:hover {
  background: var(--driftwood);
  color: var(--heading);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

/* outline-light pills for the navy band */
.pill-link--light {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}
.pill-link--light:hover {
  background: var(--white-line);
  color: var(--white);
}

/* ---- One villa --------------------------------------------------------- */

/* the sticky header must not cover an anchored villa */
.villa { scroll-margin-top: calc(var(--header-h) + 16px); }

.villa__grid {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: 56px;
  align-items: start;
}

/* second villa: gallery on the right on desktop, DOM order untouched */
@media (min-width: 901px) {
  .villa--flip .villa__gallery { order: 2; }
  .villa--flip .villa__details { order: 1; }
}

/* Gallery: a viewer capped by viewport height plus a strip of real buttons */
.villa-viewer {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: var(--warm-sand);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  cursor: zoom-in;
}
.villa-viewer img { width: 100%; height: 100%; }
.villa-viewer--landscape img { object-fit: cover; }
.villa-viewer--portrait img { object-fit: contain; }

/* desktop: fixed-height viewer so the gallery and the details column both fit
   one screen next to each other */
@media (min-width: 901px) {
  .villa-viewer {
    aspect-ratio: auto;
    height: clamp(260px, 52vh, 520px);
    height: clamp(260px, 52svh, 520px);
  }
}

.villa-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.villa-thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  background: var(--driftwood);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.villa-thumb img { width: 100%; height: 100%; object-fit: cover; }
.villa-thumb:hover { transform: translateY(-2px); }
.villa-thumb[aria-current="true"] { border-color: var(--orange); }

.villa-photonote { margin-top: 12px; color: var(--stone); }

/* Details column */
.villa__details { min-width: 0; }

.villa-tagline {
  margin-top: 10px;
  color: var(--graphite);
  font-size: var(--fs-body-lg);
  letter-spacing: var(--ls-body-lg);
  line-height: var(--lh-body-lg);
}

/* area / bedrooms figures replace the old plain spec line */
.villa-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
}

.villa-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.villa-price {
  margin-top: 24px;
  padding: 24px;
}

/* raised white card with an orange rule down the left */
.villa-price.card-raise { border-left: 4px solid var(--orange); }

.villa-price__label {
  margin: 0;
  font-size: var(--fs-body-lg);
  letter-spacing: var(--ls-body-lg);
  line-height: var(--lh-body-lg);
}

.villa-price__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.villa-meta {
  margin: 16px 0 0;
  color: var(--graphite);
  font-size: var(--fs-body-sm);
}

.villa-rera {
  margin: 16px 0 0;
  color: var(--graphite);
  font-size: var(--fs-caption);
}

.villa-visit { margin-top: 16px; }

@media (max-width: 900px) {
  .villa__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .villa-price { padding: 20px; }
  .villa-viewer { aspect-ratio: 4 / 3; max-height: 48vh; max-height: 48svh; height: auto; }
}

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

body.no-scroll { overflow: hidden; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  flex-direction: column;
  padding: 16px;
  background: var(--navy);
}

.lb.open { display: flex; }

.lb__top {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  color: var(--white);
  font-size: var(--fs-caption);
  flex: 0 0 auto;
}

.lb__count { font-weight: var(--fw-medium); }
.lb__caption { color: var(--white-soft); overflow-wrap: anywhere; }

.lb__btns {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.lb__btn {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--white);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--white);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  cursor: pointer;
}
.lb__btn:hover { background: var(--white-line); }

.lb__stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin-top: 12px;
}

.lb__stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-md);
}

/* ---- Enquiry form (navy band) ------------------------------------------ */

.enquiry {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 56px;
}

.enquiry__card { padding: 36px; }

.enquiry__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 24px;
}

.enquiry__form .field--wide { grid-column: 1 / -1; }

/* navy text plus an orange rule — no orange text under 24px on white */
.field-error {
  margin: 8px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--orange);
  color: var(--heading);
  font-size: var(--fs-caption);
}

.enquiry__confirm {
  margin: 24px 0 0;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-subtle);
  font-size: var(--fs-body-sm);
}

.enquiry__side { color: var(--white-soft); }

.enquiry__side .t-heading { margin-bottom: 24px; }

.enquiry__phones {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.enquiry__phone,
.enquiry__line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--white);
  font-size: var(--fs-body-lg);
  letter-spacing: var(--ls-body-lg);
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}

.enquiry__line { margin-top: 14px; }

.enquiry__phone:hover,
.enquiry__line:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .enquiry { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .enquiry__card { padding: 24px; }
}

@media (max-width: 600px) {
  .enquiry__form { grid-template-columns: minmax(0, 1fr); }
}

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

.villa-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--graphite);
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* same rule as the contact rows: the circle sits on the first text line */
.villa-line .icon-circle { margin-top: calc((1.5em - 40px) / 2); }

.villa-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 28px;
}

.villa-line a {
  color: var(--heading);
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.villa-line a:hover {
  color: var(--heading);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .location { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* ==========================================================================
   16 — SMALL UI PIECES (eyebrow, stat, icon-circle)
   ========================================================================== */

/* Small caption with an orange bar before it */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--graphite);
  font-size: var(--fs-caption);
  line-height: 1.2;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: var(--r-xs);
  background: var(--orange);
  flex: 0 0 auto;
}

.section--navy .eyebrow { color: var(--white); }

/* Figure in the .t-heading-sm style with a 14px label beneath */
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat__value { display: block; color: var(--heading); }
.stat__label { color: var(--graphite); font-size: var(--fs-caption); }

/* 40px disc, soft orange fill, navy icon */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--navy);
  flex: 0 0 auto;
}

/* ---- icon circles on a navy surface --------------------------------------
   A 12% orange tint reads as a dark, nearly invisible circle on navy, so on a
   navy surface the fill becomes solid brand orange with the icon in --on-orange
   (navy): about 5.4:1. Size, shape and spacing are unchanged, and light
   backgrounds keep the tinted style above. Covers every navy surface the site
   has: the navy bands (including the villas enquiry band and the JV panel,
   which are both .section--navy), the footer and the mobile overlay.
   The JV *dialog* panel is parchment, so it is not in this list. */
.section--navy .icon-circle,
.site-footer .icon-circle,
.mobile-menu .icon-circle {
  background: var(--orange);
  color: var(--on-orange);
}

/* linked rows keep their underline; the circle only darkens on hover and on
   keyboard focus */
.section--navy a:hover .icon-circle,
.section--navy a:focus-visible .icon-circle,
.site-footer a:hover .icon-circle,
.site-footer a:focus-visible .icon-circle,
.mobile-menu a:hover .icon-circle,
.mobile-menu a:focus-visible .icon-circle {
  background: var(--orange-hover);
}

/* Small bordered label for section eyebrows */
.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--graphite);
  font-size: var(--fs-caption);
  line-height: 1.2;
}

/* Section head: heading left, supporting text or button right */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.sec-head__aside {
  max-width: 44ch;
  margin: 0;
  color: var(--graphite);
}

.sec-head__actions { flex: 0 0 auto; }

/* Frosted chip for use over photos and navy */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-pill);
}

/* Denser variant for white text sitting on a photograph */
.glass--dark {
  background: var(--glass-dark-bg);
  border-color: var(--glass-dark-line);
  color: var(--white);
}

/* Peach highlight card */
.highlight-card {
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--peach);
}

.highlight-card__icon {
  color: var(--orange);
}

.highlight-card__title { margin-top: 20px; }

.highlight-card__text {
  margin-top: 12px;
  color: var(--graphite);
  font-size: var(--fs-body-sm);
}

@media (max-width: 900px) {
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }
}

@media (max-width: 768px) {
  .highlight-card { padding: 24px; }
}

/* ==========================================================================
   MEDIA CAPS + RAILS (shared)
   ========================================================================== */

/* ---- media frames --------------------------------------------------------
   Every photo frame keeps the 16/10 or 4/3 ratio as its base size and is then
   CAPPED by viewport height, so a wide-but-short window does not push the rest
   of a section off the screen. The image always covers, so nothing distorts.

   The .cap-* helpers declare the vh value first and the svh value second: a
   browser without svh support drops the second declaration and uses the first.
   Nothing is ever displayed wider than its own pixels — those caps live on the
   markup (width/height attributes + srcset). */

.media-box {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--warm-sand);
}

.media-box > img,
.media-box > .sheet {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-box--16-10 { aspect-ratio: 16 / 10; }
.media-box--4-3 { aspect-ratio: 4 / 3; }

/* height caps, mobile-first numbers then desktop overrides per component */
.cap-24 { max-height: clamp(150px, 24vh, 240px); }
.cap-28 { max-height: clamp(160px, 28vh, 280px); }
.cap-34 { max-height: clamp(150px, 34vh, 340px); }

.cap-52 { height: clamp(260px, 52vh, 520px); }
.cap-56 { height: clamp(280px, 56vh, 540px); }

@supports (height: 1svh) {
  .cap-24 { max-height: clamp(150px, 24svh, 240px); }
  .cap-28 { max-height: clamp(160px, 28svh, 280px); }
  .cap-34 { max-height: clamp(150px, 34svh, 340px); }
  .cap-52 { height: clamp(260px, 52svh, 520px); }
  .cap-56 { height: clamp(280px, 56svh, 540px); }
}

/* ---- rails ---------------------------------------------------------------
   At 900px and below a group of three or more cards becomes a scroll-snap rail
   with the next card peeking; above that the same markup is an ordinary grid.
   MARK.initRail() drives .rail-progress below the rail (hidden on desktop). */

@media (max-width: 900px) {
  .rail {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;          /* never grow a vertical scrollbar inside a rail */
    scroll-snap-type: x mandatory;
    scroll-padding-inline-start: var(--gutter);
    padding-inline: var(--gutter);
    padding-bottom: 6px;
    margin-inline: calc(var(--gutter) * -1);
    overscroll-behavior-x: contain;
  }

  .rail > * {
    flex: 0 0 auto;
    width: min(80vw, 340px);
    scroll-snap-align: start;
  }

  /* grid gaps do not apply to a flex rail */
  .rail { gap: 16px; }

  .rail:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
    border-radius: var(--r-md);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rail { scroll-behavior: smooth; }
}

.rail-progress { display: none; }

@media (max-width: 900px) {
  .rail-progress {
    display: block;
    margin-top: 14px;
    max-width: none;
    width: 100%;
  }
}

/* ==========================================================================
   17 — MAP WIDGET (MAP.mapWidget)
   ========================================================================== */

.map-widget,
.map-fallback {
  height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.map-widget iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* No embed configured: a real card, not a fake map */
.map-fallback {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  background-color: var(--warm-sand);
  background-image:
    repeating-linear-gradient(to right, var(--grid-line-sand) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, var(--grid-line-sand) 0 1px, transparent 1px 64px);
}

.map-fallback__text {
  margin: 0;
  color: var(--heading);
  font-size: var(--fs-body-lg);
  letter-spacing: var(--ls-body-lg);
  line-height: var(--lh-body-lg);
}

@media (max-width: 768px) {
  .map-widget,
  .map-fallback { height: 320px; }
}

/* ==========================================================================
   18 — SLIDER (MARK.initSlider)
   ========================================================================== */

.slider { position: relative; }

.slider__track {
  position: relative;
  overflow: hidden;
}

/* crossfade; the fade is switched off under prefers-reduced-motion */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s var(--ease), visibility 0s linear .7s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .7s var(--ease), visibility 0s linear 0s;
}

.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.slider-btn:hover { border-color: var(--navy); }

.slider-btn--glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: var(--glass-line);
  color: var(--white);
}
.slider-btn--glass:hover { border-color: var(--white); }

/* pause / play button shows the action, not the state */
.slider-icon-play { display: none; }
.slider-btn[data-playing="true"] .slider-icon-pause { display: block; }
.slider-btn[data-playing="true"] .slider-icon-play { display: none; }
.slider-btn[data-playing="false"] .slider-icon-pause { display: none; }
.slider-btn[data-playing="false"] .slider-icon-play { display: block; }

.slider-progress {
  flex: 1 1 auto;
  width: 120px;
  max-width: 180px;
  height: 2px;
  border-radius: var(--r-xs);
  background: var(--white-line);
  overflow: hidden;
}

.slider-progress--light { background: var(--ash); }

.slider-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
  transition: width .7s var(--ease);
}

.slider-count {
  color: var(--white);
  font-size: var(--fs-caption);
  font-variant-numeric: tabular-nums;
}

.slider-count--dark { color: var(--graphite); }

/* contained slider (inside-the-villas) */
.slider-contained {
  max-width: 1100px;
  margin-inline: auto;
}

.slider-contained .slider__track {
  aspect-ratio: 3 / 2;
  border-radius: var(--r-lg);
  background: var(--warm-sand);
  box-shadow: var(--shadow-md);
}

.slider-contained img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 16px;
  color: var(--white);
  font-size: var(--fs-caption);
}

.slider-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .slide.is-active {
    transition: none;
  }
  .slider-progress-fill { transition: none; }
}

/* ==========================================================================
   19 — HEADER OVERLAY MODE (only with <body data-header="overlay">)
   ========================================================================== */

.site-header--overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  box-shadow: none;
}

.site-header--overlay .logo,
.site-header--overlay .nav-link,
.site-header--overlay .header-phone,
.site-header--overlay .nav-toggle { color: var(--white); }

.site-header--overlay .logo { transition: color .25s var(--ease); }
.site-header--overlay .nav-toggle:hover { background: var(--glass-bg); }
.site-header--overlay .nav-link:hover,
.site-header--overlay .header-phone:hover { color: var(--white); }

/* past 8px the solid state takes over (more specific, so it wins) */
.site-header--overlay.scrolled { background: var(--parchment-glass); }

.site-header--overlay.scrolled .logo,
.site-header--overlay.scrolled .nav-link,
.site-header--overlay.scrolled .header-phone,
.site-header--overlay.scrolled .nav-toggle { color: var(--ink); }

.site-header--overlay.scrolled .nav-link:hover,
.site-header--overlay.scrolled .header-phone:hover { color: var(--heading); }

/* ==========================================================================
   20 — HOMEPAGE (index.html)
   ========================================================================== */

/* ---- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  min-height: min(92svh, 860px);
  background: var(--navy);
  overflow: hidden;
}

.hero__slider { position: absolute; inset: 0; }

.hero__slide { position: absolute; inset: 0; }

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, var(--scrim-top) 0, transparent var(--scrim-top-h)),
    linear-gradient(to right, var(--scrim-left) 0%, var(--scrim-mid) 45%, var(--scrim-right) 100%),
    linear-gradient(to top, var(--scrim-bottom), transparent 40%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: min(92vh, 860px);
  min-height: min(92svh, 860px);
  padding-top: calc(var(--header-h) + 44px);
  padding-bottom: max(24px, calc(var(--section-y) * 0.4));
}

.hero__top {
  display: flex;
  justify-content: flex-end;
}

.hero__label {
  padding: 8px 16px;
  color: var(--white);
  font-size: var(--fs-caption);
  transition: border-color .2s var(--ease);
}
.hero__label:hover {
  border-color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.hero__main { margin-top: auto; }

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--white);
  font-size: var(--fs-caption);
}

.hero__title {
  margin-top: 24px;
  max-width: 16ch;
  color: var(--white);
}

.hero__sub {
  margin-top: 20px;
  max-width: 48ch;
  color: var(--white-85);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 44px;
}

.hero__quick { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__quick a {
  padding: 8px 16px;
  color: var(--white);
  font-size: var(--fs-caption);
  transition: border-color .2s var(--ease);
}
.hero__quick a:hover { border-color: var(--white); }

.hero__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__visit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  background: var(--orange);
  color: var(--on-orange);
  font-size: var(--fs-btn);
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-md);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.hero__visit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--orange-hover);
}

.hero__cue {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-line);
  border-radius: 50%;
  background: var(--glass-bg);
  color: var(--white);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.hero__scroll:hover { border-color: var(--white); transform: translateY(2px); }

/* static hero (one photo) and fallback hero (no photos) */
.hero__static { position: absolute; inset: 0; }

/* fallback hero: same band height as the slider hero */
.hero--fallback { min-height: min(92vh, 860px); min-height: min(92svh, 860px); }

.hero--fallback .hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  min-height: min(92vh, 860px);
  min-height: min(92svh, 860px);
}

.hero--fallback .hero__main { margin-top: 0; }

.hero__tiles {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

/* Each tile is at most half of what is left of the hero once the header and the
   section padding are taken out, so both tiles always fit inside the band. */
.hero__tile {
  position: relative;
  display: block;
  max-width: 100%;
  height: calc((min(92vh, 860px) - var(--header-h) - (2 * var(--section-y)) - 16px) / 2);
  height: calc((min(92svh, 860px) - var(--header-h) - (2 * var(--section-y)) - 16px) / 2);
  max-height: 380px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--warm-sand);
  box-shadow: var(--shadow-md);
}

.hero__tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero__inner { padding-top: calc(var(--header-h) + 24px); }

  /* text first, then the two tiles side by side; the cue is dropped so the
     whole hero fits 100svh on a 390x700 phone */
  .hero--fallback .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero--fallback .hero__main { margin-top: 0; }

  .hero__tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
  }

  .hero__tile {
    height: auto;
    max-height: 22vh;
    max-height: 22svh;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-md);
  }

  .hero__cue { display: none; }

  /* slider hero on phones: drop the two spec chips, keep the controls and the
     orange visit card so the copy plus the controls fit 100svh */
  .hero__quick { display: none; }
  .hero__bottom { margin-top: 24px; gap: 12px; }
  .hero__visit { width: 100%; justify-content: space-between; }

  .hero__title { margin-top: 16px; }
  .hero__sub { margin-top: 14px; }
  .hero__actions { margin-top: 20px; }
}

/* ---- villas -------------------------------------------------------------- */

/* below 1024px: the intro sits above the cards and the cards stack */
.home-villas-layout .sec-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 32px;
}

.home-villas {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.home-villas__media {
  border-radius: var(--r-md);
}

.home-villas__body { padding: 22px 24px 24px; }

.home-villas__name { margin-top: 0; }

/* stat figures on one row inside a card */
.home-villas .villa-stats {
  gap: 28px;
  margin-top: 16px;
}

.home-villas .villa-features { margin-top: 16px; }

.home-villas .villa-price__label { margin-top: 20px; }

.home-villas .villa-price__actions {
  margin-top: 16px;
  gap: 10px;
}

.home-villas .home-villas__link { margin-top: 18px; }

.home-villas__link {
  display: inline-block;
  color: var(--navy);
  font-size: var(--fs-body-sm);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}
.home-villas__link:hover { color: var(--heading); text-decoration-color: var(--orange); }

.home-note { margin-top: 24px; color: var(--stone); }

/* desktop: intro column on the left, the two villa cards side by side */
@media (min-width: 1024px) {
  .home-villas-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .home-villas-layout .sec-head { margin-bottom: 0; }

  .home-villas-layout .home-villas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .home-villas-layout .home-note { grid-column: 2; margin-top: 18px; }

  .home-villas__body { padding: 22px; }

  /* media: desktop cards are capped harder than the stacked mobile version */
  .home-villas__media.cap-34 { max-height: clamp(160px, 28vh, 280px); }
  @supports (height: 1svh) {
    .home-villas__media.cap-34 { max-height: clamp(160px, 28svh, 280px); }
  }
}

/* ---- why ----------------------------------------------------------------- */

/* no display or gap here: at 900px and below this is a .rail (horizontal
   scroller with a 16px gap), at 901px and above a 3-column grid */
@media (min-width: 901px) {
  .home-why,
  .home-projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* ---- inside slider ------------------------------------------------------ */

.home-inside { text-align: center; }

.home-inside__label { margin-bottom: 20px; }

.home-inside__head { margin-bottom: 40px; }

.home-inside__actions { margin-top: 28px; }

/* desktop: copy + controls + button on the left, the viewer on the right */
@media (min-width: 1024px) {
  .home-inside { text-align: left; }

  .home-inside__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
  }

  .home-inside__head-block { grid-column: 1; grid-row: 1; }
  .home-inside__controls { grid-column: 1; grid-row: 2; margin-top: 28px; }
  .home-inside__actions { grid-column: 1; grid-row: 3; margin-top: 24px; }
  .home-inside__viewer { grid-column: 2; grid-row: 1 / span 3; }

  .home-inside__head {
    margin-bottom: 0;
    max-width: 16ch;
  }

  /* viewer: height capped by viewport height, never wider than the files */
  .home-inside__viewer .slider__track {
    aspect-ratio: auto;
    height: clamp(280px, 56vh, 540px);
    height: clamp(280px, 56svh, 540px);
  }
}

@media (max-width: 1023px) {
  .home-inside__grid { display: block; }

  .home-inside__controls .slider-controls {
    justify-content: center;
    margin-top: 20px;
  }

  /* viewer: 4/3 capped by viewport height */
  .home-inside__viewer .slider__track {
    aspect-ratio: 4 / 3;
    max-height: clamp(220px, 52vh, 520px);
    max-height: clamp(220px, 52svh, 520px);
  }
}

@media (min-width: 1024px) {
  .home-inside__controls .slider-controls {
    justify-content: flex-start;
    margin-top: 0;
  }
}

.home-inside__viewer { position: relative; }

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

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  text-align: center;
}

.home-stats__figure {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin: 0;
}

.home-stats__value {
  display: inline;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

/* orange suffix, scoped so it beats .section--navy .t-heading-lg */
.home-stats .home-stats__suffix { color: var(--orange); }

.home-stats__label {
  display: block;
  margin-top: 6px;
  color: var(--white-soft);
  font-size: var(--fs-caption);
}

@media (max-width: 900px) {
  .home-stats__value,
  .home-stats__suffix { font-size: 40px; }
  .home-stats { gap: 22px; }
}

/* the band is data-driven (HOME.stats) and holds three entries now; three
   columns stop fitting around 560px, where one entry takes its own line and
   the other two share the next one */
@media (max-width: 560px) {
  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .home-stats > :first-child { grid-column: 1 / -1; }
}

/* ---- completed projects ------------------------------------------------- */

.project-card__media { border-radius: var(--r-md); }

.project-card__body { padding: 22px; }

.project-card__where {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--graphite);
  font-size: var(--fs-caption);
}

.project-card__where .icon { color: var(--orange); }

.project-card__spec {
  margin-top: 10px;
  color: var(--graphite);
  font-size: var(--fs-body-sm);
}

.project-card__tagline {
  margin-top: 14px;
  color: var(--graphite);
  font-size: var(--fs-body-sm);
  font-style: italic;
}

.project-card__cta { margin-top: 22px; }

/* drawing-sheet placeholder: real project info, no fake photo */
.sheet {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 150px;
  background-color: var(--warm-sand);
  background-image:
    repeating-linear-gradient(to right, var(--sheet-line) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to bottom, var(--sheet-line) 0 1px, transparent 1px 24px);
}

.sheet::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  pointer-events: none;
}

.sheet__type {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 1;
  color: var(--graphite);
  font-size: var(--fs-caption);
}

/* ---- closing band ------------------------------------------------------- */

.home-closing {
  background: var(--peach);
  padding-block: calc(var(--section-y) * 0.75);
}

.home-closing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.home-closing__points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.home-closing__point {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--text);
  font-size: var(--fs-body-sm);
}

.home-closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---- JV panel ----------------------------------------------------------- */

.jv-panel {
  padding: calc(var(--section-y) * 0.75) 48px;
  border-radius: var(--r-lg);
  text-align: center;
  overflow: hidden;
}

.jv-panel__sub {
  margin: 16px auto 0;
  max-width: 46ch;
  color: var(--white-soft);
  font-size: var(--fs-body-lg);
  letter-spacing: var(--ls-body-lg);
  line-height: var(--lh-body-lg);
}

.jv-panel__actions { margin-top: 32px; }

@media (max-width: 900px) {
  .home-villas,
  .home-closing__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .jv-panel { padding: calc(var(--section-y) * 0.75) 24px; }
}

/* ==========================================================================
   21 — JV DIALOG (injected by components.js on first use)
   ========================================================================== */

.jv {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--veil);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.jv__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--parchment);
  box-shadow: var(--shadow-md);
}

.jv__title { margin: 0 0 8px; }

.jv__sub {
  margin: 0 0 24px;
  color: var(--graphite);
  font-size: var(--fs-body-sm);
}

.jv__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.jv__close:hover { background: var(--tint); }

.jv__confirm {
  margin: 20px 0 0;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-subtle);
  font-size: var(--fs-body-sm);
}

@media (max-width: 480px) {
  .jv { padding: 16px; }
  .jv__panel { padding: 24px 20px; }
}

/* ==========================================================================
   22 — FLOATING CONTACT CONTROL (components.js injects .fab)
   ========================================================================== */

.fab {
  position: relative;
  z-index: 150;              /* above page content, below the overlay (200) and dialogs (500) */
}

/* hidden whenever a panel owns the screen */
body.menu-open .fab,
body.no-scroll .fab { display: none; }

/* ---- desktop: round button + menu --------------------------------------- */

.fab__desk {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: none;
}

.fab__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: var(--on-orange);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  animation: fab-pulse 1.5s ease-out 3;   /* 3 cycles, ~4.5s, then it stops */
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.fab__btn:hover { background: var(--orange-hover); transform: translateY(-2px); }

@keyframes fab-pulse {
  0%   { box-shadow: var(--shadow-md), 0 0 0 0 var(--fab-pulse); }
  70%  { box-shadow: var(--shadow-md), 0 0 0 16px var(--fab-pulse-out); }
  100% { box-shadow: var(--shadow-md), 0 0 0 0 var(--fab-pulse-out); }
}

@media (prefers-reduced-motion: reduce) {
  .fab__btn { animation: none; }
  .fab__btn:hover { transform: none; }
}

.fab__menu {
  position: absolute;
  right: 0;
  bottom: 68px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 232px;
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--parchment);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.fab__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: var(--fs-btn);
  font-weight: var(--fw-medium);
  transition: background-color .2s var(--ease);
}
.fab__item:hover { background: var(--tint); }
.fab__item .icon { color: var(--orange); }
.fab__item--wa .icon { color: var(--whatsapp); }

/* ---- mobile: two-button bottom bar -------------------------------------- */

.fab__bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: calc(56px + env(safe-area-inset-bottom));
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--parchment);
  border-top: 1px solid var(--line);
}

.fab__bar .btn {
  flex: 1 1 0;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-md);
}

@media (min-width: 768px) {
  .fab__desk { display: block; }
  .fab__bar { display: none; }
}

/* keep the footer's last line clear of the bar */
@media (max-width: 767px) {
  body.has-fab-bar { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   23 — PROJECTS-COMPLETED PAGE
   ========================================================================== */

/* three project rows: alternating full-bleed bands on desktop, a rail of tinted
   cards at 900px and below (see .rail). No display here — the rail rules and the
   block default handle it. */
.project-section { scroll-margin-top: calc(var(--header-h) + 16px); }

.project-row__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

/* media box: 4/3, capped by viewport height, never above the file's own pixels */
.project-row__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: var(--warm-sand);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.project-row__frame > .sheet { width: 100%; height: 100%; min-height: 0; }

.project-row__open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.project-row__open img { display: block; width: 100%; height: 100%; object-fit: cover; }

.project-row__chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  color: var(--white);
  font-size: var(--fs-caption);
}

.project-row__where {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--graphite);
  font-size: var(--fs-caption);
}
.project-row__where .icon { color: var(--orange); }

.project-row__details .villa-stats { margin-top: 18px; }

.project-row__tagline {
  margin-top: 18px;
  color: var(--graphite);
  font-size: var(--fs-body-lg);
  letter-spacing: var(--ls-body-lg);
  line-height: var(--lh-body-lg);
  font-style: italic;
}

/* year / floors captions on a project row — rendered only when set */
.project-row__meta { margin-top: 10px; color: var(--graphite); }

.project-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* desktop: two columns, every second row swapped (DOM order untouched) */
@media (min-width: 901px) {
  .project-row__grid {
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    gap: 48px;
  }

  .project-row--flip .project-row__frame { order: 2; }
  .project-row--flip .project-row__details { order: 1; }

  .project-row__frame {
    height: clamp(240px, 46vh, 480px);
    height: clamp(240px, 46svh, 480px);
  }
}

/* mobile: the rows are rail cards — no band padding or background of their own */
@media (max-width: 900px) {
  .rail--bleed { margin-inline: 0; padding-inline: var(--gutter); }

  .projects-list.rail > .project-section {
    padding-block: 0;
    background: none;
  }

  .projects-list.rail > .project-section > .container {
    max-width: none;
    padding-inline: 0;
  }

  .projects-list.rail > .project-section + .project-section { margin-top: 0; }

  .project-row__frame {
    height: clamp(200px, 40vh, 320px);
    height: clamp(200px, 40svh, 320px);
  }
}

/* ==========================================================================
   24 — CONTACT PAGE
   ========================================================================== */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.contact__form { padding: 28px; }

.contact__reach { display: flex; flex-direction: column; }

.contact__line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 16px;
  color: var(--text);
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* the circle follows the FIRST line of a wrapped row (the address), not the
   centre of the block: (line box − circle) / 2, in em so it tracks the font */
.contact__line .icon-circle { margin-top: calc((1.5em - 40px) / 2); }

.contact__line a { color: var(--heading); }
.contact__line a:hover {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--heading);
  font-size: var(--fs-body-lg);
  letter-spacing: var(--ls-body-lg);
}
.contact__phone:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }

.contact__whatsapp { margin: 8px 0 24px; }

.contact__map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* the form and the details must both fit one desktop screen */
@media (min-width: 901px) {
  .contact__grid {
    align-items: start;
    gap: 40px;
  }

  .contact__form { padding: 24px; }

  .contact__form .field { margin-bottom: 18px; }
  .contact__form textarea { min-height: 96px; }

  .contact__line { margin-bottom: 12px; }
  .contact__phone { margin-bottom: 8px; }
  .contact__map { align-items: center; }
}

@media (max-width: 900px) {
  .contact__grid,
  .contact__map { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contact__form { padding: 20px; }
}

/* on desktop the form sits on the right, "Reach us" on the left */
@media (min-width: 901px) {
  .contact__grid .contact__form { grid-column: 2; grid-row: 1; }
  .contact__grid .contact__reach { grid-column: 1; grid-row: 1; }
}

/* ==========================================================================
   25 — 404 PAGE (404.html)
   ========================================================================== */

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ==========================================================================
   26 — ABOUT PAGE (about.html)
   ========================================================================== */

/* story: prose left, quote card right. No display here — the 901px block
   below turns it into two columns, and the cards stay a .rail on phones. */
.about-story { gap: 32px; }

.about-story__prose > .t-body + .t-body,
.about-story__prose > p + p { margin-top: 16px; }

/* quote card: parchment card with the 4px orange rule down its left edge */
.about-quote {
  padding: 26px 26px 26px 22px;
  border-left: 4px solid var(--orange);
}

.about-quote__text {
  margin: 0;
  color: var(--heading);
  font-size: var(--fs-body-lg);
  letter-spacing: var(--ls-body-lg);
  line-height: var(--lh-body-lg);
}

.about-quote .villa-stats { margin-top: 26px; }

/* the card groups carry .rail, so their layout belongs to the media query */
.about-cards { margin-top: 40px; }

/* text link under a card — navy text with an orange underline */
.card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--navy);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.card-link:hover { text-decoration-thickness: 3px; }

/* where we build */
.about-places { gap: 24px; }

.about-place { padding: 28px; }

.about-place__note {
  margin-top: 14px;
  color: var(--graphite);
  font-size: var(--fs-body-sm);
}

.about-place__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
}

/* the links already carry their own spacing in that column */
.about-place__links .card-link { margin-top: 0; }

@media (min-width: 901px) {
  .about-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 64px;
    align-items: start;
  }

  .about-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .about-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .about-places {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

/* ==========================================================================
   27 — PORTRAIT PROJECT COVERS (homepage cards + projects-completed rows)
   ==========================================================================
   A cover that is taller than it is wide is not cropped into a landscape frame:
   the whole image is shown with object-fit: contain, centred, on the warm-sand
   ground the frames already use. Desktop keeps a bounded height
   (clamp 240–360px, 38svh); in a phone rail the frame becomes 4:5 at the card
   width. Landscape covers are untouched — they keep the 16:10 / 4:3 frame.

   These rules come last on purpose: the frame heights in section 23 are set in
   media queries of equal specificity, and these have to win over them. */

.project-card__media--portrait,
.project-row__frame--portrait {
  background: var(--warm-sand);
  aspect-ratio: auto;
  max-height: none;
}

.project-card__media--portrait {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-md);
}

.project-card__media--portrait > img,
.project-row__frame--portrait > .project-row__open > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 901px) {
  .project-card__media--portrait,
  .project-row__frame--portrait {
    height: clamp(240px, 38vh, 360px);
    height: clamp(240px, 38svh, 360px);
  }
}

@media (max-width: 900px) {
  .project-card__media--portrait,
  .project-row__frame--portrait {
    aspect-ratio: 4 / 5;
    height: auto;
  }
}

/* ==========================================================================
   28 — RERA BADGE (villas.html intro band)
   ==========================================================================
   Filled by villas.js from SITE.rera and shown only when that object has a
   value, so an empty SITE.rera leaves the intro exactly as it was. The number
   is 16px white on the dark glass chip (high contrast); the QR is 96px; the
   link goes to the authority site. On phones it stacks above the heading; from
   901px it sits at the top-right of the band, above the photo tiles. */

.rera-badge-host { display: flex; justify-content: flex-start; }

.rera-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: var(--glass-dark-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-dark-line);
  color: var(--white);
}

.rera-badge__qr {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: var(--r-md);
  background: var(--white);
  object-fit: contain;
}

.rera-badge__text { min-width: 0; }

.rera-badge__number {
  display: block;
  color: var(--white);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  overflow-wrap: anywhere;
}

.rera-badge__note {
  display: block;
  margin-top: 6px;
  color: var(--white-soft);
  font-size: var(--fs-caption);
  overflow-wrap: anywhere;
}

.rera-badge__link {
  display: inline-block;
  margin-top: 8px;
  color: var(--white);
  font-size: var(--fs-caption);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

@media (min-width: 1024px) {
  /* text column left (about 40%) with the RERA badge beneath it, the photo
     slider on the right (about 60%), so the badge can never overlap the photo */
  .villa-intro {
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    gap: 56px;
  }

  .villa-intro > .reveal:not(.villa-intro__viewer) { grid-column: 1; grid-row: 1; }

  .rera-badge-host {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    align-self: start;
  }

  .villa-intro__viewer { grid-column: 2; grid-row: 1 / span 2; }
}

/* ==========================================================================
   29 — VILLAS INTRO SLIDER (the 3BHK and 2BHK exteriors)
   ==========================================================================
   Built by villas.js from assets/photos/hero (matched by FILENAME) with the
   villa card photos as the fallback. The viewer keeps the photo's 16:9 frame,
   crops less than 1% at that ratio, carries no overlay, gradient or tint, and
   is capped by viewport height on desktop so the intro stays inside one screen.
   Controls (prev, progress, next, counter) sit under the photo. */

.villa-intro__viewer { min-width: 0; }

.villa-slider .slider__track {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  background: var(--warm-sand);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* the whole photo is one button: clicking it opens the lightbox */
.villa-slide__open {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.villa-slide__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.villa-intro__viewer .slider-controls {
  justify-content: flex-start;
  margin-top: 18px;
}

.villa-intro__viewer .villa-photonote { margin-top: 14px; }

@media (min-width: 1024px) {
  .villa-slider .slider__track {
    max-height: min(52vh, 520px);
    max-height: min(52svh, 520px);
  }
}
