/* ==========================================================================
   DisabilityAlabama — design system
   Brand navy #162435 retained from existing logo; gold accent for CTAs.
   ========================================================================== */

:root {
  --navy-950: #0b1420;
  --navy-900: #0e1a29;
  --navy-800: #162435;           /* brand */
  --navy-700: #22374f;
  --navy-600: #2e4a6a;
  --blue-050: #f2f6fa;
  --blue-100: #e6edf5;
  --line: #dfe7f0;
  --ink: #16202e;
  --body-c: #425263;
  --gold-300: #ecc568;
  --gold-400: #e0b44a;
  --gold-500: #cf9f2e;
  --gold-700: #8a6a1b;
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(14, 26, 41, .06);
  --shadow-md: 0 10px 30px rgba(14, 26, 41, .10);
  --shadow-lg: 0 24px 60px rgba(14, 26, 41, .16);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--body-c);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; letter-spacing: -.015em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }
p { margin: 0 0 1.1em; }
a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .45em; }

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

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }
.container-narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--blue-050); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: .9em;
}
.eyebrow a { color: inherit; text-decoration: none; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .82em 1.6em; border-radius: 999px; border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--navy-950); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.topbar { background: var(--navy-950); color: #c6d2e0; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: #e8eef5; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold-300); }
.topbar-links { display: flex; gap: 22px; }
@media (max-width: 640px) { .topbar-note { display: none; } .topbar-inner { justify-content: center; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 260px; height: auto; }
@media (max-width: 640px) { .brand img { width: 200px; } }

.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: .92rem; font-weight: 500;
  color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 10px;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-link:hover { background: var(--blue-050); color: var(--navy-800); }
.nav-item.active > .nav-link, .nav-link[aria-current="page"] { color: var(--navy-800); font-weight: 600; }
.chev { transition: transform .2s ease; }

.nav-item { position: relative; }
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item.open > .sub-menu,
.nav-item:hover > .sub-menu,
.nav-item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item.open .chev, .nav-item:hover .chev { transform: rotate(180deg); }
.sub-menu li { margin: 0; }
.sub-menu a {
  display: block; padding: 10px 14px; border-radius: 10px;
  font-family: var(--font-head); font-size: .9rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--blue-050); color: var(--navy-800); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 10px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer;
}

/* The Chatway widget floats in its own always-on-top layer regardless of
   z-index — hide it while the mobile drawer is open so it can't cover nav
   items (see main.js nav-open toggle). */
body.nav-open .chatway--container { display: none !important; }
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--navy-800); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Compact header on small laptops so the full nav fits on one line */
@media (min-width: 1081px) and (max-width: 1279px) {
  .brand img { width: 205px; }
  .site-nav { gap: 14px; }
  .nav-list { gap: 0; }
  .nav-link { font-size: .85rem; padding: 9px 9px; }
  .nav-cta { font-size: .85rem; padding: .75em 1.2em; }
}

@media (max-width: 1080px) {
  /* backdrop-filter creates a containing block that would trap the
     fixed-position mobile drawer inside the header — use solid bg instead */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  /* keep logo and close button above the fixed drawer */
  .brand, .nav-toggle { position: relative; z-index: 95; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0; top: 0; z-index: 90;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 110px 26px 40px; overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; font-size: 1.05rem; padding: 14px 12px; }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 6px 14px; display: none;
  }
  .nav-item.open > .sub-menu { display: block; }
  .nav-item:hover > .sub-menu { display: none; }
  .nav-item.open:hover > .sub-menu { display: block; }
  .nav-cta { margin-top: 18px; text-align: center; }
}

/* ==========================================================================
   Heroes
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(224,180,74,.16), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(46,74,106,.55), transparent 55%),
    linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #d9e2ec;
  padding-block: clamp(72px, 10vw, 140px);
}
/* Photo-backed hero variants — same dark overlay recipe, different background photo */
.hero--home, .hero--apply, .hero--denied, .hero--appeals, .hero--medical-records, .hero--referrals, .hero--calculator {
  background-repeat: no-repeat; background-size: cover; background-position: center;
}
.hero--home { background-image:
    radial-gradient(1100px 500px at 85% -10%, rgba(224,180,74,.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(46,74,106,.5), transparent 55%),
    linear-gradient(150deg, rgba(11,20,32,.94) 0%, rgba(22,36,53,.91) 55%, rgba(34,55,79,.86) 100%),
    url("/assets/img/hero-office.jpg");
  background-position: center 65%;
}
.hero--apply { background-image:
    radial-gradient(1100px 500px at 85% -10%, rgba(224,180,74,.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(46,74,106,.5), transparent 55%),
    linear-gradient(150deg, rgba(11,20,32,.94) 0%, rgba(22,36,53,.91) 55%, rgba(34,55,79,.86) 100%),
    url("/assets/img/hero-apply.jpg");
}
.hero--denied { background-image:
    radial-gradient(1100px 500px at 85% -10%, rgba(224,180,74,.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(46,74,106,.5), transparent 55%),
    linear-gradient(150deg, rgba(11,20,32,.94) 0%, rgba(22,36,53,.91) 55%, rgba(34,55,79,.86) 100%),
    url("/assets/img/hero-denied.jpg");
}
.hero--appeals { background-image:
    radial-gradient(1100px 500px at 85% -10%, rgba(224,180,74,.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(46,74,106,.5), transparent 55%),
    linear-gradient(150deg, rgba(11,20,32,.94) 0%, rgba(22,36,53,.91) 55%, rgba(34,55,79,.86) 100%),
    url("/assets/img/hero-appeals.jpg");
}
.hero--medical-records { background-image:
    radial-gradient(1100px 500px at 85% -10%, rgba(224,180,74,.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(46,74,106,.5), transparent 55%),
    linear-gradient(150deg, rgba(11,20,32,.94) 0%, rgba(22,36,53,.91) 55%, rgba(34,55,79,.86) 100%),
    url("/assets/img/hero-medical-records.jpg");
}
.hero--referrals { background-image:
    radial-gradient(1100px 500px at 85% -10%, rgba(224,180,74,.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(46,74,106,.5), transparent 55%),
    linear-gradient(150deg, rgba(11,20,32,.94) 0%, rgba(22,36,53,.91) 55%, rgba(34,55,79,.86) 100%),
    url("/assets/img/hero-referrals.jpg");
}
.hero--calculator { background-image:
    radial-gradient(1100px 500px at 85% -10%, rgba(224,180,74,.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(46,74,106,.5), transparent 55%),
    linear-gradient(150deg, rgba(11,20,32,.94) 0%, rgba(22,36,53,.91) 55%, rgba(34,55,79,.86) 100%),
    url("/assets/img/hero-calculator.jpg");
}
.hero .eyebrow { color: var(--gold-300); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 56ch; color: #c2cede; }
.hero .btn-row { margin-top: 30px; }
.hero-quote { margin: 26px 0 0; padding-left: 18px; border-left: 3px solid var(--gold-400); max-width: 60ch; }
.hero-quote p { font-size: 1.08rem; color: #e8eef5; font-style: italic; margin-bottom: .3em; }
.hero-quote cite { font-style: normal; font-size: .9rem; color: #9fb0c4; }

.page-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(224,180,74,.14), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-800));
  color: #c2cede; padding-block: clamp(56px, 7vw, 96px);
}
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--gold-300); }
.post-meta { color: #9fb0c4; font-size: .95rem; }

/* ==========================================================================
   Cards / grids / stats
   ========================================================================== */
/* minmax(0, 1fr) rather than bare 1fr everywhere: a bare `1fr` track still
   carries an implicit `auto` minimum equal to its content's min-content
   size, so one long unbreakable string (an email, a URL) can inflate the
   whole grid past its container ("grid blowout"). minmax(0, ...) removes
   that floor and lets each item's own overflow-wrap handle wrapping. */
.grid { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: .2em; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: var(--blue-100); color: var(--navy-800);
}
.card-link { text-decoration: none; color: inherit; display: block; }
.card-more { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--gold-700); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--blue-100); color: var(--navy-800);
  font-family: var(--font-head); font-size: .85rem; font-weight: 500; text-decoration: none;
}
.chip:hover { background: var(--navy-800); color: #fff; }

.stat-band { background: var(--navy-950); color: #fff; padding-block: clamp(44px, 6vw, 72px); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; text-align: center; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: minmax(0, 1fr); } }
.stat-num { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; color: var(--gold-300); line-height: 1; }
.stat-label { color: #b8c5d6; margin-top: 10px; font-size: .98rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { counter-increment: step; position: relative; padding: 30px 26px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  background: var(--navy-800); color: var(--gold-300);
}

/* Accordion */
.accordion { display: grid; gap: 12px; }
.accordion details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; box-shadow: var(--shadow-sm);
}
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.02rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex-shrink: 0; width: 12px; height: 12px;
  border-right: 2px solid var(--gold-500); border-bottom: 2px solid var(--gold-500);
  transform: rotate(45deg); transition: transform .2s ease; margin-top: -4px;
}
.accordion details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.accordion details > div { padding: 0 22px 20px; }
.accordion details[open] summary { color: var(--navy-800); }

/* Testimonial (legacy single dark quote block — kept for the avatar rule) */
.testimonial {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius-lg); color: #e8eef5; padding: clamp(30px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.testimonial::before {
  content: "\201C"; position: absolute; top: -30px; left: 18px;
  font-family: var(--font-head); font-size: 12rem; color: rgba(224,180,74,.18); line-height: 1;
}
.testimonial blockquote { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.7; position: relative; }
.testimonial figcaption {
  margin-top: 22px; display: flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-weight: 600; color: var(--gold-300);
}
.testimonial-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(224,180,74,.4); flex-shrink: 0;
}

/* Client review cards */
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .review-grid { grid-template-columns: minmax(0, 1fr); } }
.review-grid.single { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 30px); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-stars { display: flex; gap: 3px; color: var(--gold-500); }
.review-title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 0; }
.review-body { font-size: .95rem; margin: 0; flex: 1; }
.review-author { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--navy-700); margin: 0; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(800px 300px at 15% 120%, rgba(224,180,74,.18), transparent 60%),
    linear-gradient(140deg, var(--navy-900), var(--navy-800));
  color: #c2cede; text-align: center; padding-block: clamp(56px, 8vw, 96px);
}
.cta-band h2 { color: #fff; }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }
.cta-inner { max-width: 720px; margin-inline: auto; }

/* Split layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split-media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
}
.split-media img { width: 55%; height: auto; opacity: .92; }
.split-media--photo { aspect-ratio: 4 / 5; max-width: 420px; }
.split-media--photo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.split-media--photo-wide { aspect-ratio: 4 / 3; background: none; }
.split-media--photo-wide img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }

/* Checklist */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--blue-100) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23162435" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4 10-10"/></svg>') center / 12px no-repeat;
}

/* ==========================================================================
   Blog
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 0; overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card-thumb-wrap { aspect-ratio: 16 / 9; }
.post-card-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px 26px 26px; }
.post-card h2 { font-size: 1.18rem; margin: 0; }
.post-card:hover h2 { color: var(--navy-600); }
.post-card-date { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-700); font-family: var(--font-head); font-weight: 600; margin: 0; }
.post-card-excerpt {
  margin: 0; font-size: .95rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-more { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--navy-800); margin-top: auto; }

.post-hero-image {
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); margin: 0 0 36px;
}
.post-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.video-embed {
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); width: 100%;
}
.video-embed iframe { width: 100%; height: 100%; display: block; border: 0; }

.post-content .lede { font-size: 1.22rem; line-height: 1.7; color: var(--ink); }
.post-content h2 { margin-top: 1.6em; }
.post-content h3 { margin-top: 1.4em; }
.post-content .callout {
  background: var(--blue-050); border-left: 4px solid var(--gold-400);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; margin: 1.6em 0;
}
.post-content .callout h2, .post-content .callout h3 { margin-top: 0; }
.post-content .faq-q { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin: 1.4em 0 .3em; }
.post-content .faq-q + p { margin-top: 0; }

/* ==========================================================================
   Forms + contact
   ========================================================================== */
/* offsets the #contact-form anchor target so the sticky header doesn't
   cover the top of the form when linked to directly (e.g. the header CTA) */
#contact-form { scroll-margin-top: 100px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(46,74,106,.15);
}
.form-status { margin: 6px 0 0; font-size: .95rem; }
.form-status.ok { color: #1e7a3c; }
.form-status.err { color: #b3261e; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; }
.contact-card .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-card h3 { margin-bottom: .2em; font-size: 1.05rem; }
.contact-card p { margin: 0; overflow-wrap: anywhere; }
/* flex items default to min-width:auto, which stops them shrinking below an
   unbreakable string's full width (e.g. the email address) — allow it. */
.contact-card > div { min-width: 0; }

/* ==========================================================================
   Calculator
   ========================================================================== */
.calc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.calc-tabs { display: flex; background: var(--blue-050); border-bottom: 1px solid var(--line); }
.calc-tab {
  flex: 1; padding: 16px 10px; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  background: none; border: 0; border-bottom: 3px solid transparent; color: var(--body-c); cursor: pointer;
}
.calc-tab[aria-selected="true"] { color: var(--navy-800); border-bottom-color: var(--gold-400); background: #fff; }
.calc-panel { padding: clamp(24px, 3.5vw, 40px); }
.calc-result {
  margin-top: 26px; padding: 24px; border-radius: var(--radius); text-align: center;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700)); color: #c2cede;
}
.calc-result strong { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--gold-300); }
.calc-note { font-size: .85rem; color: var(--body-c); margin-top: 14px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: #a9b8c9; font-size: .95rem; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px;
  padding-block: clamp(48px, 6vw, 72px);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-brand img { margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; }
.footer-social-row { display: flex; gap: 10px; }
.footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); color: #e8eef5;
}
.footer-social:hover { background: var(--gold-500); color: var(--navy-950); }
.footer-col h3 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.1em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #a9b8c9; text-decoration: none; }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding-block: 20px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #c6d2e0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
