/* ==========================================================================
   Robert J. Marshall | Statewide Funding Inc.
   Global stylesheet
   ========================================================================== */

:root {
  --red: #d61f19;
  --red-dark: #b3140f;
  --red-soft: #fdecea;
  --navy: #16235a;
  --navy-deep: #0e1742;
  --gold: #f4a51c;
  --ink: #2b2f2d;
  --muted: #5d6370;
  --line: #ebe7e4;
  --soft: #faf6f3;
  --white: #ffffff;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Caveat", "Segoe Script", cursive;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(22, 35, 90, 0.08);
  --shadow-lg: 0 20px 50px rgba(22, 35, 90, 0.14);
  --max: 1200px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.script { font-family: var(--script); font-size: 1.6rem; color: var(--ink); font-weight: 500; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.accent { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  font-family: inherit;
  line-height: 1.2;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(214, 31, 25, .25); }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: var(--red); color: var(--red); background: #fff; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { color: var(--red); }
.btn-ghost-white { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-white:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn .arrow {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--red); font-size: 1rem; margin-right: -12px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* ---------- Header ---------- */
#site-header { min-height: var(--header-h); }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.06); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.header-inner.container { max-width: 1400px; }
.brand { flex-shrink: 0; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); display: grid; place-items: center; flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-logo { height: 60px; width: auto; flex-shrink: 0; }
.brand-divided { border-left: 1px solid var(--line); padding-left: 14px; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-sub { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--ink); font-weight: 500; font-size: .93rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.brand-name, .brand-sub, .header-actions .btn { white-space: nowrap; }
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--red); }
.nav-link .chev { width: 10px; height: 10px; transition: transform .2s; }
.nav-item:hover .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 250px; padding: 10px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--ink); font-size: .92rem; }
.dropdown a:hover { background: var(--soft); color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; font-size: .92rem; margin-right: 4px; }
.header-phone svg { width: 16px; height: 16px; }
.header-phone span { white-space: nowrap; }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1400px) {
  .header-phone span { display: none; }
  .nav-link { padding: 10px 9px; }
}
@media (max-width: 1300px) {
  /* backdrop-filter would trap the fixed mobile menu inside the header */
  .site-header { backdrop-filter: none; background: #fff; }
  .main-nav, .header-actions .btn-outline { display: none; }
  .menu-toggle { display: block; }
  .main-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 16px 24px 40px; overflow-y: auto; gap: 0;
  }
  .main-nav.open .nav-link { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav.open .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 4px 0 10px 12px; display: none; min-width: 0;
  }
  .main-nav.open .nav-item.expanded .dropdown { display: block; }
  .main-nav.open .mobile-ctas { display: flex; }
}
@media (max-width: 520px) {
  .header-actions .btn-red { display: none; }
  .brand-sub { letter-spacing: .12em; }
  .brand-logo { height: 48px; }
  .brand-divided { padding-left: 10px; }
  .brand-name { font-size: 1rem; }
}
.mobile-ctas { display: none; flex-direction: column; gap: 12px; margin-top: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 60px 0 90px;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(214,31,25,.09), transparent 55%),
    radial-gradient(ellipse at 0% 90%, rgba(244,165,28,.10), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--soft) 100%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero h1 .accent { color: var(--red); }
.hero .lead { margin-bottom: 26px; }
.hero .script { display: flex; align-items: center; gap: 8px; margin: 6px 0 16px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .86rem; color: var(--muted); }
.hero-checks li::before { content: "✓"; color: var(--red); font-weight: 800; margin-right: 6px; }

.arch-wrap { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.arch {
  width: 100%; aspect-ratio: 4 / 5;
  border-radius: 999px;
  overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--red-soft);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; background: #fff; border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); font-size: .88rem; line-height: 1.35;
}
.float-card strong { display: block; font-size: 1rem; color: var(--navy); }
.float-card.tl { top: 8%; left: -30px; }
.float-card.br { bottom: 10%; right: -24px; }
.float-card .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; margin-right: 6px; }

.page-hero {
  padding: 70px 0 70px;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(214,31,25,.10), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}
.page-hero .container { max-width: 900px; }
.page-hero.hero-split .container { max-width: var(--max); }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.page-hero-img { border-radius: 200px 200px 24px 24px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--navy); color: #fff; padding: 26px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-grid strong { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1.1; }
.trust-grid span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-soft { background: var(--soft); }
.section-blush { background: linear-gradient(180deg, var(--red-soft), #fff); }
.section-navy { background: var(--navy); color: rgba(255,255,255,.85); position: relative; overflow: hidden; }
.section-navy::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(214,31,25,.25), transparent 50%), radial-gradient(ellipse at 0% 100%, rgba(244,165,28,.12), transparent 45%);
  pointer-events: none;
}
.section-navy > * { position: relative; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: var(--gold); }
.section-navy .lead { color: rgba(255,255,255,.75); }
.section-head { margin-bottom: 50px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5/4; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* Big stat */
.big-stat { font-size: clamp(3.5rem, 8vw, 5.5rem); font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -0.04em; }
.big-stat .accent { color: var(--red); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.card { color: var(--ink); }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card .tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; flex-grow: 1; }
.card .more { font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-top: 8px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; margin-bottom: 18px; font-size: 1.5rem;
}
.card-icon svg { width: 26px; height: 26px; }

.section-navy .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; }
.section-navy a.card { color: #fff; }
.section-navy a.card:hover { background: rgba(255,255,255,.1); color: #fff; }
.section-navy .card p { color: rgba(255,255,255,.7); }
.section-navy .card .tag, .section-navy .card .more { color: var(--gold); }
.card.featured { grid-column: 1 / -1; background: linear-gradient(135deg, var(--red), var(--red-dark)); border: 0; }
.section-navy .card.featured p, .section-navy .card.featured .tag, .section-navy .card.featured .more { color: #fff; }

.img-card { padding: 0; overflow: hidden; }
.img-card .img { aspect-ratio: 16/10; overflow: hidden; }
.img-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.img-card:hover .img img { transform: scale(1.05); }
.img-card .body { padding: 26px; display: flex; flex-direction: column; flex-grow: 1; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); }
.step-num { font-size: 2.6rem; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 8px; }
.step .label { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
.step h3 { font-size: 1.12rem; margin: 10px 0; }
.step p { font-size: .94rem; color: var(--muted); margin: 0; }

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 40px 84px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .num {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--red); color: var(--red);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.timeline h3 { margin-bottom: 6px; padding-top: 12px; }
.timeline .when { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.timeline p { color: var(--muted); }

/* ---------- Lists / checks ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; font-size: .75rem; font-weight: 800;
}
.section-navy .checks li::before { background: rgba(255,255,255,.12); color: var(--gold); }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; font-weight: 500; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.stat-row div { text-align: center; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.08); }
.stat-row strong { display: block; font-size: 1.8rem; font-weight: 800; color: #fff; }
.stat-row span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.section:not(.section-navy) .stat-row div { background: var(--soft); }
.section:not(.section-navy) .stat-row strong { color: var(--navy); }
.section:not(.section-navy) .stat-row span { color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.headshot {
  position: relative; border-radius: 240px 240px 24px 24px; overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep)); box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.headshot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.headshot .initials { font-size: 5rem; font-weight: 800; color: rgba(255,255,255,.9); letter-spacing: -0.04em; }
.headshot .note { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.6); font-size: .8rem; }
.meta-list { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 20px 0 28px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.meta-list li { display: flex; align-items: center; gap: 8px; }
.meta-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ---------- Quote / testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px dashed #d8d2cd; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.pullquote { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 600; color: var(--navy); line-height: 1.4; border-left: 4px solid var(--red); padding-left: 24px; margin: 30px 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; border-radius: 28px; padding: 60px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-banner::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,.07); right: -120px; top: -140px;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.85); margin: 0; }
.cta-banner .btn-row { justify-content: flex-end; position: relative; z-index: 1; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
input, select, textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(214,31,25,.1); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.form-success { display: none; background: #ecfdf3; color: #166534; border-radius: 12px; padding: 16px; font-weight: 600; margin-top: 16px; }
.form-card.sent .form-success { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; font-weight: 400; color: var(--muted); line-height: 1.5; }
.consent input { width: auto; margin-top: 3px; }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.calc-result { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 34px; position: sticky; top: calc(var(--header-h) + 20px); }
.calc-result .big { font-size: 3rem; font-weight: 800; line-height: 1; margin: 6px 0 20px; }
.calc-result .label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.calc-rows { list-style: none; padding: 0; margin: 0 0 24px; }
.calc-rows li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.calc-rows li span:last-child { font-weight: 700; }
.bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin-bottom: 24px; background: rgba(255,255,255,.1); }
.bar span { display: block; height: 100%; }
.verdict { background: rgba(255,255,255,.08); border-radius: 14px; padding: 16px; font-size: .95rem; margin-bottom: 20px; }

/* ---------- FAQ / accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 50px 22px 0; position: relative;
  font-weight: 600; font-size: 1.08rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 500; transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 50px 22px 0; color: var(--muted); }
.faq-group h2 { font-size: 1.5rem; margin: 50px 0 10px; }

/* ---------- Glossary ---------- */
.az-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 30px; }
.az-nav a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--navy); font-weight: 700; }
.az-nav a:hover { background: var(--red); color: #fff; }
.glossary-search { max-width: 480px; margin-bottom: 24px; }
.glossary dl { margin: 0; }
.glossary .letter { font-size: 2rem; color: var(--red); margin: 40px 0 10px; border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.glossary dt { font-weight: 700; color: var(--navy); margin-top: 18px; }
.glossary dd { margin: 4px 0 0; color: var(--muted); }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 1.6rem; margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article p, .article li { color: #444a55; }
.callout { background: var(--soft); border-left: 4px solid var(--red); border-radius: 0 16px 16px 0; padding: 22px 26px; margin: 28px 0; }
.callout strong { color: var(--navy); }
.compare-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .95rem; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table th { background: var(--navy); color: #fff; font-weight: 600; }
.compare-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 80px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .brand-sub { color: rgba(255,255,255,.55); }
.footer-cta { margin-top: 20px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-legal {
  margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.1);
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
  font-size: .8rem; line-height: 1.6; color: rgba(255,255,255,.55);
}
.eho { width: 64px; color: rgba(255,255,255,.75); }
.footer-bottom { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.6); margin-left: 18px; }
.footer-bottom a:first-child { margin-left: 0; }

/* ---------- Strategy pages ---------- */
.short-answer {
  background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 30px 34px; box-shadow: var(--shadow);
}
.short-answer .eyebrow { margin-bottom: 8px; }
.short-answer h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 12px; }
.short-answer p { color: var(--muted); margin: 0; }
.overlap { margin-top: -50px; position: relative; z-index: 2; }

.mistakes { list-style: none; padding: 0; margin: 0; counter-reset: m; display: grid; gap: 18px; }
.mistakes li {
  counter-increment: m; position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px 26px 86px;
}
.mistakes li::before {
  content: counter(m); position: absolute; left: 26px; top: 24px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.mistakes h3 { font-size: 1.1rem; margin-bottom: 6px; }
.mistakes p { color: var(--muted); margin: 0; }
.section-navy .mistakes li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section-navy .mistakes p { color: rgba(255,255,255,.72); }

.example {
  background: var(--navy); color: rgba(255,255,255,.85); border-radius: var(--radius); padding: 34px;
}
.example .eyebrow { color: var(--gold); }
.example h3 { color: #fff; }
.example p:last-child { margin-bottom: 0; }

.bio-block { display: grid; grid-template-columns: 140px 1fr auto; gap: 30px; align-items: center; background: var(--soft); border-radius: 28px; padding: 36px; }
.bio-block .avatar {
  width: 140px; height: 140px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 2.2rem;
}
.bio-block .avatar img { width: 100%; height: 100%; object-fit: cover; }
.bio-block h3 { font-size: 1.5rem; margin-bottom: 8px; }
.bio-block p { color: var(--muted); margin: 0; }
.bio-block .btn-row { flex-direction: column; }
.disclaimer { font-size: .8rem; color: var(--muted); margin-top: 26px; line-height: 1.6; }
@media (max-width: 860px) {
  .bio-block { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .bio-block .btn-row { flex-direction: row; justify-content: center; }
}

.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats div { line-height: 1.2; }
.hero-stats strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.hero-stats span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Placeholder notice ---------- */
.todo {
  background: #fff8e6; border: 1px dashed var(--gold); color: #7a5300;
  border-radius: 12px; padding: 12px 16px; font-size: .88rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.four, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { grid-template-columns: 1fr; padding: 44px; }
  .cta-banner .btn-row { justify-content: flex-start; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 70px; }
  .hero-grid, .split, .about-grid, .page-hero-grid, .calc { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse > :first-child { order: 0; }
  .arch-wrap { max-width: 380px; }
  .float-card.tl { left: -10px; }
  .float-card.br { right: -6px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero-img { max-width: 360px; }
  .calc-result { position: static; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .card-grid, .card-grid.two, .card-grid.four, .steps, .testimonial-grid, .form-grid, .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { grid-template-columns: 1fr; }
  .cta-banner { padding: 34px 24px; border-radius: 22px; }
  .form-card { padding: 24px; }
  .btn-row .btn { width: 100%; }
  .faq summary { padding-right: 44px; }
  .faq .answer { padding-right: 0; }
}
