/* ==========================================================================
   Top of the Hill Orthodontics & Pediatric Dentistry — PoC front end
   Direction (confirmed with the owner): confident and premium, calm and neighbourly.
   World: Chestnut Hill — arched windows, stone and brick, paper and ink.
   Signature: the arch (a dental arch and a Chestnut Hill window).
   Palette is a concept proposal, NOT verified brand colour.
   Method: unslop by Damir Sokolovsky (@heydamir), CC BY 4.0 — github.com/heydamir/unslop
   ========================================================================== */

:root {
  /* one warm stone ramp, tinted toward paper and ink */
  --bg: #f6f3ed;
  --surface: #fcfaf6;
  --raised: #ece7de;
  --line: rgba(22, 41, 58, 0.1);
  --line-strong: rgba(22, 41, 58, 0.24);
  /* three text roles */
  --text: #16293a;
  --text-2: #4a5763;
  --muted: #5c6670;
  /* one accent: brass, used rarely (current page, the key figure, the arch keystone) */
  --accent: #a67c2e;
  --accent-ink: #7a5a1c;
  --focus: #8a6420;
  /* specialty dots only */
  --dot-ped: #c0703f;
  --dot-ortho: #2f7777;
  /* dark surfaces */
  --ink: #16293a;
  --ink-deep: #101f2d;
  --on-ink: #f6f3ed;
  --on-ink-2: #b4bec8;
  --on-ink-muted: #97a3af;
  --on-ink-line: rgba(246, 243, 237, 0.14);
  /* semantic, toned down */
  --danger: #9a2f25;
  --danger-bg: #f9ebe8;

  --serif: "Vollkorn", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* 4px spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px;
  --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px; --s32: 128px;

  /* radius: controls 8, cards 12, panels 16 */
  --r-ctl: 8px; --r-card: 12px; --r-panel: 16px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --margin: 56px;
  --header-h: 72px;
}
@media (max-width: 767px) { :root { --margin: 20px; --header-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s4)); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--text); margin: 0 0 var(--s4); text-wrap: balance; }
h1 { font-size: clamp(36px, 22px + 3.4vw, 60px); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 22px + 1.6vw, 40px); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: clamp(20px, 18px + .6vw, 24px); line-height: 1.25; }
h4 { font: 500 18px/1.4 var(--sans); margin: 0 0 var(--s2); }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0; padding: 0; }
a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: color .15s var(--ease), text-decoration-color .15s var(--ease); }
a:hover { text-decoration-color: var(--accent); }
a[href^="tel:"], .num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -64px; background: var(--ink); color: var(--on-ink); padding: var(--s3) var(--s4); z-index: 200; border-radius: var(--r-ctl); }
.skip:focus { top: var(--s3); }
[hidden] { display: none !important; }

/* icons: one set, one size, one stroke, text colour */
.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(1280px + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.section { padding-block: clamp(var(--s16), 8vw, var(--s24)); }
.section--tight { padding-block: clamp(var(--s10), 5vw, var(--s16)); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--ink { background: var(--ink); color: var(--on-ink-2); }
.section--ink h2, .section--ink h3 { color: var(--on-ink); }
.section--ink a { color: var(--on-ink); text-decoration-color: var(--on-ink-line); }
.section--ink .note, .section--ink .helper { color: var(--on-ink-muted); }
.split { display: grid; gap: var(--s12); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s20); }
  .split--text-left { grid-template-columns: 1.15fr .85fr; }
  .split--text-right { grid-template-columns: .85fr 1.15fr; }
  .split--top { align-items: start; }
}
.grid { display: grid; gap: var(--s6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stack > * + * { margin-top: var(--s4); }
.stack--lg > * + * { margin-top: var(--s6); }
.mt-2 { margin-top: var(--s2); } .mt-4 { margin-top: var(--s4); } .mt-6 { margin-top: var(--s6); }
.mt-8 { margin-top: var(--s8); } .mt-12 { margin-top: var(--s12); } .mb-0 { margin-bottom: 0; }
.measure { max-width: 60ch; }
.center { text-align: center; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s4) var(--s12); margin-bottom: var(--s10); }
.section-head > div { max-width: 40rem; }
.section-head > p { max-width: 32rem; color: var(--text-2); margin: 0; }
.eyebrow { display: block; font: 500 14px/20px var(--sans); color: var(--text-2); letter-spacing: .01em; margin-bottom: var(--s3); }
.lede { font-size: 20px; line-height: 30px; color: var(--text-2); max-width: 36rem; }
.note { font-size: 14px; line-height: 20px; color: var(--muted); }
.helper { font-size: 14px; line-height: 20px; color: var(--muted); margin: 0; max-width: 36ch; }

/* specialty label: a quiet dot plus text, never a coloured pill */
.spec { display: inline-flex; align-items: center; gap: var(--s2); font: 500 14px/20px var(--sans); color: var(--text-2); }
.spec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.spec--ped::before { background: var(--dot-ped); }
.spec--ortho::before { background: var(--dot-ortho); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s6); border-radius: var(--r-ctl); border: 1px solid transparent; cursor: pointer; font: 500 16px/1.2 var(--sans); text-decoration: none; text-align: center; transition: color .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #0e1d2a; color: #fff; }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--raised); }
.btn--light { background: var(--on-ink); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--ghost-ink { background: transparent; color: var(--on-ink); border-color: var(--on-ink-line); }
.btn--ghost-ink:hover { background: rgba(246, 243, 237, .08); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #7c241c; color: #fff; }
.btn--sm { min-height: 40px; padding: 0 var(--s4); font-size: 15px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.cta--center { align-items: center; text-align: center; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 500; text-decoration: none; }
.link-arrow .i { transition: transform .15s var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }
.link-arrow:hover { color: var(--accent-ink); }

/* quiet phone links: dot, label, number */
.calls { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s8); margin-top: var(--s6); }
.calls a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; text-decoration: none; font-size: 16px; }
.calls a span.num { font-weight: 500; }
.calls .spec { color: inherit; font-size: inherit; }
.calls--stack { flex-direction: column; gap: 0; margin-top: var(--s4); }
.section--ink .calls a { color: var(--on-ink); }

/* ---------- Review mode (owner review notes) ---------- */
.src { display: inline-block; font: 400 12px/16px var(--sans); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px var(--s2); background: var(--surface); vertical-align: middle; margin-right: 4px; }
.review-note { font-size: 13px; line-height: 20px; color: var(--muted); margin: var(--s3) 0 0; }
.section--ink .src { background: transparent; color: var(--on-ink-muted); border-color: var(--on-ink-line); }
.section--ink .review-note { color: var(--on-ink-muted); }
.review-box { border: 1px dashed var(--line-strong); border-radius: var(--r-card); padding: var(--s4) var(--s5); background: var(--surface); font-size: 14px; line-height: 22px; color: var(--text-2); }
html[data-review="off"] .src,
html[data-review="off"] .review-note,
html[data-review="off"] .review-box,
html[data-review="off"] .review-only { display: none !important; }
.switch { display: inline-flex; align-items: center; gap: var(--s2); min-height: 32px; background: none; border: 0; padding: 0; color: inherit; font: 400 13px/16px var(--sans); cursor: pointer; }
.switch__track { width: 32px; height: 20px; border-radius: 10px; background: var(--line-strong); position: relative; transition: background-color .15s var(--ease); flex: none; }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s var(--ease); }
.switch[aria-checked="true"] .switch__track { background: var(--ink); }
.switch[aria-checked="true"] .switch__track::after { transform: translateX(12px); }

/* ---------- Top strip, header, menu ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 14px; }
.topbar__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s1) var(--s6); min-height: 40px; }
.topbar a { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; gap: var(--s2); min-height: 32px; }
.topbar a:hover { color: var(--text); }
.topbar__left, .topbar__right { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s6); }
.topbar .spec { color: inherit; font-size: inherit; }
.topbar .switch { color: var(--muted); }
@media (max-width: 899px) { .topbar__left .tb-addr, .topbar .switch { display: none; } .topbar__in { justify-content: center; } }

.header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--line); }
.header__in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--text); flex: none; }
.brand__mark { width: 32px; height: 32px; color: var(--ink); flex: none; }
.brand__mark .k { fill: var(--accent); stroke: none; }
.brand__name { font: 500 20px/20px var(--serif); display: block; letter-spacing: -.01em; }
.brand__sub { font: 400 12px/16px var(--sans); color: var(--muted); display: block; margin-top: var(--s1); letter-spacing: .01em; }
@media (max-width: 479px) { .brand__sub { display: none; } }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: var(--s1); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); color: var(--text-2); font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap; position: relative; border-radius: var(--r-ctl); }
.nav a:hover { color: var(--text); background: var(--raised); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: var(--s3); right: var(--s3); bottom: var(--s2); height: 2px; background: var(--accent); }
.header__cta { display: flex; align-items: center; gap: var(--s3); }
.header__cta .btn--primary { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); color: var(--text); font: 500 15px var(--sans); cursor: pointer; transition: background-color .15s var(--ease); }
.menu-btn:hover { background: var(--raised); }
@media (min-width: 480px) { .header__cta .btn--primary { display: inline-flex; } }
@media (min-width: 1140px) { .nav { display: block; } .menu-btn { display: none; } }
@media (min-width: 1140px) and (max-width: 1279px) { .nav a { padding-inline: var(--s2); font-size: 14px; } .nav a[aria-current="page"]::after { left: var(--s2); right: var(--s2); } .brand__sub { display: none; } }

.menu { position: fixed; inset: 0; z-index: 150; background: var(--bg); overflow-y: auto; padding: 0 var(--margin) var(--s8); display: none; }
.menu.is-open { display: block; }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); }
.menu nav ul { list-style: none; margin: var(--s4) 0 var(--s8); }
.menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--line); text-decoration: none; font: 500 24px var(--serif); }
.menu nav a[aria-current="page"] { color: var(--accent-ink); }
.menu__calls { display: grid; gap: var(--s3); margin-top: var(--s6); }
body.no-scroll { overflow: hidden; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); color: var(--text); cursor: pointer; transition: background-color .15s var(--ease); }
.icon-btn:hover { background: var(--raised); }

.mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: var(--s2); padding: var(--s3) var(--s3) calc(var(--s3) + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); transition: transform .3s var(--ease); }
.mobilebar .btn { flex: 1; padding-inline: var(--s3); }
.mobilebar .btn:first-child { flex: 1.6; }
.mobilebar.is-hidden { transform: translateY(110%); }
@media (min-width: 900px) { .mobilebar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 76px; } }

dialog.sheet { border: 0; padding: 0; width: min(520px, calc(100vw - 32px)); border-radius: var(--r-panel); background: var(--bg); color: var(--text); box-shadow: 0 8px 24px rgba(22, 41, 58, .18); }
dialog.sheet::backdrop { background: rgba(16, 31, 45, .55); }
.sheet__in { padding: var(--s6); }
.sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); margin-bottom: var(--s4); }
.sheet__head h2 { font-size: 24px; margin: 0 0 var(--s1); }
.call-opt { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s4); margin-top: var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface); text-decoration: none; min-height: 64px; transition: background-color .15s var(--ease); }
.call-opt:hover { background: var(--raised); }
.call-opt strong { font-weight: 500; font-size: 18px; }
.call-opt .num { color: var(--text-2); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(var(--s12), 8vw, 104px) clamp(var(--s16), 7vw, var(--s24)); }
.hero--sub { padding-bottom: clamp(var(--s12), 5vw, var(--s16)); }
.hero__grid { display: grid; gap: var(--s12); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s20); } }
.hero h1 { margin-bottom: var(--s6); }
.hero .lede { margin-bottom: var(--s8); }
.hero__art { width: 100%; max-width: 480px; margin-inline: auto; }
.hero__art .frame { width: 100%; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: var(--s8); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); }
.crumbs li + li::before { content: "/"; margin-right: var(--s2); }
.crumbs a { color: var(--muted); }

/* arch drawing: decorative, aria-hidden */
.arch-art { width: 100%; height: auto; overflow: visible; }
.arch-art .a-outer { fill: var(--raised); stroke: var(--line-strong); stroke-width: 1.5; }
.arch-art .a-mould { fill: none; stroke: var(--line); stroke-width: 1; }
.arch-art .a-win { fill: var(--surface); stroke: rgba(22, 41, 58, .4); stroke-width: 1.5; }
.arch-art .a-lines { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.arch-art .a-ground { stroke: rgba(22, 41, 58, .35); stroke-width: 1.5; }
.arch-art .a-dot-ped { fill: var(--dot-ped); }
.arch-art .a-dot-ortho { fill: var(--dot-ortho); }
.arch-art .a-key { fill: var(--accent); }
.arch-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s4); text-align: center; }
.arch-links a { display: flex; flex-direction: column; align-items: center; gap: var(--s1); min-height: 56px; text-decoration: none; padding: var(--s2); border-radius: var(--r-ctl); transition: background-color .15s var(--ease); }
.arch-links a:hover { background: var(--raised); }
.arch-links strong { font-weight: 500; font-size: 17px; }
.arch-links .spec { font-size: 14px; }

/* ---------- Image frames (placeholders; arched) ---------- */
.frame { position: relative; margin: 0; background: var(--raised); border: 1px solid var(--line); overflow: hidden; display: flex; align-items: flex-end; }
.frame--arch { aspect-ratio: 3 / 4; border-radius: 999px 999px var(--r-card) var(--r-card); }
.frame--wide { aspect-ratio: 16 / 10; border-radius: var(--r-card); }
.frame--square { aspect-ratio: 1; border-radius: var(--r-card); }
.frame__art { position: absolute; inset: 0; width: 100%; height: 100%; stroke: var(--text); stroke-opacity: .2; stroke-width: 1.5; }
.frame figcaption { position: relative; margin: var(--s3); padding: var(--s1) var(--s2); background: var(--surface); border-radius: 4px; font: 400 12px/16px var(--sans); color: var(--muted); }
.frame--portrait { width: 96px; flex: none; }
.frame--portrait figcaption { display: none; }
.gallery { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }

/* ---------- Content components ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s6); display: flex; flex-direction: column; }
@media (max-width: 767px) { .card { padding: var(--s5); } }
a.card { text-decoration: none; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
a.card:hover { border-color: var(--line-strong); background: #fff; }
.card h3 { margin-bottom: var(--s3); }
.card p { color: var(--text-2); }
.card__foot { margin-top: auto; padding-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); align-items: center; }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }
.card__top .note { margin: 0; }
.card--flat { background: transparent; border-color: var(--line); }

.list { list-style: none; display: grid; gap: var(--s3); margin: 0 0 var(--s4); }
.list li { display: flex; gap: var(--s3); align-items: baseline; }
.list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; transform: translateY(-2px); }

/* editorial list: topics and treatment paths */
.toc { list-style: none; display: grid; column-gap: var(--s12); }
@media (min-width: 900px) { .toc { grid-template-columns: 1fr 1fr; } }
.toc li { border-top: 1px solid var(--line); }
.toc a { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); padding: var(--s5) 0; text-decoration: none; min-height: 88px; }
.toc h3 { font-size: 22px; margin: 0 0 var(--s1); transition: color .15s var(--ease); }
.toc p { margin: 0; font-size: 15px; line-height: 22px; color: var(--text-2); }
.toc .i { color: var(--muted); transition: transform .15s var(--ease), color .15s var(--ease); }
.toc a:hover h3 { color: var(--accent-ink); }
.toc a:hover .i { transform: translateX(3px); color: var(--text); }

.steps { list-style: none; counter-reset: s; display: grid; gap: var(--s8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.steps li { border-top: 1px solid var(--line-strong); padding-top: var(--s5); }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font: 400 13px/16px var(--mono); color: var(--muted); margin-bottom: var(--s4); }
.steps h3 { font: 500 18px/24px var(--sans); margin-bottom: var(--s2); }
.steps p { font-size: 15px; line-height: 24px; color: var(--text-2); margin: 0; }
.section--ink .steps li { border-top-color: var(--on-ink-line); }
.section--ink .steps li::before { color: var(--on-ink-muted); }
.section--ink .steps h3 { color: var(--on-ink); }
.section--ink .steps p { color: var(--on-ink-2); }

/* doctors */
.doctor { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.doctor__body { padding: var(--s8); display: flex; flex-direction: column; gap: var(--s5); flex: 1; }
@media (max-width: 767px) { .doctor__body { padding: var(--s5); } }
.doctor__head { display: flex; gap: var(--s5); align-items: center; }
.doctor__head h3 { margin: var(--s1) 0; font-size: 28px; }
.doctor__role { color: var(--text-2); margin: 0; font-size: 15px; }
.doctor__foot { padding: var(--s4) var(--s8); display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
@media (max-width: 767px) { .doctor__foot { padding-inline: var(--s5); } }
.doctor__foot a { font-weight: 500; text-decoration: none; }
.creds { list-style: none; border-bottom: 1px solid var(--line); }
.creds li { border-top: 1px solid var(--line); padding: var(--s2) 0; font-size: 15px; line-height: 24px; }
.creds-title { font: 500 14px/20px var(--sans); color: var(--text-2); margin: 0 0 var(--s2); }
.logos { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }
.logos a { display: block; padding: var(--s2) var(--s3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-ctl); transition: border-color .15s var(--ease); }
.logos a:hover { border-color: var(--line-strong); }
.logos img { height: 48px; width: auto; }
.team { list-style: none; display: grid; gap: 0 var(--s8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.team li { border-top: 1px solid var(--line); padding: var(--s3) 0; display: flex; flex-direction: column; }
.team strong { font-weight: 500; }
.team span { font-size: 14px; color: var(--muted); }

/* reviews */
.rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s6); }
.rating__num { font: 500 clamp(56px, 8vw, 72px)/1 var(--serif); color: var(--accent-ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rating__meta { color: var(--text-2); }
.rating__meta strong { font-weight: 500; color: var(--text); display: block; font-size: 18px; }
.quote { margin: 0; border-top: 1px solid var(--line-strong); padding-top: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.quote blockquote { margin: 0; font: 400 19px/1.5 var(--serif); }
.quote figcaption { font-size: 14px; color: var(--muted); }
.quote--feature blockquote { font-size: clamp(24px, 20px + 1vw, 30px); line-height: 1.3; letter-spacing: -.01em; }
.quote--feature { border-top-color: var(--accent); }
.wall { display: grid; gap: var(--s10) var(--s8); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); grid-auto-flow: dense; }
@media (min-width: 900px) { .quote--feature { grid-column: span 2; } }
.wall .quote[hidden] { display: none; }
.field { display: grid; gap: var(--s1); margin-bottom: var(--s2); max-width: 28rem; }
.field label { font-weight: 500; font-size: 15px; }
.field input { min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); padding: 0 var(--s4); font: inherit; background: var(--surface); color: var(--text); }

/* tabs and FAQ */
.tabs [role="tablist"] { display: flex; gap: var(--s6); margin-bottom: var(--s8); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs [role="tab"] { min-height: 48px; padding: 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--muted); font: 500 17px var(--sans); cursor: pointer; transition: color .15s var(--ease), border-color .15s var(--ease); }
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); min-height: 64px; padding: var(--s3) 0; font: 500 18px/26px var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2316293a' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M2 8h12M8 2v12'/%3E%3C/svg%3E") center / contain no-repeat; }
.faq details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2316293a' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M2 8h12'/%3E%3C/svg%3E"); }
.faq details > div { padding: 0 0 var(--s5); color: var(--text-2); max-width: 64ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* callouts */
.callout { border-radius: var(--r-card); padding: var(--s6); border: 1px solid var(--line); background: var(--surface); }
.callout--emergency { background: var(--danger-bg); border-color: rgba(154, 47, 37, .22); border-left: 3px solid var(--danger); }
.callout--emergency h2, .callout--emergency h3 { color: var(--danger); }
.callout h2 { font-size: 28px; }
.callout h3 { font-size: 22px; }
.callout p:last-of-type { margin-bottom: 0; }
.callout .btn-row { margin-top: var(--s5); }
.callout--paper { background: var(--raised); border-color: transparent; }
.map-box { min-height: 320px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--raised); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: var(--s2); padding: var(--s8); }
.map-box strong { font: 500 24px/1.2 var(--serif); }
.rows { list-style: none; }
.rows li { border-top: 1px solid var(--line); padding: var(--s4) 0; display: flex; gap: var(--s3); align-items: flex-start; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .i { margin-top: 4px; color: var(--muted); }
.plain-list { list-style: none; display: grid; gap: var(--s1); }
.plain-list a { display: inline-flex; gap: var(--s2); align-items: center; min-height: 36px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-deep); color: var(--on-ink-2); padding-top: var(--s16); }
.footer a { color: var(--on-ink); text-decoration-color: var(--on-ink-line); }
.footer h2 { font: 500 14px/20px var(--sans); letter-spacing: .01em; color: var(--on-ink-muted); margin-bottom: var(--s4); }
.footer__grid { display: grid; gap: var(--s10); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); padding-bottom: var(--s12); }
.footer__grid > :first-child { grid-column: span 2; }
@media (max-width: 639px) { .footer__grid > :first-child { grid-column: auto; } }
.footer ul { list-style: none; display: grid; gap: var(--s1); }
.footer ul a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 32px; text-decoration: none; }
.footer ul a:hover, .footer address a:hover { text-decoration: underline; }
.footer .brand { color: var(--on-ink); }
.footer .brand__mark { color: var(--on-ink); }
.footer .brand__sub { color: var(--on-ink-muted); }
.footer address { font-style: normal; display: grid; gap: var(--s1); margin-top: var(--s5); }
.footer address a { display: inline-flex; gap: var(--s2); align-items: center; min-height: 40px; text-decoration: none; }
.footer .helper { color: var(--on-ink-muted); }
.footer__badges { border-top: 1px solid var(--on-ink-line); padding-block: var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s8); }
.footer__badges .logos img { height: 40px; }
.footer__base { border-top: 1px solid var(--on-ink-line); padding-block: var(--s6); font-size: 13px; line-height: 20px; color: var(--on-ink-muted); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3) var(--s8); }
.footer__base ul { display: flex; gap: var(--s6); flex-wrap: wrap; }
.footer__base ul a { min-height: 0; }
.footer .switch { color: var(--on-ink-2); }
.footer .switch__track { background: rgba(246, 243, 237, .24); }
.footer .switch[aria-checked="true"] .switch__track { background: var(--accent); }
.review-box--ink { background: transparent; border-color: var(--on-ink-line); color: var(--on-ink-2); margin-bottom: var(--s8); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .btn:active { transform: none; }
}
@media print { .topbar, .header, .mobilebar, .menu { display: none; } }

/* ---------- Small helpers (replace inline styles) ---------- */
.section--ink .eyebrow { color: var(--on-ink-muted); }
.section--ink .lede { color: var(--on-ink-2); }
.h-sm { font-size: 20px; margin-bottom: var(--s3); }
.footer__note { max-width: 24rem; color: var(--on-ink-muted); }
.col-end { align-self: end; }
.phone-lg { font: 500 32px/1.2 var(--serif); color: var(--text); margin: 0 0 var(--s2); }
.measure-wide { max-width: 52rem; }
@media (max-width: 639px) { .topbar { display: none; } }
.doctor__head .frame { width: 96px; flex: none; }
.doctor__head .frame figcaption { display: none; }
/* touch targets and numerals (found in QA) */
.link-arrow { min-height: 44px; }
.doctor__foot a { display: inline-flex; align-items: center; min-height: 44px; }
.footer .footer__base ul { align-items: center; }
.footer .footer__base ul a { display: inline-flex; align-items: center; min-height: 40px; }
.phone-lg, .rating__num, .num { font-variant-numeric: lining-nums tabular-nums; }
