/* =========================================================
   THE LISTING HOUSE — Justin Perron, REALTOR®
   Temecula • Murrieta • Southern California Wine Country
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Crisp Southern-California palette: bright white + ocean blue */
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --bg-deep: #0a2540;
  --bg-deep-alt: #0f3357;
  --ink: #0f2030;
  --ink-soft: #44546a;
  --ink-mute: #8794a8;
  --line: rgba(15, 32, 48, 0.10);
  --line-soft: rgba(15, 32, 48, 0.05);
  --line-light: rgba(255, 255, 255, 0.16);
  /* Accent kept under "gold" var name for backwards-compat — now ocean blue */
  --gold: #1f6f9c;
  --gold-light: #5ba6c9;
  --gold-deep: #0d4d70;
  --cream: #ffffff;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --max: 1320px;
  --max-narrow: 880px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
img, picture, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-5) 0; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
  color: var(--ink);
}
.h-display {
  font-size: clamp(3rem, 7.2vw, 6.75rem);
  letter-spacing: -0.02em;
}
.h-1  { font-size: clamp(2.5rem, 5vw, 4.25rem); }
.h-2  { font-size: clamp(2rem, 3.5vw, 3rem); }
.h-3  { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.h-4  { font-size: 1.375rem; }

em, .italic { font-style: italic; font-family: var(--serif); }
.serif { font-family: var(--serif); }

p { margin: 0 0 var(--space-3); color: var(--ink-soft); max-width: 64ch; }
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  display: inline-block;
  margin-bottom: var(--space-3);
}
.eyebrow.eyebrow-light { color: var(--gold-light); }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 0.85rem;
  transform: translateY(-2px);
}

.kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ---------- LAYOUT ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

section { padding: var(--space-7) 0; }
@media (max-width: 720px) { section { padding: var(--space-6) 0; } }

.section-dark { background: var(--bg-deep); color: var(--cream); }
.section-dark p, .section-dark .lead { color: rgba(246, 241, 232, 0.78); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark hr { border-color: var(--line-light); }

.section-alt { background: var(--bg-alt); }

.section-header { max-width: 720px; margin: 0 auto var(--space-5); text-align: center; }
.section-header.left { margin: 0 0 var(--space-5); text-align: left; }
.section-header p { margin-left: auto; margin-right: auto; }
.section-header.left p { margin-left: 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.85rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--cream);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 241, 232, 0.55);
}
.btn-outline-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-ghost {
  padding: 0.5rem 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: var(--ink);
}
.btn-ghost:hover { color: var(--gold); }

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- NAVIGATION ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.4s var(--ease);
  background: transparent;
}
.site-nav.scrolled,
.site-nav.solid {
  background: rgba(246, 241, 232, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem 0;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand small {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.site-nav.transparent .brand,
.site-nav.transparent .nav-links a,
.site-nav.transparent .brand small { color: var(--cream); }
.site-nav.transparent .nav-toggle span { background: var(--cream); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px; background: var(--gold);
}
.nav-cta { margin-left: 0.75rem; }

/* ---------- DROPDOWN MENU ---------- */
.has-dropdown { position: relative; }
.has-dropdown .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.has-dropdown .dropdown-toggle .caret {
  font-size: 0.7em;
  opacity: 0.7;
  transition: transform 0.3s var(--ease);
}
.has-dropdown.open .dropdown-toggle .caret { transform: rotate(180deg); }
.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  min-width: 340px;
  background: #ffffff;
  border: 1px solid rgba(15, 32, 48, 0.08);
  border-top: 2px solid var(--gold);
  box-shadow: 0 32px 80px -24px rgba(10, 37, 64, 0.45), 0 6px 16px -4px rgba(10, 37, 64, 0.18);
  list-style: none;
  padding: 0.4rem 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  z-index: 110;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown .dropdown::before { display: none; } /* no notch — cleaner */
.has-dropdown .dropdown li { display: block; border: 0; }
.has-dropdown .dropdown li + li { border-top: 1px solid rgba(15, 32, 48, 0.05); }
.has-dropdown .dropdown li a {
  display: block;
  padding: 0.95rem 1.75rem;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: inherit;
  font-weight: 400;
  color: var(--ink) !important;
  white-space: nowrap;
  transition: background 0.25s var(--ease), padding 0.3s var(--ease);
  border-left: 0;
  position: relative;
}
.has-dropdown .dropdown li a .d-label {
  display: block;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: #0a1828 !important;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.2s var(--ease);
}
.has-dropdown .dropdown li a .d-desc {
  display: block;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: #2a3548 !important;
  margin-top: 0.35rem;
  letter-spacing: 0;
  font-weight: 500;
  text-transform: none;
  line-height: 1.45;
}
.has-dropdown .dropdown li a:hover {
  background: rgba(176, 138, 74, 0.10);
  padding-left: 2.1rem;
}
.has-dropdown .dropdown li a:hover .d-label { color: var(--gold-deep) !important; }
.has-dropdown .dropdown li a:hover .d-desc { color: #1a2538 !important; }
/* Bridge for forgiveness — keeps dropdown open while moving cursor down */
.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 14px;
}
/* Dark transparent nav: ensure dropdown text stays readable */
.site-nav.transparent .has-dropdown .dropdown li a { color: var(--ink) !important; }

/* Mobile: dropdown becomes a tap-to-expand accordion */
@media (max-width: 960px) {
  .has-dropdown .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    background: rgba(15, 32, 48, 0.025);
    transform: none;
    padding: 0;
    margin: 0;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease), padding 0.3s var(--ease);
    list-style: none;
  }
  .has-dropdown.open .dropdown {
    opacity: 1;
    visibility: visible;
    max-height: 800px;
    padding: 0.4rem 0 0.85rem;
  }
  .has-dropdown .dropdown::before { display: none; }
  .has-dropdown .dropdown li {
    border: 0 !important;
    border-left: 2px solid rgba(176, 138, 74, 0.35) !important;
    margin-left: 0.5rem;
  }
  .has-dropdown .dropdown li + li { border-top: 0; }
  .has-dropdown .dropdown li a {
    color: var(--ink-soft) !important;
    padding: 0.6rem 1rem;
    border: 0;
    font-family: var(--sans) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-align: left;
    white-space: normal;
    letter-spacing: 0 !important;
    line-height: 1.3;
  }
  .has-dropdown .dropdown li a .d-label {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink) !important;
    letter-spacing: 0;
    line-height: 1.3;
  }
  .has-dropdown .dropdown li a .d-desc { display: none; }
  .has-dropdown .dropdown li a:hover,
  .has-dropdown .dropdown li a:focus {
    background: transparent;
    padding-left: 1rem;
    color: var(--gold-deep) !important;
  }
  .has-dropdown .dropdown li a:hover .d-label { color: var(--gold-deep) !important; }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span {
  width: 24px; height: 1.5px; background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 960px) {
  /* Hamburger sits above the slide-in panel so it stays tappable when open */
  .nav-toggle { display: flex; position: relative; z-index: 102; }
  .site-nav .brand { position: relative; z-index: 102; }

  /* Mobile menu panel: full screen, scrolls top-aligned with breathing room.
     Uses 100dvh (dynamic viewport height) so iOS Safari's bottom toolbar
     doesn't clip the lower nav items. Falls back to 100vh on browsers
     that don't support dvh. */
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 1.75rem
            calc(2.5rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 101;
  }
  .nav-links.open { transform: translateX(0); }

  /* Each top-level item: separator divider + serif headline + generous touch target */
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(15, 32, 48, 0.08);
  }
  .nav-links li:last-child { border-bottom: 0; }

  .nav-links a {
    display: block;
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink) !important;
    padding: 1.05rem 0.25rem;
    text-align: left;
    letter-spacing: 0;
    line-height: 1.25;
  }
  .nav-links a:hover,
  .nav-links a:focus { color: var(--gold-deep) !important; }
  .nav-links a.active { color: var(--gold) !important; }
  .nav-links a.active::after { display: none; }

  /* Caret on dropdown parents — right-aligned, rotates when open */
  .has-dropdown .dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-right: 0.25rem;
  }
  .has-dropdown .dropdown-toggle .caret {
    display: inline-block !important;
    color: var(--gold);
    font-size: 0.85rem;
    transition: transform 0.3s var(--ease);
  }
  .has-dropdown.open .dropdown-toggle .caret { transform: rotate(180deg); }

  /* CTA button at bottom of mobile menu — distinct, full-width */
  .nav-links li:has(> .nav-cta) {
    border-bottom: 0;
    margin-top: 1.5rem;
  }
  .nav-cta {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 1.05rem 1.25rem !important;
    background: var(--bg-deep) !important;
    color: var(--cream) !important;
    font-family: var(--sans) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase;
    font-weight: 500 !important;
    text-align: center;
    border: 0 !important;
  }
  .nav-cta:hover { background: var(--gold-deep) !important; color: var(--cream) !important; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, #061a2e 0%, #0a2540 35%, #133e63 70%, #1f6f9c 100%);
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(91, 166, 201, 0.30), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(31, 111, 156, 0.25), transparent 55%),
    linear-gradient(180deg, rgba(6, 26, 46, 0.20) 0%, rgba(6, 26, 46, 0.05) 40%, rgba(6, 26, 46, 0.70) 100%);
}
.hero[data-bg] .hero-bg {
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- HERO SLIDESHOW (real-estate photos w/ Ken Burns) ---------- */
/* When slides or video are present, the solid gradient bg steps aside. */
.hero:has(.hero-slides) .hero-bg,
.hero:has(.hero-video-wrap) .hero-bg { display: none; }

/* Full-bleed hero video — autoplays, loops, muted */
.hero-video-wrap {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  background: var(--bg-deep);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.hero-video-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 26, 46, 0.85) 0%,
    rgba(6, 26, 46, 0.65) 18%,
    rgba(6, 26, 46, 0.40) 40%,
    rgba(6, 26, 46, 0.35) 60%,
    rgba(6, 26, 46, 0.90) 100%
  );
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-video-wrap {
    background-image: var(--hero-poster, none);
    background-size: cover; background-position: center;
  }
}
/* Mobile keeps the video — uses the smaller mobile-optimized .mp4 served via <source media>.
   The poster image still shows instantly while the video buffers. */

.hero-slides {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: opacity, transform;
  animation: heroFade 21s infinite, kenBurns 21s infinite ease-out;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 7s; }
.hero-slide:nth-child(3) { animation-delay: 14s; }
.hero-slides::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 26, 46, 0.85) 0%,
    rgba(6, 26, 46, 0.65) 18%,
    rgba(6, 26, 46, 0.40) 40%,
    rgba(6, 26, 46, 0.35) 60%,
    rgba(6, 26, 46, 0.90) 100%
  );
}
/* Hero text contrast — readable against bright skies / luminous photos */
.hero .hero-content .eyebrow,
.hero .hero-content h1,
.hero .hero-content .lead,
.hero .hero-content .hero-meta {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero .hero-content .eyebrow-light { color: #f4ead6; }
@keyframes heroFade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  33%  { opacity: 1; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}
/* Single-slide pages: keep the one slide permanently visible (skip the fade cycle) */
.hero-slide:only-child {
  animation: kenBurns 30s ease-in-out infinite alternate !important;
  opacity: 1 !important;
}
@keyframes kenBurns {
  0%   { transform: scale(1.0) translate(0, 0); }
  50%  { transform: scale(1.10) translate(-1%, -1.5%); }
  100% { transform: scale(1.16) translate(-2%, -2%); }
}

/* ---------- FLOATING GRADIENT ORBS ---------- */
.hero-orbs {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
}
.hero-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  mix-blend-mode: screen;
  opacity: 0.55;
  will-change: transform;
}
.hero-orbs .orb-1 {
  width: 520px; height: 520px;
  top: -120px; right: -120px;
  background: radial-gradient(circle, #5ba6c9 0%, transparent 70%);
  animation: orb1 22s ease-in-out infinite alternate;
}
.hero-orbs .orb-2 {
  width: 640px; height: 640px;
  bottom: -180px; left: -180px;
  background: radial-gradient(circle, #1f6f9c 0%, transparent 70%);
  animation: orb2 26s ease-in-out infinite alternate;
}
.hero-orbs .orb-3 {
  width: 380px; height: 380px;
  top: 30%; left: 35%;
  background: radial-gradient(circle, #9bd4ed 0%, transparent 70%);
  opacity: 0.35;
  animation: orb3 18s ease-in-out infinite alternate;
}
@keyframes orb1 {
  from { transform: translate(0, 0); }
  to   { transform: translate(-110px, 90px); }
}
@keyframes orb2 {
  from { transform: translate(0, 0); }
  to   { transform: translate(140px, -80px); }
}
@keyframes orb3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, -40px) scale(1.15); }
}

/* Mouse-parallax target */
.hero-content { transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }

/* ---------- MARQUEE STRIP ---------- */
.marquee {
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--cream);
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 120px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg-deep), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left, var(--bg-deep), transparent); }
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-style: italic;
  color: rgba(255,255,255,0.85);
}
.marquee-track .item { padding: 0 3rem; display: inline-flex; align-items: center; gap: 3rem; }
.marquee-track .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- COUNT-UP STAT POLISH ---------- */
.stat .num { display: inline-block; }
.stat[data-counted] .num::after { content: ""; }

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-orbs .orb, .marquee-track { animation: none !important; }
  .hero-slide:first-child { opacity: 1; }
}

/* ============================================================
   "MORE WHITE · MILLION-DOLLAR AGENT" REFINEMENTS
   ============================================================ */

/* Lighter hero photo overlay — more photo, more air */
.hero-slides::after {
  background: linear-gradient(
    180deg,
    rgba(6, 26, 46, 0.40) 0%,
    rgba(6, 26, 46, 0.10) 30%,
    rgba(6, 26, 46, 0.15) 60%,
    rgba(6, 26, 46, 0.78) 100%
  ) !important;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  width: 0;
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Real PDF cover — clean, square-on presentation, locked aspect ratio */
.guide-cover-img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 927 / 1200;
  object-fit: contain;
  margin: 0 auto;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.45),
    0 60px 120px -40px rgba(91, 166, 201, 0.20);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.guide-cover-img:hover {
  transform: translateY(-6px);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.55),
    0 80px 140px -40px rgba(91, 166, 201, 0.28);
}

/* Small download cover — show actual cover image */
.download .cover.has-img {
  background: none !important;
  padding: 0 !important;
  display: block !important;
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}
.download .cover.has-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.download:hover .cover.has-img img { transform: scale(1.04); }

/* 3D card tilt */
.tilt-wrap { perspective: 1500px; }
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

/* Stronger hover transitions on image cards */
.area-card .img, .listing .photo, .post-card .img {
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.5s var(--ease);
}
.area-card:hover .img { transform: scale(1.08); }
.listing:hover .photo { transform: scale(1.04); filter: brightness(1.05); }
.post-card:hover .img { transform: scale(1.04); }

/* Animated underline on text links */
.btn-ghost {
  position: relative;
  border-bottom: 0;
  padding-bottom: 0.25rem;
}
.btn-ghost::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transition: transform 0.4s var(--ease);
}
.btn-ghost:hover::after { transform-origin: left center; transform: scaleX(0.6); }

/* Social icons (footer) */
.social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.social-row a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.social-row a:hover {
  border-color: var(--gold-light);
  background: var(--gold-light);
  color: var(--bg-deep);
  transform: translateY(-2px);
}
.social-row a svg {
  width: 17px; height: 17px;
  display: block;
}

/* Brighter, airier section feel */
.section-alt { background: #fafbfd; }

/* Fade-up animation on headings entering view */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.fade-up.in { opacity: 1; transform: none; }

/* ============================================================
   FLOATING CTA — bottom-right "Schedule a Call" + phone
   ============================================================ */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  animation: fcaIn 0.6s 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}
@keyframes fcaIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.floating-cta-primary, .floating-cta-secondary {
  background: var(--gold);
  color: var(--cream);
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 18px 40px -10px rgba(176, 138, 74, 0.5), 0 4px 12px -4px rgba(10, 37, 64, 0.2);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.floating-cta-primary:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 24px 48px -12px rgba(176, 138, 74, 0.6); }
.floating-cta-primary svg { width: 16px; height: 16px; }
.floating-cta-secondary {
  background: var(--bg-deep);
  padding: 0.95rem 1rem;
  box-shadow: 0 12px 28px -8px rgba(10, 37, 64, 0.3);
}
.floating-cta-secondary:hover { background: var(--bg-deep-alt); transform: translateY(-2px); }
.floating-cta-secondary svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .floating-cta { bottom: 1rem; right: 1rem; gap: 0.5rem; }
  .floating-cta-primary { padding: 0.85rem 1.1rem; font-size: 0.72rem; }
  .floating-cta-primary span { display: none; }
  .floating-cta-primary svg { width: 18px; height: 18px; }
}

/* ============================================================
   EXIT-INTENT POPUP
   ============================================================ */
.exit-popup {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 37, 64, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.exit-popup.in { opacity: 1; }
.exit-popup-card {
  background: var(--bg);
  max-width: 540px;
  width: 100%;
  padding: clamp(2rem, 5vw, 3rem);
  position: relative;
  text-align: center;
  border-top: 4px solid var(--gold);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
  transform: scale(0.94);
  transition: transform 0.4s var(--ease);
}
.exit-popup.in .exit-popup-card { transform: scale(1); }
.exit-popup-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-mute);
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: all 0.2s var(--ease);
}
.exit-popup-close:hover { color: var(--ink); border-color: var(--ink); }
.exit-popup-card h3 { color: var(--ink); }
.exit-popup-card p { color: var(--ink-soft); margin: 0 auto; }
.exit-popup-dismiss {
  display: block;
  margin: 1rem auto 0;
  font-size: 0.78rem;
  color: var(--ink-mute);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: 0;
}
.exit-popup-dismiss:hover { color: var(--ink); }

/* ============================================================
   TRUST STRIP (homepage reviews)
   ============================================================ */
.trust-strip {
  background: var(--bg);
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  font-family: var(--sans);
  flex: 1 1 auto;
  min-width: 160px;
}
.trust-item .stars { color: var(--gold); letter-spacing: 0.22em; font-size: 1.05rem; }
.trust-item .num { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--ink); }
.trust-item .label { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }
.trust-divider { width: 1px; height: 64px; background: var(--line); flex: 0 0 auto; }
@media (max-width: 720px) { .trust-divider { display: none; } }
@media (max-width: 720px) { .trust-divider { display: none; } }

/* ============================================================
   PROPERTY CARDS (sold listings & search results)
   ============================================================ */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 960px) { .property-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .property-grid { grid-template-columns: 1fr; } }
.property {
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 1px 2px rgba(15, 32, 48, 0.04);
}
.property:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -16px rgba(10, 37, 64, 0.18); }
.property .photo {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #0a2540, #1f6f9c 60%, #5ba6c9);
  position: relative;
  overflow: hidden;
}
.property .photo .badge {
  position: absolute; top: 1rem; left: 1rem;
  padding: 0.4rem 0.95rem;
  background: var(--gold);
  color: var(--cream);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 2;
}
.property .photo .badge.dark { background: var(--bg-deep); }
.property .photo .ratio {
  position: absolute; bottom: 1rem; right: 1rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 2;
}
.property .body { padding: 1.5rem 1.5rem 1.75rem; }
.property .price { font-family: var(--serif); font-size: 1.65rem; line-height: 1; margin: 0 0 0.5rem; color: var(--ink); }
.property .addr { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1rem; }
.property .meta {
  display: flex; gap: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.property .meta strong { color: var(--ink); font-weight: 500; }
.hero-content {
  position: relative;
  padding: 8rem 0 6rem;
  width: 100%;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(246, 241, 232, 0.25);
}
.hero-meta .item .kicker { color: rgba(246,241,232,0.6); display: block; margin-bottom: 0.4rem; }
.hero-meta .item .val { font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.hero h1 { color: var(--cream); max-width: 14ch; margin-bottom: 1.5rem; }
.hero p.lead { color: rgba(246,241,232,0.85); max-width: 48ch; margin-bottom: 2.25rem; }
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-compact { min-height: 70vh; }

/* ---------- GRID HELPERS ---------- */
.cols { display: grid; gap: var(--space-4); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ---------- AREA / COMMUNITY CARDS ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}
.area-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-deep);
  color: var(--cream);
  cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.08);
}
.area-card:hover { transform: translateY(-6px); box-shadow: 0 28px 56px -20px rgba(10, 37, 64, 0.30); }
.area-card .img {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0a2540 0%, #133e63 50%, #2a87b5 100%);
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease);
}
.area-card:hover .img { transform: scale(1.06); }
.area-card[data-img] .img { background-image: var(--card-img); }
.area-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.area-card .body {
  position: absolute;
  z-index: 2;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.75rem;
  color: var(--cream);
}
.area-card .body .kicker { color: var(--gold-light); display: block; margin-bottom: 0.4rem; }
.area-card .body h3 {
  color: var(--cream);
  font-size: 1.85rem;
  margin: 0 0 0.5rem;
}
.area-card .body p {
  color: rgba(246,241,232,0.78);
  font-size: 0.9rem;
  margin: 0;
}
.area-card.large { grid-column: span 7; aspect-ratio: 16/11; }
.area-card.small { grid-column: span 5; aspect-ratio: auto; height: auto; align-self: stretch; }
.area-card.third { grid-column: span 4; aspect-ratio: 3/4; }
@media (max-width: 880px) {
  .area-card.large, .area-card.small, .area-card.third {
    grid-column: span 12; aspect-ratio: 4/3; height: auto;
  }
}

/* ---------- INTRO / PORTRAIT ---------- */
.portrait {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #0a2540, #1f6f9c 60%, #5ba6c9);
  overflow: hidden;
}
.portrait[data-img] {
  background-image: var(--portrait-img);
  background-size: cover;
  background-position: center 30%;
}
.portrait::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.1), rgba(0,0,0,0.35));
}
.portrait-frame { padding: 2.25rem; background: var(--bg-alt); }
.portrait-quote {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  background: var(--bg-deep);
  color: var(--cream);
  padding: 2rem 2.25rem;
  max-width: 320px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.45;
  z-index: 3;
}
.portrait-quote::before {
  content: "“";
  font-size: 4rem;
  line-height: 0.3;
  display: block;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
@media (max-width: 880px) {
  .portrait-quote { position: static; margin-top: 1.5rem; max-width: 100%; }
}

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  margin-top: 1.5rem;
  color: var(--ink);
}

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats .stat {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stats .stat:last-child { border-right: 0; }
.stats .stat .num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.stats .stat .num small { font-size: 0.55em; vertical-align: top; color: var(--gold); }
.stats .stat .label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.section-dark .stats { border-color: var(--line-light); }
.section-dark .stats .stat { border-color: var(--line-light); }
.section-dark .stats .stat .num { color: var(--cream); }
.section-dark .stats .stat .label { color: rgba(246,241,232,0.6); }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(2) { border-right: 0; }
  .stats .stat:nth-child(1), .stats .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .section-dark .stats .stat:nth-child(1), .section-dark .stats .stat:nth-child(2) { border-bottom: 1px solid var(--line-light); }
}

/* ---------- PROCESS / STEPS ---------- */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}
.step h3 { margin: 0 0 0.6rem; font-size: 1.55rem; }
.step p { margin: 0; max-width: 60ch; }
.section-dark .step { border-color: var(--line-light); }

/* ---------- TESTIMONIAL ---------- */
.testimonial {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.45;
  margin: 0 0 2rem;
  font-style: italic;
}
.testimonial blockquote::before { content: "“"; color: var(--gold); margin-right: 0.15em; }
.testimonial blockquote::after { content: "”"; color: var(--gold); margin-left: 0.05em; }
.testimonial cite { font-style: normal; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-mute); }

.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 880px) { .t-grid { grid-template-columns: 1fr; } }
.t-card {
  padding: 2.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
}
.t-card .stars { color: var(--gold); letter-spacing: 0.15em; margin-bottom: 1rem; }
.t-card blockquote {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
  font-style: italic;
}
.t-card cite {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
}

/* ---------- FEATURE GRID (icons) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
@media (max-width: 880px) { .features { grid-template-columns: 1fr; } }
.feature h3 { font-size: 1.45rem; margin: 0 0 0.75rem; }
.feature .num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
  display: block;
}
.feature p { margin: 0; }

/* ---------- LISTING CARD ---------- */
.listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 960px) { .listings { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .listings { grid-template-columns: 1fr; } }
.listing { background: var(--bg); border: 1px solid var(--line); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); box-shadow: 0 1px 2px rgba(15,32,48,0.04); }
.listing:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -16px rgba(10, 37, 64, 0.18); }
.listing .photo {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #0a2540, #5ba6c9);
  position: relative;
}
.listing .photo .badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--bg);
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.listing .body { padding: 1.5rem 1.5rem 1.75rem; }
.listing .price { font-family: var(--serif); font-size: 1.6rem; line-height: 1; margin-bottom: 0.5rem; }
.listing .addr { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1rem; }
.listing .meta { display: flex; gap: 1.25rem; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- CTA STRIP ---------- */
.cta-strip {
  background: var(--bg-deep);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 0%, rgba(91, 166, 201, 0.30), transparent 60%),
    radial-gradient(circle at 75% 100%, rgba(31, 111, 156, 0.20), transparent 60%);
  pointer-events: none;
}
.cta-strip h2 { color: var(--cream); max-width: 18ch; margin: 0 auto 1.25rem; }
.cta-strip p { color: rgba(246,241,232,0.78); max-width: 52ch; margin: 0 auto 2.25rem; }
.cta-strip .actions { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ---------- FORM ---------- */
.form-block { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  font-size: 1rem;
  color: var(--ink);
  font-family: var(--sans);
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.form-disclaimer { font-size: 0.78rem; color: var(--ink-mute); margin-top: 1rem; }

.section-dark .field input, .section-dark .field select, .section-dark .field textarea {
  color: var(--cream);
  border-color: var(--line-light);
}
.section-dark .field label { color: rgba(246,241,232,0.6); }

/* Override: forms placed inside a white card (.gate, .form-block on white bg)
   must use dark text even when nested in .section-dark — and look like real
   input boxes (with borders, not just bottom underlines) for clarity. */
.section-dark .gate .field label,
.section-dark .gate .field input,
.section-dark .gate .field select,
.section-dark .gate .field textarea,
.section-dark .gate .form-disclaimer,
.section-dark .gate p,
.section-dark .gate h3 {
  color: var(--ink) !important;
}
.section-dark .gate .form-block { gap: 1.1rem !important; }
.section-dark .gate .field { gap: 0.4rem !important; }
.section-dark .gate .field label {
  color: #44546a !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.18em !important;
}
.section-dark .gate .form-disclaimer {
  color: var(--ink-mute) !important;
  margin-top: 1rem !important;
}
.section-dark .gate .field input,
.section-dark .gate .field select,
.section-dark .gate .field textarea {
  background: #fafbfd !important;
  border: 1px solid #e0e4ec !important;
  border-radius: 2px !important;
  padding: 0.85rem 1rem !important;
  width: 100%;
  box-sizing: border-box;
  color: var(--ink) !important;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease) !important;
}
.section-dark .gate .field input:focus,
.section-dark .gate .field select:focus,
.section-dark .gate .field textarea:focus {
  border-color: var(--gold) !important;
  background: #ffffff !important;
  outline: none;
}
.section-dark .gate .field input::placeholder,
.section-dark .gate .field textarea::placeholder { color: var(--ink-mute) !important; }
.section-dark .gate .field-row { gap: 0.85rem !important; }
.section-dark .gate hr { border-color: var(--line) !important; margin: 1.25rem 0 !important; }

/* ---------- DOWNLOAD CARD ---------- */
.download {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
}
@media (max-width: 720px) { .download { grid-template-columns: 1fr; } }
.download .cover {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #0a2540 0%, #133e63 50%, #2a87b5 100%);
  color: var(--cream);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.5rem;
  font-family: var(--serif);
  position: relative;
  box-shadow: 0 20px 50px -20px rgba(10, 37, 64, 0.45);
}
.download .cover .top { font-size: 0.65rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-light); font-family: var(--sans); }
.download .cover .title { font-size: 1.6rem; line-height: 1.15; }
.download .cover .by { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(246,241,232,0.7); font-family: var(--sans); }
.download h3 { font-size: 2rem; margin: 0 0 0.75rem; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-deep);
  color: rgba(246,241,232,0.7);
  padding: var(--space-6) 0 var(--space-4);
  font-size: 0.9rem;
}
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}
@media (max-width: 880px) { .site-footer .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer .footer-top { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer .brand { color: var(--cream); margin-bottom: 1.25rem; }
.site-footer .brand small { color: rgba(246,241,232,0.55); }
.site-footer h5 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 500;
  margin: 0 0 1.25rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.site-footer a { color: rgba(246,241,232,0.7); }
.site-footer a:hover { color: var(--gold-light); }
.footer-contact p { color: rgba(246,241,232,0.7); margin: 0 0 0.4rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  font-size: 0.78rem;
  color: rgba(246,241,232,0.55);
}
.compliance {
  font-size: 0.75rem;
  color: rgba(246,241,232,0.55);
  margin-top: 1.25rem;
  line-height: 1.7;
}
.compliance .eho {
  display: inline-block;
  width: 22px; height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  text-align: center;
  line-height: 19px;
  margin-right: 0.5rem;
  vertical-align: middle;
  font-size: 0.7rem;
  font-family: var(--serif);
}

/* ---------- ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.divider {
  width: 60px; height: 1px; background: var(--gold);
  margin: 1.5rem 0;
}
.divider.center { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.no-bullets { list-style: none; padding: 0; margin: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: 0.75rem; }
.checks li {
  padding-left: 2rem;
  position: relative;
  color: var(--ink-soft);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 14px; height: 1px;
  background: var(--gold);
}
.section-dark .checks li { color: rgba(246,241,232,0.78); }
