/* ============================================================================
   Bleu Dentistry design system.
   Cool deep petrol blue, warm off-white, Fraunces over Geist.
   ========================================================================= */

/* ============================================================================
   Bleu Dentistry, Dallas, TX
   One stylesheet. Light only. One accent, used for actions.
   ========================================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2-variations"),
       url("fonts/fraunces.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2-variations"),
       url("fonts/geist.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}

/* ---- Tokens ------------------------------------------------------------ */

:root {
  --bg:          #fafaf8;
  --bg-alt:      #f2efe9;
  --bg-deep:     #14222a;

  --ink:         #1a1a1a;
  --ink-2:       #46443f;
  --muted:       #6e6a62;
  --on-deep:     #eceef0;
  --on-deep-dim: #9aa5ac;

  --rule:        #e3dfd5;
  --rule-strong: #cfc9bc;
  --field:       #8d8576;           /* control boundaries, WCAG 1.4.11 */

  /* The one accent. A deep petrol blue, their brand is "bleu", but the
     bright cyan every dental site uses would undo the rest of the page. */
  --accent:      #10495e;
  --accent-deep: #0b3648;
  --accent-tint: #e8eef1;
  --on-accent:   #f7f6f1;

  --star:        #8a5d10;
  --offer-hi:    #8fd0e8;   /* the figure picked out in the offer band */
  --foot-rule:   #2b3a43;   /* hairline inside the footer */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --r-img: 10px;
  --r-ui:  6px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --measure: 34rem;
  --head-h: 4.5rem;
}


/* ============================================================================
   Shared layout and components for the practice sites.
   Contains no colours and no typefaces: every one of those lives in the
   per-practice theme.css, which is the only file that differs by design.
   ========================================================================= */

/* ---- Reset ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
:target, section[id] { scroll-margin-top: calc(var(--head-h) + 1rem); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }   /* must beat the rule above */

h1, h2, h3, h4 {
  /* --h-weight lets a theme use a single-weight display face without the
     browser synthesising a fake bold. */
  font-family: var(--serif); font-weight: var(--h-weight, 500); line-height: 1.1;
  letter-spacing: -0.014em; margin: 0; text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 1.55rem + 4.7vw, 4rem); line-height: 1.06; letter-spacing: -0.022em; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 2.875rem); }
h3 { font-size: 1.3125rem; line-height: 1.25; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px;
}

/* ---- Motion -----------------------------------------------------------
   Everything that moves is opt-out in one place.                         */

.has-js .reveal { opacity: 0; transform: translateY(14px); }
.has-js .reveal.in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.3,1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .has-js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none !important; transform: none !important; }
}

/* ---- Shared ------------------------------------------------------------ */

.wrap { width: 100%; max-width: 78rem; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 88rem; }

.lead { font-size: clamp(1.125rem, 1.02rem + 0.42vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); }
.label { font-size: 0.8125rem; color: var(--muted); margin: 0 0 1rem; font-weight: 500; }

.ico {
  width: 22px; height: 22px; flex: none;
  stroke: currentColor; stroke-width: 1.6; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-lg { width: 26px; height: 26px; }
.ico-sm { width: 18px; height: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.5rem; border-radius: var(--r-ui);
  font: inherit; font-weight: 500; font-size: 1rem; text-decoration: none;
  cursor: pointer; border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--field); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.stars { color: var(--star); letter-spacing: 0.08em; font-size: 1.125rem; }

/* ---- Header ------------------------------------------------------------ */

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--rule);
}
@supports not (backdrop-filter: blur(6px)) { .site-head { background: var(--bg); } }

.head-in { display: flex; align-items: center; gap: 2rem; min-height: var(--head-h); }

.wordmark {
  font-family: var(--serif); font-size: 1.5rem; font-weight: var(--wordmark-weight, 600);
  letter-spacing: -0.025em; text-decoration: none; line-height: 1;
  margin-right: auto; display: flex; align-items: baseline; gap: 0.4rem;
}
.wordmark em { font-style: normal; color: var(--accent); }
.wordmark span {
  font-family: var(--sans); font-size: 0.625rem; font-weight: 500;
  color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase;
}

.nav { display: flex; gap: 1.625rem; }
.nav a {
  font-size: 0.9375rem; color: var(--ink-2); text-decoration: none;
  padding: 0.35rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.head-cta { display: flex; align-items: center; gap: 1rem; }
.head-phone {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.head-phone:hover { color: var(--accent); }
.head-cta .btn { min-height: 2.625rem; padding: 0.5rem 1.125rem; font-size: 0.9375rem; }

@media (max-width: 1040px) { .nav { display: none; } }
@media (max-width: 620px)  { .head-cta .btn { display: none; } }

/* ---- Hero -------------------------------------------------------------- */

.hero { padding-block: clamp(2.5rem, 1rem + 5vw, 4.5rem) clamp(3rem, 1rem + 6vw, 5.5rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { margin-bottom: 1.25rem; max-width: 19ch; }
.hero .lead { max-width: 32rem; margin-bottom: 2rem; }
.hero .btn-row { margin-bottom: 2rem; }

.rating-line {
  display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  margin-bottom: 1.5rem; font-size: 0.9375rem; color: var(--ink-2);
  text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: 0.3rem;
}
.rating-line:hover { border-bottom-color: var(--accent); color: var(--ink); }
.rating-line b { font-weight: 600; }

.hero-note {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  font-size: 0.9375rem; color: var(--muted);
  padding-top: 1.5rem; border-top: 1px solid var(--rule); max-width: 32rem;
}
.hero-note span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-note .ico { color: var(--accent); }

.hero-fig { margin: 0; position: relative; }
.hero-fig img { width: 100%; border-radius: var(--r-img); aspect-ratio: 4/5; object-fit: cover; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero h1 { max-width: 16ch; }
  .hero-fig { order: -1; }
  .hero-fig img { aspect-ratio: 3/2; }
}

/* ---- Fact rail --------------------------------------------------------
   A data band, not cards. Icons are 22px and accented so they actually
   register; the values are set at body size, not caption size.           */

.rail {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule); border-radius: var(--r-img);
  background: var(--bg-alt); overflow: hidden;
}
.rail > div { padding: 1.5rem 1.625rem; border-left: 1px solid var(--rule); min-width: 0; }
.rail > div:first-child { border-left: 0; }
.rail dt {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.5rem;
  font-weight: 500; letter-spacing: 0.01em;
}
.rail dt .ico { color: var(--accent); }
.rail dd { margin: 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.45; color: var(--ink); }
.rail dd small { display: block; font-size: 0.875rem; font-weight: 400; color: var(--muted); margin-top: 0.15rem; }

@media (max-width: 900px) {
  .rail { grid-template-columns: repeat(2, 1fr); }
  .rail > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .rail > div:nth-child(odd) { border-left: 0; }
}
@media (max-width: 480px) {
  .rail { grid-template-columns: 1fr; }
  .rail > div { border-left: 0; border-top: 1px solid var(--rule); }
  .rail > div:first-child { border-top: 0; }
}

/* ---- Offer band -------------------------------------------------------- */

.offer {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--bg-deep); color: var(--on-deep);
  border-radius: var(--r-img); padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1.5rem 2.5rem; align-items: center;
}
.offer h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); color: #fff; margin-bottom: 0.5rem; }
.offer .price { color: var(--offer-hi); }
.offer ul { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.9375rem; color: var(--on-deep-dim); }
.offer li { display: inline-flex; align-items: center; gap: 0.4rem; }
.offer li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--offer-hi); }
.offer .btn-primary { background: #fff; color: var(--bg-deep); }
.offer .btn-primary:hover { background: var(--bg-alt); }
.offer .fine { font-size: 0.8125rem; color: var(--on-deep-dim); margin-top: 0.75rem; }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; } }

/* ---- Section rhythm ---------------------------------------------------- */

.s-services { padding-block: clamp(4rem, 2rem + 7vw, 7.5rem); }
.s-ba       { padding-block: clamp(3.5rem, 1.5rem + 6vw, 6.5rem); }
.s-visit    { padding-block: clamp(3.5rem, 1.5rem + 6vw, 6rem); }
.s-office   { padding-block: clamp(4rem, 2rem + 7vw, 7.5rem); }
.s-team     { padding-block: clamp(3.5rem, 1.5rem + 6vw, 6rem); }
.s-reviews  { padding-block: clamp(3.5rem, 1.5rem + 5vw, 5.5rem); }
.s-money    { padding-block: clamp(4rem, 2rem + 6.5vw, 7rem); }
.s-book     { padding-block: clamp(4rem, 2rem + 7vw, 7.5rem); }
.band-alt   { background: var(--bg-alt); }
.band-deep  { background: var(--bg-deep); color: var(--on-deep); }

.split {
  display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.split-head h2 { margin-bottom: 1rem; }
.split-head p { font-size: 1rem; color: var(--ink-2); max-width: 24rem; }
@media (min-width: 1000px) { .split-head.is-sticky { position: sticky; top: 7rem; } }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 2.25rem; } }

/* ---- Services ---------------------------------------------------------- */

.services { margin: 0; }
.service {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.35rem 2.5rem; padding: 1.375rem 0; border-top: 1px solid var(--rule);
  transition: background-color .2s ease;
}
.service:last-child { border-bottom: 1px solid var(--rule); }
.service dt { font-family: var(--serif); font-size: 1.1875rem; font-weight: var(--h-weight, 500); line-height: 1.3; }
.service dd { margin: 0; color: var(--ink-2); font-size: 1rem; max-width: 40rem; }
.service dd b { font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .service { grid-template-columns: 1fr; gap: 0.3rem; } }

/* ---- Before / after slider --------------------------------------------
   The handle is a real <input type=range> laid over the image, so it is
   draggable with a pointer AND arrow-key operable, and it announces itself
   to a screen reader without any extra wiring.                            */

.ba-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 880px) { .ba-grid { grid-template-columns: 1fr; } }

.ba {
  position: relative; border-radius: var(--r-img); overflow: hidden;
  aspect-ratio: 4/3; background: var(--bg-alt); isolation: isolate;
  touch-action: pan-y;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Clip each half as a unit. The label lives inside its own half, so it is
   physically incapable of appearing over the other photograph. */
.ba-pane { position: absolute; inset: 0; }
.ba-pane-b { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-pane-a { clip-path: inset(0 0 0 var(--pos, 50%)); }

.ba-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18); z-index: 2;
  pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: var(--pos, 50%);
  width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.3); z-index: 3;
  display: grid; place-items: center; pointer-events: none; color: var(--bg-deep);
}
.ba-knob .ico { width: 24px; height: 24px; stroke-width: 2.2; }

/* A single nudge the first time it scrolls into view, so it reads as a
   control rather than a line drawn on the photo. */
@media (prefers-reduced-motion: no-preference) {
  .ba.nudge .ba-knob { animation: knob-nudge 1.5s cubic-bezier(.4,0,.3,1) 1; }
}
@keyframes knob-nudge {
  0%, 100% { transform: translateX(0); }
  22%      { transform: translateX(-11px); }
  58%      { transform: translateX(11px); }
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize; z-index: 4;
}
.ba-range:focus-visible ~ .ba-knob { outline: 3px solid var(--accent); outline-offset: 3px; }

.ba-tag {
  position: absolute; top: 0.875rem; z-index: 2;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: color-mix(in srgb, var(--bg-deep) 88%, transparent); color: #fff; padding: 0.45rem 0.8rem; border-radius: var(--r-ui);
  transition: opacity .18s ease;
}
.ba-tag.l { left: 0.875rem; }
.ba-tag.r { right: 0.875rem; }

/* Fade a label out rather than let the clip slice it in half. */
.ba.thin-b .ba-tag.l,
.ba.thin-a .ba-tag.r { opacity: 0; }

.ba-note {
  margin-top: 0.875rem; font-size: 0.8125rem; color: var(--muted);
  border-left: 2px solid var(--rule-strong); padding-left: 0.75rem; max-width: 40rem;
}

/* ---- First visit ------------------------------------------------------- */

.visit-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 3.25rem; padding-bottom: 1.75rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem;
  width: 2.125rem; height: 2.125rem; display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent); border-radius: 50%;
  font-family: var(--serif); font-size: 0.9375rem; font-weight: var(--h-weight, 500); background: var(--bg-alt);
}
.steps li::after {
  content: ""; position: absolute; left: 1.0625rem; top: 2.4rem; bottom: 0.35rem;
  border-left: 1px solid var(--rule-strong);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.3rem; }
.steps p { color: var(--ink-2); font-size: 1rem; margin: 0; }

.visit-fig { margin: 0; }
.visit-fig img { width: 100%; border-radius: var(--r-img); aspect-ratio: 3/2; object-fit: cover; }

@media (max-width: 880px) {
  .visit-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .visit-fig { order: -1; }
}

/* ---- The office -------------------------------------------------------
   Two balanced columns, then a full-width photo. The previous version put
   both pictures at the bottom of a tall column and left a hole above them. */

.office-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.office-grid figure { margin: 0; }
.office-grid img { width: 100%; border-radius: var(--r-img); aspect-ratio: 4/3; object-fit: cover; }
.office-copy h2 { margin-bottom: 1rem; }

.office-facts { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.875rem; }
.office-facts li { display: grid; grid-template-columns: 22px 1fr; gap: 0.875rem; align-items: start; font-size: 1rem; color: var(--ink-2); }
.office-facts .ico { color: var(--accent); margin-top: 0.22rem; }
.office-facts b { color: var(--ink); font-weight: 600; }

.office-strip { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.office-strip img { width: 100%; border-radius: var(--r-img); aspect-ratio: 3/2; object-fit: cover; }
@media (max-width: 880px) { .office-grid { grid-template-columns: 1fr; } .office-grid figure { order: -1; } }
@media (max-width: 560px) { .office-strip { grid-template-columns: 1fr; } }

figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 0.625rem; }

/* ---- Team -------------------------------------------------------------- */

.team-photo { margin: 2rem 0 0; }
.team-photo img { width: 100%; border-radius: var(--r-img); aspect-ratio: 16/9; object-fit: cover; }

.team-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: clamp(2rem, 4vw, 3rem);
}
.team-grid figure { margin: 0; }
.team-grid img { width: 100%; border-radius: var(--r-img); aspect-ratio: 4/5; object-fit: cover; }
.team-bio h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 0.4rem; }
.team-role { color: var(--muted); font-size: 0.9375rem; margin-bottom: 1.25rem; }

.creds { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.creds li {
  border: 1px solid var(--rule-strong); border-radius: 100px;
  padding: 0.3rem 0.875rem; font-size: 0.875rem; color: var(--ink-2); background: var(--bg);
}
.band-alt .creds li { background: var(--bg-alt); }
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr; } }

/* ---- Reviews marquee --------------------------------------------------
   Two rows travelling in opposite directions. Each track holds the cards
   twice, so translating by exactly -50% loops with no visible seam.      */

.marquee { position: relative; overflow: hidden; padding-block: 0.5rem; }
.marquee + .marquee { margin-top: 1rem; }

.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(2rem, 8vw, 7rem); z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg-alt), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg-alt), transparent); }

.marquee-track { display: flex; gap: 1rem; width: max-content; will-change: transform; }
.marquee-l .marquee-track { animation: slide-l 64s linear infinite; }
.marquee-r .marquee-track { animation: slide-r 64s linear infinite; }

@keyframes slide-l { from { transform: translateX(0); }      to { transform: translateX(-50%); } }
@keyframes slide-r { from { transform: translateX(-50%); }   to { transform: translateX(0); } }

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

.rev {
  flex: 0 0 auto; width: min(26rem, 78vw);
  background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r-img);
  padding: 1.375rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.rev .stars { font-size: 1.25rem; letter-spacing: 0.12em; line-height: 1; }
.rev p { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: none; }
.rev footer { font-size: 0.875rem; color: var(--muted); margin-top: auto; }
.rev footer b { color: var(--ink); font-weight: 600; }

.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.reviews-head h2 { margin: 0; }
/* `p` carries a 34rem measure, which left this sitting hard against the left
   edge with its text merely centred inside it. It wants the full column. */
.reviews-note {
  font-size: 0.8125rem; color: var(--muted);
  margin: 1.75rem auto 0; text-align: center;
  max-width: 46rem;
}

/* ---- Insurance and payment --------------------------------------------- */

.money-list { display: grid; gap: 1.75rem; margin: 0; }
.money-list > div { display: grid; grid-template-columns: 26px 1fr; gap: 0 1rem; }
.money-list .ico { margin-top: 0.22rem; color: var(--accent); }
.money-list dt { font-weight: 600; font-size: 1.0625rem; }
.money-list dd { margin: 0.25rem 0 0; grid-column: 2; color: var(--ink-2); font-size: 1rem; }
.money-list dd p { max-width: 38rem; }

.plan-list { margin: 0.7rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.plan-list li {
  border: 1px solid var(--rule-strong); border-radius: 100px;
  padding: 0.25rem 0.8rem; font-size: 0.875rem; color: var(--ink-2); background: var(--bg);
}

/* ---- Contact and map --------------------------------------------------- */

.book-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (max-width: 880px) { .book-grid { grid-template-columns: 1fr; } }

.contact-list { margin: 2rem 0 0; display: grid; gap: 1.375rem; }
.contact-list > div { display: grid; grid-template-columns: 22px 1fr; gap: 0 0.875rem; }
.contact-list .ico { margin-top: 0.22rem; color: var(--accent); }
.contact-list dt { font-size: 0.8125rem; color: var(--muted); }
.contact-list dd { grid-column: 2; margin: 0.1rem 0 0; font-size: 1rem; line-height: 1.55; }
.contact-list a { font-weight: 500; text-underline-offset: 3px; }
.contact-list a:hover { color: var(--accent); }

.hours { width: 100%; border-collapse: collapse; margin-top: 0.3rem; font-size: 0.9375rem; }
.hours th, .hours td { text-align: left; padding: 0.28rem 0; font-weight: 400; vertical-align: top; }
.hours th { color: var(--muted); width: 7.5rem; font-weight: 400; }
.hours tr.closed td, .hours tr.closed th { color: var(--muted); }
.hours td b { font-weight: 600; }

.map {
  border-radius: var(--r-img); overflow: hidden; border: 1px solid var(--rule);
  background: var(--bg-alt); aspect-ratio: 4/3; position: relative;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.85); }
.map-foot {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  align-items: center; margin-top: 1rem; font-size: 0.9375rem; color: var(--muted);
}

/* ---- Footer ------------------------------------------------------------ */

.site-foot { background: var(--bg-deep); color: var(--on-deep); padding-block: clamp(3rem, 5vw, 4.5rem) 2.5rem; }
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
  gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--foot-rule);
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

.site-foot .wordmark { color: var(--on-deep); margin-right: 0; margin-bottom: 0.75rem; }
.site-foot .wordmark em { color: var(--offer-hi); }
.site-foot .wordmark span { color: var(--on-deep-dim); }
.site-foot h4 { font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; color: var(--on-deep-dim); margin-bottom: 0.75rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: 0.9375rem; }
.foot-links a { color: var(--on-deep); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-fine {
  margin-top: 2rem; font-size: 0.8125rem; color: var(--on-deep-dim);
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
}
.foot-fine p { max-width: 48rem; margin: 0; }

/* ---- Sticky mobile bar ------------------------------------------------- */

.callbar { display: none; }
@media (max-width: 620px) {
  .callbar {
    position: fixed; inset: auto 0 0 0; z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--rule);
  }
  .callbar .btn { min-height: 2.875rem; font-size: 0.9375rem; padding-inline: 0.75rem; }
  body { padding-bottom: 4.25rem; }
}

.skip { position: absolute; left: -9999px; background: var(--accent); color: var(--on-accent); padding: 0.75rem 1rem; border-radius: var(--r-ui); z-index: 60; }
.skip:focus { left: 1rem; top: 1rem; }

/* ============================================================================
   Booking dialog, five steps, in a real <dialog>.
   <dialog> gives a focus trap and prevents an outside click from closing it
   for free; the only ways out are the X and Esc.
   ========================================================================= */

.bk {
  width: min(34rem, calc(100vw - 2rem));
  max-height: min(92dvh, 56rem);
  padding: 0; border: 0; border-radius: 16px;
  background: var(--bg); color: var(--ink);
  box-shadow: 0 24px 70px rgba(12, 20, 26, .3);
  overflow: hidden;
}
.bk::backdrop { background: rgba(14, 26, 33, .55); }

@media (prefers-reduced-motion: no-preference) {
  .bk[open] { animation: bk-in .26s cubic-bezier(.2,.8,.3,1); }
  .bk[open]::backdrop { animation: fade-in .26s ease; }
}
@keyframes bk-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes fade-in { from { opacity: 0; } }

.bk-head {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.125rem 1.25rem 0.875rem; border-bottom: 1px solid var(--rule);
}
.bk-head .wordmark { font-size: 1.125rem; }
.bk-x {
  margin-left: auto; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid var(--rule-strong); background: var(--bg); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; flex: none;
  transition: background-color .15s ease, color .15s ease;
}
.bk-x:hover { background: var(--bg-alt); color: var(--ink); }

/* progress */
.bk-prog { display: flex; padding: 1.125rem 1.25rem 0.25rem; }
.bk-prog li { flex: 1; position: relative; text-align: center; list-style: none; }
.bk-prog li + li::before {
  content: ""; position: absolute; left: -50%; top: 0.84rem; width: 100%; height: 2px;
  background: var(--rule-strong); z-index: 0;
}
.bk-prog li.done + li::before,
.bk-prog li.done::before { background: var(--accent); }
.bk-dot {
  position: relative; z-index: 1; margin: 0 auto 0.3rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  border: 2px solid var(--rule-strong); background: var(--bg);
  color: var(--muted); font-size: 0.8125rem; font-weight: 600;
  display: grid; place-items: center;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.bk-prog li.on .bk-dot { border-color: var(--accent); color: var(--accent); }
.bk-prog li.done .bk-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
/* Scoped to .bk-label, not to every span, .bk-dot is a span too, and a bare
   `.bk-prog span { display:none }` took the step numbers out with the labels. */
.bk-prog .bk-label { display: block; font-size: 0.6875rem; color: var(--muted); }
.bk-prog li.on .bk-label { color: var(--accent); font-weight: 600; }
@media (max-width: 420px) { .bk-prog .bk-label { display: none; } }

.bk-body { padding: 0.75rem 1.25rem 1.5rem; overflow-y: auto; max-height: min(70dvh, 40rem); }

.bk-step { display: none; }
.bk-step.on { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .bk-step.on { animation: step-in .3s cubic-bezier(.2,.8,.3,1); }
  .bk-step.on.back { animation-name: step-in-back; }
}
@keyframes step-in      { from { opacity: 0; transform: translateX(16px); } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-16px); } }

.bk-title { text-align: center; margin: 0.75rem 0 0.35rem; font-size: 1.625rem; }
.bk-sub { text-align: center; color: var(--muted); font-size: 0.9375rem; margin: 0 auto 1.5rem; max-width: 24rem; }

.bk-mark {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; margin: 0.5rem auto 0;
  background: var(--accent-tint); color: var(--accent); display: grid; place-items: center;
}
.bk-mark .ico { width: 30px; height: 30px; stroke-width: 1.5; }

.bk-field { margin-bottom: 0.875rem; }
.bk-field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.35rem; }
.bk-field input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--field); border-radius: var(--r-ui);
  padding: 0.75rem 0.875rem; min-height: 3rem;
}
.bk-field input:focus { border-color: var(--accent); }
.bk-field input[aria-invalid="true"] { border-color: #8c2f1d; }
.bk-err { display: none; color: #8c2f1d; font-size: 0.8125rem; margin: 0.3rem 0 0; }
.bk-err.on { display: block; }

.bk-actions { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.bk-actions .btn { width: 100%; }
.bk-back {
  background: none; border: 0; padding: 0.5rem; font: inherit; font-size: 0.9375rem;
  color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  justify-self: center;
}
.bk-back:hover { color: var(--ink); }
.bk-fine { font-size: 0.8125rem; color: var(--muted); text-align: center; margin-top: 1rem; }

/* step 2, code */
.bk-code { display: flex; gap: 0.5rem; justify-content: center; margin: 0.5rem 0 0.25rem; }
.bk-code input {
  width: 2.875rem; height: 3.375rem; text-align: center; font-size: 1.375rem; font-weight: 600;
  border: 1px solid var(--field); border-radius: var(--r-ui); background: var(--bg); color: var(--ink);
  font-family: var(--sans);
}
.bk-code input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 400px) { .bk-code input { width: 2.375rem; height: 2.875rem; font-size: 1.125rem; } }

/* step 3, appointment type */
.bk-types { display: grid; gap: 0.5rem; }
.bk-type {
  display: flex; align-items: center; gap: 0.875rem; width: 100%; text-align: left;
  padding: 0.875rem 1rem; border: 1px solid var(--rule-strong); border-radius: var(--r-ui);
  background: var(--bg); font: inherit; cursor: pointer; color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease, transform .12s ease;
}
.bk-type:hover { border-color: var(--accent); background: var(--accent-tint); }
.bk-type[aria-pressed="true"] {
  border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent);
}
.bk-type b { font-weight: 500; font-size: 0.9375rem; line-height: 1.35; }
.bk-type i { font-style: normal; margin-left: auto; color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }

/* The tick. Without it the only cue that a row is chosen is a faint tint,
   which is not enough to tell you the choice actually registered. */
.bk-radio {
  flex: none; width: 1.375rem; height: 1.375rem; border-radius: 50%;
  border: 1.5px solid var(--field); background: var(--bg);
  display: grid; place-items: center; color: #fff;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.bk-radio .ico { width: 13px; height: 13px; stroke-width: 3; opacity: 0; transform: scale(.5); transition: opacity .16s ease, transform .16s ease; }
.bk-type[aria-pressed="true"] .bk-radio { background: var(--accent); border-color: var(--accent); }
.bk-type[aria-pressed="true"] .bk-radio .ico { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .bk-type[aria-pressed="true"] .bk-radio { animation: tick-pop .28s cubic-bezier(.2,1.5,.4,1); }
}
@keyframes tick-pop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }

/* step 4, schedule */
.bk-week { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.875rem; }
.bk-week .nav-b {
  width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--rule-strong);
  background: var(--bg); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); flex: none;
}
.bk-week .nav-b:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.bk-week .nav-b:disabled { opacity: .35; cursor: not-allowed; }
.bk-week strong { flex: 1; text-align: center; font-size: 0.9375rem; font-weight: 500; }

/* The week strip is swipeable. touch-action keeps vertical scrolling native
   while horizontal drags belong to us. */
.bk-swipe { overflow: hidden; margin-bottom: 1.25rem; touch-action: pan-y; cursor: grab; }
.bk-swipe:active { cursor: grabbing; }
.bk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }

@media (prefers-reduced-motion: no-preference) {
  .bk-days.slide-l { animation: wk-l .28s cubic-bezier(.2,.8,.3,1); }
  .bk-days.slide-r { animation: wk-r .28s cubic-bezier(.2,.8,.3,1); }
}
@keyframes wk-l { from { opacity: 0; transform: translateX(28%); } }
@keyframes wk-r { from { opacity: 0; transform: translateX(-28%); } }

.bk-hint { text-align: center; font-size: 0.75rem; color: var(--muted); margin: -0.5rem 0 1rem; }
.bk-day {
  border: 0; background: var(--bg); border-radius: var(--r-ui); padding: 0.5rem 0.125rem;
  cursor: pointer; font: inherit; color: var(--ink); text-align: center; line-height: 1.25;
  transition: background-color .15s ease, color .15s ease;
}
.bk-day small { display: block; font-size: 0.6875rem; color: var(--muted); }
.bk-day b { font-size: 1rem; font-weight: 500; }
.bk-day:hover:not(:disabled) { background: var(--accent-tint); }
.bk-day[aria-pressed="true"] { background: var(--accent); color: #fff; }
.bk-day[aria-pressed="true"] small { color: rgba(255,255,255,.75); }
.bk-day:disabled { opacity: .3; cursor: not-allowed; }

.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); gap: 0.5rem; }
.bk-slot {
  border: 1px solid var(--rule-strong); background: var(--bg); border-radius: var(--r-ui);
  padding: 0.55rem 0.4rem; font: inherit; font-size: 0.9375rem; cursor: pointer; color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.bk-slot:hover { border-color: var(--accent); background: var(--accent-tint); }
.bk-slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.bk-empty { text-align: center; color: var(--muted); font-size: 0.9375rem; padding: 1.25rem 0; }
.bk-empty .btn-ghost { margin-top: 0.75rem; min-height: 2.5rem; font-size: 0.9375rem; }

/* step 5, confirmed */
.bk-tick {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; margin: 0.5rem auto 0;
  background: var(--accent); color: #fff; display: grid; place-items: center;
}
.bk-tick .ico { width: 34px; height: 34px; stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .bk-step.on .bk-tick { animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
}
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.bk-summary {
  border: 1px solid var(--rule); border-radius: var(--r-img); background: var(--bg-alt);
  padding: 1.125rem 1.25rem; margin-top: 1.25rem;
}
.bk-summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1rem; }
.bk-summary dt { font-size: 0.875rem; color: var(--muted); }
.bk-summary dd { margin: 0; font-size: 0.9375rem; font-weight: 500; text-align: right; }
.bk-summary dd small { display: block; font-weight: 400; color: var(--muted); }

.bk-demo {
  margin: 1rem 0 0; padding: 0.7rem 0.875rem; border-radius: var(--r-ui);
  background: var(--accent-tint); color: var(--accent-deep);
  font-size: 0.8125rem; line-height: 1.5; text-align: center;
}
