/* ==========================================================================
   Addiction Treatment Services — SHELL
   The site-wide header (with mega menu), footer, mobile menu, floating CTA,
   call-disclosure modal and back-to-top. Loaded on EVERY page so the homepage
   and every inner page share one design system (the warm editorial branding).
   Page-specific CSS lives in home.css (homepage sections) and main.css (inner
   content). Keep only shell chrome here.
   ========================================================================== */

/* ------------------------------------------------------------------ TOKENS */
:root {
  --paper:      #f4eee4;
  --paper-2:    #efe6d8;
  --paper-3:    #eae0cf;
  --ink:        #211d18;
  --ink-2:      #2b2620;
  --cream-text: #ece2d3;
  --cream-mute: #b9ad9a;
  --brick:      #bf4a2c;
  --brick-dark: #a63e24;
  --gold:       #a9855a;
  --gold-soft:  #c3a980;
  --text:       #2a251f;
  --muted:      #6f6559;
  --line:       rgba(33, 29, 24, 0.12);
  --line-dark:  rgba(255, 255, 255, 0.14);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;
  --brandfont: "Figtree", system-ui, sans-serif;

  --container: 1240px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(40, 30, 20, 0.14);
  --shadow-sm: 0 6px 20px rgba(40, 30, 20, 0.10);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.shell-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* skip link (shared) */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------ SHARED BUTTONS */
.solid-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--brick); color: #fff;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; font-family: var(--sans);
  border: none; transition: background .2s var(--ease), transform .2s var(--ease);
}
.solid-btn:hover { background: var(--brick-dark); transform: translateY(-1px); color: #fff; }
.solid-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* =====================================================================
   HEADER
   Base state = transparent over a dark hero (homepage). Inner pages get a
   solid header via body:not(.ats-home). On the homepage, shell.js adds
   .scrolled past the hero to flip it solid.
   ===================================================================== */
.site-header {
  /* Fixed from the start (even on the homepage, where it's transparent over the
     hero). It used to be absolute and flip to fixed on scroll, and that
     position change was a full-viewport layout shift (CLS ~1.0). Now only the
     background/shadow change on scroll, never the position. */
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 0;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.header-inner { display: flex; align-items: center; gap: 26px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark { width: 40px; height: auto; display: block; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.04; }
.brand-line {
  font-family: var(--brandfont);
  font-weight: 600; font-size: 1.04rem; letter-spacing: -0.006em;
  white-space: nowrap;
}

/* --- primary nav --- */
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: 10px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: #fff; font-size: 0.94rem; font-weight: 500; opacity: .94;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  transition: opacity .2s, background .2s, color .2s;
}
.nav-link:hover { opacity: 1; color: #fff; }
.nav-link .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); opacity: .8; }
.nav-item:hover .nav-link .chev { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center;
  transition: background .2s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: rgba(255,255,255,.26); color: #fff; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 0.88rem; font-weight: 500;
  white-space: nowrap; transition: background .2s, border-color .2s;
}
.pill-btn svg { width: 15px; height: 15px; }
.pill-btn:hover { background: rgba(255,255,255,.14); color: #fff; }

.header-actions .solid-btn { background: #fff; color: var(--ink); padding: 11px 22px; font-size: 0.9rem; white-space: nowrap; gap: 8px; }
.header-actions .solid-btn:hover { background: var(--paper); color: var(--ink); transform: none; }
/* Icon lives in the markup but only shows when the button collapses on phones. */
.header-actions .solid-btn .solid-btn-icon { display: none; width: 18px; height: 18px; flex-shrink: 0; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .25s var(--ease); }

/* --- solid header: scrolled homepage AND every inner page --- */
.site-header.scrolled,
body:not(.ats-home) .site-header {
  position: fixed; background: var(--paper); padding: 12px 0;
  box-shadow: 0 4px 24px rgba(40,30,20,.10);
}
/* inner pages: clean white header with a hairline under it (no heavy shadow) */
body:not(.ats-home) .site-header {
  background: #fff; box-shadow: none; border-bottom: 1px solid var(--line);
}
.site-header.scrolled .brand,
.site-header.scrolled .nav-link,
body:not(.ats-home) .site-header .brand,
body:not(.ats-home) .site-header .nav-link { color: var(--ink); }
.site-header.scrolled .brand-mark,
body:not(.ats-home) .site-header .brand-mark { filter: brightness(0); }
.site-header.scrolled .nav-link:hover,
body:not(.ats-home) .site-header .nav-link:hover { background: rgba(33,29,24,.05); }
.site-header.scrolled .icon-btn,
body:not(.ats-home) .site-header .icon-btn { background: rgba(33,29,24,.08); color: var(--ink); }
.site-header.scrolled .pill-btn,
body:not(.ats-home) .site-header .pill-btn { border-color: var(--line); color: var(--ink); }
.site-header.scrolled .header-actions .solid-btn,
body:not(.ats-home) .site-header .header-actions .solid-btn { background: var(--brick); color: #fff; }
.site-header.scrolled .header-actions .solid-btn:hover,
body:not(.ats-home) .site-header .header-actions .solid-btn:hover { background: var(--brick-dark); }
.site-header.scrolled .nav-toggle span,
body:not(.ats-home) .site-header .nav-toggle span { background: var(--ink); }

/* inner pages need top padding so the fixed header doesn't overlap content.
   Header height varies by breakpoint (~70px desktop, taller on mobile where the
   two-line brand wraps), so match per breakpoint to avoid a gap or an overlap. */
body:not(.ats-home) #main-content,
body:not(.ats-home) #main { padding-top: 70px; }
@media (max-width: 900px) {
  body:not(.ats-home) #main-content,
  body:not(.ats-home) #main { padding-top: 68px; }
}
@media (max-width: 600px) {
  body:not(.ats-home) #main-content,
  body:not(.ats-home) #main { padding-top: 90px; }
}

/* =====================================================================
   MEGA MENU (desktop, hover-opened, pure CSS)
   ===================================================================== */
.mega {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 640px;
  background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 1200;
}
.nav-item:hover > .mega,
.nav-item:focus-within > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
/* hover bridge so the panel doesn't close in the gap */
.nav-item > .mega::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }

.mega--full { left: 50%; transform: translate(-50%, 8px); min-width: min(980px, 92vw); }
.nav-item:hover > .mega--full,
.nav-item:focus-within > .mega--full { transform: translate(-50%, 0); }
.mega--insurance { min-width: 620px; }
.mega--simple { min-width: 260px; padding: 12px; }

.mega-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.mega-header-title { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: var(--ink); }
.mega-header-link { font-size: 0.85rem; font-weight: 600; color: var(--brick); }
.mega-header-link:hover { color: var(--brick-dark); }

.mega-body { padding: 22px 24px; }
.mega-search { margin-bottom: 20px; }
.mega-search form { display: flex; gap: 8px; }
.mega-search input {
  flex: 1; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; font-size: 0.9rem; font-family: var(--sans); color: var(--text); background: var(--paper);
}
.mega-search input:focus { outline: none; border-color: var(--gold); }
.mega-search button {
  border: none; background: var(--brick); color: #fff; font-weight: 600;
  padding: 0 20px; border-radius: 10px; font-size: 0.9rem; cursor: pointer;
}
.mega-search button:hover { background: var(--brick-dark); }

.mega-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px; }
.mega-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.mega-grid-4 + .mega-grid-4 { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.mega-col-span-2 { grid-column: span 2; }

.mega-section-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.mega-section-title a { color: var(--gold); }
.mega-section-title a:hover { color: var(--brick); }

.mega-link {
  display: block; font-size: 0.9rem; color: var(--text);
  padding: 6px 0; transition: color .15s, padding-left .15s;
}
.mega-link:hover { color: var(--brick); padding-left: 4px; }

.mega-state-letters { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mega-state-letters a {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px;
  font-size: 0.82rem; font-weight: 600; color: var(--muted); background: var(--paper);
  transition: background .15s, color .15s;
}
.mega-state-letters a:hover { background: var(--brick); color: #fff; }

/* insurance logo grid */
.insurance-logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.insurance-logo-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.insurance-logo-card img { height: 34px; width: auto; object-fit: contain; }
.insurance-logo-card span { font-size: 0.72rem; color: var(--muted); }
.insurance-logo-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.insurance-view-all { display: inline-block; margin-top: 16px; font-size: 0.88rem; font-weight: 600; color: var(--brick); }
.insurance-view-all:hover { color: var(--brick-dark); }

/* simple dropdown links (Resources) */
.mega--simple .dropdown-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px; font-size: 0.92rem; font-weight: 500; color: var(--text);
  transition: background .15s, color .15s;
}
.mega--simple .dropdown-link svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.mega--simple .dropdown-link:hover { background: var(--paper-2); color: var(--brick); }
.mega--simple .dropdown-link:hover svg { color: var(--brick); }

.mega-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 24px; background: var(--paper-2); border-top: 1px solid var(--line);
}
.mega-footer-text { font-size: 0.88rem; color: var(--muted); }
.mega-footer-cta { font-size: 0.9rem; font-weight: 600; color: var(--brick); }
.mega-footer-cta:hover { color: var(--brick-dark); }

/* =====================================================================
   MOBILE MENU (rendered in PHP as an accordion)
   ===================================================================== */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; width: min(90vw, 380px);
  background: var(--ink); color: var(--cream-text);
  z-index: 1600; transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto; padding: 84px 24px 40px;
}
body.mobile-open .mobile-menu { transform: translateX(0); }
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(20,15,12,.5); z-index: 1500;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
body.mobile-open .mobile-overlay { opacity: 1; visibility: visible; }
.mobile-close {
  position: absolute; top: 22px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: none; color: #fff; display: grid; place-items: center; cursor: pointer;
}
.mobile-close svg { width: 20px; height: 20px; }
.m-acc { border-bottom: 1px solid var(--line-dark); }
.m-acc-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; color: #fff; font-size: 1.05rem; font-weight: 500;
  padding: 16px 0; cursor: pointer; font-family: var(--sans);
}
.m-acc-toggle svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.m-acc.open .m-acc-toggle svg { transform: rotate(180deg); }
.m-acc-panel { display: none; padding: 0 0 14px 8px; }
.m-acc.open .m-acc-panel { display: block; }
.m-acc-panel a { display: block; color: var(--cream-mute); font-size: 0.94rem; padding: 8px 0; }
.m-acc-panel a:hover { color: #fff; }
.mobile-flat { display: block; color: #fff; font-size: 1.05rem; font-weight: 500; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu .solid-btn { margin-top: 22px; justify-content: center; background: var(--brick); color: #fff; }
.mobile-menu .pill-btn { margin-top: 12px; justify-content: center; border-color: var(--line-dark); color: #fff; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--ink); color: var(--cream-text); }

/* Clean light "verified against" band: the logos sit directly on a light strip
   (no dark background, no white pills) with hairline dividers, then the strip
   flows into the dark footer below. Reads as an intentional trust section. */
.footer-partners { background: #faf8f5; border-bottom: 1px solid rgba(20,18,16,.06); padding: 42px 0 46px; }
.footer-partners-label {
  text-align: center; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: #6b6258; margin-bottom: 24px; /* 4.5:1+ on #faf8f5 (WCAG AA) */
}
.footer-partner-row {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px 0; max-width: 940px; margin: 0 auto;
  background: none; border-radius: 0; padding: 0; box-shadow: none;
}
.footer-partner {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; padding: 8px clamp(20px, 3vw, 44px); min-width: 0; height: 64px;
  transition: transform .2s var(--ease);
}
.footer-partner + .footer-partner::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 42px; background: rgba(20,18,16,.12);
}
.footer-partner:hover { transform: translateY(-2px); }
.footer-partner img { max-height: 52px; width: auto; max-width: 150px; object-fit: contain; }

.footer-main { padding: 60px 0 46px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 44px; }
.footer-brand .logo,
.footer-brand .brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 18px; }
.footer-brand .brand-mark { width: 44px; }
.footer-brand p { color: var(--cream-mute); font-size: 0.92rem; line-height: 1.7; max-width: 40ch; }
.footer-heading { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: #fff; margin-bottom: 18px; }
.footer-links-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-links-list a { color: var(--cream-mute); font-size: 0.92rem; transition: color .15s, padding-left .15s; }
.footer-links-list a:hover { color: #fff; padding-left: 3px; }

.footer-phone {
  display: inline-flex; align-items: center; gap: 10px; color: #fff;
  font-size: 1.15rem; font-weight: 600; margin-bottom: 12px;
}
.footer-phone svg { width: 20px; height: 20px; color: currentColor; }
.footer-email { display: block; color: var(--cream-mute); font-size: 0.9rem; margin-bottom: 20px; }
.footer-email:hover { color: #fff; }

.footer-newsletter p { color: var(--cream-mute); font-size: 0.85rem; margin-bottom: 12px; }
.footer-newsletter form { display: flex; gap: 8px; }
.footer-newsletter input {
  flex: 1; min-width: 0; border: 1px solid var(--line-dark); background: rgba(255,255,255,.06);
  color: #fff; border-radius: 10px; padding: 11px 14px; font-size: 0.88rem; font-family: var(--sans);
}
.footer-newsletter input::placeholder { color: var(--cream-mute); }
.footer-newsletter input:focus { outline: none; border-color: var(--gold); }
.footer-newsletter button {
  border: none; background: var(--brick); color: #fff; font-weight: 600;
  padding: 0 18px; border-radius: 10px; cursor: pointer; font-size: 0.88rem;
}
.footer-newsletter button:hover { background: var(--brick-dark); }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--cream-mute); transition: .2s; }
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover { background: var(--brick); color: #fff; }

/* Ask AI row (site-wide, in the dark footer) */
.footer-ai { border-top: 1px solid rgba(255,255,255,.08); }
.footer-ai-row { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 24px 0; flex-wrap: wrap; }
.footer-ai-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #e2886a; } /* lighter terracotta: 4.5:1+ on the dark footer (WCAG AA) */
.footer-ai-label svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-ai-row > a { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); color: var(--cream-mute); transition: .2s; }
.footer-ai-row > a:hover { color: #fff; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.footer-ai-row > a svg { width: 21px; height: 21px; }

.footer-bottom { border-top: 1px solid var(--line-dark); padding: 22px 0; }
.footer-bottom .shell-container,
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom p, .footer-bottom span { font-size: 0.82rem; color: var(--cream-mute); }
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom nav a { font-size: 0.82rem; color: var(--cream-mute); }
.footer-bottom nav a:hover { color: #fff; }
.footer-motto { font-family: var(--serif); font-style: italic; }

/* =====================================================================
   FLOATING CTA + CALL MODAL + BACK TO TOP
   ===================================================================== */
.floating-cta-group { position: fixed; right: 22px; bottom: 22px; z-index: 1400; display: flex; align-items: center; gap: 8px; }
.floating-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brick); color: #fff; padding: 13px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; box-shadow: 0 12px 30px rgba(191,74,44,.4);
  transition: transform .2s, background .2s;
}
.floating-cta:hover { background: var(--brick-dark); color: #fff; transform: translateY(-2px); }
.floating-cta svg { width: 18px; height: 18px; }
.floating-cta span:last-child { opacity: 1; font-weight: 600; } /* full white on brick = 5.8:1 (WCAG AA) */
.cta-help {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.cta-help svg { width: 20px; height: 20px; }
.cta-help:hover { background: var(--ink-2); }

.cta-modal { position: fixed; inset: 0; z-index: 1800; display: grid; place-items: center; padding: 20px; }
.cta-modal[hidden] { display: none; }
.cta-modal-backdrop { position: absolute; inset: 0; background: rgba(20,15,12,.55); }
.cta-modal-card {
  position: relative; background: var(--paper); color: var(--text);
  max-width: 520px; width: 100%; border-radius: 18px; padding: 34px 32px; box-shadow: var(--shadow);
}
.cta-modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(33,29,24,.06); border: none; cursor: pointer; display: grid; place-items: center; color: var(--muted);
}
.cta-modal-close svg { width: 18px; height: 18px; }
.cta-modal-title { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--ink); margin-bottom: 14px; }
.cta-modal-body { font-size: 0.95rem; line-height: 1.7; color: var(--muted); }

.back-to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 1300;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top:hover { background: var(--ink-2); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .main-nav { gap: 0; }
  .nav-link { padding: 10px 9px; font-size: 0.9rem; }
  .header-actions .pill-btn { display: none; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions .icon-btn { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .solid-btn { padding: 10px 16px; font-size: 0.84rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .shell-container { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-partner-row { gap: 18px 24px; padding: 22px 18px; }
  .footer-partner { padding: 6px 10px; height: auto; }
  .footer-partner + .footer-partner::before { display: none; }
  .footer-partner img { max-height: 38px; }
  .footer-bottom .shell-container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .floating-cta span:last-child { display: none; }
  .brand-line { font-size: 0.92rem; }
  .brand-mark { width: 34px; }
}
/* Phones: collapse the header CTA to a compact phone-icon circle so the header
   fits every device (down to 320px) without wrapping. The full "Get Help Now"
   stays in the mobile menu and the floating CTA. */
@media (max-width: 600px) {
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .header-actions .solid-btn {
    width: 42px; height: 42px; min-width: 42px; padding: 0;
    border-radius: 50%; justify-content: center;
  }
  .header-actions .solid-btn .solid-btn-label { display: none; }
  .header-actions .solid-btn .solid-btn-icon { display: block; }
  .nav-toggle { padding: 6px 2px; }
  /* Ask-AI row: label on its own centered line, the 4 icons in one row below,
     with room above/below so nothing touches the divider lines. */
  .footer-ai-row { gap: 14px 12px; padding: 28px 0; }
  .footer-ai-label { flex-basis: 100%; justify-content: center; margin-bottom: 4px; }
}
@media (max-width: 360px) {
  .shell-container { padding: 0 12px; }
  .brand-line { font-size: 0.85rem; }
  .brand-mark { width: 30px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .header-actions .solid-btn { width: 40px; height: 40px; min-width: 40px; }
}
