/* ==========================================================================
   The Mortgage Marine — Bill Bloom
   Design system v2 — clean red / white / blue.
   White is the room. Navy is the structure. Scarlet is the accent.
   Type: Anton (heavy condensed display) + IBM Plex Sans (body). No gradients
   (bar hero caption scrim), no textures, no flag imagery beyond one small chip.
   ========================================================================== */

/* ----------------------------------------------------------------- Tokens */
:root {
  /* Surfaces */
  --white:      #FFFFFF;
  --tint:       #F7F8FA;   /* alternating section wash */
  --navy:       #0F2C4D;   /* primary dark: headlines, dark panels */
  --navy-alt:   #16375C;   /* photo backdrop panel */

  /* Ink */
  --ink:        #0F2C4D;   /* headline text = navy */
  --body:       #4A5560;   /* body copy */
  --muted:      #69737D;   /* captions, fine print — darkened to ~4.8:1 on white (WCAG AA) */
  --on-dark:    #FFFFFF;
  --on-dark-mut:#B6C4D6;   /* muted text on navy */

  /* Accent */
  --scarlet:    #B22234;
  --scarlet-ink:#8E1B29;   /* hover / pressed */

  /* Lines */
  --hair:       #E6E8EC;   /* hairline on light */
  --hair-dark:  #2E5586;   /* hairline on navy */

  /* Type — Anton (heavy condensed display) + IBM Plex Sans (body) */
  --display: 'Anton', 'Arial Narrow', system-ui, sans-serif;
  --body-font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Metrics */
  --maxw: 1160px;
  --radius: 10px;
  --radius-sm: 6px;
  --pad-section: clamp(3.5rem, 8vw, 6.5rem);
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  animation: pageFadeIn .45s cubic-bezier(.22,1,.36,1) both;
}
/* Opacity-only: animating transform on <body> would establish a containing
   block for fixed-position descendants (e.g. the injected chat widget),
   pinning them to the page box instead of the viewport. */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--scarlet); text-decoration: none; }
a:hover { color: var(--scarlet-ink); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.04;
  margin: 0 0 .5em;
  font-weight: 400;          /* Anton ships a single heavy weight */
  text-transform: uppercase; /* Anton reads best in caps */
  -webkit-font-smoothing: antialiased;
}
/* Anton is condensed and heavy — a hair of positive tracking lets it breathe. */
h1 { font-size: clamp(2.7rem, 6.6vw, 4.6rem); letter-spacing: .5px; line-height: 1; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: .4px; }
h3 { font-size: 1.3rem; letter-spacing: .35px; line-height: 1.12; }
h4 { font-size: .95rem; letter-spacing: .4px; }
p  { margin: 0 0 1rem; }

/* --------------------------------------------------------- Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--scarlet);
  outline-offset: 2px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ----------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.15rem, 4vw, 2.4rem); }

.section { padding: var(--pad-section) 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: var(--on-dark-mut); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head p { color: var(--body); font-size: 1.1rem; }
.section--navy .section-head p { color: var(--on-dark-mut); }

/* --------------------------------------------------------------- Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--body-font);
  font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--scarlet);
  margin: 0 0 1rem;
}
.section--navy .eyebrow, .page-hero .eyebrow { color: #E9A7AF; }

/* One literal patriotic element — the tiny flag chip, used once (hero eyebrow) */
.flag-chip {
  width: 22px; height: 15px; border-radius: 3px; flex: none;
  box-shadow: 0 0 0 1px rgba(15,44,77,.12);
}

/* ----------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--body-font); font-weight: 600; font-size: 1rem;
  line-height: 1; padding: .95rem 1.6rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease,
              transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-sm { padding: .65rem 1.1rem; font-size: .9rem; }

.btn-primary { background: var(--scarlet); color: #fff; border-color: var(--scarlet); }
.btn-primary:hover { background: var(--scarlet-ink); border-color: var(--scarlet-ink); color: #fff; }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--hair); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: var(--white); }
.section--navy .btn-outline,
.page-hero .btn-outline { color: #fff; border-color: var(--hair-dark); }
.section--navy .btn-outline:hover,
.page-hero .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.06); color: #fff; }

.btn-ghost { background: transparent; color: var(--navy); border-color: transparent; padding-left: .4rem; padding-right: .4rem; }
.btn-ghost:hover { color: var(--scarlet); }

/* ----------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--hair);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; position: relative; }

/* Wordmark — text only, no iconography */
.brand { display: inline-flex; flex-direction: column; line-height: 1; gap: .2rem; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand .name {
  font-family: var(--display); font-weight: 400; font-size: 1.5rem;
  letter-spacing: .5px; color: var(--navy); line-height: 1;
}
.brand .tag {
  font-family: var(--body-font); font-size: .64rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.footer-brand .brand .name { color: #fff; }

.primary-nav { margin-left: auto; }
.nav-links {
  display: flex; align-items: center; gap: 1.7rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--body-font); font-weight: 500; font-size: .97rem;
  color: var(--navy); padding: .4rem 0; position: relative;
}
.nav-links a:hover { color: var(--scarlet); }
.nav-links a[aria-current="page"] { color: var(--scarlet); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--scarlet);
}

.nav-actions { display: flex; align-items: center; gap: .9rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--hair);
  background: #fff; border-radius: var(--radius-sm); cursor: pointer;
  position: relative; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px;
  background: var(--navy); transform: translateX(-50%); transition: .2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 900px) {
  /* reset so .primary-nav positions against the full-width .site-header */
  .nav { position: static; }
  .primary-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--hair);
    z-index: 99;
  }
  .primary-nav.is-open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0; }
  .nav-links li { border-top: 1px solid var(--hair); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a { display: block; padding: .95rem clamp(1.15rem, 4vw, 2.4rem); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ----------------------------------------------------------------- Hero */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.hero-copy h1 { margin-bottom: .55rem; }
.hero-copy h1 .accent { color: var(--scarlet); }
.hero-subhead {
  font-size: 1.2rem; color: var(--body); max-width: 34rem; margin-bottom: 1.8rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }

.cred-strip {
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
  padding-top: 1.4rem; border-top: 1px solid var(--hair);
  font-size: .92rem; color: var(--muted);
}
.cred-line { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; }
.cred-strip .sep { color: var(--muted); }
.cred-strip strong { color: var(--navy); font-weight: 600; }
.cred-strip a { color: var(--navy); font-weight: 600; }
.cred-strip a:hover { color: var(--scarlet); }
.cred-strip .stars { color: var(--scarlet); letter-spacing: 1px; }

/* Photo on a navy panel with a scarlet rule along the bottom */
.hero-panel {
  position: relative; background: var(--navy-alt); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 24px 60px -30px rgba(15,44,77,.55);
  border-bottom: 4px solid var(--scarlet);
}
.hero-panel img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; display: block; }
.hero-panel .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem 1.1rem;
  background: linear-gradient(to top, rgba(10,22,40,.97) 0%, rgba(10,22,40,.6) 60%, rgba(10,22,40,0) 100%);
  color: #fff;
}
.hero-panel .caption .role {
  font-family: var(--body-font); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.hero-panel .caption .org {
  font-size: .82rem; color: rgba(210,222,236,.9);
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 420px; }
}

/* ---------------------------------------- Headline stagger animation */
@keyframes wordRise {
  0%   { opacity: 0; transform: translateY(0.45em) skewY(2deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) skewY(0deg); }
}

.word-reveal {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity;
  animation: wordRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--wd) * 1s + 0.1s);
}

.phrase-reveal {
  animation-delay: calc(var(--wd) * 1s + 0.1s);
  animation-duration: 0.65s;
}

@media (prefers-reduced-motion: reduce) {
  .word-reveal { opacity: 1; animation: none; }
}

/* -------------------------------------------------- Three-value strip */
.value-strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-item { padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.2rem); }
/* dividing rules, not boxes */
.value-item + .value-item { border-left: 1px solid var(--hair); }
/* scarlet keyword label (replaces the dropped 01/02/03 numbering) */
.value-item .kw {
  display: inline-block; margin-bottom: .9rem; padding-bottom: .5rem;
  font-family: var(--body-font); font-weight: 600; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--scarlet);
  border-bottom: 2px solid var(--scarlet);
}
.value-item h3 { margin-bottom: .45rem; }
.value-item p { margin: 0; font-size: 1rem; }
.value-item .items { color: var(--muted); font-size: .92rem; margin-top: .55rem; }

@media (max-width: 760px) {
  .value-strip { grid-template-columns: 1fr; }
  .value-item + .value-item { border-left: 0; border-top: 1px solid var(--hair); }
  .value-item { padding-left: 0; padding-right: 0; }
}

/* ---------------------------------------------- Statement band (full-bleed) */
/* Distinct-shape section: no eyebrow/subhead/columns — one big Anton line.
   Breaks the repeating eyebrow -> headline -> columns rhythm. */
.statement-band { background: var(--navy); color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.statement-band .container {
  display: flex; flex-direction: row; align-items: center;
  justify-content: space-between; gap: 3rem;
}
.statement-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.8rem; }
.statement {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.1rem, 5.2vw, 3.8rem); line-height: 1.02; letter-spacing: .5px;
  color: #fff; margin: 0; max-width: 18ch;
  padding-left: 1.3rem; border-left: 5px solid var(--scarlet);
}
.statement .accent { color: #E9A7AF; }
.statement-copy .btn { flex: none; }

/* Logo mark with glow */
.statement-logo-wrap { flex: none; display: flex; align-items: center; justify-content: center; }
.statement-logo-img {
  width: clamp(200px, 32vw, 420px); height: auto; display: block;
  /* Resting glow (2 layers, <=28px blur) — also the state reduced-motion sees. */
  filter: drop-shadow(0 0 8px rgba(255,255,255,.45))
          drop-shadow(0 0 28px rgba(178,34,52,.5));
  animation: logoGlow 1.5s cubic-bezier(.22,1,.36,1) both;
}
/* One-shot: the glow blooms in once on load, then rests. No infinite loop
   (the old version stacked four drop-shadows at 110px blur forever). */
@keyframes logoGlow {
  from {
    filter: drop-shadow(0 0 0 rgba(255,255,255,0))
            drop-shadow(0 0 0 rgba(178,34,52,0));
  }
  to {
    filter: drop-shadow(0 0 8px rgba(255,255,255,.45))
            drop-shadow(0 0 28px rgba(178,34,52,.5));
  }
}
@media (prefers-reduced-motion: reduce) { .statement-logo-img { animation: none; } }
@media (max-width: 680px) {
  .statement-band .container { flex-direction: column; align-items: stretch; text-align: center; gap: 1.5rem; }
  .statement-copy { align-items: stretch; }
  .statement { border-left: none; padding-left: 0; max-width: none; width: 100%; }
  .statement-copy .btn { width: 100%; }
  .statement-logo-wrap { order: -1; flex-shrink: 1; width: 100%; }
  .statement-logo-img { width: clamp(120px, 36vw, 180px); max-width: 100%; margin: 0 auto; }
}

/* ----------------------------------------------------------------- Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step {
  padding: 1.8rem clamp(1.1rem, 2.2vw, 1.6rem) 0 0;
  border-top: 3px solid var(--scarlet);
}
.step + .step { padding-left: clamp(1.1rem, 2.2vw, 1.6rem); }
.step .step-num {
  font-family: var(--display); font-weight: 800; font-size: 2rem;
  color: var(--navy); line-height: 1; margin-bottom: .7rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { margin: 0; font-size: .98rem; }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 1.6rem 0; }
  .step:nth-child(odd) { padding-left: 0; }
}
@media (max-width: 500px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding-left: 0 !important; }
}

.process-note {
  display: flex; align-items: flex-start; gap: .6rem;
  margin-top: 2.4rem; font-size: .92rem; color: var(--muted);
}
.process-note svg { flex: none; margin-top: .2rem; color: var(--scarlet); }

/* ------------------------------------------------------- Split (2-col) */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.lede { font-size: 1.15rem; color: var(--body); }

/* --------------------------------------------------------------- Cards */
.card-grid { display: grid; gap: 1.2rem; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: 1fr; } }

/* Flat cards: thin border + single scarlet top rule. No shadow boxes. */
.card {
  background: var(--white); border: 1px solid var(--hair);
  border-top: 3px solid var(--scarlet);
  border-radius: var(--radius-sm); padding: 1.5rem 1.5rem 1.6rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; font-size: .98rem; }
.card p + p { margin-top: .7rem; }
.card .k {
  font-family: var(--body-font); font-weight: 600; font-size: .73rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--scarlet);
  display: block; margin-bottom: .6rem;
}

/* ----------------------------------------------------- Feature list */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.feature-list li { position: relative; padding-left: 1.7rem; color: var(--body); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 9px; height: 9px; background: var(--scarlet); border-radius: 2px;
}
.section--navy .feature-list li { color: var(--on-dark-mut); }

/* ----------------------------------------------------- Fact panel */
.fact-panel {
  background: var(--tint); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: 1.6rem 1.6rem 1.7rem;
}
.fact-panel h3 { margin-bottom: 1rem; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.fact-list li { display: grid; gap: .1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--hair); }
.fact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-list .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.fact-list .v { color: var(--navy); font-weight: 500; }
.fact-list .v a { color: var(--scarlet); }

/* --------------------------------------------------------- Prose page */
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--body); }

/* ---------------------------------------------------------- Callout */
.callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.4rem; background: var(--navy); color: var(--on-dark-mut);
  border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem);
  border-left: 4px solid var(--scarlet);
}
.callout h2, .callout h3 { color: #fff; margin-top: 0; }
.callout p { margin: 0; color: var(--on-dark-mut); }
.callout-action { flex: none; }

/* ------------------------------------------------------- Page hero */
.page-hero { background: var(--navy); color: var(--on-dark-mut); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.6rem, 6vw, 4rem); }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--on-dark-mut); font-size: 1.15rem; max-width: 42rem; }

/* Page-hero children animate in on load (above fold — no scroll trigger needed) */
.page-hero .eyebrow,
.page-hero h1,
.page-hero p {
  opacity: 0;
  transform: translateY(1rem);
  animation: heroItemIn .6s cubic-bezier(.22,1,.36,1) forwards;
}
.page-hero .eyebrow { animation-delay: .15s; }
.page-hero h1       { animation-delay: .28s; }
.page-hero p        { animation-delay: .42s; }
@keyframes heroItemIn {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero .eyebrow,
  .page-hero h1,
  .page-hero p { opacity: 1; transform: none; animation: none; }
}

/* ---------------------------------------------------- Video / embeds */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 820px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }

/* Cap card width so a 3-up row of vertical (9:16) TikToks stays a reasonable
   height; keeps the video and its title/description aligned and centered. */
.video-card { display: flex; flex-direction: column; max-width: 340px; width: 100%; margin-inline: auto; }
.embed {
  position: relative; aspect-ratio: 16 / 9; background: var(--navy-alt);
  border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--hair);
}
.embed--vertical { aspect-ratio: 9 / 16; }
.embed iframe, .embed blockquote { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; }
.embed-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .8rem; color: #fff;
}
.embed-placeholder .play {
  width: 54px; height: 54px; border-radius: 50%; background: var(--scarlet);
  display: grid; place-items: center;
}
.embed-placeholder .play svg { width: 22px; height: 22px; color: #fff; }
.embed-placeholder .tag { font-size: .82rem; color: var(--on-dark-mut); letter-spacing: .03em; }

.video-card .meta { padding-top: .9rem; }
.video-card .kind {
  font-family: var(--body-font); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--scarlet);
}
.video-card h3 { margin: .25rem 0 0; font-size: 1.05rem; }
.video-card .meta p { margin: .35rem 0 0; font-size: .9rem; color: var(--muted); }

.watch-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 2rem;
}
.placeholder-note { font-size: .82rem; color: var(--muted); font-style: italic; }

/* --------------------------------------------------------------- Events */
.events { border-top: 1px solid var(--hair); }
.event {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 1.4rem;
  align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--hair);
}
.event-date {
  display: grid; place-items: center; text-align: center;
  border-right: 3px solid var(--scarlet); padding-right: 1rem; min-height: 54px;
}
.event-date .tbd {
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  color: var(--navy); letter-spacing: .04em;
}
.event-body .kind {
  font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--scarlet);
}
.event-body h3 { margin: .2rem 0 .3rem; font-size: 1.15rem; }
.event-body p { margin: 0; font-size: .95rem; color: var(--muted); }
.event-action { flex: none; }

@media (max-width: 680px) {
  .event { grid-template-columns: 70px 1fr; }
  .event-action { grid-column: 1 / -1; }
  .event-action .btn { width: 100%; }
}

/* ----------------------------------------------------------------- Forms */
.lead-form-wrap {
  background: var(--white); border: 1px solid var(--hair);
  border-top: 4px solid var(--scarlet);
  border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.2rem);
  box-shadow: 0 20px 50px -34px rgba(15,44,77,.4);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label {
  font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem;
}
.field .req { color: var(--scarlet); }
.field input, .field textarea {
  font-family: var(--body-font); font-size: 1rem; color: var(--navy);
  padding: .8rem .9rem; border: 1px solid var(--hair); border-radius: var(--radius-sm);
  background: #fff; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--scarlet); box-shadow: 0 0 0 3px rgba(178,34,52,.15); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }

.radio-row { display: flex; gap: .7rem; }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-chip span {
  display: inline-flex; align-items: center; padding: .6rem 1.3rem;
  border: 1px solid var(--hair); border-radius: 999px; font-weight: 500;
  color: var(--navy); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s,
              transform .12s cubic-bezier(.22,1,.36,1), box-shadow .15s;
}
.radio-chip input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.radio-chip input:focus-visible + span { outline: 3px solid var(--scarlet); outline-offset: 2px; }

.form-foot { margin-top: 1.3rem; }
.form-foot .btn { width: 100%; }
.form-consent { font-size: .8rem; color: var(--muted); margin: .9rem 0 0; }

.form-status { display: none; padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .92rem; font-weight: 500; }
.form-status.is-visible { display: block; }
.form-status--err { background: #FBEAEC; color: var(--scarlet-ink); border: 1px solid #F3C6CC; }

/* Honeypot — off-screen, not display:none (bots still fill it) */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-thankyou { display: none; text-align: center; padding: 1.5rem .5rem; }
.form-thankyou.is-visible { display: block; }
.form-thankyou .badge {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--scarlet); display: grid; place-items: center;
}
.form-thankyou .badge svg { width: 26px; height: 26px; color: #fff; }
.form-thankyou h3 { font-size: 1.4rem; }
.form-thankyou p { color: var(--body); margin: 0; }

/* ----------------------------------------------------------------- Footer */
.site-footer { background: var(--navy); color: var(--on-dark-mut); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.4rem; border-bottom: 1px solid var(--hair-dark);
}
.footer-brand > p { color: var(--on-dark-mut); max-width: 28rem; margin: 1rem 0 1.2rem; font-size: .95rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid var(--hair-dark); border-radius: var(--radius-sm);
  display: grid; place-items: center; color: var(--on-dark-mut);
}
.footer-social a:hover { border-color: var(--scarlet); color: #fff; background: var(--scarlet); }
.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 { color: #fff; margin-bottom: 1rem; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-col a { color: var(--on-dark-mut); font-size: .95rem; }
.footer-col a:hover { color: #fff; }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

/* Compliance — verbatim block, kept legible */
.compliance {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.8rem 0; border-bottom: 1px solid var(--hair-dark);
}
.eho-mark { width: 40px; height: 40px; flex: none; color: var(--on-dark-mut); }
.compliance-text p { font-size: .82rem; line-height: 1.6; color: var(--on-dark-mut); margin: 0 0 .6rem; }
.compliance-text p:last-child { margin-bottom: 0; }
.compliance-text .legal-name { color: #fff; font-weight: 500; }
.compliance-text a { color: #fff; text-decoration: underline; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem;
  padding-top: 1.5rem; font-size: .82rem; color: var(--on-dark-mut);
}
/* Legal/utility links in the footer bottom bar (e.g. Privacy Policy) */
.footer-bottom span a { color: var(--on-dark-mut); text-decoration: underline; text-underline-offset: 2px; transition: color .2s ease; }
.footer-bottom span a:hover { color: #fff; }
.footer-built-by {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--on-dark-mut);
  transition: color .2s ease;
}
.footer-built-by:hover { color: #fff; }
.footer-built-by img {
  height: 36px; width: auto; display: block;
  opacity: .85; transition: opacity .2s ease, filter .2s ease;
  filter: brightness(0) invert(1);
}
.footer-built-by:hover img { opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255,255,255,.4)); }

/* ==========================================================================
   Polish layer — scroll reveal · micro-interactions · grain · calculator
   ========================================================================== */

/* ---- Scroll progress bar ---- */
.scroll-bar {
  position: fixed; top: 0; left: 0; z-index: 300;
  height: 3px; width: 0%;
  background: var(--scarlet);
  transition: width .08s linear;
  pointer-events: none;
  will-change: width;
}

/* ---- Section reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity .65s cubic-bezier(.22,1,.36,1),
              transform .65s cubic-bezier(.22,1,.36,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .22s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .34s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: .46s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---- Grain texture on dark sections ---- */
.section--navy,
.statement-band,
.page-hero,
.site-footer { position: relative; isolation: isolate; }

.section--navy::before,
.statement-band::before,
.page-hero::before,
.site-footer::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: .045;
  mix-blend-mode: overlay;
}


/* ---- Button micro-interactions ---- */
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none !important; transition-duration: .08s; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(178,34,52,.32); }
.btn-outline:hover { box-shadow: 0 4px 12px rgba(15,44,77,.1); }

/* ---- Form field hover ---- */
.field input:hover:not(:focus),
.field textarea:hover:not(:focus) { border-color: #b0bac6; }

/* ---- Radio chip hover ---- */
.radio-chip:hover span {
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15,44,77,.1);
}
.radio-chip input:checked + span { box-shadow: 0 2px 10px rgba(15,44,77,.22); }

/* ---- Section header underline accent ---- */
.section-head h2 { padding-bottom: .6rem; position: relative; }
.section-head h2::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: var(--scarlet); border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.section-head.is-visible h2::after {
  transform: scaleX(1);
  transition-delay: .35s;
}
.section--navy .section-head h2::after { background: #E9A7AF; }
@media (prefers-reduced-motion: reduce) {
  .section-head h2::after { transform: scaleX(1); transition: none; }
}

/* ---- Active nav (scroll-driven) ---- */
@media (min-width: 901px) {
  .nav-links a.nav-current { color: var(--scarlet); }
  .nav-links a.nav-current::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px; background: var(--scarlet);
  }
}

/* ---- Affordability calculator ---- */
.calc-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
}
@media (max-width: 700px) { .calc-wrap { grid-template-columns: 1fr; } }

.calc-inputs {
  background: var(--white); border: 1px solid var(--hair);
  border-top: 3px solid var(--scarlet); border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2rem);
}
.calc-field {
  display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.2rem;
}
.calc-field:last-child { margin-bottom: 0; }
.calc-field-label,
.calc-field label { font-size: .84rem; font-weight: 600; color: var(--navy); }
.calc-field .input-wrap { position: relative; display: flex; align-items: center; }
.calc-field .prefix,
.calc-field .suffix {
  position: absolute; font-size: 1rem; font-weight: 500;
  color: var(--muted); pointer-events: none;
}
.calc-field .prefix { left: .85rem; }
.calc-field .suffix { right: .85rem; }
.calc-field input[type="number"] {
  font-family: var(--body-font); font-size: 1rem; font-weight: 500;
  color: var(--navy); width: 100%; padding: .75rem .9rem;
  border: 1px solid var(--hair); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .18s, box-shadow .18s;
  -moz-appearance: textfield;
}
.calc-field input[type="number"]::-webkit-outer-spin-button,
.calc-field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-field input[type="number"]:focus {
  outline: none; border-color: var(--scarlet);
  box-shadow: 0 0 0 3px rgba(178,34,52,.13);
}
.calc-field input[type="number"]:hover:not(:focus) { border-color: #b0bac6; }
.calc-field.has-prefix input { padding-left: 1.85rem; }
.calc-field.has-suffix input { padding-right: 2.1rem; }
.calc-term-row { display: flex; gap: .6rem; }
.calc-term-row .radio-chip span { border-radius: var(--radius-sm); padding: .55rem 1rem; }

.calc-output {
  background: var(--navy); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem); color: var(--on-dark-mut);
  position: sticky; top: 90px;
  box-shadow: 0 32px 64px -24px rgba(15,44,77,.45);
}
.calc-output h3 {
  color: #fff; font-size: .85rem; margin-bottom: 1.4rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.calc-result {
  margin-bottom: 1.3rem; padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--hair-dark);
}
.calc-result:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.calc-result-label {
  font-size: .74rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--on-dark-mut); margin-bottom: .3rem;
}
.calc-result-value {
  font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: #fff; line-height: 1; letter-spacing: .5px;
  transition: opacity .2s ease;
}
.calc-result-value.is-small { font-size: clamp(1.5rem, 3vw, 2rem); }
.calc-result-value.updating { opacity: .35; }
.calc-disclaimer {
  font-size: .77rem; color: var(--on-dark-mut); margin: 1.4rem 0 0;
  padding-top: 1.2rem; border-top: 1px solid var(--hair-dark); opacity: .75;
}

/* ----------------------------------------------------------------- FAQ */
.faq { max-width: 46rem; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--hair);
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-family: var(--body-font); font-weight: 600; font-size: 1.05rem;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--scarlet); }
.faq-item summary:focus-visible { outline: 3px solid var(--scarlet); outline-offset: 3px; border-radius: 2px; }
/* Plus/minus toggle in scarlet */
.faq-item summary .faq-mark {
  flex: none; position: relative; width: 16px; height: 16px; color: var(--scarlet);
  transition: transform .25s ease;
}
.faq-item summary .faq-mark::before,
.faq-item summary .faq-mark::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
}
.faq-item summary .faq-mark::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-item summary .faq-mark::after  { left: 7px; top: 0; width: 2px; height: 16px; transition: transform .25s ease; }
.faq-item[open] summary .faq-mark::after { transform: scaleY(0); }
.faq-item[open] summary { color: var(--scarlet); }
.faq-item .faq-answer { padding: 0 0 1.25rem; color: var(--body); font-size: .98rem; max-width: 42rem; }
.faq-item .faq-answer p { margin: 0; }
.faq-cta { text-align: center; margin-top: 2.4rem; }
@media (prefers-reduced-motion: reduce) {
  .faq-item summary .faq-mark, .faq-item summary .faq-mark::after { transition: none; }
}

/* -------------------------------------------------- Sticky mobile CTA bar */
:root { --cta-bar-h: 70px; }
.mobile-cta-bar { display: none; }
@media (max-width: 760px) {
  .mobile-cta-bar {
    display: flex; gap: .6rem; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
    padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--hair);
    box-shadow: 0 -6px 22px -14px rgba(15,44,77,.4);
  }
  .mobile-cta-bar .btn { flex: 1 1 0; min-width: 0; padding-left: .8rem; padding-right: .8rem; }
  /* Keep the footer and page tail reachable above the fixed bar. */
  body { padding-bottom: calc(var(--cta-bar-h) + env(safe-area-inset-bottom)); }
  /* Raise the GoHighLevel chat bubble clear of the bar so both stay tappable.
     Scoped to the widget's host element only — no !important on its internals. */
  chat-widget, [class*="chat-widget"], [id*="chat-widget"] {
    bottom: calc(var(--cta-bar-h) + env(safe-area-inset-bottom) + 10px);
  }
}
