/* ==========================================================================
   Erickson Chiropractic and Wellness — site styles
   Brand tokens are sampled from the practice's logo and the SBS cover artwork
   (royal blue + sunny yellow, pastel "spectrum" from the mark). See CLAUDE.md.
   ========================================================================== */

:root {
  /* Brand */
  --blue: #172A96;         /* logo background royal blue — buttons, links, headings accents (white text 10:1) */
  --blue-deep: #0E1A66;    /* hero/CTA gradient end, icons on pastel chips */
  --blue-night: #0A1250;   /* topbar, footer, mobile action bar */
  --sun: #F0FA82;          /* wordmark yellow — only on blue (never as text on light) */
  --sun-hover: #E4F05A;
  --paper: #FAF8F3;        /* warm page background */
  --white: #FFFFFF;
  --mist: #F0F2FC;         /* cool tint section */
  --line: #E4E1D8;
  --line-cool: #D5DAEE;
  --text: #171C3F;
  --muted: #4F5470;        /* 7.4:1 on paper */
  --on-blue: #FFFFFF;
  --on-blue-muted: #C9D0F5; /* 8:1 on --blue */

  /* Pastel chips (from the mark's colour field) — always with --blue-deep icons on top */
  --mint: #CDF6E6;
  --pink: #FFD9E3;
  --lilac: #E4DEFF;
  --butter: #FAF6B4;
  --lime: #DDF9C4;
  --peach: #FCE3CE;
  --spectrum: linear-gradient(90deg, #CCFE88 0%, #A7F0CA 18%, #B5BBFE 36%, #D5A0FB 52%, #F1A8C5 68%, #F7CBA0 84%, #F0ED92 100%);
  --spectrum-v: linear-gradient(180deg, #CCFE88 0%, #A7F0CA 18%, #B5BBFE 36%, #D5A0FB 52%, #F1A8C5 68%, #F7CBA0 84%, #F0ED92 100%);
  --conic: conic-gradient(from 0deg, #A7F0CA, #B5BBFE 45deg, #D5A0FB 90deg, #F1A8C5 135deg, #F7CBA0 180deg, #F0ED92 210deg, #DFFC90 240deg, #CCFE88 270deg, #AEFDA3 330deg, #A7F0CA);

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --gutter: 24px;
  --header-h: 84px;
  --shadow: 0 1px 2px rgba(14, 26, 102, .05), 0 10px 30px rgba(14, 26, 102, .08);
  --shadow-lg: 0 2px 6px rgba(14, 26, 102, .06), 0 24px 60px rgba(14, 26, 102, .14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
figure, blockquote { margin: 0; }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible, .page-hero :focus-visible, .section--blue :focus-visible,
.cta-band :focus-visible, .site-footer :focus-visible, .topbar :focus-visible, .action-bar :focus-visible { outline-color: var(--sun); }

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

/* ---------- The one decorative motif: the mark's pastel spectrum ---------- */
.spectrum { height: 5px; background: var(--spectrum); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px;
  font-family: var(--font-body); font-weight: 700; font-size: 13px; line-height: 1.3;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; flex: none; width: 26px; height: 4px; border-radius: 4px; background: var(--spectrum); }
.hero .eyebrow, .page-hero .eyebrow, .section--blue .eyebrow, .cta-band .eyebrow { color: var(--sun); }

.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.12; }
.display .sun { color: var(--sun); }
.h2 { font-size: clamp(30px, 3.9vw, 44px); margin-bottom: 18px; color: var(--blue-deep); }
.section--blue .h2 { color: var(--white); }
.lede { font-size: 19px; color: var(--muted); max-width: 62ch; }
.hero .lede, .page-hero .lede, .section--blue .lede { color: var(--on-blue-muted); }
.lede a { color: inherit; font-weight: 600; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px; text-decoration: none; color: var(--blue);
  border-bottom: 2px solid rgba(23, 42, 150, .25); padding-bottom: 2px; transition: border-color .2s;
}
.text-link:hover { border-color: var(--blue); }
.text-link svg { width: 17px; height: 17px; transition: transform .2s; }
.text-link:hover svg, a:hover > .text-link svg { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 26px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--blue { background: var(--blue); color: var(--white); box-shadow: 0 6px 18px rgba(23, 42, 150, .22); }
.btn--blue:hover { background: var(--blue-deep); }
.btn--sun { background: var(--sun); color: var(--blue-night); box-shadow: 0 6px 20px rgba(240, 250, 130, .18); }
.btn--sun:hover { background: var(--sun-hover); }
.btn--ghost { border-color: var(--blue); color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: var(--white); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); }
.btn--sm { min-height: 44px; padding: 9px 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; margin-top: 48px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--blue-night); color: var(--on-blue-muted); font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 40px; }
.topbar-left, .topbar-right { display: flex; gap: 26px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; color: var(--sun); flex: none; }
.topbar-right a:last-child { color: var(--white); font-weight: 700; }
@media (max-width: 1000px) { .topbar-email { display: none !important; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 52px; height: 52px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--blue-deep); letter-spacing: -.01em; }
.brand-sub { font-weight: 700; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav-menu { display: flex; gap: 2px; }
.nav-menu a {
  position: relative; display: block; padding: 10px 13px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15.5px; text-decoration: none; color: var(--text); white-space: nowrap;
}
.nav-menu a:hover { background: var(--mist); }
.nav-menu a[aria-current="page"], .nav-menu a.is-parent { color: var(--blue); }
.nav-menu a[aria-current="page"]::after, .nav-menu a.is-parent::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--spectrum);
}
.nav-menu .nav-call { display: none; }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--blue-deep); position: relative; transition: transform .2s, background-color .2s;
  }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle .bars::before { top: -6px; }
  .nav-toggle .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 22px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 15px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-menu a:hover { background: none; color: var(--blue); }
  .nav-menu a[aria-current="page"]::after, .nav-menu a.is-parent::after { left: 4px; right: auto; width: 32px; bottom: 8px; }
  .nav-menu .nav-call { display: block; margin-top: 16px; }
  .nav-menu .nav-call a {
    display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px;
    background: var(--blue); color: var(--white); font-size: 17px; font-weight: 700;
  }
  .nav-menu .nav-call svg { width: 19px; height: 19px; }
  .nav { order: 3; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 70px; }
  .topbar { display: none; }
  .header-cta { display: none; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 10px; letter-spacing: .12em; }
}
@media (max-width: 360px) {
  .brand-name { font-size: 16.5px; }
  .brand-sub { letter-spacing: .08em; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--white { background: var(--white); }
.section--mist { background: var(--mist); }
.section--blue { background: var(--blue); color: var(--white); background-image: radial-gradient(900px 500px at 85% 0%, rgba(255, 255, 255, .07), transparent 60%); }
.section--tight { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; align-items: end; }
.section-head--split .eyebrow { grid-column: 1; }
.section-head--split .h2 { grid-column: 1; margin-bottom: 0; }
.section-head--split .lede { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
@media (max-width: 860px) {
  .section-head--split { grid-template-columns: 1fr; }
  .section-head--split .lede { grid-column: 1; grid-row: auto; margin-top: 16px; }
}
@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .section--tight { padding: 44px 0; }
  .section-head { margin-bottom: 36px; }
}

/* ---------- Home hero: full-bleed photo, copy on a blue fade (photo stacks on top on phones) ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); background: var(--blue-deep); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 42%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 80, .95) 0%, rgba(14, 26, 102, .88) 34%, rgba(14, 26, 102, .42) 64%, rgba(14, 26, 102, .06) 100%),
    linear-gradient(0deg, rgba(10, 18, 80, .55) 0%, transparent 38%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 640px); padding-top: 92px; padding-bottom: 168px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero-title { font-size: clamp(42px, 5.4vw, 68px); margin: 0 0 24px; text-wrap: balance; text-shadow: 0 2px 30px rgba(5, 10, 50, .35); }
.hero-title .sun { display: block; }
.hero .lede { margin-bottom: 34px; max-width: 54ch; color: #DCE1FA; }

.trust-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; margin-top: 40px; padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .2); font-size: 15.5px; color: #DCE1FA;
}
.trust-row li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; }
.trust-row strong { color: var(--white); font-weight: 700; }
.trust-row svg { width: 20px; height: 20px; color: var(--sun); flex: none; margin-top: 1px; }

.status {
  display: flex; width: fit-content; align-items: center; gap: 10px;
  padding: 7px 14px; margin-bottom: 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  font-size: 14px; font-weight: 600; color: var(--white);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-blue-muted); }
.status[data-state="open"]::before { background: #4ADE80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.status[data-state="closed"]::before { background: #FDA4AF; }

@media (max-width: 900px) {
  .hero-bg { position: relative; inset: auto; z-index: 0; height: 64vw; max-height: 440px; }
  .hero-bg img { object-position: 62% 40%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(14, 26, 102, 0) 40%, rgba(14, 26, 102, .7) 78%, var(--blue-deep) 100%); }
  .hero-grid { position: relative; margin-top: -56px; padding-top: 0; padding-bottom: 124px; }
}
@media (max-width: 560px) {
  .trust-row { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; padding-top: 22px; }
}

/* "Where are you starting?" — four path cards that overlap the bottom of the hero */
.paths-wrap { position: relative; z-index: 2; margin-top: -104px; background: linear-gradient(180deg, transparent 0 104px, var(--white) 104px); }
.paths { padding: 24px 24px 26px; border-radius: 26px; background: var(--white); box-shadow: var(--shadow-lg); }
.paths-title { margin: 0 0 16px 4px; font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.paths-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.path {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px;
  border-radius: 18px; background: var(--paper); text-decoration: none; color: inherit;
  transition: background-color .2s, transform .2s;
}
.path:hover { background: var(--mist); transform: translateY(-2px); }
.path .chip { width: 46px; height: 46px; border-radius: 14px; }
.path .chip svg { width: 22px; height: 22px; }
.path-text strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17.5px; line-height: 1.25; color: var(--blue-deep); }
.path-text span { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.path-go svg { width: 18px; height: 18px; color: var(--blue); transition: transform .2s; }
.path:hover .path-go svg { transform: translateX(3px); }
.paths-wrap + .section { padding-top: 80px; }
@media (max-width: 1100px) { .paths-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .paths-wrap { margin-top: -84px; background: linear-gradient(180deg, transparent 0 84px, var(--white) 84px); }
  .paths { padding: 18px 14px 16px; border-radius: 22px; }
  .paths-grid { grid-template-columns: 1fr; gap: 10px; }
  .path { padding: 13px 14px; }
  .paths-wrap + .section { padding-top: 56px; }
}

/* ---------- Inner-page hero ---------- */
.page-hero {
  color: var(--white); overflow: hidden;
  background:
    radial-gradient(600px 380px at 88% 50%, rgba(120, 140, 255, .26), transparent 65%),
    linear-gradient(155deg, #1D33A8 0%, var(--blue) 50%, var(--blue-deep) 100%);
}
.page-hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 68px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 18px; max-width: 18ch; }
.page-hero .btn-row { margin-top: 30px; }
.page-hero-mark { width: 230px; height: 230px; opacity: .95; filter: drop-shadow(0 18px 36px rgba(5, 10, 50, .45)); }
.page-hero--simple .page-hero-inner { min-height: 52vh; }
.page-hero--photo .page-hero-inner { grid-template-columns: 1fr minmax(0, 480px); }
.page-hero-photo { position: relative; margin: 0; }
.page-hero-photo > img:first-child {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 26px;
  border: 6px solid rgba(255, 255, 255, .12); box-shadow: 0 24px 50px rgba(5, 10, 50, .4);
}
/* per-photo focal points for the hero crop */
.ph-pregnant-field { object-position: 50% 12%; }
.ph-soccer-player { object-position: 30% 50%; }
.page-hero-badge {
  position: absolute; left: -26px; bottom: -22px; width: 96px; height: 96px;
  filter: drop-shadow(0 10px 22px rgba(5, 10, 50, .45));
}
.page-hero .lede a { color: var(--white); }
@media (max-width: 860px) {
  .page-hero-inner, .page-hero--photo .page-hero-inner { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 52px; }
  .page-hero-mark { display: none; }
  .page-hero-photo { margin-top: 8px; }
  .page-hero-photo > img:first-child { aspect-ratio: 16 / 10; border-width: 4px; border-radius: 20px; }
  .page-hero-badge { left: auto; right: 14px; bottom: -18px; width: 68px; height: 68px; }
}

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; font-size: 14px; color: var(--on-blue-muted); }
.breadcrumb a { color: var(--on-blue-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }

/* ---------- Pastel icon chips ---------- */
.chip {
  display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 16px;
  background: var(--mist); color: var(--blue-deep);
}
.chip svg { width: 26px; height: 26px; }
.chip--lg { width: 68px; height: 68px; border-radius: 20px; }
.chip--lg svg { width: 32px; height: 32px; }
.chip--mint { background: var(--mint); }
.chip--pink { background: var(--pink); }
.chip--lilac { background: var(--lilac); }
.chip--butter { background: var(--butter); }
.chip--lime { background: var(--lime); }
.chip--peach { background: var(--peach); }

/* ---------- Service cards (home) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 23px; color: var(--blue-deep); margin-top: 6px; }
.service-card p { color: var(--muted); font-size: 16px; flex: 1; margin: 0; }
.service-card .text-link { align-self: flex-start; font-size: 15px; }
@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Split (text + aside) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--top { align-items: start; }
.split--story { grid-template-columns: 1.05fr .95fr; }
.split-body > p:where(:not(.eyebrow, .small-note)) { color: var(--muted); font-size: 17.5px; }
.split-body .text-link, .split-body .btn-row { margin-top: 10px; }
.split-body .ticks { margin: 4px 0 22px; }
.story > p:where(:not(.eyebrow)) { font-size: 18px; }
.split-body > .story-lead { font-family: var(--font-display); font-size: 22px; line-height: 1.5; color: var(--blue-deep); }
.story-close {
  margin-top: 28px; padding: 24px 26px; border-radius: var(--radius); background: var(--mist);
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 19px; color: var(--blue-deep) !important; line-height: 1.55;
}
.sticky { position: sticky; top: calc(var(--header-h) + 28px); }
@media (max-width: 900px) {
  .split, .split--story { grid-template-columns: 1fr; gap: 44px; }
  .sticky { position: static; }
}

/* Timeline card ("The road home") */
.timeline-card {
  position: relative; padding: 38px 36px 34px; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); color: var(--white);
  box-shadow: var(--shadow-lg);
}
.timeline-card::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  background: var(--conic); filter: blur(50px); opacity: .28;
}
.timeline-title { font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); margin-bottom: 22px; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--spectrum-v); }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 6px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--blue-deep); border: 3px solid var(--white);
}
.tl-when { display: block; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--sun); line-height: 1.3; }
.timeline p { color: var(--on-blue-muted); font-size: 16px; margin: 2px 0 0; line-height: 1.55; }

/* ---------- Doctors ---------- */
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 36px; }
.doc-card {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start;
  padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 24px;
}
.doc-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--blue-deep); }
.doc-card p { color: var(--muted); font-size: 16px; }
.doc-cred { font-weight: 600; font-size: 15px; color: var(--muted); margin: 4px 0 14px; }
.doc-avatar {
  position: relative; display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%;
  background: var(--conic); box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .55);
}
.doc-avatar span {
  display: grid; place-items: center; width: 74%; height: 74%; border-radius: 50%; background: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--blue); letter-spacing: .02em;
}
.doc-avatar--lg { width: 210px; height: 210px; }
.doc-avatar--lg span { font-size: 60px; }
.doc-avatar--photo { object-fit: cover; padding: 6px; background: var(--conic); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tags li {
  padding: 5px 12px; border-radius: 999px; background: var(--mist);
  font-size: 13.5px; font-weight: 700; color: var(--blue);
}
@media (max-width: 960px) { .doc-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .doc-card { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; }
  .doc-avatar { width: 96px; height: 96px; }
  .doc-avatar span { font-size: 28px; }
}

/* ---------- Care for the long run (home) ---------- */
.split--journey { grid-template-columns: 1fr .88fr; }
.phases { display: grid; gap: 18px; margin: 26px 0; }
.phase { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.phase-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 20px;
}
.phase h3 { margin: 7px 0 4px; font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--blue-deep); }
.phase p { margin: 0; font-size: 16.5px; color: var(--muted); }
.split-body > .journey-note { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--blue-deep); }
.journey-note svg { flex: none; width: 20px; height: 20px; color: #E0457B; }
.journey-photo { position: relative; margin: 0; isolation: isolate; }
.journey-photo::before { content: ""; position: absolute; inset: 26px -18px -18px 26px; z-index: -1; border-radius: 26px; background: var(--conic); opacity: .6; }
.journey-photo img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 48% 30%; border-radius: 26px; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
  .split--journey { grid-template-columns: 1fr; }
  .journey-photo { order: -1; margin-right: 18px; }
  .journey-photo img { aspect-ratio: 4 / 3; }
}

/* ---------- Sports injury band (home) ---------- */
.split--sports { grid-template-columns: .95fr 1.05fr; }
.sports-photo { margin: 0; }
.sports-photo img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 30% 50%; border-radius: 26px; border: 6px solid rgba(255, 255, 255, .1); }
.section--blue .split-body > p { color: var(--on-blue-muted); }
.section--blue .split-body .ticks { margin: 4px 0 26px; }
.ticks.ticks--light li { color: var(--white); }
.ticks.ticks--light svg { background: rgba(255, 255, 255, .14); color: var(--sun); }
@media (max-width: 900px) { .split--sports { grid-template-columns: 1fr; } }

/* ---------- New-patient strip (home) ---------- */
.start-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap;
  margin-top: 56px; padding: 30px 34px; border-radius: 24px; background: var(--mist);
}
.start-strip h2 { margin-bottom: 6px; font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--blue-deep); }
.start-strip p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .start-strip { padding: 24px 20px; } }

/* ---------- Welcome video (hidden until WELCOME_VIDEO is set; YouTube loads only on play) ---------- */
.video { margin-bottom: 36px; }
.video-btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden;
  border-radius: 26px; background: var(--blue-deep); box-shadow: var(--shadow-lg);
}
.video-btn img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .8; transition: opacity .2s, transform .4s; }
.video-btn:hover img { opacity: .68; transform: scale(1.02); }
.video-play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 86px; height: 86px; margin: -43px 0 0 -43px;
  border-radius: 50%; background: var(--sun); color: var(--blue-night); box-shadow: 0 12px 30px rgba(5, 10, 50, .4);
}
.video-play svg { width: 34px; height: 34px; margin-left: 5px; }
.video-label { position: absolute; left: 24px; bottom: 20px; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--white); text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 26px; }

/* ---------- Office photos ---------- */
.office-grid { display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; }
.office-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.office-grid img { width: 100%; height: 100%; object-fit: cover; }
.office-main { grid-row: 1 / span 2; }
.office-grid figure:not(.office-main) img { aspect-ratio: 16 / 9; }
@media (max-width: 760px) {
  .office-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 10px; }
  .office-main { grid-column: 1 / -1; grid-row: auto; }
  .office-main img { aspect-ratio: 16 / 10; }
}
.office-pair { position: relative; padding: 0 0 56px 0; }
.office-pair figure { margin: 0; }
.office-pair > figure:first-child img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.office-pair-inset {
  position: absolute; right: -14px; bottom: 0; width: 46%; padding: 8px; background: var(--white);
  border-radius: 18px; box-shadow: var(--shadow-lg); transform: rotate(2deg);
}
.office-pair-inset img { width: 100%; border-radius: 12px; }
@media (max-width: 560px) { .office-pair-inset { right: -4px; width: 58%; } }

/* ---------- Testimonials ---------- */
.quotes { columns: 3 300px; column-gap: 24px; }
.quotes--two { columns: 2 320px; }
.quote {
  position: relative; break-inside: avoid; margin-bottom: 24px; padding: 30px 28px 26px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.quote::before {
  content: "\201C"; display: block; width: fit-content; height: 38px; margin-bottom: 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 72px; line-height: 1;
  background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quote p { font-size: 16.5px; color: var(--text); line-height: 1.65; }
.quote figcaption { margin-top: 18px; font-weight: 700; font-size: 15px; color: var(--blue-deep); display: flex; align-items: center; gap: 10px; }
.quote figcaption::before { content: ""; width: 18px; height: 2px; background: var(--blue); border-radius: 2px; }

/* Google reviews widget (Synup). Its script injects an iframe and sets the height itself (see
   REVIEWS_RESIZE_FIX in the generator). The widget's page is white, so it sits on a white card here;
   min-height roughly matches its desktop height so the page barely moves while it loads. */
.reviews-widget {
  min-height: 330px; margin-bottom: 28px; padding: 6px 0; overflow: hidden;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.reviews-widget iframe { display: block; width: 100%; border: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 40px; }
.steps--four { grid-template-columns: repeat(4, 1fr); margin-bottom: 0; }
.step { position: relative; padding: 30px 28px; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.section:not(.section--white) .step { background: var(--white); }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--spectrum); }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 18px;
  background: var(--blue); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 21px;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--blue-deep); margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }
.step a { color: var(--blue); font-weight: 600; }
@media (max-width: 1000px) { .steps--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .steps, .steps--four { grid-template-columns: 1fr; } }

/* ---------- Visit / hours ---------- */
.visit { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: stretch; }
.visit-info { display: flex; flex-direction: column; gap: 26px; }
.info-block h3 {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
}
.section--blue .info-block h3 { color: var(--on-blue-muted); }
.info-block h3 svg { width: 18px; height: 18px; color: var(--blue); }
.section--blue .info-block h3 svg { color: var(--sun); }
.info-block address, .info-block .big { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.35; }
.info-block .mid { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.info-block a { text-decoration: none; }
.info-block a:hover { text-decoration: underline; }
.visit-info .btn-row { margin-top: 6px; }

.hours { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.section--blue .hours th, .section--blue .hours td { border-color: rgba(255, 255, 255, .18); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--blue); }
.section--blue .hours tr.is-today th, .section--blue .hours tr.is-today td { color: var(--sun); }
.hours tr.is-today th::after {
  content: "Today"; margin-left: 10px; padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
  background: var(--sun); color: var(--blue-night); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

.map-frame { position: relative; min-height: 420px; border-radius: 24px; overflow: hidden; background: var(--mist); box-shadow: var(--shadow); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) {
  .visit { grid-template-columns: 1fr; }
  .map-frame { min-height: 320px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--blue-deep); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172A96' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { color: var(--muted); padding: 0 48px 24px 0; margin: 0; }
.faq details a { color: var(--blue); font-weight: 600; }

.faq-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq-split .lede { margin-bottom: 22px; }
.faq-split .faq { max-width: none; }
@media (max-width: 860px) { .faq-split { grid-template-columns: 1fr; gap: 24px; } }

.faq-page { max-width: 880px; }
.faq-group + .faq-group { margin-top: 64px; }
.faq-group-title { font-size: clamp(24px, 3vw, 32px); color: var(--blue-deep); padding-bottom: 14px; position: relative; }
.faq-group-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px; background: var(--spectrum); }
.faq-group .faq { max-width: none; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; padding: 88px 0; color: var(--white); overflow: hidden;
  background:
    radial-gradient(700px 420px at 90% 100%, rgba(120, 140, 255, .25), transparent 65%),
    linear-gradient(155deg, var(--blue) 0%, var(--blue-deep) 100%);
}
.cta-band > .spectrum { position: absolute; left: 0; right: 0; top: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.cta-inner > div:first-child { max-width: 620px; }
.cta-inner h2 { font-size: clamp(30px, 4vw, 46px); }
.cta-inner p { color: var(--on-blue-muted); margin-top: 12px; font-size: 18px; }
@media (max-width: 720px) { .cta-band { padding: 64px 0; } }

/* ---------- Appointment request form ---------- */
.request { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; scroll-margin-top: calc(var(--header-h) + 20px); }
.request-copy .lede { margin-bottom: 26px; }
.request-copy .lede a { color: var(--blue); }
.ticks { display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 16.5px; line-height: 1.5; }
.ticks svg {
  flex: none; width: 24px; height: 24px; padding: 4px; margin-top: 0; border-radius: 50%;
  background: var(--lime); color: var(--blue-deep); stroke-width: 3;
}
.ticks a { color: var(--blue); font-weight: 600; }

.form {
  display: grid; gap: 20px; padding: 36px; border-radius: 26px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label, .field legend { font-weight: 700; font-size: 15px; color: var(--text); }
.field legend { padding: 0; margin-bottom: 8px; }
.opt { font-weight: 500; color: var(--muted); }
.field input:not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 15px;
  border: 1.5px solid var(--line-cool); border-radius: var(--radius-sm); background: var(--white);
  font: inherit; font-size: 16px; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 112px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172A96' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 15px center / 16px no-repeat;
}
.field input:not([type="radio"]):focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23, 42, 150, .14);
}
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field .choice {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 15px; cursor: pointer;
  border: 1.5px solid var(--line-cool); border-radius: var(--radius-sm); font-weight: 600; font-size: 15.5px;
  transition: border-color .2s, background-color .2s;
}
.choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--blue); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--mist); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(23, 42, 150, .14); }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.form-note { margin: -4px 0 0; text-align: center; font-size: 14.5px; color: var(--muted); }
.form-note a { color: var(--blue); font-weight: 700; }
@media (max-width: 960px) { .request { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) {
  .form { padding: 24px 18px; border-radius: 20px; }
  .field-row, .choices { grid-template-columns: 1fr; }
}

/* ---------- About: bios + values ---------- */
.bios { display: grid; gap: 96px; }
.bio { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.bio--flip { grid-template-columns: 1fr 300px; }
.bio--flip .bio-side { order: 2; }
.bio-side { display: grid; justify-items: center; gap: 22px; position: sticky; top: calc(var(--header-h) + 28px); }
.bio-side .tags { justify-content: center; }
.bio-body > p:where(:not(.eyebrow, .doc-cred)) { color: var(--muted); font-size: 17.5px; }
.bio-body .h2 { margin-bottom: 4px; }
.bio-body .doc-cred { margin-bottom: 20px; }
.creds { display: grid; gap: 12px; margin: 26px 0; padding: 26px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.creds li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.creds svg { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: 1px; }
.bio--compact { padding: 44px; background: var(--white); border-radius: 26px; border: 1px solid var(--line); grid-template-columns: 240px 1fr; }
.bio--compact .bio-side { position: static; }
.bio--compact .creds { background: var(--paper); border: 0; }
.bio--compact .doc-avatar--lg { width: 190px; height: 190px; }
@media (max-width: 860px) {
  .bio, .bio--compact { grid-template-columns: 1fr; gap: 28px; }
  .bio--flip .bio-side { order: 0; }
  .bio-side { position: static; justify-items: start; }
  .bio-side .tags { justify-content: flex-start; }
  .doc-avatar--lg, .bio--compact .doc-avatar--lg { width: 150px; height: 150px; }
  .doc-avatar--lg span { font-size: 44px; }
  .bio--compact { padding: 28px 22px; }
}

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { padding: 32px 28px; background: var(--paper); border-radius: var(--radius); }
.section:not(.section--white) .value { background: var(--white); }
.value h3 { font-family: var(--font-display); font-weight: 600; font-size: 23px; color: var(--blue-deep); margin: 20px 0 10px; }
.value p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* ---------- Services page ---------- */
.conditions { padding: 36px 34px; border-radius: 26px; background: var(--mist); }
.conditions-title { font-weight: 700; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pills li { padding: 9px 16px; border-radius: 999px; background: var(--white); font-size: 15.5px; font-weight: 600; color: var(--blue-deep); box-shadow: 0 1px 2px rgba(14, 26, 102, .06); }

.details .section-head { margin-bottom: 16px; }
.detail {
  display: grid; grid-template-columns: 68px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.detail:last-child { padding-bottom: 0; }
.detail h2 { font-size: clamp(26px, 3vw, 32px); color: var(--blue-deep); margin-bottom: 14px; }
.detail p { color: var(--muted); font-size: 17.5px; max-width: 68ch; }
.detail .text-link { margin-top: 6px; }
@media (max-width: 600px) { .detail { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- New patients ---------- */
.np-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.np-grid--two { grid-template-columns: 1.15fr .85fr; align-items: start; }
.form-card, .bring { padding: 34px 30px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); }
.form-card { position: relative; overflow: hidden; border: 0; box-shadow: var(--shadow-lg); }
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--spectrum); }
.form-card h2, .bring h2 { font-size: 26px; color: var(--blue-deep); margin: 18px 0 12px; }
.bring h2 { margin-top: 0; }
.form-card p, .bring p { color: var(--muted); font-size: 16.5px; }
.form-card .btn { margin-top: 10px; }
.bring a { color: var(--blue); font-weight: 600; }
@media (max-width: 960px) { .np-grid { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */
.mail-note { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.mail-note p { margin: 0; color: var(--muted); max-width: 70ch; }
.mail-note strong { color: var(--text); }
.social-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px;
  background: var(--white); text-decoration: none; font-weight: 700; font-size: 15px; color: var(--blue-deep); box-shadow: var(--shadow);
}
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link svg { width: 20px; height: 20px; }
.social-link--fb svg { color: #1877F2; }
.social-link--ig svg { color: #D62976; }
.social-link--yelp svg { color: #D32323; }
.social-link:hover { box-shadow: var(--shadow-lg); }

/* ---------- Specialty pages ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain-grid--four { grid-template-columns: repeat(4, 1fr); }
.pain-card a { color: var(--blue); font-weight: 600; }
.pain-card { padding: 30px 28px; border-radius: var(--radius); background: var(--paper); }
.pain-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--blue-deep); margin: 18px 0 8px; }
.pain-card p { color: var(--muted); font-size: 16px; }
@media (max-width: 1000px) { .pain-grid, .pain-grid--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pain-grid, .pain-grid--four { grid-template-columns: 1fr; } }

.urgent {
  display: flex; gap: 22px; align-items: flex-start; padding: 30px 32px; border-radius: var(--radius);
  background: #FFF5F8; border: 1.5px solid #F7C3D2;
}
.urgent h2 { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.urgent p { color: var(--muted); font-size: 16px; max-width: 80ch; }
@media (max-width: 560px) { .urgent { flex-direction: column; padding: 24px 22px; gap: 14px; } }

.small-note { margin-top: 18px; padding-left: 14px; border-left: 3px solid var(--line-cool); font-size: 14.5px; color: var(--muted) !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-night); color: var(--on-blue-muted); font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; padding-top: 68px; padding-bottom: 52px; }
.footer-brand img { width: 72px; height: 72px; margin-bottom: 18px; }
.footer-name { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--white); margin-bottom: 10px; line-height: 1.3; }
.footer-tag { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 17px; line-height: 1.45; color: var(--on-blue-muted); }
.footer-tag span { color: var(--sun); }
.footer-h { font-size: 13px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-h--gap { margin-top: 30px; }
.site-footer address { line-height: 1.7; margin-bottom: 12px; }
.site-footer a[href^="mailto:"] { overflow-wrap: anywhere; }
.site-footer a { color: var(--on-blue-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-links li + li { margin-top: 8px; }
.footer-phone { display: inline-block; font-weight: 700; font-size: 18px; color: var(--white) !important; margin: 4px 0 8px; }
.footer-hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.footer-hours dt { color: var(--white); }
.footer-hours dd { margin: 0; text-align: right; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22); color: var(--white) !important;
}
.footer-social a:hover { background: var(--white); color: var(--blue-night) !important; text-decoration: none; }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 10px 28px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px;
}
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 52px; } }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 68px; }
  .action-bar {
    display: grid; grid-template-columns: 1.2fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--blue-night); border-top: 1px solid rgba(255, 255, 255, .12);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 64px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 13px;
  }
  .action-bar a + a { border-left: 1px solid rgba(255, 255, 255, .12); }
  .action-bar a.primary { background: var(--sun); color: var(--blue-night); }
  .action-bar svg { width: 21px; height: 21px; }
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .service-card:hover { transform: none; }
}
