/* =========================================================
   Mobile Health Providers, shared styles
   Navy + warm gold + sea teal. Newsreader serif + Public Sans.
   ========================================================= */

:root {
  /* Brand */
  --ink: #0E1F4D;          /* navy primary */
  --ink-2: #1B2E66;
  --brand: #4338CA;        /* logo royal blue */
  --brand-2: #5A4FE0;
  --brand-deep: #2D2599;

  /* Accents */
  --gold: #B8893A;         /* warm, not yellow */
  --gold-text: #7A5524;    /* text-safe gold on cream (~6.8:1 contrast, AAA) */
  --gold-soft: #EAD3A2;
  --gold-tint: #F7EBCF;
  --teal: #1E8A82;
  --teal-text: #146862;    /* text-safe teal (passes AA on cream) */
  --teal-soft: #B4DDD7;
  --teal-tint: #E5F2EF;

  /* Surfaces */
  --cream: #FAF6EE;        /* warm off-white background */
  --cream-2: #F4EEDF;
  --paper: #FFFFFF;
  --slate: #14223D;
  --body: #2A3754;
  --muted: #5C6781;
  --line: #E6DFCB;
  --line-cool: #DCE1EC;

  /* Status */
  --ok: #1E8A82;
  --warn: #B8893A;

  /* Type */
  --font-serif: "Newsreader", "Source Serif Pro", Georgia, serif;
  --font-sans: "Public Sans", system-ui, -apple-system, Segoe UI, Helvetica, sans-serif;

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Layout */
  --container: 1200px;
  --container-narrow: 920px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(14, 31, 77, 0.06), 0 1px 1px rgba(14, 31, 77, 0.04);
  --shadow-md: 0 2px 8px rgba(14, 31, 77, 0.08), 0 1px 3px rgba(14, 31, 77, 0.05);
  --shadow-lg: 0 12px 32px rgba(14, 31, 77, 0.12), 0 4px 12px rgba(14, 31, 77, 0.06);
}

/* Skip link, first focusable element, jumps past nav --------- */
.skip-link {
  position: absolute;
  left: 16px; top: -64px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
  font-size: 0.95rem;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Visible focus rings on all interactive elements -------------- */
*:focus { outline: none; }
*:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}
.card a:focus-visible,
.article-card a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* Honor prefers-reduced-motion ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; }

/* Typography ------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--slate);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 4.2vw + 0.6rem, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 2.4vw + 0.6rem, 2.8rem); }
h3 { font-size: clamp(1.3rem, 1vw + 0.9rem, 1.6rem); }
h4 { font-size: 1.15rem; font-weight: 600; }
/* .visual-h1, looks like an h1 but isn't one. Used by the alternate hero
   variants on the homepage so the page only ever contains a single <h1>. */
.visual-h1 {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
  line-height: 1.1;
  font-size: clamp(2.4rem, 4.2vw + 0.6rem, 4.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
}
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
.lead { font-size: 1.25rem; color: var(--body); line-height: 1.55; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow.teal { color: var(--teal-text); }

/* Layout ---------------------------------------------------------- */

/* The `hidden` attribute defaults to display:none, but explicit display
   rules on `.hero-c { display: flex }` etc. override it. Enforce hide. */
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--s-5);
  padding-right: var(--s-5);
}
.container.narrow { max-width: var(--container-narrow); }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section.compact { padding: clamp(40px, 5vw, 72px) 0; }
.section.ink  { background: var(--ink); color: #DCE4F7; }
.section.ink h1, .section.ink h2, .section.ink h3 { color: #FFFFFF; }
.section.cream { background: var(--cream-2); }
.section.paper { background: var(--paper); }

/* Header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex; align-items: center; gap: var(--s-5);
  height: 84px;
}
.brand {
  display: flex; align-items: center; gap: var(--s-3);
  text-decoration: none; color: var(--slate);
}
.brand:hover { text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; display: block; }
.brand__text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  font-style: normal;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
.brand__text em {
  font-style: normal;
  color: var(--ink);
  font-weight: 400;
}
@media (max-width: 1100px) {
  .brand__text { font-size: 1.1rem; }
  .brand__mark { width: 34px; height: 34px; }
  .nav { gap: var(--s-4); }
  .nav a { font-size: 0.9rem; }
  .nav__phone { font-size: 0.9rem; }
}
@media (max-width: 860px) {
  .brand__text { font-size: 1.3rem; }
  .brand__mark { width: 38px; height: 38px; }
}
@media (max-width: 720px) {
  .brand__mark { width: 34px; height: 34px; }
  .brand__text { font-size: 1.15rem; }
}
@media (max-width: 380px) {
  .brand__text { display: none; }
}
.brand__wordmark { display: none; }
.nav {
  display: flex; align-items: center; gap: var(--s-5);
  margin-left: auto;
}
.nav a {
  color: var(--slate);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { text-decoration: none; color: var(--brand); }
.nav a.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}
.nav__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap; /* keep "562-686-2015" on one line */
}
.nav__phone:hover { text-decoration: none; color: var(--brand); }
.nav__phone svg { width: 16px; height: 16px; color: var(--gold); }

/* Patient Portal: demoted to a small inline text link, not a pill. */
.nav__portal {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: nowrap; /* keep "Patient Portal" on one line */
  transition: color .15s ease;
}
.nav__portal:hover {
  color: var(--brand);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  border: 0;
}
.nav__portal svg { width: 13px; height: 13px; opacity: 0.75; }

/* Mobile nav controls --------------------------------------------- */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--ink);
  padding: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.nav-header-call {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--gold);
  color: #fff;
  border-radius: 10px;
}
.nav-header-call:hover { background: #9F7530; color: #fff; }
.nav-header-call svg { width: 20px; height: 20px; }

.nav-drawer {
  display: none;
  position: fixed;
  inset: 84px 0 0 0;
  background: var(--paper);
  z-index: 49;
  overflow-y: auto;
  padding: var(--s-5) var(--s-5) var(--s-9);
  flex-direction: column;
  gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a:not(.btn) {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--ink);
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.nav-drawer a.active { color: var(--gold); }
.nav-drawer__cta {
  margin-top: var(--s-5);
  display: grid; gap: 12px;
}
.nav-drawer__cta .btn { width: 100%; }
.nav-drawer__info {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: 0.92rem; color: var(--muted);
}
.nav-drawer__info a { color: var(--ink); font-weight: 600; }

/* Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn--primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn--gold:hover { background: #9F7530; border-color: #9F7530; color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost.on-ink {
  color: #fff; border-color: rgba(255,255,255,0.5);
}
.btn--ghost.on-ink:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn--teal:hover { background: #166E68; border-color: #166E68; }
.btn--lg { padding: 18px 28px; font-size: 1.05rem; min-height: 56px; }
.btn svg { width: 18px; height: 18px; }

/* Trust bar ------------------------------------------------------- */
.trust-bar {
  padding: var(--s-5) 0;
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.trust-bar > .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.trust-bar__item {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 0 var(--s-3);
  font-size: 0.95rem;
  color: var(--slate);
  font-weight: 500;
}
.trust-bar__item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.trust-bar__item.t svg { color: var(--teal); }

/* Cards ----------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-md);
}
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gold-tint);
  color: var(--gold);
  margin-bottom: var(--s-4);
}
.card__icon.teal { background: var(--teal-tint); color: var(--teal); }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: var(--s-2); }
.card__link {
  margin-top: auto;
  padding-top: var(--s-4);
  font-weight: 600;
  color: var(--brand);
  display: inline-flex; gap: 6px; align-items: center;
}
.card__link::after { content: "→"; transition: transform .2s ease; }
.card:hover .card__link::after { transform: translateX(4px); }

/* Forms ----------------------------------------------------------- */
.field {
  display: flex; flex-direction: column;
  gap: 6px;
  margin-bottom: var(--s-4);
}
.field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate);
}
.field .hint {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}
.field .error-msg {
  display: none;
  font-size: 0.85rem;
  color: #B92E2E;
  font-weight: 500;
  margin-top: 4px;
  padding-left: 18px;
  position: relative;
}
.field .error-msg::before {
  content: "!";
  position: absolute;
  left: 0; top: 0;
  width: 14px; height: 14px;
  background: #B92E2E;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.field.has-error .error-msg { display: block; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #B92E2E;
}
.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(185,46,46,0.18);
}
.form-error-summary {
  display: none;
  margin: 16px 0;
  padding: 16px 20px;
  background: #FBE9E9;
  border-left: 3px solid #B92E2E;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: #6F1A1A;
}
.form-error-summary.show { display: block; }
.form-error-summary strong { color: #6F1A1A; }

/* Honeypot: visible to bots that parse the DOM, invisible (and inert) to
   humans + assistive tech. Real users never fill this; backend rejects any
   submission where it's filled. */
.mhp-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Cloudflare Turnstile widget container, sits just above the submit button. */
.mhp-turnstile {
  margin: 18px 0 8px;
  display: flex;
  justify-content: flex-start;
  min-height: 65px; /* matches the rendered widget so layout doesn't jump */
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--slate);
  background: var(--paper);
  border: 1.5px solid var(--line-cool);
  border-radius: var(--r-md);
  transition: border-color .15s ease, box-shadow .15s ease;
  font-family: var(--font-sans);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(67,56,202,0.18);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field--row > * { margin-bottom: 0; }
.fieldset {
  border: none; padding: 0; margin: 0 0 var(--s-6);
}
.fieldset legend {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--slate);
  margin-bottom: var(--s-4);
  padding: 0;
}
.checkbox-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.checkbox-row input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--brand); }
.checkbox-row label { font-size: 0.95rem; color: var(--body); font-weight: 400; line-height: 1.5; }
.radio-group {
  display: flex; gap: 10px;
}
.radio-group label {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--line-cool);
  border-radius: var(--r-md);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--slate);
  background: var(--paper);
}
.radio-group input { display: none; }
.radio-group label:has(input:checked) {
  border-color: var(--brand);
  background: rgba(67,56,202,0.06);
  color: var(--brand);
}
.radio-group label:has(input[value="Urgent"]:checked) {
  border-color: var(--gold);
  background: var(--gold-tint);
  color: var(--gold);
}

/* Image placeholders --------------------------------------------- */
.img-ph {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--cream-2) 0%, var(--gold-tint) 100%);
  color: var(--gold);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: var(--s-5);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.img-ph__real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  display: block;
  opacity: 0;
  transition: opacity .4s ease;
}
.img-ph.has-img .img-ph__real { opacity: 1; }
.img-ph.has-img::before { display: none; }
.img-ph.has-img .img-ph__inner { display: none; }
.img-ph.has-img .img-ph__label { display: none; }
.img-ph.teal { background: linear-gradient(135deg, #EAF4F2 0%, var(--teal-soft) 100%); color: var(--teal); }
.img-ph.navy { background: linear-gradient(135deg, #E1E6F3 0%, #C8D1EC 100%); color: var(--ink); }
.img-ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.5) 0%, transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.3) 0%, transparent 40%);
  pointer-events: none;
}
.img-ph__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  max-width: 220px;
}
.img-ph__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  margin-bottom: 6px;
}
.img-ph__icon svg { width: 28px; height: 28px; }
.img-ph__label { font-family: var(--font-serif); font-style: italic; font-size: 0.95rem; }

/* Pill / chip ----------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.02em;
}
.chip.gold { background: var(--gold-tint); border-color: var(--gold-soft); color: var(--gold-text); }
.chip.teal { background: var(--teal-tint); border-color: var(--teal-soft); color: var(--teal-text); }
.chip.navy { background: rgba(67,56,202,0.08); border-color: rgba(67,56,202,0.2); color: var(--brand); }

/* Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #B5C0DC;
  padding: var(--s-9) 0 var(--s-5);
  font-size: 0.93rem;
}
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.site-footer a { color: #DCE4F7; }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}
.site-footer__brand .brand-footer {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: var(--s-4);
}
.site-footer__brand .brand-footer svg { width: 56px; height: 56px; flex-shrink: 0; }
.site-footer__brand .brand-footer__text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: normal;
  color: #FAF6EE;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.site-footer__brand .brand-footer__text em {
  font-style: normal;
  color: #FAF6EE;
  font-weight: 400;
}
.site-footer__brand img { display: none; }
.site-footer__brand p { color: #B5C0DC; max-width: 320px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-5); justify-content: space-between; align-items: center;
  color: #8693B3; font-size: 0.85rem;
}
.site-footer__legal { max-width: 720px; font-size: 0.82rem; line-height: 1.6; color: #8693B3; margin-top: var(--s-4); }

/* Mobile sticky CTA ---------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 10px;
  gap: 10px;
  box-shadow: 0 -4px 12px rgba(14,31,77,0.08);
}
.mobile-cta .btn { flex: 1; padding: 14px; font-size: 0.95rem; min-height: 52px; }

/* Back to top ----------------------------------------------------- */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: none;
  align-items: center; justify-content: center;
  border: none; cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 30;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--brand); }

/* Page hero (non-home pages) ------------------------------------- */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(80px, 10vw, 140px) 0 clamp(56px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,137,58,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero::before {
  content: "";
  position: absolute;
  left: -80px; bottom: -160px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,138,130,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { font-size: 1.2rem; max-width: 60ch; color: #DCE4F7; }
.page-hero__inner { position: relative; z-index: 1; }

/* Service detail row --------------------------------------------- */
.service-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: none; }
.service-row.reverse > :first-child { order: 2; }
.service-row .img-ph { aspect-ratio: 5 / 4; }
.service-row__who {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  background: var(--teal-tint);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.service-row__who h4 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}
.service-row__who p { margin: 0; font-size: 0.98rem; }

/* Utility --------------------------------------------------------- */
.grid { display: grid; gap: var(--s-5); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.stack-5 > * + * { margin-top: var(--s-5); }
.stack-3 > * + * { margin-top: var(--s-3); }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Section header used in many sections */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto var(--s-7); }
.sec-head p { font-size: 1.1rem; color: var(--muted); margin-top: var(--s-3); }

/* Inline icons used in service cards / step nodes */
.svgicon { width: 1em; height: 1em; vertical-align: -0.15em; }

/* Step (How it works) -------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  position: relative;
}
.step {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
  border: 1px solid var(--line);
}
.step__num {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--s-4);
  font-style: italic;
}
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* CTA banner ------------------------------------------------------ */
.cta-banner {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: var(--s-6);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,137,58,0.3) 0%, transparent 70%);
}
.cta-banner h2 { color: #fff; max-width: 16ch; margin-bottom: 8px; }
.cta-banner p { color: #DCE4F7; font-size: 1.1rem; margin: 0; max-width: 50ch; }
.cta-banner__actions {
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.cta-banner__phone {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 1.6rem;
  font-family: var(--font-serif);
  text-decoration: none;
}
.cta-banner__phone:hover { color: var(--gold-soft); text-decoration: none; }

/* FAQ accordion (homepage) --------------------------------------- */
.faq-section { background: var(--paper); }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  transition: color .15s ease;
}
.faq-item__summary::-webkit-details-marker { display: none; }
.faq-item__summary:hover { color: var(--brand); }
.faq-item__summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}
.faq-item__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--muted);
  transition: transform .25s ease, border-color .15s ease, color .15s ease;
  margin-top: 4px;
}
.faq-item__icon svg { width: 14px; height: 14px; }
.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
  border-color: var(--gold);
  color: var(--gold);
}
.faq-item__body {
  padding: 0 4px 24px 4px;
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 68ch;
}
.faq-item__body p { margin: 0 0 var(--s-3); }
.faq-item__body p:last-child { margin-bottom: 0; }
.faq-placeholder {
  display: inline-block;
  margin: 4px 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--gold-tint);
  color: var(--gold-text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Article cards (Education) -------------------------------------- */
.article-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.article-card .img-ph { border-radius: 0; aspect-ratio: 16/10; }
.article-card__body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.article-card__tag {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--gold-text); text-transform: uppercase; margin-bottom: 8px;
}
.article-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.article-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: var(--s-4); }
.article-card__link { margin-top: auto; font-weight: 600; color: var(--brand); }

/* Coming-soon article state -------------------------------- */
.article-card--upcoming,
.featured.upcoming {
  position: relative;
  opacity: 0.78;
  transition: opacity .2s ease;
}
.article-card--upcoming:hover,
.featured.upcoming:hover { opacity: 1; transform: none; box-shadow: none; }
.article-card--upcoming .article-card__link,
.featured.upcoming .btn { display: none; }
.article-card--upcoming .img-ph,
.featured.upcoming .img-ph { filter: grayscale(0.4); }
.upcoming-badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px;
  background: rgba(14,31,77,0.92);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.upcoming-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,137,58,0.25);
}
.featured.upcoming .upcoming-badge { top: 20px; right: 20px; padding: 7px 14px 7px 12px; font-size: 0.78rem; }

/* Counties / service area ---------------------------------------- */
.counties {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.county {
  padding: var(--s-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
}
.county__name { font-family: var(--font-serif); font-size: 1.2rem; color: var(--slate); margin-bottom: 4px; }
.county__sub { font-size: 0.85rem; color: var(--muted); }

/* Responsive ----------------------------------------------------- */
@media (max-width: 980px) {
  .grid-3, .grid-2, .steps, .counties,
  .site-footer__grid, .cta-banner, .service-row,
  .trust-bar > .container {
    grid-template-columns: 1fr 1fr !important;
  }
  .site-footer__grid { gap: var(--s-5); }
  .cta-banner { grid-template-columns: 1fr !important; }
  .service-row.reverse > :first-child { order: 0; }
}
@media (max-width: 1080px) {
  /* Desktop nav (5 links + portal + phone + Refer pill) doesn't fit below
     ~1080px. Collapse to hamburger + a single "Call" icon button. */
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-header-call { display: inline-flex; }
  .site-header__row { gap: var(--s-3); }
}
@media (max-width: 860px) {
  .site-header__row { gap: var(--s-3); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header__row { height: 72px; }
  .brand img { height: 44px; }
  .nav-drawer { inset: 72px 0 0 0; }
  .grid-3, .grid-2, .steps, .counties, .site-footer__grid,
  .trust-bar > .container, .service-row {
    grid-template-columns: 1fr !important;
  }
  .service-row { padding: var(--s-6) 0; gap: var(--s-5); }
  .service-row .img-ph { aspect-ratio: 16 / 10; }
  .service-row__who { padding: var(--s-3) var(--s-4); }
  .field--row { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
  .cta-banner__phone { font-size: 1.35rem; }
  .back-to-top { bottom: 84px; right: 16px; }
  .container { padding-left: var(--s-4); padding-right: var(--s-4); }
  .section { padding: 48px 0; }
  .page-hero { padding-top: 64px; padding-bottom: 40px; }
  .hero-a__image { max-width: 100%; }
  .hero-a__floater { left: 16px; right: 16px; bottom: -16px; }
  .hero-b__cta, .hero-a__cta { flex-direction: column; align-items: stretch; }
  .hero-b__cta .btn, .hero-a__cta .btn { width: 100%; }
  .trust-bar__item { padding: 0; }
  /* Card icons a touch smaller on phone */
  .card { padding: var(--s-5); }
  .card__icon { width: 48px; height: 48px; }
  .card__icon svg { width: 24px; height: 24px; }
  /* Service jump bar already hidden under 720 */
  /* Founder card stacks */
  .founder { padding: var(--s-5); }
}
@media (max-width: 420px) {
  h1 { font-size: clamp(2rem, 9vw, 2.6rem) !important; }
  .hero-a h1, .hero-b h1, .hero-c h1,
  .hero-a .visual-h1, .hero-b .visual-h1, .hero-c .visual-h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-a__phone-num { font-size: 1.6rem; }
  .cta-banner__phone { font-size: 1.2rem; }
}

/* Tweaks panel scoped vars override accent dynamically ----------- */
[data-accent="teal-first"] .eyebrow { color: var(--teal); }
[data-accent="teal-first"] .card__icon { background: var(--teal-tint); color: var(--teal); }
[data-accent="teal-first"] .trust-bar__item svg { color: var(--teal); }
[data-accent="teal-first"] .step__num { color: var(--teal); }
[data-accent="teal-first"] .btn--gold { background: var(--teal); border-color: var(--teal); }
[data-accent="teal-first"] .btn--gold:hover { background: #166E68; border-color: #166E68; }

/* Hero variants -------------------------------------------------- */
/* Variant A: editorial split */
.hero-a {
  padding: clamp(48px, 6vw, 88px) 0 clamp(48px, 6vw, 80px);
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero-a__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.hero-a h1 {
  font-size: clamp(2.6rem, 4.6vw + 0.6rem, 4.8rem);
  margin-bottom: var(--s-5);
}
.hero-a h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.hero-a p { font-size: 1.2rem; max-width: 46ch; }
.hero-a__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--s-6); }
.hero-a__phone {
  display: flex; align-items: center; gap: 12px;
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.hero-a__phone-label { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.hero-a__phone-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.hero-a__phone-num:hover { color: var(--gold); text-decoration: none; }
.hero-a__image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.hero-a__floater {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line);
}
.hero-a__floater-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 3px rgba(30,138,130,0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(30,138,130,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(30,138,130,0.0); }
}
.hero-a__floater-text { font-size: 0.92rem; color: var(--slate); font-weight: 500; }

@media (max-width: 980px) {
  .hero-a__grid { grid-template-columns: 1fr; }
  .hero-a__image { max-width: 480px; }
  .hero-a__floater { left: 0; }
}

/* Variant B: centered statement on ink */
.hero-b {
  background: var(--ink);
  color: #fff;
  padding: clamp(64px, 9vw, 120px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-b::before, .hero-b::after {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}
.hero-b::before { background: var(--gold); left: -160px; top: -200px; }
.hero-b::after { background: var(--teal); right: -160px; bottom: -200px; }
.hero-b__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero-b h1, .hero-b .visual-h1 { color: #fff; font-size: clamp(2.6rem, 4.6vw + 0.6rem, 5rem); }
.hero-b h1 em, .hero-b .visual-h1 em { font-style: italic; color: var(--gold-soft); font-weight: 400; }
.hero-b p { color: #D7DEF1; font-size: 1.25rem; max-width: 56ch; margin: var(--s-4) auto var(--s-6); }
.hero-b__cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-b__collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-8);
}
.hero-b__collage .img-ph { aspect-ratio: 4/5; }
.hero-b__collage .img-ph:nth-child(2) { transform: translateY(-24px); }

/* Variant C: image overlay card */
.hero-c {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex; align-items: flex-end;
  background: linear-gradient(135deg, var(--ink) 0%, var(--brand-deep) 100%);
}
.hero-c__bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(180deg, rgba(14,31,77,0.45) 0%, rgba(14,31,77,0.85) 100%),
    linear-gradient(135deg, #2C3E73 0%, #1A2C5E 100%);
  color: rgba(255,255,255,0.4);
  font-family: var(--font-serif);
  font-style: italic;
}
.hero-c__container { position: relative; z-index: 1; width: 100%; padding-block: var(--s-7); }
.hero-c__card {
  max-width: 640px;
  background: var(--cream);
  border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 56px);
  box-shadow: var(--shadow-lg);
}
.hero-c h1, .hero-c .visual-h1 { font-size: clamp(2.2rem, 3.8vw + 0.6rem, 3.6rem); }
.hero-c h1 em, .hero-c .visual-h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero-c__quickform {
  margin-top: var(--s-5);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}
.hero-c__quickform input {
  padding: 14px;
  border: 1.5px solid var(--line-cool);
  border-radius: var(--r-md);
  font: inherit;
  font-size: 1rem;
}
.hero-c__quickform .btn { padding: 14px 20px; }

@media (max-width: 720px) {
  .hero-c__quickform { grid-template-columns: 1fr; }
  .hero-b__collage { grid-template-columns: 1fr 1fr; }
  .hero-b__collage .img-ph:nth-child(3) { display: none; }
}

/* Map graphic --------------------------------------------------- */
.coverage-map {
  aspect-ratio: 5 / 3;
  background: linear-gradient(135deg, #F4EEDF 0%, #EAE2C8 100%);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
