/* ==========================================================================
   Synergy Physical Therapy — landing page
   Brand tokens from 01_Brand_Guidelines.pdf (colors, Outfit / Work Sans / JetBrains Mono)
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #1C2430;          /* Charcoal Navy — headlines, dark backgrounds */
  --navy-deep: #121821;     /* darker step of navy for depth */
  --navy-soft: #252F3D;     /* raised surfaces on dark */
  --blue: #0038CC;          /* Synergy Blue — primary, CTAs */
  --blue-bright: #1F5CF0;   /* Bright Blue — gradients, highlights */
  --blue-tint: #9DB6FF;     /* Bright Blue tint for small text on dark (AA on navy) */
  --steel: #69707C;         /* Steel Gray — secondary text */
  --off-white: #F6F7F9;     /* Off White — backgrounds, cards */
  --green: #2E9E6C;         /* Recovery Green — accent only */
  --white: #FFFFFF;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--off-white);
  --text: var(--navy);
  --text-muted: #5B626E;          /* steel, darkened slightly for 4.5:1 on off-white */
  --text-on-dark: #F6F7F9;
  --text-on-dark-muted: #B4BBC7;
  --border: #E2E5EA;
  --border-dark: rgba(255, 255, 255, 0.12);
  --focus: var(--blue-bright);

  /* Type */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing (8pt) */
  --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;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(28, 36, 48, 0.06), 0 2px 8px rgba(28, 36, 48, 0.05);
  --shadow: 0 2px 4px rgba(28, 36, 48, 0.05), 0 12px 32px rgba(28, 36, 48, 0.08);
  --shadow-lg: 0 24px 64px rgba(10, 16, 26, 0.35);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 700ms;

  --header-h: 76px;
  --container: 1200px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
table { border-collapse: collapse; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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: -100px; z-index: 1000;
  background: var(--white); color: var(--navy); padding: 12px 16px; border-radius: var(--radius-sm);
  font-weight: 600; box-shadow: var(--shadow);
}
.skip-link:focus { top: 16px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon .fill, .stars .icon { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container-wide { width: 100%; max-width: 1440px; margin-inline: auto; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.02em; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue);
  margin-bottom: var(--s-4);
}
.eyebrow::after { content: ""; width: 36px; height: 2px; background: currentColor; }
.eyebrow-dark { color: var(--blue-tint); }
.eyebrow-dark::after { display: none; }
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 158, 108, 0.25);
}

.section { padding-block: var(--s-9); }
@media (min-width: 1024px) { .section { padding-block: var(--s-10); } }
.section-light { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow::after { display: none; }
.section-head-split {
  max-width: none; display: grid; gap: var(--s-5); align-items: end;
}
@media (min-width: 900px) {
  .section-head-split { grid-template-columns: 1.2fr 1fr; gap: var(--s-8); }
}

.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance;
}
.section-lead {
  margin-top: var(--s-4); font-size: 1.125rem; color: var(--text-muted); max-width: 60ch;
}
.section-head-split .section-lead { margin-top: 0; }
.section-head-center .section-lead { margin-inline: auto; }

.accent { color: var(--blue-bright); font-weight: 300; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1;
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease,
              color var(--dur-fast) ease, box-shadow var(--dur) var(--ease-out), transform var(--dur-fast) ease;
}
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }

.btn-primary {
  background: var(--blue); color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 24px rgba(0, 56, 204, 0.28);
}
.btn-primary:hover { background: var(--blue-bright); box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 12px 28px rgba(31, 92, 240, 0.4); }
.btn-primary:hover .icon { transform: translateX(3px); }

.btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.04); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-ghost-light { color: var(--navy); border-color: var(--border); background: var(--white); }
.btn-ghost-light:hover { border-color: var(--navy); }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; color: var(--blue);
  border-bottom: 1.5px solid transparent;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow-sm { min-height: 32px; font-size: 0.9375rem; color: var(--blue-tint); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color var(--dur) ease, box-shadow var(--dur) ease, backdrop-filter var(--dur) ease;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(18, 24, 33, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--border-dark);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand { display: inline-flex; padding: 6px 0; }
.brand img { width: 148px; height: auto; }
@media (min-width: 1024px) { .brand img { width: 164px; } }

.nav { display: none; }
.nav-links a, .nav-phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 4px;
  color: var(--text-on-dark-muted); font-weight: 500; font-size: 0.9375rem;
  transition: color var(--dur-fast) ease;
}
.nav-links a:hover, .nav-phone:hover { color: var(--white); }
.nav-phone .icon { width: 16px; height: 16px; }

.menu-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--border-dark); border-radius: 12px; background: rgba(255,255,255,0.04);
  color: var(--white); cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; grid-area: 1 / 1; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile menu panel */
@media (max-width: 1023.98px) {
  .nav.is-open {
    display: flex; flex-direction: column; gap: var(--s-5);
    position: fixed; inset: var(--header-h) 0 auto 0;
    padding: var(--s-5) 20px var(--s-6);
    background: var(--navy-deep); border-top: 1px solid var(--border-dark);
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open .nav-links { display: grid; }
  .nav.is-open .nav-links a { font-size: 1.125rem; color: var(--white); width: 100%; padding-block: 8px; border-bottom: 1px solid var(--border-dark); }
  .nav.is-open .nav-actions { display: grid; gap: var(--s-3); }
  .nav.is-open .nav-actions .btn { width: 100%; }
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: var(--s-6); }
  .nav-links { display: flex; gap: var(--s-5); }
  .nav-actions { display: flex; align-items: center; gap: var(--s-4); }
}

/* ---------- Duotone photo treatment (brand blue) ---------- */
.duo {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #1F4FD0 0%, #0B2E9E 45%, var(--navy) 100%);
}
.duo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(1.05);
  mix-blend-mode: luminosity; opacity: 0.8;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-deep); color: var(--text-on-dark);
  padding-top: calc(var(--header-h) + var(--s-8));
  padding-bottom: var(--s-9);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { opacity: 0.32; object-position: center 60%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,24,33,0.55) 0%, rgba(18,24,33,0.2) 40%, rgba(18,24,33,0.95) 100%),
    linear-gradient(90deg, rgba(18,24,33,0.9) 0%, rgba(18,24,33,0.25) 70%);
}
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 900px; height: 900px; right: -300px; top: -200px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31, 92, 240, 0.35), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + var(--s-9)); padding-bottom: var(--s-10); min-height: min(900px, 100dvh); display: flex; align-items: center; }
  .hero-inner { grid-template-columns: 1.35fr 1fr; gap: var(--s-8); }
}

.hero-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 5.25rem);
  line-height: 0.95; letter-spacing: -0.02em; text-wrap: balance;
}
.hero-title .accent { text-transform: none; font-weight: 300; letter-spacing: -0.03em; color: #7FA0FF; }
.hero-lead { margin-top: var(--s-5); max-width: 52ch; font-size: 1.125rem; color: var(--text-on-dark-muted); }
@media (min-width: 768px) { .hero-lead { font-size: 1.25rem; } }
.hero-ctas { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 479.98px) { .hero-ctas .btn { width: 100%; } }

.rating-chip {
  margin-top: var(--s-6); display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  min-height: 44px; padding: 8px 16px 8px 12px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-dark);
  font-size: 0.9375rem; color: var(--text-on-dark-muted);
  transition: background-color var(--dur-fast) ease;
}
.rating-chip:hover { background: rgba(255,255,255,0.1); }
.rating-chip strong { color: var(--white); }
.stars { display: inline-flex; gap: 2px; color: #F5B83D; }
.stars .icon { width: 16px; height: 16px; }
.stars-lg .icon { width: 22px; height: 22px; }

/* Plan card */
.plan-card {
  position: relative;
  background: linear-gradient(180deg, rgba(37,47,61,0.92), rgba(28,36,48,0.92));
  border: 1px solid var(--border-dark); border-radius: var(--radius-lg);
  padding: var(--s-5); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
@media (min-width: 768px) { .plan-card { padding: var(--s-6); } }
.plan-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(31,92,240,0.7), transparent 40%, transparent 70%, rgba(46,158,108,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.plan-head { display: flex; justify-content: space-between; align-items: start; gap: var(--s-4); padding-bottom: var(--s-5); border-bottom: 1px solid var(--border-dark); }
.plan-kicker { color: var(--blue-tint); text-transform: uppercase; letter-spacing: 0.08em; }
.plan-title { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; color: var(--white); margin-top: 2px; }
.plan-badge {
  font-family: var(--font-mono); font-size: 0.75rem; padding: 6px 10px; border-radius: var(--radius-pill);
  background: rgba(46,158,108,0.16); color: #7FD8AE; border: 1px solid rgba(46,158,108,0.4);
}
.plan-steps { display: grid; gap: 2px; padding-block: var(--s-4); }
.plan-steps li {
  display: grid; grid-template-columns: 28px 1fr auto; gap: var(--s-3); align-items: start;
  padding: var(--s-3); border-radius: var(--radius-sm);
}
.plan-steps li.is-active { background: rgba(31, 92, 240, 0.14); }
.plan-marker {
  width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25); display: grid; place-items: center;
}
.plan-marker .icon { width: 14px; height: 14px; stroke-width: 3; }
.is-done .plan-marker { background: var(--green); border-color: var(--green); color: var(--white); }
.is-active .plan-marker { border-color: var(--blue-bright); box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 12px var(--blue-bright); }
.plan-step-title { font-family: var(--font-display); font-weight: 600; color: var(--white); }
.plan-step-text { font-size: 0.875rem; color: var(--text-on-dark-muted); line-height: 1.45; }
.plan-tag { font-size: 0.6875rem; color: var(--text-on-dark-muted); padding-top: 4px; white-space: nowrap; }
.is-active .plan-tag { color: var(--blue-tint); }
.plan-progress { padding-top: var(--s-4); border-top: 1px solid var(--border-dark); }
.plan-progress-row { display: flex; justify-content: space-between; color: var(--text-on-dark-muted); margin-bottom: var(--s-2); }
.bar { height: 8px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.08); overflow: hidden; }
.bar span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright) 60%, var(--green));
  transform-origin: left; animation: grow 1.4s var(--ease-out) 0.4s both;
}
@keyframes grow { from { transform: scaleX(0); } }
.plan-note { margin-top: var(--s-4); font-size: 0.8125rem; color: var(--text-on-dark-muted); }

/* ---------- Conditions strip ---------- */
.strip { background: var(--navy); border-block: 1px solid var(--border-dark); }
.strip-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.strip-grid li { border-right: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); }
.strip-grid a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 132px; padding: var(--s-5) var(--s-3); text-align: center;
  color: var(--text-on-dark); font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: background-color var(--dur) ease, color var(--dur) ease;
}
.strip-grid .icon { width: 32px; height: 32px; stroke-width: 1.75; color: var(--blue-tint); transition: color var(--dur) ease, transform var(--dur) var(--ease-out); }
.strip-grid a:hover { background: var(--white); color: var(--navy); }
.strip-grid a:hover .icon { color: var(--blue); transform: translateY(-2px); }
.strip-grid li:last-child { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .strip-grid { grid-template-columns: repeat(5, 1fr); }
  .strip-grid li { border-bottom: 0; }
  .strip-grid li:last-child { grid-column: auto; border-right: 0; }
  .strip-grid a { min-height: 160px; font-size: 1.0625rem; }
}

/* ---------- Process ---------- */
.process { padding-bottom: 0; }
.process .section-head { margin-bottom: var(--s-6); }
.steps { border-top: 1px solid var(--border); }
.step { border-bottom: 1px solid var(--border); }
.step-inner {
  display: grid; gap: var(--s-5); padding-block: var(--s-7);
  grid-template-columns: auto 1fr;
}
.step-num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-size: 0.9375rem;
}
.step-body { min-width: 0; }
.step-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); line-height: 0.95; letter-spacing: -0.01em;
  margin-bottom: var(--s-4); padding-top: 4px;
}
.step-body > p:not(.step-list-label) { max-width: 60ch; color: var(--text-muted); font-size: 1.0625rem; }
.step-list-label { margin-top: var(--s-5); margin-bottom: var(--s-3); font-weight: 600; font-size: 0.9375rem; }
.check-list { display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.step-media {
  grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: var(--radius);
}
@media (min-width: 900px) {
  .step-inner { grid-template-columns: 72px 1fr 300px; gap: var(--s-7); padding-block: var(--s-8); align-items: start; }
  .step-num { width: 60px; height: 60px; font-size: 1rem; }
  .step-media { grid-column: auto; aspect-ratio: 4 / 5; }
}
@media (min-width: 1200px) { .step-inner { grid-template-columns: 80px 1fr 360px; } }

/* ---------- Services ---------- */
.service-grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
  .service-feature { grid-row: span 2; }
}
.service-card {
  display: flex; flex-direction: column; gap: var(--s-3);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s-6); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.service-card:hover { box-shadow: var(--shadow); border-color: #C9D3F0; transform: translateY(-2px); }
.service-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1.2; }
.service-card p { color: var(--text-muted); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(0, 56, 204, 0.08); color: var(--blue); margin-bottom: var(--s-2);
}
.service-icon .icon { width: 26px; height: 26px; }
.service-tag { margin-top: auto; padding-top: var(--s-3); color: var(--blue) !important; font-size: 0.75rem; }
.service-feature {
  background: linear-gradient(165deg, var(--blue) 0%, #0A2A8C 55%, var(--navy) 100%);
  border-color: transparent; color: var(--white);
  position: relative; overflow: hidden; isolation: isolate;
}
.service-feature::after {
  content: ""; position: absolute; z-index: -1; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31,92,240,0.6), transparent);
}
.service-feature h3 { font-size: 1.75rem; }
.service-feature p { color: rgba(255,255,255,0.85); }
.service-feature .service-icon { background: rgba(255,255,255,0.12); color: var(--white); }
.service-feature .service-tag { color: var(--blue-tint) !important; }
@media (min-width: 1024px) { .service-feature { justify-content: flex-start; padding: var(--s-7) var(--s-6); } .service-feature h3 { font-size: 2rem; margin-top: var(--s-4); } }

/* ---------- Trust bento ---------- */
.bento { display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; gap: var(--s-5); }
  .bento-rating { grid-row: 1 / span 2; }
  .bento-areas { grid-column: 2 / span 2; }
}
.bento-card {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-2);
}
.bento-stat {
  font-family: var(--font-display); font-weight: 600; line-height: 1;
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem); letter-spacing: -0.03em; color: var(--navy);
}
.bento-stat-sm { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.05; }
.bento-unit { font-size: 0.45em; font-weight: 500; color: var(--steel); letter-spacing: 0; }
.bento-label { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; margin-top: var(--s-3); }
.bento-text { color: var(--text-muted); font-size: 0.9375rem; }
.bento-rating { background: var(--navy); border-color: var(--navy); color: var(--white); justify-content: flex-end; min-height: 320px; position: relative; overflow: hidden; isolation: isolate; }
.bento-bg { position: absolute; inset: 0; z-index: -1; }
.bento-bg img { opacity: 0.55; }
.bento-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,36,48,0.2) 0%, rgba(28,36,48,0.75) 45%, var(--navy) 80%); }
@media (max-width: 699.98px) { .bento-rating { min-height: 420px; } }
.bento-rating .bento-stat { color: var(--white); font-size: clamp(4.5rem, 3rem + 5vw, 7.5rem); }
.bento-rating .bento-unit { color: var(--text-on-dark-muted); }
.bento-rating .bento-text { color: var(--text-on-dark-muted); max-width: 38ch; }
.bento-rating .stars { margin-top: var(--s-4); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.chips li {
  font-family: var(--font-mono); font-size: 0.8125rem; padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1px solid #C7CCD4; background: var(--white);
}

/* ---------- Clinic ---------- */
.clinic-inner { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .clinic-inner { grid-template-columns: 1fr 1.15fr; gap: var(--s-8); } }
.feature-list { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.feature-list li { display: flex; gap: var(--s-4); align-items: start; padding-top: var(--s-4); border-top: 1px solid var(--border); }
.feature-list .icon { width: 22px; height: 22px; color: var(--green); margin-top: 2px; }
.feature-list strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; }
.feature-list span { color: var(--text-muted); font-size: 0.9375rem; }

.clinic-gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s-3); aspect-ratio: 6 / 5; }
@media (min-width: 768px) { .clinic-gallery { gap: var(--s-4); } }
.clinic-gallery figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--border); }
.clinic-gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main { grid-row: span 2; }
.gallery-side { min-height: 0; }
.photo-chip {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: calc(100% - 24px);
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(18, 24, 33, 0.82); color: var(--white);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.8125rem; font-weight: 500;
}
.photo-chip .icon { width: 16px; height: 16px; color: var(--blue-tint); }

/* ---------- Reviews ---------- */
.review-grid { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .review-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.review-card {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-6); border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.review-card blockquote { margin: 0; flex: 1; }
.review-card blockquote p { font-size: 1.0625rem; line-height: 1.6; }
.review-card-feature { background: var(--navy); border-color: var(--navy); color: var(--white); }
.review-card-feature .review-author .mono { color: var(--text-on-dark-muted); }
.review-author { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.review-card-feature .review-author { border-color: var(--border-dark); }
.review-author > span:last-child { display: grid; }
.review-author .mono { color: var(--text-muted); font-size: 0.75rem; }
.avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blue-bright), var(--blue)); color: var(--white);
  font-family: var(--font-display); font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq-inner { max-width: 880px; }
.faq-list { display: grid; gap: var(--s-3); }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.faq-item[open] { border-color: #C9D3F0; box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 64px; padding: var(--s-4) var(--s-5);
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.35;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq-icon {
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-alt); color: var(--navy); transition: transform var(--dur) var(--ease-out), background-color var(--dur) ease, color var(--dur) ease;
}
.faq-icon .icon { width: 18px; height: 18px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--blue); color: var(--white); }
.faq-answer { padding: 0 var(--s-5) var(--s-5); color: var(--text-muted); max-width: 70ch; }
.faq-answer a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.faq-cta {
  margin-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5); border-radius: var(--radius-lg);
  background: var(--navy); color: var(--white);
}
.faq-cta-copy { display: flex; align-items: center; gap: var(--s-4); }
.faq-cta-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.08); }
.faq-cta-title { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.faq-cta-text { color: var(--text-on-dark-muted); font-size: 0.9375rem; }

/* ---------- Book ---------- */
.book { background: var(--navy-deep); color: var(--text-on-dark); }
.book-grid { display: grid; }
@media (min-width: 1024px) { .book-grid { grid-template-columns: 1.1fr 1fr; min-height: 760px; } }
.book-form-wrap { padding: var(--s-9) 20px; max-width: 680px; width: 100%; margin-inline: auto; }
@media (min-width: 768px) { .book-form-wrap { padding-inline: 32px; } }
@media (min-width: 1024px) { .book-form-wrap { margin-inline: auto 0; padding: var(--s-10) var(--s-8) var(--s-10) 32px; } }
.book-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.25rem); line-height: 0.95; letter-spacing: -0.02em;
}
.book-title .accent { text-transform: none; font-weight: 300; color: #7FA0FF; }
.book-lead { margin-top: var(--s-4); color: var(--text-on-dark-muted); font-size: 1.0625rem; max-width: 52ch; }

.book-form { margin-top: var(--s-6); display: grid; gap: var(--s-4); }
.form-row { display: grid; gap: var(--s-4); }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--text-on-dark); }
.req { color: #7FA0FF; }
.optional { color: var(--text-on-dark-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--navy-soft); color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.14); border-radius: 12px;
  font-size: 1rem; /* 16px avoids iOS zoom */
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B4BBC7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field select option { color: var(--navy); background: var(--white); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,0.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-bright); background: #2A3544; box-shadow: 0 0 0 3px rgba(31,92,240,0.35); }
.field [aria-invalid="true"] { border-color: #FF8A80; }
.field-error { font-size: 0.8125rem; color: #FFA59E; min-height: 0; }
.field-error:empty { display: none; }
.field-help { font-size: 0.8125rem; color: var(--text-on-dark-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 0.9375rem; }
.form-status:empty { display: none; }
.form-status.is-success { color: #8FE3BA; }
.form-status.is-error { color: #FFA59E; }
.form-status a, .form-alt a { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form-alt { font-size: 0.9375rem; color: var(--text-on-dark-muted); text-align: center; }

.book-side { position: relative; min-height: 560px; display: flex; align-items: flex-end; padding: var(--s-5); }
@media (min-width: 768px) { .book-side { padding: var(--s-7); } }
.book-photo { position: absolute; inset: 0; }
.book-photo img { opacity: 0.55; }
.book-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(18,24,33,0.85) 100%); }
.visit-card {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  background: rgba(18, 24, 33, 0.88); border: 1px solid var(--border-dark); border-radius: var(--radius-lg);
  padding: var(--s-6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.visit-title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin-bottom: var(--s-4); }
.visit-list { display: grid; gap: var(--s-4); }
.visit-list > li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); align-items: start; }
.visit-list > li > .icon { color: var(--blue-tint); margin-top: 3px; }
.visit-phone { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.visit-phone:hover { color: var(--blue-tint); }
.hours { width: 100%; font-size: 0.9375rem; }
.hours th { text-align: left; font-weight: 500; padding: 3px 0; color: var(--text-on-dark); }
.hours td { text-align: right; color: var(--text-on-dark-muted); padding: 3px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--text-on-dark-muted); padding-top: var(--s-8); padding-bottom: calc(var(--s-6) + 76px); overflow: hidden; }
@media (min-width: 768px) { .site-footer { padding-bottom: var(--s-6); } }
.footer-display {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: var(--white);
  font-size: clamp(2.75rem, 0.5rem + 10vw, 10rem); line-height: 0.9; letter-spacing: -0.03em;
  padding-bottom: var(--s-7); border-bottom: 1px solid var(--border-dark);
}
.footer-grid { display: grid; gap: var(--s-6); padding-block: var(--s-7); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand img { width: 170px; margin-bottom: var(--s-4); }
.footer-brand p { max-width: 34ch; }
.footer-heading { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: var(--s-3); }
.site-footer nav a, .site-footer address a { display: inline-flex; min-height: 36px; align-items: center; }
.site-footer a:not(.btn):hover { color: var(--white); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3);
  padding-top: var(--s-5); border-top: 1px solid var(--border-dark); font-size: 0.8125rem;
}

/* ---------- Mobile sticky bar ---------- */
.mobile-bar {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s-2);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96); border-top: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform var(--dur) var(--ease-out);
}
.mobile-bar.is-visible { transform: none; }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@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; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Split-head trailing link sits bottom-right on wide screens */
@media (min-width: 900px) { .section-head-split > .link-arrow { justify-self: end; } }
