/* Saltmeadow Family Dental: a concept site by Gelding Marketing (made-up business).
   Direction: "The split stage" (design-taste-frontend, seed 1697947458), Zilla Slab, teal on paper.
   Motion personality: calm and reassuring. Transform and opacity only. */

:root {
  --bg: #f7f9f8;
  --surface: #ebf0ee;
  --surface-2: #d8e4e0;
  --ink: #06525c;
  --ink-strong: #043a41;
  --muted: #2b6c75;
  --field: #06525c;
  --field-2: #0b6672;
  --field-ink: #f7f9f8;
  --error: #a3262a;
  --error-bg: #fbe9e8;
  --fill-bg: #fff1b8;
  --fill-ink: #4d3b00;

  --font: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --step-small: 0.875rem;                                   /* 14px */
  --step-body: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem); /* 18-21px */
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);    /* 20-26px */
  --step-head: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);        /* 32-52px */
  --step-display: clamp(2.5rem, 1.6rem + 3vw, 4rem);        /* 40-64px */

  --margin: clamp(16px, 4.8vw - 5px, 40px);
  --radius: 4px;
  --header-h: 68px;
  --gap-section: clamp(96px, 8vw + 40px, 176px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-calm: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-press: 120ms;
  --dur-ui: 200ms;
  --dur-reveal: 640ms;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: max(16px, 1rem); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.on-field :focus-visible, .on-field:focus-visible { outline-color: var(--field-ink); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ---------- skip link, concept banner, header ---------- */
.skip {
  position: absolute; left: var(--margin); top: 8px; z-index: 100;
  background: var(--ink); color: var(--field-ink); padding: 12px 18px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; translate: 0 -160%;
  transition: translate var(--dur-ui) var(--ease-out);
}
.skip:focus-visible { translate: 0 0; outline-color: var(--ink-strong); }

.concept {
  background: var(--surface-2);
  color: var(--ink-strong);
  font-size: var(--step-small);
  line-height: 1.4;
  padding: 10px var(--margin);
}
.concept p { max-width: none; }
.concept a { font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 var(--margin);
}
.site-header.is-scrolled { background: var(--bg); }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; min-height: 44px; justify-content: center; }
.wordmark b { font-weight: 600; font-size: 1.375rem; letter-spacing: -0.02em; }
.wordmark span { font-size: var(--step-small); color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 4px; justify-content: center; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 1.0625rem; text-decoration: none; border-radius: var(--radius);
  transition: background-color var(--dur-ui) ease;
}
.nav a[aria-current="page"] { text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.tel {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px;
  font-weight: 600; text-decoration: none; white-space: nowrap; border-radius: var(--radius);
  transition: background-color var(--dur-ui) ease, scale var(--dur-press) var(--ease-out);
}
.tel svg { width: 18px; height: 18px; flex: none; }
.tel:active { scale: 0.97; }

/* header Book button: hides while the hero's own button is on screen (desktop only) */
.header-book { transition: opacity var(--dur-ui) var(--ease-out), translate var(--dur-ui) var(--ease-out), background-color var(--dur-ui) ease, scale var(--dur-press) var(--ease-out); }
@media (min-width: 701px) {
  .js .site-header.hero-cta-visible .header-book { opacity: 0; translate: 0 -6px; pointer-events: none; visibility: hidden; transition: opacity var(--dur-ui) var(--ease-out), translate var(--dur-ui) var(--ease-out), visibility 0s linear var(--dur-ui); }
}
@media (max-width: 1080px) { .nav { display: none; } .site-header { grid-template-columns: 1fr auto; } }
@media (max-width: 700px) {
  .wordmark b { font-size: 1.1875rem; }
  .wordmark span { display: none; }
  .tel { padding: 0 6px; font-size: 1rem; }
  .tel svg { display: none; }
  .header-book { padding: 0 14px; }
  .header-book .long { display: none; }
}
@media (max-width: 359px) {
  .site-header { gap: 6px; }
  .wordmark b { font-size: 1.0625rem; }
  .header-actions { gap: 2px; }
  .header-book { padding: 0 10px; font-size: 1rem; }
}
@media (min-width: 701px) { .header-book .short { display: none; } }

/* phone section links under the header (not sticky) */
.subnav { display: none; }
@media (max-width: 1080px) {
  .subnav {
    display: flex; flex-wrap: wrap; gap: 8px; padding: 4px var(--margin) 12px;
  }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a {
    flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    background: var(--surface-2); border-radius: var(--radius); text-decoration: none; font-size: 1rem;
    transition: background-color var(--dur-ui) ease, scale var(--dur-press) var(--ease-out);
  }
  .subnav a:active { scale: 0.97; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--radius);
  background: var(--ink); color: var(--field-ink);
  font-weight: 600; font-size: 1.125rem; line-height: 1.1; text-decoration: none; text-align: center;
  cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease, translate var(--dur-ui) var(--ease-out), scale var(--dur-press) var(--ease-out);
}
.btn:active { scale: 0.97; }
.btn--soft { background: var(--surface-2); color: var(--ink); }
.btn--paper { background: var(--field-ink); color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; flex: none; }
.link-arrow { font-weight: 600; text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; gap: 6px; transition: color var(--dur-ui) ease; }
.link-arrow:active { scale: 0.98; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink-strong); translate: 0 -1px; }
  .btn--soft:hover { background: #c9dad5; color: var(--ink-strong); }
  .btn--paper:hover { background: #ffffff; color: var(--ink-strong); }
  .nav a:hover, .tel:hover { background: var(--surface); }
  .subnav a:hover { background: #c9dad5; }
  .link-arrow:hover { color: var(--ink-strong); }
}

/* placeholders a real practice fills in */
.fill {
  display: inline; background: var(--fill-bg); color: var(--fill-ink);
  padding: 2px 6px; border-radius: 3px; font-style: italic; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.sample-tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px;
  background: var(--fill-bg); color: var(--fill-ink); border-radius: 3px;
  font-size: var(--step-small); font-weight: 600; line-height: 1.2;
}

/* ---------- the split stage ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 0 var(--margin);
}
.stage__read { padding: 12px 0 0; min-width: 0; }
.stage__photo {
  position: sticky; top: calc(var(--header-h) + 12px);
  height: calc(100svh - var(--header-h) - 24px);
  min-height: 520px;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.stage__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s var(--ease-calm), scale 9s var(--ease-calm);
  scale: 1.04;
}
.stage__photo img.is-on { opacity: 1; scale: 1; }
.stage__photo figcaption {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  background: var(--bg); color: var(--ink); font-size: var(--step-small); line-height: 1.35;
  padding: 6px 10px; border-radius: var(--radius);
  transition: opacity 400ms ease;
}
.only-phone { display: none; }

.card {
  background: var(--bg);
  border-radius: var(--radius);
}
.read-block { padding: 0 clamp(8px, 3vw, 56px); max-width: 640px; }

/* hero card */
.hero { padding: 0 0 clamp(48px, 6vw, 88px); }
.hours {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.hours li {
  list-style: none; min-height: 56px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: var(--field); color: var(--field-ink); border-radius: 2px; font-size: var(--step-small); line-height: 1.15; text-align: center;
  padding: 6px 2px;
}
.hours li b { font-weight: 600; font-size: 1rem; }
.hours li.closed { background: var(--surface-2); color: var(--ink); }
.hours li.today { background: var(--ink-strong); outline: 3px solid var(--ink-strong); outline-offset: 2px; }
.hours li.closed.today { background: var(--surface-2); outline-color: var(--muted); }
.hours { padding: 0; margin-top: 0; }
.hero h1 { font-size: var(--step-display); max-width: 12ch; }
.hero .lead { font-size: var(--step-lead); line-height: 1.4; margin-top: 28px; max-width: 34ch; }
.hero .today-line { margin-top: 18px; font-size: 1.0625rem; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.slots { margin-top: clamp(40px, 4vw, 56px); }
.slots h2 { font-size: 1.375rem; letter-spacing: -0.01em; }
.slots p { font-size: 1rem; color: var(--muted); margin-top: 6px; }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.slot-list a {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 64px; min-width: 132px; padding: 8px 16px;
  background: var(--surface-2); border-radius: var(--radius); text-decoration: none; line-height: 1.2;
  transition: background-color var(--dur-ui) ease, translate var(--dur-ui) var(--ease-out), scale var(--dur-press) var(--ease-out);
}
.slot-list a b { font-weight: 600; font-size: 1.125rem; }
.slot-list a span { font-size: 0.9375rem; }
.slot-list a:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) { .slot-list a:hover { background: #c9dad5; translate: 0 -2px; } }

/* services */
.section-read { padding-top: var(--gap-section); }
.section-read > h2, .section-read .h2 { font-size: var(--step-head); }
.section-read > .intro { margin-top: 20px; max-width: 40ch; }
.services { margin: 40px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.services li {
  display: grid; grid-template-columns: minmax(0, 15ch) minmax(0, 1fr); gap: 8px 28px; padding: 22px 0;
}
.services li + li { padding-top: 22px; }
.services li:nth-child(odd) { background: transparent; }
.services h3 { font-size: 1.375rem; letter-spacing: -0.01em; line-height: 1.2; }
.services p { font-size: 1.0625rem; line-height: 1.5; }
.services-foot { margin-top: 24px; }

/* first visit: the visit slip */
.visit { margin-top: 40px; background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 3vw, 40px) clamp(14px, 3vw, 40px) clamp(28px, 4vw, 48px); }
.slip {
  background: var(--bg); position: relative;
  padding: 28px clamp(18px, 3vw, 36px) 56px clamp(46px, 5vw, 64px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 96% 100%, 92% calc(100% - 14px), 88% 100%, 84% calc(100% - 14px), 80% 100%, 76% calc(100% - 14px), 72% 100%, 68% calc(100% - 14px), 64% 100%, 60% calc(100% - 14px), 56% 100%, 52% calc(100% - 14px), 48% 100%, 44% calc(100% - 14px), 40% 100%, 36% calc(100% - 14px), 32% 100%, 28% calc(100% - 14px), 24% 100%, 20% calc(100% - 14px), 16% 100%, 12% calc(100% - 14px), 8% 100%, 4% calc(100% - 14px), 0 100%);
}
.slip__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 1.0625rem; }
.slip__title b { font-size: 1.25rem; font-weight: 600; }
.tide { position: absolute; left: clamp(18px, 2vw, 26px); top: 76px; bottom: 116px; width: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.tide i { position: absolute; inset: 0; background: var(--ink); transform-origin: 50% 0; transform: scaleY(1); border-radius: 3px; }
.js .tide i { transform: scaleY(var(--p, 0)); }
.slip h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; margin-top: 28px; line-height: 1.3; }
.slip ol { list-style: none; margin: 8px 0 0; padding: 0; }
.slip li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline;
  padding: 8px 0; font-size: 1.0625rem; line-height: 1.4; position: relative;
}
.slip li::before {
  content: ""; position: absolute; left: calc(-1 * clamp(28px, 3vw, 38px) - 1px); top: 0.95em; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface-2); transition: background-color 400ms var(--ease-calm), scale 400ms var(--ease-out);
}
.slip li.is-past::before, .no-js .slip li::before { background: var(--ink); }
.slip li time, .slip li .t { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.slip .total {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center;
  background: var(--ink); color: var(--field-ink); padding: 12px 16px; margin-top: 24px; border-radius: 2px;
  font-weight: 600; font-size: 1.0625rem;
}
.visit-note { margin-top: 20px; font-size: 1rem; max-width: 52ch; }

/* ---------- full-width bands ---------- */
.band { margin-top: var(--gap-section); padding: clamp(64px, 7vw, 120px) var(--margin); }
.band--field { background: var(--field); color: var(--field-ink); }
.band--surface { background: var(--surface); }
.band-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; max-width: 1640px; margin: 0 auto; }
.band h2 { font-size: var(--step-head); }

/* reviews */
.reviews__photo { grid-column: 1 / 6; align-self: start; max-width: 520px; }
.reviews__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.reviews__photo figcaption { font-size: var(--step-small); margin-top: 10px; }
.reviews__main { grid-column: 7 / 13; padding-top: clamp(0px, 6vw, 120px); min-width: 0; }
.reviews__main > p { margin-top: 18px; max-width: 46ch; font-size: 1.0625rem; }
.carousel { margin-top: 40px; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  touch-action: pan-x pan-y; border-radius: var(--radius);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 4px; }
.review { scroll-snap-align: start; min-width: 0; }
.review__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 22px; height: 22px; fill: currentColor; }
.stars svg.off { opacity: 0.35; }
.review blockquote { margin: 22px 0 0; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.22; max-width: 26ch; font-weight: 400; letter-spacing: -0.01em; }
.review figcaption { margin-top: 22px; font-size: 1.0625rem; }
.carousel__controls { display: flex; align-items: center; gap: 12px; margin-top: 36px; }
.carousel__count { font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: center; font-size: 1.0625rem; }
.round {
  width: 52px; height: 52px; display: inline-grid; place-items: center; border: 0; border-radius: var(--radius);
  background: var(--field-2); color: var(--field-ink); cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-ui) ease, scale var(--dur-press) var(--ease-out), opacity var(--dur-ui) ease;
}
.round svg { width: 22px; height: 22px; }
.round:active { scale: 0.94; }
.round[disabled] { opacity: 0.4; cursor: default; }
.round--light { background: var(--surface-2); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .round:not([disabled]):hover { background: #0f7784; }
  .round--light:not([disabled]):hover { background: #c9dad5; }
}

/* FAQ */
.faq-wrap { max-width: 1640px; margin: var(--gap-section) auto 0; padding: 0 var(--margin); }
.faq-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.faq-head h2 { grid-column: 1 / 7; font-size: var(--step-head); }
.faq-head p { grid-column: 7 / 13; max-width: 44ch; font-size: 1.0625rem; }
.faq { margin-top: 44px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.faq-list { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 6px; }
.faq-q-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left;
  min-height: 60px; padding: 12px 18px; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--surface); color: var(--ink); font-size: 1.125rem; line-height: 1.3; font-weight: 500;
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease, scale var(--dur-press) var(--ease-out);
}
.faq-q-btn svg { width: 20px; height: 20px; flex: none; transition: translate var(--dur-ui) var(--ease-out), opacity var(--dur-ui) ease; opacity: 0; translate: -6px 0; }
.faq-q-btn[aria-selected="true"] { background: var(--ink); color: var(--field-ink); }
.faq-q-btn[aria-selected="true"] svg { opacity: 1; translate: 0 0; }
.faq-q-btn:active { scale: 0.985; }
@media (hover: hover) and (pointer: fine) { .faq-q-btn[aria-selected="false"]:hover { background: var(--surface-2); } }
.faq-panels { grid-column: 7 / 13; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; min-width: 0; }
.faq-panel { padding: clamp(28px, 3vw, 48px); background: var(--surface); border-radius: var(--radius); min-height: 380px; }
.faq-panel h3 { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.375rem); line-height: 1.12; max-width: 22ch; }
.faq-panel p { margin-top: 20px; font-size: var(--step-lead); line-height: 1.45; max-width: 38ch; }
.faq-panel.is-entering { animation: faq-in 260ms var(--ease-out) both; }
@keyframes faq-in { from { opacity: 0; translate: 0 6px; filter: blur(2px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
.faq-phone-ctrl { display: none; }
html:not(.js) .faq-list { display: none; }
html:not(.js) .faq-panels { grid-column: 1 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* insurance */
.money { grid-column: 1 / 13; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; }
.money > div:first-child p { margin-top: 18px; max-width: 36ch; font-size: 1.0625rem; }
.money__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.money__cols section { background: var(--bg); border-radius: var(--radius); padding: 24px 22px 28px; }
.money__cols h3 { font-size: 1.375rem; line-height: 1.2; }
.money__cols p, .money__cols ul { margin-top: 12px; font-size: 1.0625rem; line-height: 1.5; }
.money__cols ul { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }

/* contact */
.contact { padding-left: 0; padding-right: 0; overflow: hidden; }
.strip-wrap { position: relative; }
.strip { display: flex; gap: 8px; width: max-content; padding: 0; margin: 0; list-style: none; }
.strip img { height: 150px; width: auto; border-radius: 2px; }
.js .strip { animation: drift 70s linear infinite; }
.strip.is-paused { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.strip-pause { position: absolute; right: var(--margin); bottom: -64px; }
.contact__body { max-width: 1640px; margin: 0 auto; padding: 96px var(--margin) 0; }
.contact__body h2 { max-width: 16ch; }
.contact__lead { margin-top: 18px; font-size: 1.0625rem; max-width: 52ch; }
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 40px; }
.cell {
  min-height: 96px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px;
  padding: 14px 24px; background: var(--field-2); color: var(--field-ink); border-radius: var(--radius); text-decoration: none;
  transition: background-color var(--dur-ui) ease, scale var(--dur-press) var(--ease-out);
}
.cell span { font-size: 1rem; }
.cell b { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); font-weight: 600; overflow-wrap: anywhere; }
.cell--action { background: var(--field-ink); color: var(--ink); }
.cell:active { scale: 0.98; }
@media (hover: hover) and (pointer: fine) {
  .cell:hover { background: #0f7784; }
  .cell--action:hover { background: #ffffff; }
}
.contact__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 32px; margin-top: 32px; font-size: 1.0625rem; }
.contact__facts h3 { font-size: 1.125rem; letter-spacing: 0; margin-bottom: 6px; }
.contact__facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; }
.contact__facts dd { margin: 0; font-variant-numeric: tabular-nums; }

/* footer */
.footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; background: var(--surface); }
.footer__photo { position: relative; overflow: hidden; }
.footer__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.footer__menu { padding: 64px var(--margin) 32px clamp(24px, 5vw, 96px); display: flex; flex-direction: column; }
.footer__menu .wordmark b { font-size: 1.25rem; }
.footer__links { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-direction: column; gap: 6px; }
.footer__links a {
  display: inline-flex; align-items: center; min-height: 48px; font-size: clamp(1.5rem, 0.9rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; transition: translate var(--dur-ui) var(--ease-out), opacity var(--dur-ui) ease, scale var(--dur-press) var(--ease-out);
}
.footer__links a:active { scale: 0.98; }
@media (hover: hover) and (pointer: fine) {
  .footer__links:hover a { opacity: 0.6; }
  .footer__links a:hover { opacity: 1; translate: 12px 0; }
}
.footer__info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; font-size: 1rem; }
.footer__info h3 { font-size: 1.0625rem; letter-spacing: 0; margin-bottom: 6px; }
.footer__legal { margin-top: auto; padding-top: 48px; font-size: var(--step-small); line-height: 1.5; }
.footer__legal p + p { margin-top: 8px; }

/* ---------- reveal (content visible by default; only enhanced when JS runs) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; translate: 0 20px; transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .rv.is-in { opacity: 1; translate: 0 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .money { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; padding: 0; }
  .stage__photo {
    position: relative; top: 0; order: -1; height: 36svh; min-height: 220px; margin: 0 var(--margin);
  }
  .stage__photo figcaption { display: none; }
  .stage__read { padding: 0 var(--margin); }
  /* QA 2026-11-02: phone text sat on four left edges (16 / 20 / 32 / 36px); one edge with the photo and header now */
  .hero.card { margin-top: -24px; position: relative; padding: 24px 0 48px; }
  .read-block { padding: 0; }
  .only-phone { display: block; }
  .inline-photo { margin: 32px 0 0; }
  .inline-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
  .inline-photo figcaption { font-size: var(--step-small); margin-top: 8px; color: var(--muted); }
  .reviews__photo { grid-column: 1 / 9; }
  .reviews__main { grid-column: 1 / 13; padding-top: 0; }
  .faq-head h2, .faq-head p { grid-column: 1 / 13; }
  .money__cols { grid-template-columns: 1fr; }
  .cells, .contact__facts { grid-template-columns: 1fr; }
  .cell { min-height: 72px; }
  .footer { grid-template-columns: 1fr; min-height: 0; }
  .footer__photo { height: 50svh; }
  .footer__menu { padding: 40px var(--margin) 32px; }
  .footer__links a { font-size: clamp(1.5rem, 6vw, 2.25rem); }
}
@media (max-width: 700px) {
  .hero__actions .btn { display: none; } /* phones: ONE booking button, in the header */
  .hours li { min-height: 48px; }
  .hours li small { display: none; }
  .services li { grid-template-columns: 1fr; padding: 18px 0; }
  .footer__info { grid-template-columns: 1fr; }
  .strip img { height: 110px; }
  .strip-pause { bottom: -60px; }
}

/* FAQ on phones: swipe cards */
@media (max-width: 899px) {
  .js .faq { display: block; }
  .js .faq-list { display: none; }
  .js .faq-panels {
    display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--margin)); padding: 4px var(--margin) 8px; scroll-padding: 0 var(--margin);
  }
  .js .faq-panels::-webkit-scrollbar { display: none; }
  .js .faq-panel { scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); padding: 24px 20px 28px; }
  .js .faq-panel[hidden] { display: block; }
  .js .faq-panel.is-entering { animation: none; }
  .js .faq-panel h3 { font-size: 1.5rem; }
  .js .faq-panel p { font-size: 1.125rem; }
  .js .faq-phone-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
  html:not(.js) .faq-panels { grid-template-columns: 1fr; }
}

/* ---------- booking page ---------- */
.book {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 72px);
  padding: 12px var(--margin) 0; max-width: 1640px; margin: 0 auto;
}
.book__flow { min-width: 0; max-width: 720px; padding-bottom: 96px; }
.back-home { font-size: 1rem; }
.book h1 { font-size: var(--step-display); margin-top: 16px; }
.book__lead { margin-top: 16px; font-size: var(--step-lead); line-height: 1.4; max-width: 36ch; }
.progress { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font-size: 1rem; }
.progress li { color: var(--muted); line-height: 1.25; }
.progress li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.progress li.is-done { color: var(--ink); }
.progress li.is-done::after { content: " \2713"; }
.progress-bar { height: 8px; background: var(--surface-2); border-radius: 4px; margin-top: 12px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0.25); transition: transform 400ms var(--ease-out); border-radius: 4px; }
.book__mini { margin-top: 12px; min-height: 1.5em; font-size: 1rem; color: var(--muted); }
.booking { margin-top: 0; }
.booking .step { margin-top: 28px; }
.step h2 { font-size: var(--step-head); }
.step fieldset { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.step legend { font-size: 1.25rem; font-weight: 600; padding: 0; margin-bottom: 12px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choices .field-err { grid-column: 1 / -1; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input, .pill input, .day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__face {
  display: flex; flex-direction: column; gap: 4px; min-height: 96px; justify-content: center; padding: 16px 18px 16px 52px;
  background: var(--surface); border-radius: var(--radius); position: relative; line-height: 1.25;
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease, scale var(--dur-press) var(--ease-out);
}
.choice__face b { font-size: 1.1875rem; font-weight: 600; }
.choice__face span { font-size: 1rem; }
.choice__face::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink);
}
.choice input:checked + .choice__face { background: var(--ink); color: var(--field-ink); }
.choice input:checked + .choice__face::before { background: var(--field-ink); box-shadow: inset 0 0 0 6px var(--field-ink), inset 0 0 0 11px var(--ink); }
.choice input:focus-visible + .choice__face, .pill input:focus-visible + span, .day input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.choice:active .choice__face, .pill:active span, .day:active > span { scale: 0.98; }
.seg__row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px;
  background: var(--surface); border-radius: var(--radius); font-size: 1.0625rem;
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease, scale var(--dur-press) var(--ease-out);
}
.pill input:checked + span { background: var(--ink); color: var(--field-ink); font-weight: 600; }
.days__row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84px; gap: 8px; overflow-x: auto; padding: 4px 4px 10px;
  margin: 0 -4px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.day { position: relative; cursor: pointer; scroll-snap-align: start; }
.day > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 96px; gap: 2px;
  background: var(--surface); border-radius: var(--radius); line-height: 1.1;
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease, scale var(--dur-press) var(--ease-out);
}
.day small { font-size: 0.9375rem; }
.day b { font-size: 1.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.day input:checked + span { background: var(--ink); color: var(--field-ink); }
.times__note { font-size: 1rem; color: var(--muted); margin-bottom: 12px; }
.times__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.pill--time span { width: 100%; font-variant-numeric: tabular-nums; }
.hint { margin-top: 20px; font-size: 1rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .choice:hover input:not(:checked) + .choice__face, .pill:hover input:not(:checked) + span, .day:hover input:not(:checked) + span { background: var(--surface-2); }
}
.field { margin-top: 24px; display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.field label { font-weight: 600; font-size: 1.125rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field-hint { font-size: 1rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--muted); border-radius: var(--radius);
  background: #ffffff; color: var(--ink); font-size: 1.125rem; line-height: 1.4;
  transition: border-color var(--dur-ui) ease, background-color var(--dur-ui) ease;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.is-error input:not([type=radio]) { border-color: var(--error); background: var(--error-bg); }
.is-error .choice__face, .is-error .pill span, .is-error .day > span { box-shadow: inset 0 0 0 2px var(--error); }
.choices.is-error .choice__face::before { box-shadow: inset 0 0 0 2px var(--error); }
.field-err { color: var(--error); font-weight: 600; font-size: 1rem; margin-top: 8px; }
.field-err::before { content: "! "; }
.err-summary { margin-top: 20px; background: var(--error-bg); color: var(--error); border-radius: var(--radius); padding: 16px 20px; }
.err-summary ul { margin: 8px 0 0; padding-left: 20px; }
.err-summary a { color: var(--error); font-weight: 600; }
.err-summary:focus-visible { outline: 3px solid var(--error); outline-offset: 3px; }
.step-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.step-nav .btn { min-width: 140px; }
.check { width: 64px; height: 64px; margin-bottom: 20px; }
.check circle { fill: var(--ink); }
.check path { fill: none; stroke: var(--field-ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .step--done:not([hidden]) .check { animation: check-pop 500ms var(--ease-out) both; }
  .step--done:not([hidden]) .check path { animation: check-draw 420ms var(--ease-out) 180ms both; }
}
@keyframes check-pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes check-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
.done__lead { margin-top: 16px; font-size: 1.125rem; max-width: 52ch; }

.book__side { min-width: 0; }
.book__sticky { position: sticky; top: calc(var(--header-h) + 12px); display: flex; flex-direction: column; gap: 12px; padding-bottom: 32px; }
.book__photo { margin: 0; }
.book__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.appt {
  background: var(--surface); border-radius: var(--radius); padding: 22px 24px 40px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 95% 100%, 90% calc(100% - 12px), 85% 100%, 80% calc(100% - 12px), 75% 100%, 70% calc(100% - 12px), 65% 100%, 60% calc(100% - 12px), 55% 100%, 50% calc(100% - 12px), 45% 100%, 40% calc(100% - 12px), 35% 100%, 30% calc(100% - 12px), 25% 100%, 20% calc(100% - 12px), 15% 100%, 10% calc(100% - 12px), 5% 100%, 0 calc(100% - 12px));
}
.appt__title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 1rem; }
.appt__title b { font-size: 1.375rem; font-weight: 600; }
.appt dl { margin: 16px 0 0; display: grid; gap: 4px; }
.appt dl > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding: 8px 0; align-items: baseline; }
.appt dt { color: var(--muted); font-size: 1rem; }
.appt dd { margin: 0; font-weight: 600; font-size: 1.125rem; overflow-wrap: anywhere; }
.appt dd.is-empty { font-weight: 400; color: var(--muted); }
.appt__foot { margin-top: 14px; font-size: 0.9375rem; }
.appt--done { margin-top: 28px; max-width: 560px; }
.book-foot { background: var(--surface); padding: 32px var(--margin) 40px; font-size: var(--step-small); }
.book-foot p { max-width: 90ch; }
.book-foot p + p { margin-top: 8px; }

@media (max-width: 900px) {
  .book { grid-template-columns: 1fr; }
  .book__flow { padding-bottom: 40px; }
  .book__sticky { position: static; padding-bottom: 48px; }
  .book__side .appt { display: none; }
  .progress { font-size: 0.875rem; }
}
@media (min-width: 901px) { .book__mini { display: none; } }
@media (max-width: 520px) {
  .choices { grid-template-columns: 1fr; }
  .choice__face { min-height: 80px; }
  .step-nav .btn { flex: 1 1 0; min-width: 0; }
  .appt { padding: 18px 16px 36px; }
}

/* QA 2026-11-02: headings and main get focus from script (step changes, skip link) so screen readers land there;
   they are not controls, so no ring (it framed "You're booked in" like a button). */
h2[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }
/* QA 2026-11-02: on the confirmation the side card repeated the same appointment a second time */
body.is-done .appt[data-card] { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .progress-bar i { transition: none; }
  .stage__photo img { transition: opacity 400ms ease; scale: 1; }
  .js .strip { animation: none; }
  .strip-wrap { overflow-x: auto; }
  .strip-pause { display: none; }
  .faq-panel.is-entering { animation: faq-fade 150ms ease both; }
  @keyframes faq-fade { from { opacity: 0; } to { opacity: 1; } }
  .btn, .slot-list a, .footer__links a { transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease, opacity var(--dur-ui) ease; }
}
