/* Anchor of Life Chiropractic — site styles */
:root {
  --blue: #2B667D;
  --blue-dark: #1f5063;
  --green: #2BA67D;
  --green-ink: #1d7a5b; /* AA-safe green for text on light */
  --mint: #66EDC1;
  --navy: #0F2937;
  --sky: #50BEE8;
  --black: #000;

  --bg: #f6f9f8;
  --surface: #ffffff;
  --surface-2: #eaf3f1;
  --line: #d5e3e0;
  --text: #0F2937;
  --muted: #4a5f68;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.25rem, 1rem + 4vw, 4.5rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --radius: .75rem;
  --radius-lg: 1.25rem;
  --shadow: 0 1px 2px rgba(15,41,55,.06), 0 8px 24px rgba(15,41,55,.06);
  --wrap: 1180px;
  --narrow: 720px;
  --ease: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  font-family: "Red Hat Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-4); color: var(--navy); text-wrap: balance; }
h1 { font-size: var(--text-2xl); font-weight: 500; }
h2 { font-size: var(--text-xl); font-weight: 500; }
h3 { font-size: var(--text-lg); font-weight: 600; }
p { margin: 0 0 var(--space-4); max-width: 68ch; text-wrap: pretty; }
ul { padding-left: 1.2em; }
li { margin-bottom: var(--space-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -100px; background: var(--navy); color: #fff; padding: var(--space-2) var(--space-4); z-index: 100; border-radius: 6px; }
.skip:focus { top: var(--space-2); color: #fff; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: var(--narrow); }
.section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
.section--tint { background: var(--surface-2); }
.section--white { background: var(--surface); }
.section--navy { background: var(--navy); color: #dce9ec; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a:not(.btn) { color: var(--mint); }
.kicker { display: inline-block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green-ink); margin-bottom: var(--space-3); }
.section--navy .kicker, .hero .kicker { color: var(--mint); }
.lead { font-size: var(--text-lg); line-height: 1.5; color: var(--muted); font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: var(--space-3) var(--space-6); border-radius: 999px; font-weight: 700; font-size: var(--text-sm); text-decoration: none; border: 2px solid transparent; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--navy); color: #fff; }
.btn--mint { background: var(--mint); color: var(--navy); }
.btn--mint:hover { background: #fff; color: var(--navy); }
.btn--ghost { border-color: currentColor; color: var(--blue); background: transparent; }
.btn--ghost:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 76px; }
.brand { display: block; flex: none; }
.brand { padding-block: 6px; }
.brand img { width: 150px; height: auto; min-height: 50px; }
.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav > a, .nav summary { font-size: var(--text-sm); font-weight: 600; color: var(--navy); text-decoration: none; padding: var(--space-2) var(--space-3); border-radius: 8px; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav > a:hover, .nav summary:hover { background: var(--surface-2); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.nav summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.dd { position: relative; }
.dd-panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-2); display: grid; }
.dd-panel a { padding: var(--space-3); border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: var(--text-sm); line-height: 1.3; }
.dd-panel a span { display: block; font-weight: 400; color: var(--muted); font-size: var(--text-xs); margin-top: 2px; }
.dd-panel a:hover { background: var(--surface-2); }
.header-cta { margin-left: var(--space-2); }
.menu-toggle { display: none; }

@media (max-width: 1020px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle summary { list-style: none; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: var(--space-2) var(--space-4); border: 1.5px solid var(--navy); border-radius: 999px; font-weight: 700; font-size: var(--text-sm); cursor: pointer; }
  .menu-toggle summary::-webkit-details-marker { display: none; }
  .menu-toggle[open] summary { background: var(--navy); color: #fff; }
  .mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: var(--space-4) 1.25rem var(--space-6); max-height: calc(100vh - 76px); overflow-y: auto; }
  .mobile-menu a { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; }
  .mobile-menu a[aria-current="page"] { color: var(--blue); }
  .mobile-menu .label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--green-ink); font-weight: 700; margin: var(--space-4) 0 0; }
  .mobile-menu a.btn { display: flex; margin-top: var(--space-4); width: 100%; border-bottom: 0; color: #fff; }
}

/* Hero (home) */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,41,55,.94) 0%, rgba(15,41,55,.86) 42%, rgba(15,41,55,.35) 75%, rgba(15,41,55,.15) 100%); }
.hero-inner { min-height: min(78vh, 720px); display: flex; flex-direction: column; justify-content: center; padding-block: var(--space-20); }
.hero h1 { color: #fff; font-size: var(--text-3xl); max-width: 15ch; margin-bottom: var(--space-6); }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero p { color: #e2eef1; font-size: var(--text-lg); line-height: 1.5; max-width: 40ch; }
.hero .hero-note { font-size: var(--text-sm); color: #c8dde2; margin-top: var(--space-6); max-width: none; }
.hero .hero-note a { color: #fff; }
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(180deg, rgba(15,41,55,.80) 0%, rgba(15,41,55,.90) 55%, rgba(15,41,55,.96) 100%); }
  .hero-inner { min-height: 0; padding-block: var(--space-16) var(--space-12); }
}

/* Interior page header */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 56px solid var(--surface-2); pointer-events: none; }
.page-head-inner { position: relative; z-index: 1; padding-block: var(--space-10) clamp(var(--space-12), 6vw, var(--space-20)); }
.page-head h1 { max-width: 20ch; }
.page-head .answer { font-size: var(--text-lg); line-height: 1.55; color: var(--text); max-width: 60ch; font-weight: 500; }
.crumbs { font-size: var(--text-xs); color: var(--muted); margin-bottom: var(--space-8); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: var(--space-2); color: #8aa1a8; }
.crumbs a { color: var(--muted); }

/* Trust strip */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: var(--space-5) 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-8); }
.trust li { margin: 0; display: flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: var(--text-sm); color: var(--navy); }
.trust li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }

/* Layout helpers */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.section-head { max-width: 62ch; margin-bottom: var(--space-10); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); }
.card h3 { margin-bottom: var(--space-3); }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.card-link:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.card-link .more { display: inline-block; margin-top: var(--space-3); color: var(--blue); font-weight: 700; font-size: var(--text-sm); }
/* legacy */ .num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--mint); font-weight: 800; margin-bottom: var(--space-4); }

/* Three T's */
.ttt { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.15); }
.ttt > div { padding: var(--space-8) var(--space-8) var(--space-4) 0; }
.ttt > div + div { border-left: 1px solid rgba(255,255,255,.15); padding-left: var(--space-8); }
.ttt .word { font-size: var(--text-2xl); font-weight: 500; color: var(--mint); line-height: 1; margin-bottom: var(--space-4); display: block; }
@media (max-width: 800px) { .ttt { grid-template-columns: 1fr; } .ttt > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); padding-left: 0; } .ttt > div { padding-right: 0; } }

/* Scripture */
.verse { margin: 0; padding: var(--space-8); border-radius: var(--radius-lg); background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.verse::before { content: ""; position: absolute; inset: 0; background: url("img/ripples-800.webp") center/cover; opacity: .22; }
.verse > * { position: relative; }
.verse p { font-size: var(--text-lg); line-height: 1.45; font-weight: 600; max-width: none; }
.verse cite { font-style: normal; color: var(--mint); font-weight: 700; font-size: var(--text-sm); letter-spacing: .06em; text-transform: uppercase; }

/* Lists */
.check { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.check li { position: relative; padding-left: 1.9em; margin-bottom: var(--space-3); }
.check li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231d7a5b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; border: 1px solid #b9d9cf; }
.section--navy .check li::before { background-color: rgba(102,237,193,.12); border-color: rgba(102,237,193,.5); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2366EDC1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tags li { margin: 0; padding: var(--space-2) var(--space-4); border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: var(--text-sm); font-weight: 600; }

/* Reviews */
.rating { display: flex; align-items: center; gap: var(--space-3); font-weight: 700; margin-bottom: var(--space-8); }
.stars { color: #e0a800; letter-spacing: 2px; font-size: 1.1rem; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-6) var(--space-5); display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 var(--space-4); font-size: var(--text-base); line-height: 1.55; color: var(--navy); }
.review blockquote::before { content: "\201C"; display: block; font-size: 2.6rem; line-height: .8; color: var(--green); font-weight: 800; height: .5em; margin-bottom: var(--space-2); }
.review figcaption { margin-top: auto; font-weight: 700; font-size: var(--text-sm); color: var(--muted); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* Locations */
.loc { display: flex; flex-direction: column; }
.loc address { font-style: normal; margin-bottom: var(--space-4); font-weight: 500; }
.loc .btn-row { margin-top: auto; padding-top: var(--space-4); }
.loc-badge { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--green-ink); }

/* Image band */
.band { position: relative; min-height: 340px; display: grid; align-items: end; color: #fff; overflow: hidden; isolation: isolate; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,41,55,.1) 0%, rgba(15,41,55,.85) 100%); }
.band .wrap { padding-block: var(--space-12); }
.band p { font-size: var(--text-xl); font-weight: 700; line-height: 1.25; max-width: 30ch; color: #fff; margin: 0; }

/* CTA */
.cta { background: var(--navy); color: #dce9ec; border-radius: var(--radius-lg); padding: clamp(var(--space-8), 5vw, var(--space-16)); display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-8); align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; bottom: -140px; width: 360px; height: 360px; border-radius: 50%; border: 48px solid rgba(80,190,232,.12); }
.cta h2 { color: #fff; }
.cta p { margin: 0; }
.cta .btn-row { margin: 0; justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* Prose */
.prose h2 { margin-top: var(--space-12); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-8); }

/* Aside facts */
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); position: sticky; top: 100px; }
.facts h2 { font-size: var(--text-lg); }
.facts dl { margin: 0; }
.facts dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--green-ink); font-weight: 700; margin-top: var(--space-4); }
.facts dd { margin: var(--space-1) 0 0; font-weight: 500; }
.facts .btn { width: 100%; margin-top: var(--space-6); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-5) var(--space-10) var(--space-5) 0; font-weight: 700; font-size: var(--text-base); position: relative; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: var(--space-2); top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 500; color: var(--blue); }
.faq details[open] summary::after { content: "\2013"; }
.faq .a { padding-bottom: var(--space-5); }

/* Portraits */
.portrait { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 5; max-width: 460px; width: 100%; justify-self: center; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.page-head--photo .page-head-inner { align-items: center; }
.page-head--photo .portrait { box-shadow: var(--shadow); }
@media (max-width: 860px) { .page-head--photo .portrait { max-width: 340px; justify-self: start; } }
.facts-photo { width: 100%; height: 220px; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius); margin-bottom: var(--space-6); }
/* Brand icons */
.step-icon { width: 80px; height: 80px; border-radius: 50%; margin-bottom: var(--space-4); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.card-link .step-icon, .card .step-icon { width: 72px; height: 72px; }
.step .step-icon { width: 88px; height: 88px; }
.step-no { display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green-ink); margin-bottom: var(--space-2); }
.rel-head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); }
.rel-head h2 { margin: 0; }
.rel-head .step-icon { width: 56px; height: 56px; margin: 0; }
.cta-text { display: flex; gap: var(--space-6); align-items: center; position: relative; z-index: 1; }
.cta-mark { flex: none; width: 88px; height: 88px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; }
.cta-mark img { width: 46px; height: auto; }
@media (max-width: 560px) { .cta-text { flex-direction: column; align-items: flex-start; gap: var(--space-4); } .cta-mark { width: 72px; height: 72px; } .cta-mark img { width: 38px; } }
/* Doctor card (legacy) */
.doc-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); }
.doc-card img { width: 100%; height: auto; }
.doc-card .cap { padding: var(--space-6) var(--space-8) var(--space-8); color: #dce9ec; }
.doc-card .cap strong { display: block; color: #fff; font-size: var(--text-lg); }

/* Footer */
.site-footer { background: var(--navy); color: #c3d5da; padding-block: var(--space-16) var(--space-8); font-size: var(--text-sm); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--mint); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--space-8); }
.foot-grid h2 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--mint); margin-bottom: var(--space-4); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: var(--space-2); }
.foot-grid address { font-style: normal; margin-bottom: var(--space-4); }
.foot-logo { width: 200px; height: auto; margin: 0 0 var(--space-6); }
.foot-bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); font-size: var(--text-xs); color: #a9bfc5; }
.foot-bottom p { margin: 0; max-width: 80ch; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* Mobile sticky action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-2); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15,41,55,.08); }
  .action-bar .btn { min-height: 48px; padding-inline: var(--space-3); }
  body { padding-bottom: 72px; }
}

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound p { margin-inline: auto; }
.notfound .btn-row { justify-content: center; }

/* ---- Round 3 ---- */
.hero .tagline { color: var(--mint); font-weight: 700; font-size: var(--text-base); letter-spacing: .2em; text-transform: uppercase; margin: var(--space-2) 0 var(--space-6); }
.care-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; margin-bottom: var(--space-4); }
.care-mark img { width: 36px; height: auto; }
.care-type { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-6); align-items: start; padding: var(--space-8) 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.section-head + .care-type { border-top: 0; }
.care-type .step-icon { width: 80px; height: 80px; }
.care-type .care-mark { width: 80px; height: 80px; margin: 0; }
.care-type .care-mark img { width: 40px; }
.care-type p { max-width: 68ch; margin-bottom: 0; }
@media (max-width: 560px) { .care-type { grid-template-columns: 1fr; gap: var(--space-3); } .care-type .step-icon, .care-type .care-mark { width: 64px; height: 64px; } }
.research { list-style: none; padding: 0; margin: var(--space-6) 0; counter-reset: r; }
.research li { position: relative; padding: var(--space-5) 0 var(--space-5) 3rem; border-top: 1px solid var(--line); counter-increment: r; }
.research li::before { content: counter(r); position: absolute; left: 0; top: var(--space-5); width: 2rem; height: 2rem; border-radius: 50%; background: var(--surface-2, #e9f4f1); color: var(--navy); font-weight: 700; display: grid; place-items: center; font-size: var(--text-sm); }
.research a { font-weight: 700; color: var(--blue); line-height: 1.35; overflow-wrap: anywhere; }
.research a::after { content: " ↗"; font-weight: 400; }
.research .src { display: block; margin-top: var(--space-1); font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); }
.research p { margin: var(--space-2) 0 0; color: var(--muted); }
.research-note { font-size: var(--text-sm); color: var(--muted); }
/* Photo gallery slot for future photos */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); margin: var(--space-8) 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.gallery figcaption { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-2); }

/* ---- Round 4: photos ---- */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); display: block; background: var(--surface-2); }
.photo figcaption { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-2); font-weight: 600; }
.split--media { align-items: center; margin-bottom: var(--space-8); }
.split--media .section-head { margin-bottom: 0; }
.photo--wide img { max-height: 520px; aspect-ratio: 4 / 5; width: auto; max-width: 100%; margin-left: auto; }
.photo--small { max-width: 220px; margin-top: var(--space-6); }
.care-type:has(.care-photo) { grid-template-columns: 96px 1fr 280px; }
.care-photo img { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .care-type:has(.care-photo) { grid-template-columns: 96px 1fr; }
  .care-photo { grid-column: 1 / -1; max-width: 420px; }
  .photo--wide img { margin: 0 auto; max-height: 460px; }
}
@media (max-width: 560px) { .care-type:has(.care-photo) { grid-template-columns: 1fr; } }
.gallery--portrait img { aspect-ratio: 4 / 5; }
.photo--land img { aspect-ratio: 4 / 3; }
.gallery .photo img { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.gallery--portrait .photo img { aspect-ratio: 4 / 5; }

/* Research groups (round 6) */
.research-group{border:1px solid rgba(43,102,125,.22);border-radius:14px;background:#fff;margin:0 0 14px;overflow:hidden}
.research-group>summary{cursor:pointer;list-style:none;padding:16px 48px 16px 20px;font-weight:700;font-size:1.1rem;color:#0F2937;position:relative;display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline}
.research-group>summary::-webkit-details-marker{display:none}
.research-group>summary::after{content:"+";position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:1.5rem;color:#2B667D;line-height:1}
.research-group[open]>summary::after{content:"\2212"}
.research-group>summary:hover{background:rgba(102,237,193,.12)}
.research-group>summary:focus-visible{outline:3px solid #50BEE8;outline-offset:-3px}
.research-group .count{font-weight:500;font-size:.85rem;color:#2B667D}
.research-group .research{padding:0 20px 8px 44px;margin:0}
.pullquote{margin:0;padding:var(--space-6,24px) 0;text-align:center}
.pullquote blockquote{margin:0}
.pullquote p{font-size:clamp(1.25rem,1rem + 1.2vw,1.75rem);font-weight:700;line-height:1.35;color:#2B667D;max-width:34ch;margin:0 auto}
.pullquote figcaption{margin-top:12px;font-weight:600;color:#0F2937}
@media (max-width:600px){.research-group .research{padding:0 14px 6px 14px}.research-group>summary{padding:14px 44px 14px 14px}}

/* Round 7: numbered steps, ANS modes */
.lab-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:var(--space-6,24px);counter-reset:labstep}
.lab-steps>li{counter-increment:labstep;position:relative;background:#fff;border:1px solid rgba(43,102,125,.18);border-radius:16px;padding:64px 22px 22px;box-shadow:0 1px 2px rgba(15,41,55,.04)}
.section--white .lab-steps>li{background:#F5F9FA}
.lab-steps>li::before{content:counter(labstep);position:absolute;top:18px;left:22px;width:36px;height:36px;border-radius:50%;background:#0F2937;color:#66EDC1;font-weight:800;display:grid;place-items:center;font-size:1rem}
.lab-steps>li::after{content:"";position:absolute;top:36px;left:66px;right:22px;height:2px;background:linear-gradient(90deg,#2BA67D,rgba(43,166,125,0))}
.lab-steps h3{margin:0 0 8px;font-size:1.125rem}
.lab-steps p{margin:0}
.lab-principles-h{font-size:clamp(1.3rem,1.1rem + .8vw,1.7rem);margin:0}
.mode{border-top:6px solid #50BEE8}
.mode--rest{border-top-color:#2BA67D}
.mode-tag{display:inline-block;font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#2B667D;margin-bottom:6px}
.mode-note{max-width:70ch;margin-top:var(--space-6,24px)}
.section--navy h3.on-dark{color:#66EDC1}

/* ===== Round 9: dynamic, photo-rich redesign ===== */
/* Header: phone + book */
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--text-sm); color: var(--blue); text-decoration: none; padding: var(--space-2) var(--space-3); white-space: nowrap; }
.header-phone:hover { color: var(--navy); }
.header-quick { display: none; }
.site-header { transition: box-shadow .25s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15,41,55,.10); }
@media (max-width: 1180px) and (min-width: 1021px) { .header-phone span { display: none; } }
@media (max-width: 1020px) {
  .header-phone { display: none; }
  .header-quick { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
  .hq-call { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); color: var(--blue); }
  .hq-book { min-height: 44px; padding: var(--space-2) var(--space-4); }
  .header-inner { gap: var(--space-3); }
}
@media (max-width: 380px) { .brand img { width: 120px; } .hq-book { padding-inline: var(--space-3); } }

/* Hero slideshow */
.hero--slides { min-height: min(88vh, 780px); display: flex; align-items: center; }
.hero--slides::before { background: linear-gradient(90deg, rgba(15,41,55,.90) 0%, rgba(15,41,55,.72) 45%, rgba(15,41,55,.25) 80%, rgba(15,41,55,.15) 100%); }
.hero--slides .hero-inner { min-height: 0; width: min(100% - 2.5rem, var(--wrap)); }
.slides { position: absolute; inset: 0; z-index: -2; }
.slides .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.slides .slide.is-active { opacity: 1; }
.slides .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s linear; }
.slides .slide.is-active img { transform: scale(1); }
.hero-theme { font-size: clamp(1.5rem, 1rem + 2.4vw, 2.75rem) !important; font-weight: 800; color: var(--mint) !important; letter-spacing: -0.02em; line-height: 1.05 !important; margin-bottom: var(--space-4) !important; max-width: none !important; }
.hero--slides h1 { font-size: clamp(2rem, 1rem + 3.2vw, 3.75rem); max-width: 17ch; }
.hero--slides p { max-width: 52ch; }
.slide-ctrl { position: absolute; left: 50%; transform: translateX(-50%); bottom: var(--space-6); display: flex; align-items: center; gap: var(--space-3); z-index: 2; }
.dots { display: flex; gap: 8px; }
.dot { width: 28px; height: 6px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; position: relative; }
.dot::after { content: ""; position: absolute; inset: -10px -2px; }
.dot.is-active { background: var(--mint); }
.slide-pause { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); background: rgba(15,41,55,.4); cursor: pointer; display: grid; place-items: center; padding: 0; }
.slide-pause span { width: 10px; height: 10px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.slide-pause[aria-pressed="true"] span { border: 0; width: 0; height: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
@media (max-width: 760px) {
  .hero--slides { min-height: 0; align-items: flex-end; }
  .hero--slides::before { background: linear-gradient(180deg, rgba(15,41,55,.45) 0%, rgba(15,41,55,.86) 28%, rgba(15,41,55,.95) 100%); }
  .hero--slides .hero-inner { padding-block: var(--space-24) var(--space-16); }
  .slide-ctrl { bottom: var(--space-4); }
}

.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center p { margin-inline: auto; }
.btn-row--center { justify-content: center; }
.section--dark { background: #000; color: #d4e4e8; }
.section--dark h2 { color: #fff; }
.section--dark .kicker { color: var(--mint); }

/* Service photo cards */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-5); margin-top: var(--space-8); }
.svc { grid-column: span 2; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.svc:nth-child(4), .svc:nth-child(5) { grid-column: span 3; }
.svc:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15,41,55,.14); color: var(--text); }
.svc-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc:hover .svc-img img { transform: scale(1.05); }
.svc-body { padding: var(--space-5) var(--space-6) var(--space-6); display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { margin-bottom: var(--space-2); }
.svc-body p { font-size: var(--text-sm); color: var(--muted); }
.svc .more { margin-top: auto; font-weight: 700; color: var(--blue); font-size: var(--text-sm); }
.svc-more { margin-top: var(--space-5); }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } .svc, .svc:nth-child(4), .svc:nth-child(5) { grid-column: span 1; } .svc:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } .svc:nth-child(5) { grid-column: auto; } }

/* Meet Dr. Brad band */
.meet-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--navy); color: #dce9ec; overflow: hidden; }
.meet-photo { display: block; min-height: 100%; }
.meet-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; min-height: 420px; }
.meet-text { padding: clamp(var(--space-10), 6vw, var(--space-20)) clamp(1.25rem, 5vw, var(--space-20)); align-self: center; }
.meet-text h2 { color: #fff; }
.meet-text .kicker { color: var(--mint); }
@media (max-width: 860px) { .meet-band { grid-template-columns: 1fr; } .meet-photo img { min-height: 0; aspect-ratio: 4 / 3.4; } }

/* Family mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: var(--space-3); margin-top: var(--space-8); }
.m-item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.m-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.m-item:hover img { transform: scale(1.04); }
.m-wide { grid-column: span 2; }
.m-tall { grid-row: span 2; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: var(--space-2); } }

/* Techniques grid */
.tech-grid { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-4); }
.tech-grid li { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); padding: var(--space-6) var(--space-4); border-radius: var(--radius); font-weight: 700; font-size: var(--text-sm); line-height: 1.3; background: var(--surface); border: 1px solid var(--line); color: var(--navy); }
.tech-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); color: var(--blue); }
.section--dark .tech-grid li { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: var(--sky); }
.section--dark .tech-ic { background: rgba(80,190,232,.12); color: var(--sky); }
@media (max-width: 560px) { .tech-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2); } .tech-grid li { padding: var(--space-4) var(--space-2); } }

/* Testimonial slider */
.slider { position: relative; }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--space-6)) / 3); grid-template-columns: none; gap: var(--space-6); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: var(--space-2); scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track .review { scroll-snap-align: start; }
.review figcaption .stars { display: block; font-size: .95rem; margin-bottom: 4px; }
.slider-nav { display: flex; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }
.slider-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--blue); background: var(--surface); color: var(--blue); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.slider-btn:hover { background: var(--blue); color: #fff; }
.slider-btn[disabled] { opacity: .35; cursor: default; background: var(--surface); color: var(--blue); }
.slider.no-scroll .slider-nav { display: none; }
@media (max-width: 900px) { .slider-track { grid-template-columns: none; grid-auto-columns: 82%; gap: var(--space-4); } }
.rating { justify-content: center; }

/* Visit us */
.visit { background: var(--surface); }
.loc { padding: 0; overflow: hidden; }
.loc .map { display: block; width: 100%; height: 260px; border: 0; background: var(--surface-2); }
.loc-body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }

/* Inner page heads with photo */
.page-head--img .page-head-inner { align-items: center; }
.head-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 18px 44px rgba(15,41,55,.18); aspect-ratio: 4 / 3.6; max-width: 520px; width: 100%; justify-self: end; transform: rotate(1.2deg); }
.head-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .head-photo { justify-self: stretch; max-width: none; aspect-ratio: 16 / 10; transform: none; } }

/* Scroll reveal (only when JS runs and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .slides .slide, .slides .slide img { transition: none !important; transform: none !important; }
  .svc:hover, .svc:hover .svc-img img, .m-item:hover img { transform: none; }
}
