/* =====================================================================
   VERIDIA HEIGHTS — public stylesheet
   Palette: brochure-locked (deep charcoal / champagne gold / ivory)
   Fonts: Fraunces (display serif) + Manrope (body sans)
   ===================================================================== */

:root {
  --ink:        #1c1a17;
  --ink-soft:   #2a2622;
  --ink-line:   #3a352f;
  --gold:       #b8975a;
  --gold-soft:  #cbb07a;
  --gold-deep:  #8a6d3b;
  --ivory:      #f7f4ee;
  --ivory-2:    #efe9df;
  --stone:      #6b655c;
  --stone-2:    #9a948a;
  --white:      #fffdf9;
  --danger:     #a13c2f;
  --ok:         #3d7a4a;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 20px 50px rgba(12, 10, 8, 0.35);
  --container: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* no horizontal scroll from any stray content */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
  text-decoration: none; text-align: center;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.btn-ghost { border-color: rgba(247,244,238,0.45); color: var(--ivory); background: rgba(28,26,23,0.25); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ivory); background: rgba(28,26,23,0.5); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  height: var(--header-h);
  background: rgba(28, 26, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 151, 90, 0.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ivory); }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display); font-size: 14px; letter-spacing: 0.06em;
  border-radius: var(--radius);
}
.brand-text { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.02em; }
.brand-text em { font-style: italic; color: var(--gold-soft); }

.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a:not(.btn) {
  color: var(--ivory); text-decoration: none; font-size: 14.5px; font-weight: 500;
  opacity: 0.85; transition: opacity 0.2s, color 0.2s;
}
.nav-menu a:not(.btn):hover { opacity: 1; color: var(--gold-soft); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ivory); transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    padding: 8px 20px 20px;
    transform: translateY(-120%);
    opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .nav-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu li { border-bottom: 1px solid var(--ink-line); }
  .nav-menu a { display: block; padding: 14px 4px; }
  .nav-menu .btn { margin-top: 14px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 72px;
  color: var(--ivory);
  background: var(--ink);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28,26,23,0.55) 0%, rgba(28,26,23,0.15) 35%, rgba(28,26,23,0.82) 100%),
    linear-gradient(90deg, rgba(28,26,23,0.55) 0%, transparent 60%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin-left: max(20px, calc((100% - var(--container)) / 2)); margin-right: auto; width: min(100% - 40px, var(--container)); }
.hero-eyebrow {
  font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 18px; font-weight: 600;
}
.hero-title {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--white);
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 56ch; color: rgba(247,244,238,0.88);
  margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; max-width: 640px;
  border-top: 1px solid rgba(184,151,90,0.35); padding-top: 22px;
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--gold-soft); font-weight: 500; }
.hero-facts span { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247,244,238,0.7); }
@media (max-width: 560px) {
  .hero { padding-bottom: 56px; min-height: 92dvh; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-dark { background: var(--ink); color: var(--ivory); }
.section-light { background: var(--ivory); color: var(--ink); }
.section-glance { background: var(--ivory); }
.section-clp { background: var(--ivory-2); color: var(--ink); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-sub { color: var(--stone); font-size: 1.05rem; max-width: 62ch; }
.section-dark .section-sub { color: var(--stone-2); }

/* Glance grid */
.glance-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(28,26,23,0.12);
  border: 1px solid rgba(28,26,23,0.12);
  margin: 0;
}
.glance-item { background: var(--white); padding: 26px 24px; }
.glance-item dt {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 8px; font-weight: 600;
}
.glance-item dd { margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; }
@media (max-width: 900px) { .glance-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .glance-grid { grid-template-columns: 1fr; } }

/* KSP */
.ksp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); }
.ksp-card { background: var(--ink); padding: 34px 30px; position: relative; }
.ksp-card h3 { font-size: 1.25rem; color: var(--gold-soft); margin-bottom: 10px; }
.ksp-card p { color: var(--stone-2); font-size: 0.95rem; margin: 0; }
.ksp-num {
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.18em;
  color: var(--gold-deep); display: block; margin-bottom: 16px;
}
@media (max-width: 900px) { .ksp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ksp-grid { grid-template-columns: 1fr; } }

/* Units table */
.table-wrap { overflow-x: auto; border: 1px solid rgba(28,26,23,0.14); background: var(--white); }
.units-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.units-table th, .units-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid rgba(28,26,23,0.08); font-size: 0.95rem; }
.units-table thead th {
  background: var(--ink); color: var(--ivory);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
}
.units-table tbody tr:hover { background: rgba(184,151,90,0.07); }
.units-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 6vw, 64px); }
.feature-copy h3 { font-size: 1.4rem; margin-bottom: 18px; }
.feature-list { margin: 0; display: grid; gap: 14px; }
.feature-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(28,26,23,0.08); }
.feature-list dt { font-weight: 700; font-size: 0.9rem; }
.feature-list dd { margin: 0; color: var(--stone); font-size: 0.95rem; }
@media (max-width: 760px) {
  .feature-split { grid-template-columns: 1fr; }
  .feature-list > div { grid-template-columns: 1fr; gap: 4px; }
}
.inline-cta { margin-top: clamp(36px, 5vw, 52px); text-align: center; }

/* Amenities */
.amenities-layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.amenities-intro h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.amenities-intro p { color: var(--stone-2); }
.amenities-img { border-radius: var(--radius-lg); margin: 22px 0; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.amenity-zones { display: grid; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); }
.zone-card { background: var(--ink); padding: 26px 28px; }
.zone-card header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.zone-card h3 { font-size: 1.15rem; color: var(--gold-soft); margin: 0; }
.zone-size { margin: 0; font-size: 13px; letter-spacing: 0.06em; color: var(--stone-2); font-variant-numeric: tabular-nums; }
.zone-card p { margin: 0; color: rgba(247,244,238,0.82); font-size: 0.95rem; }
@media (max-width: 900px) { .amenities-layout { grid-template-columns: 1fr; } }

/* Duo band */
.duo-band {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 60px);
  align-items: center; padding-block: clamp(36px, 5vw, 56px);
}
.duo-band-flip { grid-template-columns: 5fr 7fr; }
.duo-band-flip .duo-figure { order: 2; }
.duo-figure { margin: 0; }
.duo-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); }
.duo-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--stone); letter-spacing: 0.04em; }
.duo-copy h2, .duo-copy h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.duo-copy p { color: var(--stone); max-width: 52ch; }
.duo-sub { margin-top: 28px; font-size: 1.35rem !important; }
@media (max-width: 860px) {
  .duo-band, .duo-band-flip { grid-template-columns: 1fr; }
  .duo-band-flip .duo-figure { order: 0; }
}

/* CLP */
.clp-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.clp-steps { display: grid; gap: 1px; background: rgba(28,26,23,0.12); border: 1px solid rgba(28,26,23,0.12); }
.clp-step {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  background: var(--white); padding: 13px 18px; font-size: 0.95rem;
}
.clp-i {
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold-deep);
  font-size: 12.5px; font-weight: 700; border-radius: 50%;
}
.clp-pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.clp-aside {
  background: var(--ink); color: var(--ivory);
  padding: 34px 30px; border-radius: var(--radius-lg);
  position: sticky; top: calc(var(--header-h) + 20px);
}
.clp-aside h3 { color: var(--gold-soft); font-size: 1.4rem; }
.clp-aside p { color: var(--stone-2); }
.clp-note { font-size: 12.5px; margin-top: 16px; color: var(--stone-2); }
@media (max-width: 860px) { .clp-grid { grid-template-columns: 1fr; } .clp-aside { position: static; } }

/* Gallery */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.gf-pill {
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(247,244,238,0.25); background: transparent;
  color: rgba(247,244,238,0.8); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.03em; transition: all 0.2s var(--ease);
}
.gf-pill:hover { border-color: var(--gold); color: var(--gold-soft); }
.gf-pill.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.gf-pill:active { transform: translateY(1px); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.gallery-item { margin: 0; position: relative; display: flex; flex-direction: column; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.gallery-item.is-hidden { display: none; }
.gallery-item-wide { grid-column: span 2; }

.gallery-frame {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--ink-soft);
  border: 1px solid rgba(184,151,90,0.14);
  flex: 1; display: flex; min-height: 0;
}
.gallery-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 55%, rgba(28,26,23,0.55) 100%);
  opacity: 0; transition: opacity 0.35s var(--ease); pointer-events: none;
}
.gallery-frame img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: auto; flex: 1; min-height: 0;
  cursor: zoom-in; display: block;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
/* Wide hero cell defines the row height; neighbours stretch to match */
.gallery-item-wide .gallery-frame img { aspect-ratio: 16/8.2; flex: none; }
.gallery-item:hover .gallery-frame img { transform: scale(1.045); filter: saturate(1.06); }
.gallery-item:hover .gallery-frame::after { opacity: 1; }
.gallery-item:hover .gallery-frame { border-color: rgba(184,151,90,0.5); }

.gallery-num {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.16em;
  color: var(--gold-soft);
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.gallery-zoom {
  position: absolute; right: 14px; bottom: 12px; z-index: 2;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: rgba(28,26,23,0.72); color: var(--gold-soft);
  border: 1px solid rgba(184,151,90,0.4); border-radius: 50%;
  font-size: 15px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  backdrop-filter: blur(4px);
}
.gallery-item:hover .gallery-num, .gallery-item:hover .gallery-zoom { opacity: 1; transform: none; }

.gallery-item figcaption {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 4px 0;
}
.gallery-cat {
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; white-space: nowrap;
}
.gallery-cap { font-size: 14px; color: var(--stone-2); }
.gallery-empty { color: var(--stone-2); text-align: center; padding: 40px 0; }

/* Lightbox extras */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(28,26,23,0.75); color: var(--ivory);
  border: 1px solid rgba(184,151,90,0.45); border-radius: 50%;
  font-size: 18px; cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.lb-nav:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-count {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.14em;
  color: var(--gold-soft);
}

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item-wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item-wide { grid-column: span 1; }
  .gallery-item-wide .gallery-frame img { aspect-ratio: 16/10; }
  .gallery-num, .gallery-zoom { opacity: 1; transform: none; }
}

/* Location */
.location-layout { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.location-copy p { color: var(--stone); max-width: 60ch; }
.location-points { display: grid; gap: 10px; margin: 20px 0 28px; }
.location-points li { padding-left: 20px; position: relative; color: var(--ink); }
.location-points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 1px; background: var(--gold); }
.location-map img { border-radius: var(--radius-lg); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.location-card {
  background: var(--white); border: 1px solid rgba(28,26,23,0.12);
  padding: 32px 28px; border-radius: var(--radius-lg);
}
.location-card h3 { font-size: 1.4rem; }
.location-phone { font-size: 1.2rem; font-weight: 700; margin: 14px 0 22px; }
.location-phone a { color: var(--gold-deep); text-decoration: none; }
@media (max-width: 860px) { .location-layout { grid-template-columns: 1fr; } }

/* CTA banner */
.cta-banner {
  background:
    linear-gradient(180deg, rgba(28,26,23,0.78), rgba(28,26,23,0.88)),
    url("../images/hero-aerial-1200.jpg") center/cover no-repeat fixed;
  color: var(--ivory);
  text-align: center;
}
.cta-inner h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--white); }
.cta-inner p { color: rgba(247,244,238,0.85); max-width: 52ch; margin-inline: auto; }
.cta-actions { margin-top: 26px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #14120f; color: rgba(247,244,238,0.8); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1.4fr; gap: 36px; padding-bottom: 48px; border-bottom: 1px solid rgba(184,151,90,0.16); }
.brand-footer { margin-bottom: 14px; }
.footer-tag { font-family: var(--font-display); font-style: italic; color: var(--gold-soft); }
.footer-h { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; }
.footer-list { display: grid; gap: 8px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--gold-soft); }
.footer-address { font-style: normal; line-height: 1.6; }
.footer-rera { font-size: 13px; color: var(--stone-2); margin-top: 10px; }
.footer-copy { font-size: 0.95rem; margin-bottom: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 26px; font-size: 13px; color: var(--stone-2); }
.footer-legal { max-width: 70ch; margin: 0; font-size: 12px; line-height: 1.6; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile bar */
.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 80;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(20,18,15,0.96); border-top: 1px solid var(--ink-line);
}
.mobile-bar .btn { flex: 1; }
@media (max-width: 720px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
}

/* Floating WhatsApp button */
.wa-fab {
  position: fixed; right: 18px; bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 85;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 26px rgba(12, 10, 8, 0.32);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.wa-fab:hover { transform: scale(1.07); color: #fff; box-shadow: 0 14px 32px rgba(12, 10, 8, 0.4); }
.wa-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wa-fab svg { width: 28px; height: 28px; display: block; }
@media (max-width: 720px) {
  .wa-fab {
    right: 14px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 52px; height: 52px;
  }
  .wa-fab svg { width: 26px; height: 26px; }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12,10,8,0.72); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; z-index: 1;
  width: min(100%, 560px); max-height: min(92dvh, 860px); overflow-y: auto;
  background: var(--ivory); color: var(--ink);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--gold);
  padding: 36px 34px 30px;
  box-shadow: var(--shadow);
  animation: modal-in 0.35s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0; font-size: 28px; line-height: 1;
  color: var(--stone); padding: 6px 10px; border-radius: var(--radius);
}
.modal-close:hover { color: var(--ink); background: rgba(28,26,23,0.06); }
.modal-eyebrow {
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700; margin-bottom: 8px;
}
.modal-head h2 { font-size: 1.75rem; margin-bottom: 6px; }
.modal-sub { color: var(--stone); font-size: 0.95rem; margin-bottom: 22px; }

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

.lead-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field > span { font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em; }
.label-opt { font-weight: 500; color: var(--stone-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid rgba(28,26,23,0.22); border-radius: var(--radius);
  background: var(--white); color: var(--ink);
  font: inherit; font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(184,151,90,0.25);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 0; font-size: 13px; color: var(--danger); }
.form-legal { font-size: 12px; color: var(--stone-2); margin: 0; line-height: 1.5; }
.form-status { margin: 0; font-size: 14px; font-weight: 600; }
.form-status.is-error { color: var(--danger); }
.form-status.is-ok { color: var(--ok); }

.btn.is-loading { position: relative; pointer-events: none; opacity: 0.75; }
.btn.is-loading .btn-label { visibility: hidden; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2px solid rgba(28,26,23,0.3); border-top-color: var(--ink);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.lead-success { text-align: center; padding: 24px 8px 8px; }
.lead-success h3 { font-size: 1.6rem; margin: 14px 0 8px; }
.lead-success p { color: var(--stone); }
.success-mark {
  width: 56px; height: 56px; margin: 0 auto;
  display: grid; place-items: center;
  border: 1.5px solid var(--gold); border-radius: 50%;
  color: var(--gold-deep); font-size: 24px;
}
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* Thank you */
.thank-you { min-height: 70dvh; display: grid; place-items: center; text-align: center; padding-top: calc(var(--header-h) + 48px); }
.thank-inner { max-width: 520px; }
.thank-inner h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); }
.thank-inner p { color: var(--stone-2); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Focus visibility */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
