/* ==========================================================================
   NAVA9 INVESTMENTS — Rajneesh Bhandari
   Home Loans · Real Estate · Wealth
   "Guiding you home. Building your future."

   Brand: Burgundy #7A1F2B · Gold #C9A45A · Ivory #FAF8F3 · Charcoal #2D2D2D
   Display type: Canela Deck (licensed) → Cormorant Garamond fallback
   Body type:    Montserrat
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Burgundy — primary */
  --wine-50:  #FBF3F4;
  --wine-100: #F5E1E4;
  --wine-200: #E7BFC5;
  --wine-300: #CE8D96;
  --wine-400: #A5505D;
  --wine-500: #7A1F2B;  /* brand burgundy */
  --wine-600: #661A24;
  --wine-700: #4E141C;
  --wine-800: #340D12;

  /* Gold — secondary */
  --gold-50:  #FBF7EE;
  --gold-100: #F5EBD6;
  --gold-200: #EADAB0;
  --gold-300: #DCC488;
  --gold-400: #C9A45A;  /* brand gold */
  --gold-500: #B78E43;
  --gold-600: #967134;
  --gold-700: #6F5326;

  /* Neutrals — ivory to charcoal */
  --ivory:     #FAF8F3;
  --ivory-2:   #F3EFE6;
  --ivory-3:   #E8E2D5;
  --char-950:  #171717;
  --char-900:  #1F1F1F;
  --char-800:  #2D2D2D;  /* brand charcoal */
  --char-700:  #3D3D3D;
  --char-600:  #545454;
  --char-500:  #6E6E6E;
  --char-400:  #8C8C8C;
  --char-300:  #B4B0A8;
  --char-200:  #D6D1C6;
  --char-100:  #E6E2D9;
  --white:     #FFFFFF;

  /* Support */
  --green-500: #2E7D5B;
  --green-50:  #E9F4EF;

  /* Semantic — light */
  --bg: var(--ivory);
  --bg-alt: var(--ivory-2);
  --bg-inset: var(--ivory-3);
  --surface: var(--white);
  --surface-2: var(--ivory);
  --text: var(--char-800);
  --text-strong: var(--char-950);
  --text-muted: var(--char-600);
  --text-faint: var(--char-500);
  --border: var(--char-200);
  --border-soft: var(--char-100);
  --accent: var(--wine-500);
  --accent-text: var(--wine-500);
  --accent-soft: var(--wine-50);
  --gold: var(--gold-400);
  --gold-text: var(--gold-600);
  --shadow-color: 350 22% 14%;

  /* Type */
  --font-display: "Canela Deck", "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --step--2: clamp(0.70rem, 0.68rem + 0.10vw, 0.76rem);
  --step--1: clamp(0.81rem, 0.78rem + 0.15vw, 0.89rem);
  --step-0:  clamp(0.96rem, 0.93rem + 0.18vw, 1.05rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.36vw, 1.36rem);
  --step-2:  clamp(1.45rem, 1.28rem + 0.80vw, 1.95rem);
  --step-3:  clamp(1.85rem, 1.52rem + 1.50vw, 2.75rem);
  --step-4:  clamp(2.30rem, 1.75rem + 2.60vw, 3.90rem);
  --step-5:  clamp(2.80rem, 1.95rem + 4.00vw, 5.00rem);

  /* Space */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  /* Shape — squarer and more formal than the previous theme */
  --r-sm: 4px;  --r-md: 6px;  --r-lg: 10px;  --r-xl: 14px;  --r-pill: 999px;

  --shadow-sm: 0 1px 2px hsl(var(--shadow-color) / 0.06),
               0 2px 6px hsl(var(--shadow-color) / 0.05);
  --shadow-md: 0 2px 4px hsl(var(--shadow-color) / 0.05),
               0 10px 26px hsl(var(--shadow-color) / 0.09);
  --shadow-lg: 0 4px 8px hsl(var(--shadow-color) / 0.06),
               0 26px 60px hsl(var(--shadow-color) / 0.16);
  --shadow-brand: 0 10px 26px hsl(350 60% 20% / 0.28);

  --container: 1180px;
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: var(--char-950);
  --bg-alt: var(--char-900);
  --bg-inset: var(--char-800);
  --surface: #202020;
  --surface-2: var(--char-800);
  --text: #F2EFE9;
  --text-strong: #FFFFFF;
  --text-muted: #B8B3AA;
  --text-faint: #918C84;
  --border: #3A3A3A;
  --border-soft: #2C2C2C;
  --accent: var(--wine-300);
  --accent-text: var(--wine-300);
  --accent-soft: rgba(122, 31, 43, 0.28);
  --gold-text: var(--gold-300);
  --shadow-color: 0 0% 0%;
  --shadow-md: 0 2px 4px hsl(var(--shadow-color) / 0.4),
               0 10px 26px hsl(var(--shadow-color) / 0.5);
  --shadow-lg: 0 4px 8px hsl(var(--shadow-color) / 0.4),
               0 26px 60px hsl(var(--shadow-color) / 0.6);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--text-strong);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--text-strong);
  text-wrap: balance;
}
h3 { font-size: var(--step-1); }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--wine-500);
  outline-offset: 3px;
  border-radius: 2px;
}
[data-theme="dark"] :focus-visible { outline-color: var(--gold-400); }

::selection { background: var(--wine-500); color: var(--ivory); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--wine-500); color: var(--ivory);
  padding: 12px 20px; border-radius: 0 0 var(--r-md) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}
.container--wide { max-width: 1380px; }
.container--narrow { max-width: 780px; }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--bg-alt); }
.section--ink {
  background: var(--char-950);
  --text: #F2EFE9;
  --text-strong: #FFFFFF;
  --text-muted: #B8B3AA;
  --text-faint: #918C84;
  --border: #3A3A3A;
  --surface: #202020;
  --accent-text: var(--gold-300);
  --gold-text: var(--gold-300);
  color: var(--text);
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr)); }

.stack > * + * { margin-top: var(--sp-4); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow::before {
  content: ""; width: 30px; height: 1px;
  background: var(--gold-400);
}
.eyebrow--center { justify-content: center; }

.lede { font-size: var(--step-1); color: var(--text-muted); line-height: 1.62; font-weight: 400; }
.muted { color: var(--text-muted); }
.small { font-size: var(--step--1); }
.tiny { font-size: var(--step--2); line-height: 1.6; }
.accent { color: var(--accent-text); }
.gold { color: var(--gold-text); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: var(--sp-4); }
.section-head p { margin-top: var(--sp-4); }

/* Gold hairline used as a section flourish */
.rule-gold {
  width: 64px; height: 1px; border: 0; margin: var(--sp-5) 0;
  background: linear-gradient(90deg, var(--gold-400), transparent);
}
.rule-gold--center { margin-inline: auto;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent); }

/* --------------------------------------------------------------------------
   5. Buttons & pills
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--wine-500);
  --btn-fg: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { box-shadow: var(--shadow-brand); }
.btn--primary:hover { --btn-bg: var(--wine-600); }

.btn--gold { --btn-bg: var(--gold-400); --btn-fg: var(--char-950); }
.btn--gold:hover { --btn-bg: var(--gold-300); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--wine-500); color: var(--accent-text); }
[data-theme="dark"] .btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-300); }

.btn--ink { --btn-bg: var(--char-950); --btn-fg: var(--ivory); }
[data-theme="dark"] .btn--ink { --btn-bg: var(--ivory); --btn-fg: var(--char-950); }

.btn--white { --btn-bg: var(--ivory); --btn-fg: var(--wine-500); }

.btn--lg { padding: 1.1rem 2.1rem; font-size: var(--step--1); }
.btn--sm { padding: 0.6rem 1.15rem; font-size: var(--step--2); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn-row--center { justify-content: center; }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.42rem 0.9rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: var(--step--2); font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  border: 1px solid transparent;
}
.pill--outline { background: transparent; border-color: var(--gold-300); color: var(--gold-text); }
.pill--dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(201, 164, 90, .22);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: var(--step--2); color: var(--accent-text);
  letter-spacing: 0.1em; text-transform: uppercase;
}
[data-theme="dark"] .link-arrow { color: var(--gold-300); }
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Brand lockup
   -------------------------------------------------------------------------- */
.brand { display: flex; align-items: center; gap: 0.85rem; margin-right: auto; }

.brand__mark {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--wine-500), var(--wine-700));
  font-family: var(--font-display);
  font-size: 1.32rem; font-weight: 600; line-height: 1;
  color: var(--ivory);
  letter-spacing: -0.04em;
  box-shadow: 0 3px 10px hsl(350 60% 18% / 0.30);
}
.brand__mark i { font-style: normal; color: var(--gold-400); }

.brand__text {
  display: flex; flex-direction: column; gap: 2px;
  padding-left: 0.85rem;
  border-left: 1px solid var(--border);
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.22rem; font-weight: 600; line-height: 1;
  letter-spacing: 0.18em;
  color: var(--wine-500);
}
[data-theme="dark"] .brand__name { color: var(--ivory); }
.brand__name i { font-style: normal; color: var(--gold-500); }
.brand__role {
  font-size: 0.56rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--text-faint);
}

.brand--lg .brand__mark { width: 58px; height: 58px; font-size: 1.7rem; }
.brand--lg .brand__name { font-size: 1.6rem; }
.brand--lg .brand__role { font-size: 0.62rem; }

.brand-services {
  font-size: var(--step--2); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint);
}
.brand-tagline {
  font-family: var(--font-display);
  font-size: var(--step-1); font-style: italic;
  color: var(--gold-text); letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   7. Header / nav
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.header.is-stuck {
  border-bottom-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: var(--sp-5); }

.nav { display: flex; align-items: center; gap: 0.1rem; }
.nav a {
  position: relative;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: var(--step--2); font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--accent-text); }
.nav a[aria-current="page"] { color: var(--text-strong); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.1rem;
  height: 1px; background: var(--gold-400);
}

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }

.icon-btn {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: transparent; cursor: pointer;
  color: var(--text-muted);
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--accent-text); border-color: var(--gold-300); }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }

.nav-toggle { display: none; }

@media (max-width: 1280px) {
  .nav-toggle { display: grid; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--sp-4) clamp(1.15rem, 4vw, 2.5rem) var(--sp-6);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s ease, transform .28s var(--ease), visibility .22s;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav a { padding: 0.95rem 0.3rem; font-size: var(--step--1); border-radius: 0; }
  .nav a + a { border-top: 1px solid var(--border-soft); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn {
    margin-top: var(--sp-5); border-top: 0;
    border-radius: var(--r-sm); padding: 1rem 1.6rem; justify-content: center;
  }
}
@media (max-width: 430px) {
  .brand__role { display: none; }
  .brand__name { font-size: 1.05rem; }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(0.75rem, 1.4vw, 1.25rem) clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; z-index: -1;
  filter: blur(100px); pointer-events: none;
}
.hero::before {
  width: 640px; height: 640px; top: -300px; right: -200px;
  background: radial-gradient(circle, var(--gold-200), transparent 68%);
  opacity: 0.55;
}
.hero::after {
  width: 540px; height: 540px; bottom: -320px; left: -240px;
  background: radial-gradient(circle, var(--wine-200), transparent 68%);
  opacity: 0.40;
}
[data-theme="dark"] .hero::before { opacity: 0.16; }
[data-theme="dark"] .hero::after { opacity: 0.22; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: stretch;        /* both columns share the row height; the card below
                                  grows to fill, so the two columns always end on the
                                  same line instead of relying on tuned pixel values */
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .cred-card { flex: 0 0 auto; }
  .cred-card__ehl { margin-top: var(--sp-4); }
}

.hero h1 { margin-top: var(--sp-4); }
.hero h1 em { font-style: italic; color: var(--wine-500); }
[data-theme="dark"] .hero h1 em { color: var(--gold-300); }
.hero__lede { margin-top: var(--sp-5); max-width: 52ch; font-size: var(--step-0); }
.hero .btn-row { margin-top: var(--sp-6); }

.hero__trust {
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  display: grid; gap: var(--sp-4) var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr));
}
.hero__trust-item { display: flex; flex-direction: column; }
.hero__trust-item b {
  font-family: var(--font-display);
  font-size: var(--step-0); font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-strong);
}
.hero__trust-item span {
  font-size: var(--step--2); color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
}

/* Portrait card */
.portrait { position: relative; justify-self: center; width: min(100%, 440px); }
.portrait__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--wine-500), var(--wine-700));
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
  outline: 1px solid var(--gold-400);
  outline-offset: 8px;
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }

.portrait__badge {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -24px; z-index: 2;
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.7rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.portrait__badge b { font-size: var(--step--1); font-weight: 700; }
.portrait__badge span { display: block; font-size: var(--step--2); color: var(--text-muted); }
.portrait__badge .divider { width: 1px; height: 28px; background: var(--gold-300); }

.portrait__chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  font-size: var(--step--2); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.portrait__chip--tl { top: 8%; left: -9%; }
.portrait__chip--br { bottom: 22%; right: -7%; }
@media (max-width: 480px) {
  .portrait__chip--tl { left: -2%; }
  .portrait__chip--br { right: -2%; }
}
.portrait__chip svg { width: 15px; height: 15px; color: var(--wine-500); }
[data-theme="dark"] .portrait__chip svg { color: var(--gold-400); }

/* --------------------------------------------------------------------------
   9. Affiliation strip
   -------------------------------------------------------------------------- */
.affil {
  border-block: 1px solid var(--border-soft);
  background: var(--bg-alt);
  padding-block: var(--sp-5);
}
.affil__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: var(--sp-4) clamp(1.5rem, 5vw, 3.25rem);
}
.affil__label {
  font-size: var(--step--2); font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-faint);
}
.affil__logo {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: 0.06em; font-size: 1.1rem;
  color: var(--text-strong);
}
.affil__logo span { color: var(--gold-500); }

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-300);
}
.card__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--wine-500);
  margin-bottom: var(--sp-4);
}
[data-theme="dark"] .card__icon { color: var(--gold-300); }
.card__icon svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--text-muted); font-size: var(--step--1); }
.card__foot { margin-top: var(--sp-4); }

/* Feature card (big two-up) */
.feature {
  position: relative; overflow: hidden;
  padding: clamp(1.75rem, 3.4vw, 2.75rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--wine-500), var(--wine-300));
}
.feature--alt::after { background: linear-gradient(90deg, var(--gold-500), var(--gold-200)); }
.feature__num {
  font-size: var(--step--2); font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-faint);
}
.feature h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-2); letter-spacing: -0.005em;
  margin-block: var(--sp-3) var(--sp-4);
}
.feature ul { list-style: none; padding: 0; margin-top: var(--sp-5); display: grid; gap: 0.7rem; }
.feature li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  font-size: var(--step--1); color: var(--text-muted);
}
.feature li::before {
  content: ""; flex: none; width: 17px; height: 17px; margin-top: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A45A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* Stat */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden;
}
.stat { background: var(--surface); padding: clamp(1.25rem, 2.6vw, 1.9rem); }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3); font-weight: 600;
  letter-spacing: 0.02em; line-height: 1;
  color: var(--wine-500);
}
[data-theme="dark"] .stat b { color: var(--gold-300); }
.stat span { display: block; margin-top: var(--sp-2); font-size: var(--step--1); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   11. Program grid
   -------------------------------------------------------------------------- */
.program {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: clamp(1.3rem, 2.4vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s var(--ease);
}
.program:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.program__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.program__tag {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-text); background: var(--gold-50);
  padding: 0.28rem 0.65rem; border-radius: var(--r-sm);
}
[data-theme="dark"] .program__tag { background: rgba(201,164,90,.16); }
.program h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }
.program p { font-size: var(--step--1); color: var(--text-muted); }
.program dl {
  margin: 0; padding-top: var(--sp-3); border-top: 1px solid var(--border-soft);
  display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem;
  font-size: var(--step--2);
}
.program dt { color: var(--text-faint); font-weight: 600; }
.program dd { margin: 0; font-weight: 700; text-align: right; }

/* --------------------------------------------------------------------------
   12. Process timeline
   -------------------------------------------------------------------------- */
.steps {
  counter-reset: step; display: grid; gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.step {
  position: relative; counter-increment: step;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  border-top: 1px solid var(--border);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -0.8rem; left: var(--sp-4);
  padding-inline: 0.55rem;
  background: var(--bg-alt);
  font-family: var(--font-display);
  font-size: var(--step-0); font-weight: 600; letter-spacing: 0.04em;
  color: var(--gold-500);
}
.section:not(.section--alt) .step::before { background: var(--bg); }
.section--ink .step::before { background: var(--char-950); }
.step h3 { font-size: var(--step-0); margin-bottom: var(--sp-2); }
.step p { font-size: var(--step--1); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   13. Calculator
   -------------------------------------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

.calc__panel {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.calc__result {
  min-width: 0;
  position: sticky; top: calc(var(--header-h) + 1.25rem);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--wine-600), var(--wine-800) 72%);
  color: var(--ivory);
  border: 1px solid var(--wine-700);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.calc__result::before {
  content: ""; position: absolute; width: 340px; height: 340px;
  top: -170px; right: -130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,90,.45), transparent 65%);
  filter: blur(40px);
}
.calc__result > * { position: relative; }
.calc__big {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 600;
  letter-spacing: -0.01em; line-height: 1; margin-block: 0.4rem 0.2rem;
  font-variant-numeric: tabular-nums;
  color: var(--gold-300);
}
.calc__sub {
  color: rgba(250, 248, 243, .72); font-size: var(--step--2);
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
}

.breakdown { margin-top: var(--sp-6); display: grid; gap: 0.1rem; }
.breakdown__row {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 0.7rem 0; border-bottom: 1px solid rgba(250,248,243,.13);
  font-size: var(--step--1);
}
.breakdown__row:last-child { border-bottom: 0; }
.breakdown__swatch { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.breakdown__label { color: rgba(250,248,243,.78); margin-right: auto; }
.breakdown__val { font-weight: 700; font-variant-numeric: tabular-nums; }

.meter {
  display: flex; height: 8px; border-radius: 2px;
  overflow: hidden; margin-top: var(--sp-5); background: rgba(250,248,243,.14);
}
.meter span { height: 100%; transition: width .45s var(--ease); }

.field { display: block; margin-bottom: var(--sp-5); }
.field:last-child { margin-bottom: 0; }
.field__label {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3);
  margin-bottom: 0.5rem;
}
.field__label span:first-child {
  font-size: var(--step--2); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.field__hint { font-size: var(--step--2); color: var(--text-faint); }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap__prefix, .input-wrap__suffix {
  position: absolute; font-size: var(--step--1); font-weight: 600;
  color: var(--text-faint); pointer-events: none;
}
.input-wrap__prefix { left: 0.95rem; }
.input-wrap__suffix { right: 0.95rem; }

.input, .select, .textarea {
  width: 100%;
  font-size: max(16px, var(--step-0));   /* below 16px iOS zooms on focus */
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: border-color .2s, box-shadow .2s;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--wine-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wine-500) 15%, transparent);
}
[data-theme="dark"] .input:focus, [data-theme="dark"] .select:focus, [data-theme="dark"] .textarea:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(201,164,90,.20);
}
.input-wrap .input { padding-left: 2.1rem; }
.input-wrap--suffix .input { padding-right: 2.6rem; }
.textarea { min-height: 130px; resize: vertical; line-height: 1.65; }
.select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E6E' stroke-width='2.2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 16px;
  padding-right: 2.5rem;
}

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; margin-top: 0.95rem;
  background: var(--bg-inset); border-radius: var(--r-pill); cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--wine-500); border: 3px solid var(--bg);
  box-shadow: 0 2px 6px hsl(350 60% 18% / .45); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--bg);
  background: var(--wine-500); box-shadow: 0 2px 6px hsl(350 60% 18% / .45); cursor: grab;
}

.seg { display: flex; gap: 0.25rem; padding: 0.25rem; background: var(--bg-inset); border-radius: var(--r-sm); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  flex: 1; text-align: center; padding: 0.5rem 0.7rem; border-radius: var(--r-sm);
  font-size: var(--step--2); font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s;
}
.seg input:checked + label {
  background: var(--wine-500); color: var(--ivory); box-shadow: var(--shadow-sm);
}
.seg input:focus-visible + label { outline: 2px solid var(--gold-400); outline-offset: 2px; }

.calc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 340px) {
  .seg { flex-direction: column; }
  .calc__panel, .calc__result { padding: 1.1rem; }
}
@media (max-width: 520px) { .calc-grid-2 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   14. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 0.6rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq details[open] { border-color: var(--gold-300); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: 1.15rem clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 600; font-size: var(--step-0);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; margin-left: auto; width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--gold-500);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__body {
  padding: 0 clamp(1.1rem, 2.4vw, 1.6rem) 1.35rem;
  color: var(--text-muted); font-size: var(--step--1); max-width: 76ch;
}

/* --------------------------------------------------------------------------
   15. Testimonials
   -------------------------------------------------------------------------- */
.quote {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: clamp(1.4rem, 2.8vw, 2rem);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.quote__stars { display: flex; gap: 2px; color: var(--gold-400); }
.quote__stars svg { width: 15px; height: 15px; fill: currentColor; }
.quote blockquote {
  font-family: var(--font-display);
  font-size: var(--step-1); line-height: 1.5; margin: 0; color: var(--text-strong);
}
.quote figcaption { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.quote__avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--wine-500);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
}
[data-theme="dark"] .quote__avatar { color: var(--gold-300); }
.quote__who b { display: block; font-size: var(--step--1); font-weight: 700; }
.quote__who span { font-size: var(--step--2); color: var(--text-faint); }

/* --------------------------------------------------------------------------
   16. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.75rem);
  background: linear-gradient(135deg, var(--wine-700), var(--wine-500) 55%, var(--wine-600));
  color: var(--ivory);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--wine-700);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(620px 320px at 88% 0%, rgba(201,164,90,.30), transparent 70%),
    radial-gradient(520px 280px at 0% 100%, rgba(0,0,0,.22), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: var(--step-3); color: var(--ivory); }
.cta-band p { margin-top: var(--sp-4); font-size: var(--step-1); max-width: 56ch; color: rgba(250,248,243,.88); }
.cta-band .btn-row { margin-top: var(--sp-6); }

/* --------------------------------------------------------------------------
   17. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { display: grid; gap: 0.2rem; margin-top: var(--sp-6); }
.contact-row {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: 0.95rem 0; border-bottom: 1px solid var(--border-soft);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row__icon {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-sm); background: var(--accent-soft); color: var(--wine-500);
}
[data-theme="dark"] .contact-row__icon { color: var(--gold-300); }
.contact-row__icon svg { width: 19px; height: 19px; }
.contact-row__body { min-width: 0; }
.contact-row__body span {
  display: block; font-size: var(--step--2); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint);
}
.contact-row__body a, .contact-row__body b {
  font-size: var(--step-0); font-weight: 600; overflow-wrap: anywhere;
}
.contact-row__body a:hover { color: var(--accent-text); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
}
.form-note { margin-top: var(--sp-4); font-size: var(--step--2); color: var(--text-faint); line-height: 1.6; }
.form-status {
  margin-top: var(--sp-4); padding: 0.85rem 1.1rem; border-radius: var(--r-sm);
  font-size: var(--step--1); font-weight: 600; display: none;
}
.form-status.is-ok { display: block; background: var(--green-50); color: #1C6248; }
.form-status.is-err { display: block; background: #FBECEC; color: #8E2020; }
[data-theme="dark"] .form-status.is-ok { background: rgba(46,125,91,.18); color: #7FDCB4; }
[data-theme="dark"] .form-status.is-err { background: rgba(190,60,60,.18); color: #FFA0A0; }

.checkbox {
  display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--step--2);
  color: var(--text-muted); line-height: 1.6;
}
.checkbox input { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--wine-500); }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--char-950); color: #B8B3AA;
  padding-block: clamp(3rem, 6vw, 4.5rem) var(--sp-6);
  font-size: var(--step--1);
  border-top: 3px solid var(--gold-400);
}
.footer a { color: #E3DFD7; }
.footer a:hover { color: var(--gold-300); }
.footer__grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold-300); margin-bottom: var(--sp-4); font-weight: 600;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer .brand__name { color: var(--ivory); }
.footer .brand__name i { color: var(--gold-400); }
.footer .brand__text { border-left-color: #3A3A3A; }
.footer .brand__role { color: #918C84; }

.footer__badges { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-5); }
.badge-ehl, .badge-r {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #6E6E6E; border-radius: var(--r-sm); color: #E3DFD7;
}
.badge-ehl svg { width: 25px; height: 25px; }
.badge-r { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1; padding-bottom: 2px; }

.footer__legal {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: var(--sp-5);
  border-top: 1px solid #303030;
  display: grid; gap: var(--sp-4);
}
.footer__legal p { font-size: var(--step--2); line-height: 1.7; color: #918C84; max-width: 105ch; }
.footer__legal strong { color: #D8D3CA; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: space-between;
  padding-top: var(--sp-4); border-top: 1px solid #303030;
  font-size: var(--step--2); color: #918C84;
}

/* --------------------------------------------------------------------------
   19. Utilities & motion
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal[data-delay="1"].is-in { transition-delay: .08s; }
.reveal[data-delay="2"].is-in { transition-delay: .16s; }
.reveal[data-delay="3"].is-in { transition-delay: .24s; }
.reveal[data-delay="4"].is-in { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: 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;
}

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

/* Page hero (interior pages) */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero::before {
  content: ""; position: absolute; width: 540px; height: 540px;
  top: -330px; right: -150px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-200), transparent 66%);
  filter: blur(85px); opacity: .55;
}
[data-theme="dark"] .page-hero::before { opacity: .14; }
.page-hero > * { position: relative; }
.page-hero h1 { font-size: var(--step-4); margin-top: var(--sp-3); }
.page-hero p { margin-top: var(--sp-4); max-width: 62ch; }

.breadcrumb {
  font-size: var(--step--2); color: var(--text-faint); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.breadcrumb a:hover { color: var(--accent-text); }

/* Mobile sticky call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px hsl(var(--shadow-color) / .14);
}
.callbar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.9rem 0.4rem; background: var(--surface);
  font-size: var(--step--2); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.callbar a.is-primary { background: var(--wine-500); color: var(--ivory); }
.callbar svg { width: 16px; height: 16px; }
@media (max-width: 700px) {
  .callbar { display: flex; }
  body { padding-bottom: 56px; }
}

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 560px; }
table.data th, table.data td { padding: 0.9rem 1.1rem; text-align: left; }
table.data thead th {
  background: var(--bg-alt); font-size: var(--step--2); text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-faint); font-weight: 700;
  border-bottom: 1px solid var(--border);
}
table.data tbody tr + tr td { border-top: 1px solid var(--border-soft); }
table.data tbody tr:hover td { background: var(--bg-alt); }
table.data td:first-child { font-weight: 700; color: var(--text-strong); }

/* Checklist */
.checklist { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.checklist li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  font-size: var(--step--1); color: var(--text-muted);
}
.checklist li::before {
  content: ""; flex: none; width: 17px; height: 17px; margin-top: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A45A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* Nav CTA: only surfaces inside the mobile drawer */
.nav__cta { display: none; }
@media (max-width: 1280px) { .nav__cta { display: inline-flex; } }

/* --------------------------------------------------------------------------
   20. Transparency pledge
   -------------------------------------------------------------------------- */
.pledge { display: flex; flex-direction: column; }
.pledge__n {
  font-family: var(--font-display);
  font-size: var(--step-2); font-weight: 600; line-height: 1;
  color: var(--gold-500);
  margin-bottom: var(--sp-3);
}
.pledge h3 { margin-bottom: var(--sp-2); }

.callout {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, auto);
  gap: var(--sp-5); align-items: center;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  background: var(--surface);
  border: 1px solid var(--gold-300);
  border-left: 3px solid var(--gold-400);
  border-radius: var(--r-lg);
}
@media (max-width: 720px) { .callout { grid-template-columns: 1fr; } }
.callout h3 { margin-bottom: var(--sp-2); }
.callout p { color: var(--text-muted); font-size: var(--step--1); max-width: 68ch; }

/* --------------------------------------------------------------------------
   21. Hero — headline + credential card layout
   -------------------------------------------------------------------------- */
.hero h1 {
  font-size: clamp(2.0rem, 1.3rem + 2.55vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
}
.hero h1 em { font-style: normal; color: var(--wine-500); }
[data-theme="dark"] .hero h1 em { color: var(--gold-300); }

.hero__tagline {
  font-family: var(--font-display);
  font-size: var(--step-1); font-style: italic;
  color: var(--gold-text); letter-spacing: 0.01em;
  margin-bottom: var(--sp-4);
}

/* inline "✓ benefit" row under the hero buttons */
.hero__checks {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

/* Two-column hero: the column boxes already share a height, but the left
   column's content ended higher than the card beside it. Make the left column
   a flex column and let the check row take up the slack, so the two columns
   finish on the same line visually, not just structurally. */
@media (min-width: 941px) {
  /* Move the whole intro block down as a unit so its last row meets the card,
     rather than pinning the check row and opening a gap mid-column. */
  .hero__grid > :first-child { display: flex; flex-direction: column; justify-content: flex-end; }
}
.hero__checks li {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: var(--step--1); font-weight: 600; color: var(--text-muted);
  white-space: nowrap;
}
.hero__checks { list-style: none; padding-left: 0; }
.hero__checks li::before {
  content: ""; flex: none; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A1F2B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 15px no-repeat;
}
[data-theme="dark"] .hero__checks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DCC488' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* right column: round portrait above a credentials card */
.hero__profile {
  justify-self: center; width: min(100%, 470px); padding-top: 6px;
  display: flex; flex-direction: column;
}

.portrait-round {
  position: relative;
  width: min(100%, 204px);
  flex: none;
  margin: 0 auto var(--sp-4);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 7px;                       /* the ring itself */
  background: linear-gradient(145deg,
    var(--gold-300) 0%, var(--gold-500) 30%,
    var(--wine-500) 62%, var(--wine-700) 100%);
  box-shadow: var(--shadow-lg);
  outline: 1px solid var(--gold-300); /* fine hairline, brand-guide style */
  outline-offset: 10px;
}
.portrait-round img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover; object-position: center 16%;
}
[data-theme="dark"] .portrait-round { outline-color: var(--gold-500); }

.cred-card {
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  padding: clamp(0.95rem, 1.7vw, 1.2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--wine-500);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.cred-card__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-2); line-height: 1.1; color: var(--text-strong);
}
.cred-card__role {
  margin-top: 0.3rem;
  font-size: var(--step--2); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint);
}
.cred-card__exp {
  margin-top: 0.35rem;
  font-family: var(--font-display); font-style: italic;
  font-size: var(--step-0); color: var(--gold-text);
}
.cred-card__firms {
  margin-top: var(--sp-2);
  font-size: var(--step--1); font-weight: 700; color: var(--text);
}
.cred-card__firms span { color: var(--gold-500); margin-inline: 0.35rem; font-weight: 500; }
.cred-card__lic {
  margin: var(--sp-3) 0 0; padding-top: var(--sp-3);
  border-top: 1px solid var(--border-soft);
  display: grid; gap: 0.22rem;
  font-size: var(--step--2); line-height: 1.42; color: var(--text-muted);
}

.cred-card__lic b { color: var(--text); font-weight: 700; }
.cred-card__ehl {
  margin-top: auto; padding-top: var(--sp-4);
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 0.6rem;
  font-size: var(--step--2); font-weight: 600; color: var(--text-faint);
  letter-spacing: 0.04em;
}
.cred-card__ehl svg { width: 20px; height: 20px; flex: none; color: var(--wine-500); }
[data-theme="dark"] .cred-card__ehl svg { color: var(--gold-400); }

@media (max-width: 560px) {
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn-row .btn { width: 100%; }
}

/* Very narrow phones: let button labels wrap rather than push the page wide */
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; padding-inline: 1.2rem; }
  .callbar a { white-space: normal; line-height: 1.25; }
}

/* --------------------------------------------------------------------------
   22. Logo — supplied artwork (assets/img/logo/)
   Primary horizontal lockup in the header, stacked lockup in the footer.
   A reversed variant (burgundy remapped to ivory, gold retained) is swapped
   in for dark surfaces.
   -------------------------------------------------------------------------- */
.brand { display: flex; align-items: center; margin-right: auto; }

.brand__logo {
  height: var(--logo-h, 48px);
  width: auto;
  display: block;
}
/* One <img> only. Dark mode swaps the source rather than stacking a second
   element in the header. */
[data-theme="dark"] .brand__logo {
  content: url("../img/logo/nava9-primary-logo-reversed.png");
}

.footer .brand-block { display: flex; flex-direction: column; gap: var(--sp-4); align-items: flex-start; }
.footer__logo { width: 148px; height: auto; }

.brand-services {
  font-size: var(--step--2); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint);
}
.brand-tagline {
  font-family: var(--font-display);
  font-size: var(--step-1); font-style: italic;
  color: var(--gold-text); letter-spacing: 0.01em;
}

@media (max-width: 560px) {
  :root { --header-h: 74px; }
  .brand__logo { --logo-h: 34px; }
  .footer__logo { width: 124px; }
}

/* Touch targets: 44px minimum on anything finger-operated. */
@media (max-width: 700px) {
  .icon-btn { width: 44px; height: 44px; }
  .footer ul { gap: 0; }
  .footer ul li a { display: flex; align-items: center; min-height: 44px; }
}

/* --------------------------------------------------------------------------
   23. Application hand-off dialog
   Explains the jump to Loan Factory before it happens.
   -------------------------------------------------------------------------- */
.handoff {
  /* The global `* { margin: 0 }` reset kills the UA `dialog:modal { margin: auto }`
     that centres a modal in the top layer — restore it explicitly. Do NOT add
     position/inset here: that overrides the top-layer positioning and pins it left. */
  margin: auto;
  width: min(540px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--border);
  border-top: 3px solid var(--wine-500);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.handoff::backdrop {
  background: rgba(23, 23, 23, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.handoff[open] { animation: handoff-in .28s var(--ease); }
@keyframes handoff-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .handoff[open] { animation: none; } }

.handoff__close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: 1.5rem; line-height: 1; color: var(--text-faint); cursor: pointer;
}
.handoff__close:hover { color: var(--text); border-color: var(--border); }

.handoff h2 {
  font-size: var(--step-2); margin-top: var(--sp-3);
  padding-right: 2rem;
}
.handoff__lede {
  margin-top: var(--sp-4);
  font-size: var(--step--1); color: var(--text-muted);
}

.handoff__list {
  list-style: none; padding: 0;
  margin-top: var(--sp-5);
  display: grid; gap: var(--sp-4);
}
.handoff__list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 0.85rem;
  font-size: var(--step--1); color: var(--text-muted); line-height: 1.6;
}
.handoff__list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--wine-500); }
[data-theme="dark"] .handoff__list svg { color: var(--gold-400); }
.handoff__list b { display: block; color: var(--text-strong); font-weight: 700; }

.handoff__dest {
  display: flex; align-items: center; gap: 0.65rem;
  margin-top: var(--sp-5); padding: 0.75rem 1rem;
  background: var(--bg-alt); border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  font-size: var(--step--2); color: var(--text-muted);
}
.handoff__dest svg { width: 16px; height: 16px; flex: none; color: var(--green-500); }
.handoff__dest b { color: var(--text-strong); }

.handoff__actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3);
  margin-top: var(--sp-5);
  /* keep the buttons reachable when the dialog has to scroll on short screens */
  position: sticky; bottom: calc(clamp(1.5rem, 4vw, 2.25rem) * -1);
  padding-block: var(--sp-4) clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface);
  box-shadow: 0 -12px 18px -12px hsl(var(--shadow-color) / .22);
}
@media (max-width: 480px) { .handoff__actions { grid-template-columns: 1fr; } }

.handoff__foot {
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--border-soft);
  font-size: var(--step--2); line-height: 1.65; color: var(--text-faint);
}
.handoff__foot a { color: var(--accent-text); font-weight: 600; }
