/* Oxford & Wonderland Dental (Purple Standard)
   Colour lives in the tokens below. Every rule uses --primary / --accent, never a raw hex,
   so the palette can be flipped in one place. */
:root {
  /* Deep brand blue, sampled from the clinic's sign panel (#264299) */
  --primary: #264299;
  --primary-deep: #1B3179;    /* hover, footer, utility bar */
  --primary-soft: #E8ECF7;    /* chips, trust strip */
  --primary-mist: #F5F7FC;    /* alternating section background */
  --primary-rgb: 38, 66, 153; /* for the cursor-light glow */

  /* Pink of the tooth mark on the sign (#CB2563), used sparingly */
  --accent: #C8295F;
  --accent-deep: #A11F4C;
  --accent-soft: #FBE9EF;

  --ink: #1A1F33;
  --body: #454A5B;
  --muted: #646A7C;
  --line: #E3E6EE;
  --white: #FFFFFF;
  --gutter: 24px;
  interpolate-size: allow-keywords;
}
/* To flip back to the mock-up's rose palette, swap the primary block for:
   --primary: #C9304F; --primary-deep: #A32340; --primary-soft: #F9E8EC; --primary-mist: #FDF6F7; --primary-rgb: 201, 48, 79; */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font: 400 1.0625rem/1.65 "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.015em; line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-deep); }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.label { font-size: 0.8125rem; font-weight: 600; color: var(--accent-deep); margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 8px; color: var(--white); }
.zh { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }

.wrap { width: 100%; max-width: calc(1180px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 65ch; margin-inline: auto; }
.section { padding-block: 88px; position: relative; }
.section-head { text-align: center; max-width: 65ch; margin: 0 auto 48px; }
.section-head h2 + p, .section-head h1 + p { margin-top: 16px; }
.center { text-align: center; }

/* Texture: faint dot grid behind mist sections and the side panel */
.mist { background: var(--primary-mist); }
.mist::before, .dots {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(26, 31, 51, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.mist > .wrap { position: relative; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  border: 1px solid var(--primary); border-radius: 10px;
  background: var(--primary); color: var(--white);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .15s ease-out, background-color .15s ease-out;
}
.btn:hover { background: var(--primary-deep); border-color: var(--primary-deep); color: var(--white); transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-deep); }
.btn-white { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-white:hover { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-deep); }
.btn-urgent { background: var(--accent); border-color: var(--accent); }
.btn-urgent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.chip {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary);
}
.chip svg { width: 20px; height: 20px; }

/* Utility bar */
.util { background: var(--primary-deep); color: #E3E8F6; font-size: 0.875rem; }
.util .wrap { display: flex; justify-content: space-between; gap: 24px; min-height: 40px; align-items: center; }
.util ul { display: flex; gap: 24px; align-items: center; }
.util a, .util .item { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.util a:hover { color: var(--white); text-decoration: underline; }
.util svg { width: 15px; height: 15px; flex: none; }
.util :focus-visible { outline-color: var(--white); }

/* Logo lockup: vector tooth mark + the clinic's own wordmark, tinted by CSS mask */
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.lockup .mark { width: 50px; height: 50px; flex: none; }
.lockup .word {
  display: block; height: 36px; aspect-ratio: 1000 / 242; background: currentColor;
  -webkit-mask: url("../assets/brand/wordmark.png") center / contain no-repeat;
  mask: url("../assets/brand/wordmark.png") center / contain no-repeat;
}
.lockup:hover { color: var(--ink); }
.lockup.on-dark { color: var(--white); }
.lockup.on-dark .mark { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); border-radius: 50%; }

/* Header and nav */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-item > a {
  display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 12px;
  color: var(--ink); font-weight: 500; text-decoration: none; border-radius: 8px; white-space: nowrap;
}
.nav-item > a svg { width: 14px; height: 14px; color: var(--muted); }
.nav-item > a:hover, .nav-item > a[aria-current="page"] { color: var(--primary); }
.nav-item > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.sub {
  position: absolute; left: 0; top: 100%; min-width: 230px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  visibility: hidden; opacity: 0; transition: opacity .12s ease-out;
}
.nav-item:hover .sub, .nav-item:focus-within .sub { visibility: visible; opacity: 1; }
.nav-item.closed .sub { visibility: hidden; opacity: 0; }
.sub a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 8px; color: var(--body); text-decoration: none; }
.sub a:hover, .sub a:focus-visible { background: var(--primary-mist); color: var(--primary); }
.nav-book { margin-left: 12px; white-space: nowrap; }
.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Cursor light: hero panels, service cards and doctor cards only */
.glow { position: relative; }
@media (hover: hover) {
  .glow::before, .glow::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    pointer-events: none; opacity: 0; transition: opacity .2s ease-out; z-index: 2;
  }
  .glow::before {
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--primary-rgb), 0.08), transparent 70%);
  }
  .glow::after {
    inset: -1px; padding: 1px;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--primary-rgb), 0.5), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  }
  .glow:hover::before, .glow:hover::after { opacity: 1; }
}

/* Hero: the photo stays clear, text sits on a white panel */
.hero-photo { width: 100%; height: clamp(600px, 44vw, 760px); object-fit: cover; object-position: 50% 62%; }
.hero-panels {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px;
  margin-top: -300px;
}
.hero-text, .book-panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.hero-text { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.hero-text p { margin-top: 20px; margin-bottom: 0; max-width: 58ch; }
.hero-text .welcome-line { margin-top: 12px; color: var(--ink); font-weight: 500; }
.hero-text .btn-row { margin-top: 28px; }
.book-panel { padding: 28px; box-shadow: 0 18px 48px rgba(26, 31, 51, 0.10); position: relative; }
.book-panel > * { position: relative; }
.book-panel > .dots { position: absolute; border-radius: inherit; }
.book-panel h2 { font-size: 1.375rem; letter-spacing: -0.01em; }
.panel-types { margin-top: 14px; border-top: 1px solid var(--line); }
.panel-types a {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 48px; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 500; text-decoration: none;
}
.panel-types a:hover { color: var(--primary); }
.panel-types svg { width: 16px; height: 16px; color: var(--primary); flex: none; }
.panel-types .urgent a { color: var(--accent-deep); font-weight: 600; }
.panel-types .urgent svg { color: var(--accent); }
.hero-text .btn, .hero-text a { position: relative; z-index: 3; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .18s ease-out, border-color .18s ease-out, box-shadow .18s ease-out;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.18), 0 10px 24px -12px rgba(var(--primary-rgb), 0.35);
  }
  .welcome-card:hover { border-top-color: var(--primary); }
  .welcome-card.accent:hover { border-top-color: var(--accent); }
}
.card > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body a { position: relative; z-index: 3; }
.card-link { margin-top: auto; margin-bottom: -8px; font-weight: 600; display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; }
.card-plain { padding: 24px; gap: 12px; }
.card-plain h3 { display: flex; align-items: center; gap: 12px; }
.ticks { display: grid; gap: 4px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }

/* Welcome / coverage cards */
.welcome-card { border-top: 3px solid var(--primary); }
.welcome-card.accent { border-top-color: var(--accent); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-deep); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.01em; }

/* Doctors */
.doctors { max-width: 1060px; margin-inline: auto; }
.doc-card .card-body { gap: 10px; }
.doc-top { display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 96px; height: 96px; flex: none; border-radius: 50%; object-fit: cover;
  background: var(--primary-soft); border: 1px solid var(--line);
}
.avatar.monogram {
  display: grid; place-items: center; color: var(--primary-deep);
  font-size: 1.75rem; font-weight: 600; letter-spacing: 0.02em;
  background: linear-gradient(145deg, var(--primary-soft), var(--white));
}
.doc-top h3 { margin-bottom: 2px; }
.days { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9375rem; font-weight: 600; color: var(--primary-deep); }
.days svg { width: 16px; height: 16px; color: var(--accent); }
.langs { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.langs svg { width: 16px; height: 16px; color: var(--primary); }
.doc-card.lg .avatar { width: 120px; height: 120px; }
.doc-card.lg .avatar.monogram { font-size: 2.125rem; }
/* Large square photo on top of each dentist card */
.doc-photo, .card > img.doc-photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%; background: var(--primary-soft); border-bottom: 1px solid var(--line); }
.doc-photo.monogram {
  display: grid; place-items: center; color: var(--primary-deep);
  font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 600; letter-spacing: -0.01em;
  background: linear-gradient(145deg, var(--primary-soft), var(--white));
}
.doc-name h3 { margin: 0 0 2px; font-size: 1.375rem; }
.doc-name .role { margin: 0; color: var(--muted); font-weight: 600; font-size: 0.9375rem; }
.doc-quote { margin: auto 0 0; padding: 18px 20px; border-radius: 10px; background: var(--primary-mist, var(--primary-soft)); border: 1px solid var(--line); }
.doc-quote blockquote { margin: 0 0 10px; font-size: 0.9688rem; color: var(--ink); }
.doc-quote figcaption { color: var(--muted); font-weight: 600; font-size: 0.875rem; }

/* Dentist cards v2: compact dark summary, expandable bio, review carousel below */
.doctors { align-items: start; }
.doc { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.doc-card2 {
  position: relative; border-radius: 14px; padding: 24px; color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform .18s ease-out, box-shadow .18s ease-out;
}
@media (hover: hover) {
  .doc-card2:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 14px 30px -14px rgba(var(--primary-rgb), 0.7); }
  .doc-card2.glow::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.08), transparent 70%); }
  .doc-card2.glow::after { background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.35), transparent 70%); }
}
.doc-head { display: flex; align-items: center; gap: 16px; }
.doc-avatar-wrap { display: contents; }
.doc-avatar { width: 84px; height: 84px; flex: none; border-radius: 50%; object-fit: cover; object-position: center 25%; border: 3px solid rgba(255, 255, 255, 0.9); background: var(--primary-soft); }
.doc-head h3 { margin: 0 0 2px; color: var(--white); font-size: 1.25rem; }
.doc-head .role { margin: 0; color: rgba(255, 255, 255, 0.7); font-weight: 600; font-size: 0.9375rem; }
.doc-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.doc-facts li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--white); }
.doc-facts svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: #F4A6C1; }
.doc-summary { margin: 14px 0 0; font-size: 0.9688rem; line-height: 1.55; }
.doc-more {
  position: relative; z-index: 3; margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: rgba(255, 255, 255, 0.12); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.25);
  font: inherit; font-weight: 600; font-size: 0.9375rem;
  transition: background-color .15s ease-out, border-color .15s ease-out;
}
.doc-more:hover { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.doc-more:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.doc-more svg { width: 18px; height: 18px; transition: transform .2s ease-out; }
.doc-more[aria-expanded="true"] .chev { transform: rotate(180deg); }
.doc-bio { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.doc-bio p { margin: 0; font-size: 0.9688rem; line-height: 1.6; }

/* Per-doctor review carousel */
.rc { border-radius: 14px; background: var(--white); border: 1px solid var(--line); padding: 20px 22px 14px; display: flex; flex-direction: column; }
.rc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.rc-top .stars svg { width: 16px; height: 16px; }
.rc-label { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.rc-slides { margin-top: 12px; min-height: 9.5rem; }
.rc-slide { margin: 0; }
.rc-slide blockquote { margin: 0; color: var(--ink); font-size: 0.9688rem; line-height: 1.6; }
.rc-trans { margin: 8px 0 0; font-size: 0.9063rem; color: var(--body); }
.rc-trans span { color: var(--muted); font-size: 0.8125rem; }
.rc-slide figcaption { margin-top: 10px; color: var(--muted); font-weight: 600; font-size: 0.875rem; }
.rc-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.rc-count { font-size: 0.875rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.rc-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--white); color: var(--primary); border: 1px solid var(--line);
  transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out;
}
.rc-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.rc-btn svg { width: 18px; height: 18px; }

/* Office carousel */
.carousel { position: relative; max-width: 1060px; margin-inline: auto; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: 12px; scrollbar-width: none; background: var(--white);
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.carousel-slide { flex: 0 0 100%; margin: 0; position: relative; scroll-snap-align: center; }
.carousel-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.carousel-slide figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); font-weight: 600; font-size: 0.9375rem;
}
.carousel-btn {
  position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; z-index: 2;
  background: var(--white); color: var(--primary); border: 1px solid var(--line);
  box-shadow: 0 6px 18px -10px rgba(var(--primary-rgb), 0.5);
  transition: background-color .15s ease-out, color .15s ease-out, transform .15s ease-out;
}
.carousel-btn:hover { background: var(--primary); color: var(--white); transform: scale(1.05); }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dots button {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.carousel-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background-color .15s ease-out, transform .15s ease-out; }
.carousel-dots button[aria-current="true"]::before { background: var(--primary); transform: scale(1.25); }
@media (max-width: 640px) {
  .carousel-slide img { aspect-ratio: 4 / 3; }
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-btn.prev { left: 8px; } .carousel-btn.next { right: 8px; }
}

/* Alternating image and text */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.split + .split { margin-top: 72px; }
.split img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.split h2 { margin-bottom: 16px; }
.split.flip > :first-child { order: 2; }
.facts { display: grid; gap: 10px; margin-top: 20px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts svg { width: 20px; height: 20px; color: var(--primary); flex: none; margin-top: 3px; }
.photo-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.photo-pair figure { margin: 0; }
.photo-pair img { aspect-ratio: 16 / 9; }
.photo-pair figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }

/* CTA band */
.cta { background: var(--primary); color: var(--white); position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; right: -40px; top: 50%; width: 420px; height: 420px;
  transform: translateY(-50%);
  background: url("../assets/brand/tooth-outline.svg") center / contain no-repeat;
  opacity: .08; pointer-events: none;
}
.cta .wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 56px; }
.cta p { margin: 0; color: var(--white); font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; max-width: 34ch; }
.cta .btn { flex: none; }

/* Numbered steps */
.steps { max-width: 760px; margin-inline: auto; }
.steps li { display: flex; gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .num {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-deep); font-weight: 700;
}
.steps h3 { margin-bottom: 4px; }

/* Trust strip */
.trust { background: var(--primary-soft); }
.trust ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 28px; text-align: center; }
.trust li { color: var(--ink); font-weight: 600; font-size: 1.0625rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.trust svg { width: 20px; height: 20px; color: var(--primary); flex: none; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  min-height: 60px; padding-block: 14px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--primary); flex: none; transition: transform .2s ease-out; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .2s ease-out, content-visibility .2s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
.faq .answer { padding-bottom: 20px; max-width: 65ch; }

/* Reviews */
.stars { display: flex; gap: 2px; color: var(--accent); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.rating { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 12px; }
.quote { margin: 0; padding: 28px; }
.quote blockquote { margin: 0 0 16px; color: var(--ink); }
.quote figcaption { margin-top: auto; color: var(--muted); font-weight: 600; font-size: 0.9375rem; }

/* Page intro on inner pages */
.page-head { padding-block: 72px 56px; border-bottom: 1px solid var(--line); position: relative; }
.page-head .wrap { position: relative; text-align: center; }
.page-head p { max-width: 65ch; margin: 16px auto 0; }
.page-head .zh { color: var(--muted); font-size: 1rem; margin-top: 8px; }
.prose { max-width: 65ch; }
.anchor { scroll-margin-top: 24px; }
.notice {
  background: var(--primary-soft); color: var(--ink); border-radius: 12px; padding: 16px 20px; margin-bottom: 16px;
}
.notice.warn { background: var(--accent-soft); }

/* Office gallery */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 12px; grid-column: span 4; }
.gallery figure.wide { grid-column: span 8; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.gallery figure.wide img { aspect-ratio: auto; }
.gallery figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 0.8125rem; font-weight: 600;
}

/* Treatments list */
.treat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.treat { padding: 28px; }
.treat h3 { margin-bottom: 4px; }
.treat .card-link { margin-top: auto; }

/* Contact */
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list strong { display: block; color: var(--ink); font-weight: 600; }
.contact-list a, .prose ul a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -8px; }
.map { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 12px; display: block; }
.hours { display: grid; gap: 4px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.form-panel { padding: 36px; position: relative; }
.form-panel > * { position: relative; }
.form-panel > .dots { position: absolute; border-radius: inherit; }
.form-panel h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-group { margin-top: 28px; }
.form-group:first-of-type { margin-top: 0; }
.field { display: grid; gap: 6px; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field label, .legend { color: var(--ink); font-weight: 600; font-size: 0.9375rem; padding: 0; }
.legend { display: block; margin-bottom: 8px; }
.hint { color: var(--muted); font-size: 0.875rem; margin: -2px 0 0; }
.legend + .hint { margin: -4px 0 10px; }
.opt { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="tel"], input[type="email"], textarea, select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #A9AFC0; border-radius: 8px; background: var(--white);
  color: var(--ink); font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); border-radius: 8px; }
[aria-invalid="true"] { border-color: var(--accent-deep) !important; }
.err { color: var(--accent-deep); font-size: 0.9375rem; font-weight: 500; }
.err:empty { display: none; }
fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.options.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.options.days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option span.box {
  display: flex; align-items: center; gap: 10px; min-height: 52px; height: 100%; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  color: var(--ink); font-weight: 600; line-height: 1.3;
}
.option span.box::before {
  content: ""; flex: none; width: 18px; height: 18px; border: 1.5px solid #A9AFC0; border-radius: 50%; background: var(--white);
}
.option input[type="checkbox"] + span.box::before { border-radius: 5px; }
.option small { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.option:hover span.box { border-color: var(--primary); }
.option input:checked + span.box { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-mist); }
.option input:checked + span.box::before { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px var(--white); }
.option input[type="checkbox"]:checked + span.box::before {
  box-shadow: none;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.option input:focus-visible + span.box { outline: 2px solid var(--primary); outline-offset: 2px; }
.option.is-urgent span.box { color: var(--accent-deep); }
fieldset[aria-invalid="true"] .option span.box { border-color: var(--accent-deep); }

.urgent-box {
  margin: 4px 0 20px; padding: 20px; border-radius: 12px; background: var(--accent-soft); border: 1px solid #F1C6D4; color: var(--ink);
}
.urgent-box { scroll-margin-bottom: 96px; }
.urgent-box strong { display: block; font-size: 1.125rem; margin-bottom: 4px; }
.urgent-box .btn { margin-top: 12px; font-size: 1.125rem; min-height: 56px; }
.privacy { margin-top: 8px; padding: 14px 16px; border-radius: 10px; background: var(--primary-mist); font-size: 0.875rem; color: var(--body); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-actions .btn { min-width: 220px; }
.form-actions .btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.form-error {
  margin-top: 20px; padding: 16px 20px; border-radius: 12px; background: var(--accent-soft);
  border: 1px solid #F1C6D4; color: var(--ink);
}
.form-error strong { display: block; margin-bottom: 4px; }
.form-done { text-align: left; }
.done-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.done-mark svg { width: 24px; height: 24px; }
.form-aside { display: grid; gap: 24px; }
.form-aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.call-box { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--white); }
.call-box h2 { font-size: 1.125rem; letter-spacing: 0; margin-bottom: 10px; }
.call-box a:not(.btn) { display: inline; font-weight: 600; }
.call-box .btn { width: 100%; }
.call-box.urgent { border-color: #F1C6D4; background: var(--accent-soft); }

/* Footer */
.site-footer { background: var(--primary-deep); color: #D6DDF0; font-size: 0.9375rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--white); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 48px 0; }
.footer-top .zh { color: #D6DDF0; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-block: 40px 48px; }
.footer-grid h2 { color: var(--white); font-size: 1rem; letter-spacing: 0; margin-bottom: 14px; }
.footer-grid ul { display: grid; gap: 2px; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 32px; }
.footer-grid p { margin-bottom: 10px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: #BCC6E2; font-size: 0.875rem; }

/* Phone bar */
.phone-bar { display: none; }

/* Quiet reveal */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease-out, transform .4s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }


@media (min-width: 961px) {
  .panel-types a { min-height: 52px; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: grid; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; max-height: calc(100vh - 120px); overflow-y: auto; }
  .site-nav.open { display: block; }
  .nav-list { display: block; }
  .nav-item > a { padding-inline: 0; font-weight: 600; }
  .nav-item > a[aria-current="page"] { box-shadow: none; color: var(--primary); }
  .nav-item > a svg { display: none; }
  .sub, .nav-item.closed .sub { position: static; visibility: visible; opacity: 1; border: 0; padding: 0 0 8px 12px; min-width: 0; transition: none; }
  .nav-book { margin: 12px 0 0; width: 100%; }
}

@media (max-width: 960px) {
  .hero-panels { grid-template-columns: minmax(0, 1fr); margin-top: -40px; }
  .hero-photo { height: clamp(260px, 56vw, 460px); object-position: 50% 60%; }
  .grid-3, .treat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { gap: 32px; }
  .form-layout { grid-template-columns: minmax(0, 1fr); }
  .form-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure, .gallery figure.wide { grid-column: span 6; grid-row: auto; }
  .gallery figure.wide img { aspect-ratio: 3 / 2; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .section { padding-block: 64px; }
  .page-head { padding-block: 48px 40px; }
  .section-head { margin-bottom: 32px; }
  .lockup { gap: 10px; }
  .lockup .mark { width: 42px; height: 42px; }
  .lockup .word { height: 30px; }
  .site-header .wrap { min-height: 72px; }
  .util .hide-sm { display: none; }
  .util .wrap { justify-content: center; }
  .hero-text { padding: 28px 24px; }
  .book-panel { padding: 24px; }
  .grid-3, .grid-2, .split, .treat-grid { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .split + .split { margin-top: 48px; }
  .cta .wrap { flex-direction: column; align-items: flex-start; padding-block: 48px; }
  .cta::after { width: 300px; height: 300px; right: -90px; }
  .steps li { gap: 16px; }
  .form-panel { padding: 24px 20px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .options, .options.three { grid-template-columns: minmax(0, 1fr); }
  .options.days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-actions .btn { width: 100%; }
  .form-aside { grid-template-columns: minmax(0, 1fr); }
  .gallery figure, .gallery figure.wide { grid-column: span 12; }
  .map { height: 320px; }
  .trust ul { grid-template-columns: minmax(0, 1fr); text-align: left; gap: 10px; }
  .trust li { justify-content: flex-start; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-grid li a { min-height: 44px; }
  .site-nav { max-height: calc(100vh - 112px - 68px); max-height: calc(100dvh - 112px - 68px); }
  .phone-bar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
  }
  .phone-bar .btn { flex: 1; padding-inline: 10px; }
}

@media (max-width: 380px) {
  .lockup .mark { width: 36px; height: 36px; }
  .lockup .word { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn:hover { transition: none; transform: none; }
  .card, .card:hover { transition: none; transform: none; }
  .doc-card2, .doc-card2:hover, .doc-more svg, .rc-btn { transition: none; transform: none; }
  .carousel-track { scroll-behavior: auto; }
  .carousel-btn, .carousel-btn:hover, .carousel-dots button::before { transition: none; transform: none; }
  .faq details::details-content, .faq summary svg, .glow::before, .glow::after, .sub { transition: none; }
}

/* Multilingual welcome strip */
.welcome-strip { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin: 0 0 12px; font-weight: 600; color: var(--primary-deep); }
.welcome-strip span + span::before { content: none; }
.site-footer .welcome-strip { margin: 0; color: #D6DDF0; font-weight: 500; }
.hero-text .hero-welcome { font-size: 1.0625rem; gap: 6px 16px; margin-bottom: 14px; color: var(--primary); }
.zh-page { font-family: "Hanken Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
.zh-page h2 { margin-bottom: 16px; }
