/* MHC English theme — main stylesheet
   Ported from the approved design/prototype/styles.css (Phase 4A, v3).
   Design tokens sourced/labeled in design/design-system.md — VERIFIED tokens
   were extracted from mhcenter.ru's live CSS/HTML; APPROXIMATE tokens are
   interpreted design judgment. See that file before changing any token here.
   No internal project-status text appears in any selector's visible output. */

/* ---------- Self-hosted font (Phase 5: removed the remote Google Fonts
   dependency per docs/phase-5-wordpress-local.md, "Performance") ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800; /* variable font: covers the whole weight range used */
  font-display: swap;
  src: url('../fonts/manrope-variable-latin.woff2') format('woff2-variations'),
       url('../fonts/manrope-variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-ink: #474759;
  --color-primary: #177bcf;
  /* Brandbook colors (Phase 6, "bb_Mental Health Center.pdf", RGB/WEB model):
     --color-primary-strong / --color-navy / --color-navy-deep / and the
     "strong" tint below are now the brandbook's own official hex values,
     replacing earlier approximate/self-flagged guesses — see
     docs/phase-6-brand-implementation.md for the before/after and sourcing. */
  --color-primary-strong: #0147a1;
  --color-navy: #023282;
  --color-navy-deep: #00152f;
  --color-bg-subtle: #f7f7f7;
  --color-tint-blue: #e5f0fa;
  --color-tint-blue-strong: #96ccff;
  --color-border: #d6dae3;
  --color-accent-gold: #fcc515;
  --color-text-muted: #6b6b78;
  --color-text-on-navy: #ffffff;
  --color-text-on-navy-muted: #c7d3e6;
  --color-danger: #b3261e;
  --color-success: #1e7a3d;

  /* Typography */
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Spacing */
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-6: 48px; --sp-8: 72px; --sp-12: 96px;

  /* Geometry */
  --radius-pill: 999px;
  --radius-card: 18px;
  --radius-sm: 10px;

  --max-width: 1160px;
  --focus-ring: 0 0 0 3px rgba(31, 91, 255, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
img { border-style: none; }

h1, h2, h3 {
  font-family: var(--font-body);
  color: var(--color-ink);
  margin: 0 0 var(--sp-2);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: 38px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: normal; }
p { margin: 0 0 var(--sp-2); }
a { color: var(--color-primary); }

/* ---------- Accessibility basics ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--color-navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.screen-reader-text,
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--sp-3); }
.section { padding: var(--sp-8) 0; }
.section--tint { background: var(--color-tint-blue); }

.section-intro { max-width: 640px; margin: 0 auto var(--sp-4); text-align: center; }
.section-intro h2 { margin-bottom: var(--sp-1); }
.section-intro .lede { color: var(--color-text-muted); font-size: 15px; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: var(--sp-1);
}
.eyebrow--on-navy { color: #9ec4ee; }

/* ---------- Buttons: strict Book > Message > Call hierarchy ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--color-primary-strong); color: #fff; }
.btn--primary:hover { box-shadow: 0 8px 20px rgba(31, 91, 255, 0.32); }
.btn--secondary { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }
.btn--secondary:hover { background: var(--color-tint-blue-strong); }
.btn--on-navy.btn--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--on-navy.btn--secondary:hover { background: rgba(255,255,255,0.12); }
.btn--ghost { background: transparent; color: var(--color-ink); border-color: transparent; padding: 14px 14px; font-weight: 600; }
.btn--ghost:hover { color: var(--color-primary); }
.btn--on-navy.btn--ghost { color: var(--color-text-on-navy-muted); }
.btn--on-navy.btn--ghost:hover { color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.link { color: var(--color-primary); font-weight: 700; text-decoration: none; font-size: 14px; }
.link:hover { text-decoration: underline; }

/* Generic icon-only contact button (Phase 6) — used where we deliberately
   don't name the underlying messenger brand. Round, same visual weight as
   .btn--secondary, sized for a comfortable tap target. */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--color-primary); border: 1.5px solid var(--color-primary);
  text-decoration: none; cursor: pointer; flex-shrink: 0;
  transition: background 0.12s ease;
}
.icon-btn:hover { background: var(--color-tint-blue-strong); }
.icon-btn svg { width: 19px; height: 19px; }

.cta-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.trust-microcopy { font-size: 13px; color: var(--color-text-muted); margin-top: var(--sp-2); }
.trust-microcopy--on-navy { color: var(--color-text-on-navy-muted); }

/* ---------- Icon system ---------- */
.icon-chip {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-tint-blue-strong);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-chip svg { width: 22px; height: 22px; stroke: var(--color-primary); }
.icon-chip--navy { background: rgba(255,255,255,0.12); }
.icon-chip--navy svg { stroke: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 8px var(--sp-3); gap: var(--sp-2); min-height: 85px; } /* 235px-wide logo -> ~69.6px tall + 8px top/bottom padding ~= 85.6px, inside the 80-90px target */
/* Official MHC logo (Phase 6, sized per Human Visual Review 2026-09-14) —
   logo-main.png, native ratio 496:147. Width is the explicit, fixed
   dimension (more robust across browsers than height+auto — a stale-cache
   or intrinsic-size fallback can't silently blow this up to the image's
   raw 496px); height is auto, computed from that same ratio, so the image
   can never stretch or distort. At width:235px this yields ~85px of total
   header height with the padding above — inside the requested 80–90px
   desktop target. Brandbook clear space: the flex gap plus header padding
   keep every other element out of the logo's immediate space. */
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--color-ink); }
.brand-logo { width: 235px; height: auto; display: block; }

@media (min-width: 900px) and (max-width: 1279px) {
  .site-header .container { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 480px) {
  .brand-logo { width: 148px; } /* ~44px tall — clears the menu toggle with room to spare */
}

/* gap tightened from the original --sp-3 (24px)/8px so the logo (235px),
   nav, and CTA cluster all fit without collision at the narrowest desktop
   width (900–1279px, 1024px checked specifically) — loosened back up at
   1280px+ below, where there's room to spare. */
.main-nav { display: none; gap: 18px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--color-ink); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.main-nav a:hover { color: var(--color-primary); }
.header-cta { display: none; gap: 6px; align-items: center; }
.menu-toggle { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--color-navy); }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .menu-toggle { display: none; }
}

@media (min-width: 1280px) {
  .main-nav { gap: var(--sp-3); }
  .header-cta { gap: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--sp-6) 0 var(--sp-8);
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 32px; margin-bottom: var(--sp-2); }
.hero h1 .accent { color: #7fb7ff; }
.hero .subcopy { font-size: 17px; color: var(--color-text-on-navy-muted); max-width: 46ch; }
.hero-visual { order: -1; position: relative; }

/* Real MHC clinic photo (Phase 6) — replaces the former .brand-geometry
   placeholder. Same footprint/aspect-ratio the placeholder used, so the
   rest of the hero layout is untouched. object-fit: cover crops
   responsively at display time only; the source file itself is never
   altered. */
.hero-photo-frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

/* "10+ years" trust card — a plain white card layered on top of the photo
   via CSS (never baked into the image). Same shadow language already used
   elsewhere (specialist-card hover, etc.) — no gradients or new effects.
   Positioned fully inside the photo frame (mobile-first default below);
   on very narrow screens it drops out of the overlay and flows below the
   photo instead, still inside .hero-visual, so it never crowds the image. */
.hero-trust-card {
  position: absolute;
  left: 20px; bottom: 20px;
  max-width: 220px;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 14px 18px;
  box-shadow: 0 14px 32px rgba(14, 42, 82, 0.22);
}
.hero-trust-stat { display: block; font-size: 24px; font-weight: 800; color: var(--color-navy); line-height: 1.15; }
.hero-trust-text { display: block; font-size: 14px; color: var(--color-text-muted); margin-top: 4px; line-height: 1.5; }

@media (max-width: 360px) {
  /* Too little room to overlay without crowding the photo — flow the card
     below it instead, still visually part of the same hero-visual block. */
  .hero-trust-card {
    position: static;
    max-width: none;
    margin-top: var(--sp-3);
    box-shadow: none;
    border: 1px solid var(--color-border);
  }
}

.brand-geometry {
  aspect-ratio: 4 / 3; border-radius: var(--radius-card); position: relative; overflow: hidden;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08), transparent 60%);
  border: 1px solid rgba(255,255,255,0.14);
}
.brand-geometry .shape { position: absolute; border-radius: 50%; }
.brand-geometry .shape--1 { width: 62%; aspect-ratio: 1; top: -14%; right: -12%; background: radial-gradient(circle at 35% 35%, rgba(127,183,255,0.55), rgba(127,183,255,0) 70%); }
.brand-geometry .shape--2 { width: 40%; aspect-ratio: 1; bottom: -10%; left: -8%; background: radial-gradient(circle at 40% 40%, rgba(252,197,21,0.35), rgba(252,197,21,0) 70%); }
.brand-geometry .shape--3 { width: 46%; aspect-ratio: 1; top: 30%; left: 20%; border: 1.5px solid rgba(255,255,255,0.35); background: transparent; }
.brand-geometry .shape--4 { width: 16%; aspect-ratio: 1; bottom: 18%; right: 18%; background: rgba(255,255,255,0.85); }
.brand-geometry .shape--5 { width: 9%; aspect-ratio: 1; top: 18%; right: 32%; background: rgba(255,255,255,0.4); }

@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.22fr 1fr; }
  .hero-visual { order: 0; }
  .hero h1 { font-size: 46px; }
  .hero-trust-card { left: 24px; bottom: 24px; max-width: 240px; }
}

/* ---------- Trust strip ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--color-border); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; padding: var(--sp-3); text-align: center; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; color: var(--color-navy); }
.trust-item svg { width: 18px; height: 18px; stroke: var(--color-primary); flex-shrink: 0; }

/* ---------- Services ---------- */
.service-group { margin-bottom: var(--sp-4); }
.service-group h3.group-label { text-transform: uppercase; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--color-primary); margin-bottom: var(--sp-2); }
.card-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 700px) { .card-grid--2 { grid-template-columns: 1fr 1fr; } }
.service-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card);
  padding: var(--sp-3); display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.service-card:hover { border-color: var(--color-primary); box-shadow: 0 10px 24px rgba(14, 42, 82, 0.1); transform: translateY(-2px); }
.service-card ul { margin: 0; padding-left: 18px; color: var(--color-text-muted); font-size: 14px; }
.service-card ul li { margin-bottom: 4px; }

/* ---------- Not sure who you need? ---------- */
.triage-section { background: var(--color-navy); color: #fff; }
.triage { display: grid; gap: var(--sp-4); }
.triage-intro h2 { color: #fff; font-size: 28px; }
.triage-intro .lede { color: var(--color-text-on-navy-muted); font-size: 16px; max-width: 46ch; }
.triage-buttons { margin-top: var(--sp-3); }
.triage-form-card { background: #fff; border-radius: var(--radius-card); padding: var(--sp-3); color: var(--color-ink); }
@media (min-width: 900px) { .triage { grid-template-columns: 1fr 1fr; align-items: center; } }

.field { margin-bottom: var(--sp-2); }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input[type="text"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 15px; padding: 11px 13px;
  border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-bg-subtle);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-primary); background: #fff; }
.field.has-error input, .field.has-error select { border-color: var(--color-danger); }
.field-error { color: var(--color-danger); font-size: 12.5px; margin-top: 4px; }
.radio-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; }
.helper-text { font-size: 12.5px; color: var(--color-text-muted); margin-top: 4px; }
.consent-row { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--color-text-muted); }
.form-success { background: var(--color-tint-blue); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); font-size: 14px; color: var(--color-navy); font-weight: 600; }

/* ---------- Specialists ---------- */
.specialist-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 700px) { .specialist-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .specialist-grid { grid-template-columns: repeat(3, 1fr); } }

.specialist-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.specialist-card:hover { box-shadow: 0 12px 28px rgba(14,42,82,0.12); transform: translateY(-2px); }
.specialist-card a.specialist-card-link { text-decoration: none; color: inherit; }

.specialist-avatar-band {
  aspect-ratio: 4 / 3.2; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-strong), var(--color-navy));
  overflow: hidden;
}
.specialist-avatar-band .photo-img { width: 100%; height: 100%; object-fit: cover; }
.specialist-avatar-band .initials {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,0.16); border: 2px solid rgba(255,255,255,0.55);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; letter-spacing: 0.02em;
}

.specialist-body { padding: var(--sp-2) var(--sp-2) var(--sp-3); }
.specialist-name { font-weight: 800; font-size: 17px; margin-bottom: 2px; }
.specialist-role { font-size: 13px; color: var(--color-text-muted); margin-bottom: 8px; }
.specialist-meta { font-size: 12.5px; font-weight: 700; color: var(--color-primary); margin: 0 0 10px; }
.specialist-areas { font-size: 13.5px; color: var(--color-ink); margin-bottom: var(--sp-2); }
.specialist-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.roster-note { text-align: center; color: var(--color-text-muted); font-size: 14px; margin-top: var(--sp-3); }
.roster-note a { color: var(--color-primary); font-weight: 700; text-decoration: none; }
.roster-note a:hover { text-decoration: underline; }

.team-elsewhere {
  max-width: 560px;
  margin: var(--sp-4) auto 0;
  padding: var(--sp-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  text-align: center;
}
.team-elsewhere h3 { font-size: 15px; margin-bottom: 4px; }
.team-elsewhere p { color: var(--color-text-muted); font-size: 14px; margin-bottom: 8px; }

/* Specialists archive (/specialists/) */
.specialists-archive-header { text-align: center; margin-bottom: var(--sp-4); }

/* Single specialist page */
.specialist-single { padding: var(--sp-6) 0; }
.specialist-single-header { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); margin-bottom: var(--sp-4); }
@media (min-width: 800px) { .specialist-single-header { grid-template-columns: 320px 1fr; align-items: start; } }
.specialist-single-photo { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4/4.4; background: linear-gradient(135deg, var(--color-primary-strong), var(--color-navy)); display:flex; align-items:center; justify-content:center; }
.specialist-single-photo img { width: 100%; height: 100%; object-fit: cover; }
.specialist-single-photo .initials { width: 96px; height: 96px; border-radius: 50%; background: rgba(255,255,255,0.16); border: 2px solid rgba(255,255,255,0.55); color: #fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:32px; }

/* ---------- Online care ---------- */
.online-care-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 700px) { .online-care-grid { grid-template-columns: 1fr 1fr; } }
.online-care-card { background: #fff; border-radius: var(--radius-card); padding: var(--sp-3); }
.online-care-card h3 { margin-bottom: 6px; }
.online-care-card .format-line { font-size: 14.5px; margin-bottom: 4px; }
.online-care-card .format-line strong { color: var(--color-primary); }

/* ---------- Why MHC ---------- */
.why-mhc-section { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.why-mhc-intro { margin-bottom: var(--sp-3); }
.why-mhc-intro h2 { margin-bottom: 6px; }
.why-mhc-intro p { margin: 0; color: var(--color-muted); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}

.why-item {
  text-align: center;
  padding: var(--sp-2);
}

.why-item .icon-chip { margin: 0 auto 10px; }

.why-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.25;
}

.why-item p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-ink);
  margin: 0;
}

@media (min-width: 600px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1050px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}
/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; padding: var(--sp-3); }
.step .step-num { width: 38px; height: 38px; line-height: 38px; border-radius: 50%; background: var(--color-primary-strong); color: #fff; font-weight: 800; margin: 0 auto var(--sp-2); }

/* ---------- Location (Phase 6 redesign) ---------- */
.location-grid-v2 { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); align-items: stretch; }
@media (min-width: 900px) { .location-grid-v2 { grid-template-columns: 1fr 1.15fr; gap: var(--sp-4); } }

.location-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card);
  padding: var(--sp-3); display: flex; flex-direction: column;
}
.location-card-icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-tint-blue-strong); display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-2);
}
.location-card-icon svg { width: 20px; height: 20px; stroke: var(--color-primary-strong); }
.location-card-name { font-size: 16px; margin-bottom: 6px; }
.location-card-line { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; margin-bottom: 4px; }
.location-card-line a { color: var(--color-primary); font-weight: 700; text-decoration: none; }
.location-card-line a:hover { text-decoration: underline; }
.location-card-ctas { margin-top: auto; padding-top: var(--sp-3); }

.next-steps-v2 h3 { font-size: 16px; margin-bottom: var(--sp-2); }
.steps-grid-v2 { display: grid; grid-template-columns: 1fr; gap: 10px; }
.step-card-v2 {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card);
  padding: 12px var(--sp-3);
}
.step-num-v2 { font-size: 11.5px; font-weight: 800; color: var(--color-primary-strong); letter-spacing: 0.04em; margin-bottom: 2px; }
.step-card-v2 h4 { font-size: 14px; margin-bottom: 2px; }
.step-card-v2 p { font-size: 12.5px; color: var(--color-text-muted); line-height: 1.4; margin: 0; }

/* ---------- Resources / article cards ---------- */
.article-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 700px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }
.article-card { background: var(--color-tint-blue); border-radius: var(--radius-sm); padding: var(--sp-3); }
.article-card a.article-card-link { text-decoration: none; color: inherit; }
.article-card .category { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-primary); }
.article-card h3 { font-size: 16px; margin: 8px 0; font-weight: 700; }
.article-card p { font-size: 13.5px; color: var(--color-text-muted); }
.resources-footer { text-align: center; margin-top: var(--sp-3); }

/* Articles archive (/articles/) and single article */
.articles-archive-header { text-align: center; margin-bottom: var(--sp-4); }
.articles-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 700px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }
.pagination-row { text-align: center; margin-top: var(--sp-4); }
.pagination-row a, .pagination-row span { display: inline-block; padding: 8px 14px; margin: 0 4px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); text-decoration: none; color: var(--color-ink); }
.pagination-row .current { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

.article-single { padding: var(--sp-6) 0; }
.article-single-header { max-width: 760px; margin: 0 auto var(--sp-4); }
.article-single-meta { font-size: 13px; color: var(--color-text-muted); margin-bottom: var(--sp-2); }
.article-single-meta a { color: var(--color-text-muted); }
.article-single-body { max-width: 760px; margin: 0 auto; font-size: 16.5px; line-height: 1.75; }
.article-single-body h2 { font-size: 22px; margin-top: var(--sp-4); }
.article-single-body h3 { font-size: 18px; margin-top: var(--sp-3); }
.article-single-body img { border-radius: var(--radius-sm); }
.article-references { max-width: 760px; margin: var(--sp-4) auto 0; font-size: 13.5px; color: var(--color-text-muted); border-top: 1px solid var(--color-border); padding-top: var(--sp-2); }
.article-cta-card {
  max-width: 760px; margin: var(--sp-4) auto; background: var(--color-tint-blue);
  border-radius: var(--radius-card); padding: var(--sp-3); text-align: center;
}
.article-related { max-width: 760px; margin: var(--sp-4) auto 0; }
.article-related h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }
.article-related ul { list-style: none; margin: 0; padding: 0; }
.article-related li { margin-bottom: 6px; }

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-deep) 100%); color: #fff; text-align: center; padding: var(--sp-8) 0; }
.final-cta h2 { color: #fff; font-size: 30px; }
.final-cta .lede { color: var(--color-text-on-navy-muted); max-width: 46ch; margin: 0 auto var(--sp-3); }
.final-cta .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--color-border); padding: var(--sp-6) 0 calc(var(--sp-6) + 74px); font-size: 13.5px; color: var(--color-text-muted); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .site-footer { padding-bottom: var(--sp-6); } }
.footer-grid h4 { font-size: 13px; color: var(--color-navy); margin: 0 0 8px; font-weight: 800; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--color-text-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--color-primary); }
.footer-bottom { max-width: var(--max-width); margin: var(--sp-4) auto 0; padding: var(--sp-2) var(--sp-3) 0; border-top: 1px solid var(--color-border); font-size: 12px; }

/* ---------- Mobile sticky conversion bar ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #fff; border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 20px rgba(14, 42, 82, 0.1);
  display: flex; gap: 8px; padding: 10px var(--sp-2);
  transform: translateY(0); transition: transform 0.2s ease;
}
.sticky-bar.is-hidden { transform: translateY(110%); }
.sticky-bar .btn { font-size: 14px; padding: 12px 10px; }
.sticky-bar .btn--primary { flex: 1.4; }
.sticky-bar .btn--secondary { flex: 1; }
.sticky-bar .btn--ghost { flex: 0.8; }

/* ---------- Consent banner ---------- */
.consent-banner {
  position: fixed; left: var(--sp-2); right: var(--sp-2); bottom: var(--sp-2); z-index: 60;
  max-width: 640px; margin: 0 auto;
  background: #fff; border-radius: var(--radius-card);
  box-shadow: 0 14px 32px rgba(14, 42, 82, 0.22); border: 1px solid var(--color-border);
}
.consent-banner-inner { padding: var(--sp-3); }
.consent-banner p { font-size: 13.5px; color: var(--color-text-muted); margin-bottom: var(--sp-2); }
.consent-banner p a { color: var(--color-primary); font-weight: 700; text-decoration: none; }
.consent-banner p a:hover { text-decoration: underline; }
.consent-banner-actions { display: flex; gap: var(--sp-2); justify-content: flex-end; }

@media (min-width: 900px) {
  .sticky-bar { display: none; }
  .site-footer { padding-bottom: var(--sp-6); }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav { position: fixed; inset: 0; background: #fff; z-index: 60; padding: var(--sp-3); display: none; flex-direction: column; gap: var(--sp-3); }
.mobile-nav.is-open { display: flex; }
.mobile-nav a { color: var(--color-navy); text-decoration: none; font-size: 18px; font-weight: 700; }
.mobile-nav-close { align-self: flex-end; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ---------- Toast (client-side interaction feedback only) ---------- */
.toast {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--color-navy); color: #fff; font-size: 13.5px; padding: 10px 18px;
  border-radius: var(--radius-pill); box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Generic page template ---------- */
.page-content { max-width: 760px; margin: 0 auto; padding: var(--sp-6) var(--sp-3); font-size: 16.5px; line-height: 1.75; }
.page-content h1 { font-size: 32px; }

/* ---------- WordPress core alignment/media helpers ---------- */
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.wp-caption, .wp-block-image { margin: 0 0 var(--sp-2); }
.wp-caption-text { font-size: 12.5px; color: var(--color-text-muted); }

/* ---------- Homepage layout refinement ---------- */

/* Specialists: full roster in a stable 4-column desktop grid */
@media (min-width: 1100px) {
  #specialists .specialist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-3);
  }
}

/* Make the final wider-team CTA belong to the section rather than float */
#specialists .team-elsewhere {
  max-width: none;
  width: 100%;
  margin: var(--sp-4) 0 0;
  padding: var(--sp-3) var(--sp-4);
}

/* Reduce the visual gap between specialists and Why MHC */
#specialists {
  padding-bottom: var(--sp-5);
}

#specialists + .why-mhc-section,
.why-mhc-section {
  padding-top: var(--sp-5);
}

/* Resources: clean, equal 3-column row */
#resources .article-grid {
  align-items: stretch;
}

#resources .article-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#resources .article-card > a,
#resources .article-card .article-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#resources .article-card .link {
  margin-top: auto;
}

@media (min-width: 700px) {
  #resources .article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Keep the resources block visually compact */
#resources {
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-6);
}

#resources .resources-footer {
  margin-top: var(--sp-4);
}
