/* ==========================================================================
   Dr John Li — Nephrologist
   Design system reverse-engineered from the "Smile Dental" (Lumident) template:
   Plus Jakarta Sans, slate canvas, teal brand, deep-forest dark sections,
   24px card radii, glassmorphism, pill buttons, uppercase eyebrow labels.
   ========================================================================== */

:root {
  /* Brand */
  --brand:        #0D9488;   /* teal 600 — primary */
  --brand-strong: #0F766E;   /* teal 700 — hover */
  --brand-deep:   #0C4A42;   /* deep forest — dark sections */
  --brand-deepest:#063D37;   /* darkest forest — footer gradient end */
  --brand-bright: #14B8A6;   /* teal 500 — gradients, focus */
  --brand-light:  #2DD4BF;   /* teal 400 — accents on dark */

  /* Tints */
  --tint-50:  #F0FDFA;
  --tint-100: #CCFBF1;
  --tint-a:   #E2F7F4;
  --tint-b:   #D1F2EE;
  --tint-c:   #CBEFEA;
  --tint-border: rgba(13, 148, 136, 0.18);

  /* Canvas + ink */
  --canvas:    #F8FAFC;
  --surface:   #FFFFFF;
  --ink:       #0F172A;   /* slate 900 */
  --ink-soft:  #334155;   /* slate 700 */
  --ink-muted: #64748B;   /* slate 500 */
  --line:      #E2E8F0;   /* slate 200 */

  /* Accent */
  --amber: #FBBF24;

  /* Shape */
  --r-sm:  0.75rem;
  --r-md:  1rem;
  --r-lg:  1.5rem;   /* rounded-3xl — the card radius */
  --r-pill: 9999px;

  /* Type */
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(6, 61, 55, 0.35);
  --shadow-teal: 0 12px 32px -12px rgba(13, 148, 136, 0.45);

  --nav-h: 76px;
}

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

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

html { scroll-behavior: smooth; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--brand); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
fieldset { border: none; min-width: 0; }
legend { padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-deep); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--r-md) 0; z-index: 200;
}
.skip-link:focus { left: 0; }

.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

section { position: relative; }

/* ---------- Type scale ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px;
  background: var(--brand); border-radius: 2px;
}

.h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.03em;
}
.h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.02em;
}
.h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }

.accent-word { color: var(--brand); }

.lede { font-size: 1.09rem; color: var(--ink-muted); max-width: 56ch; }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head .h2 { margin: 0.9rem 0 1rem; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-teal); }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: var(--tint-100); transform: translateY(-2px); }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: transform 0.35s ease;
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 1.4rem;
  margin-top: 0.9rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
}
.nav.is-scrolled .nav-inner { box-shadow: var(--shadow-md); }

.brand-mark { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark svg { width: 40px; height: 40px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-name span { font-size: 0.72rem; font-weight: 600; color: var(--brand); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.5rem 0.85rem; border-radius: var(--r-pill);
  font-size: 0.92rem; font-weight: 600; color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--brand); background: var(--tint-50); }
.nav-links .mobile-book { display: none; }

.nav .btn { padding: 0.7rem 1.35rem; font-size: 0.9rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-md); align-items: center; justify-content: center; }
.nav-toggle svg { width: 26px; height: 26px; }

/* Language toggle */
.lang-toggle {
  display: flex; gap: 2px; padding: 3px; flex: none;
  background: var(--tint-50); border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.lang-toggle button {
  padding: 0.34rem 0.7rem; border-radius: var(--r-pill);
  font-size: 0.8rem; font-weight: 700; color: var(--ink-muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-toggle button:hover { color: var(--brand-strong); }
.lang-toggle button.active { background: var(--brand); color: #fff; }

@media (max-width: 430px) {
  /* keep "Dr John Li" on one line beside the toggle + hamburger */
  .nav-inner { padding: 0 0.9rem; gap: 0.5rem; }
  .brand-mark { gap: 0.5rem; }
  .brand-mark svg { width: 34px; height: 34px; }
  .brand-name strong { font-size: 0.92rem; white-space: nowrap; }
  .brand-name span { font-size: 0.62rem; }
  .lang-toggle button { padding: 0.3rem 0.5rem; font-size: 0.75rem; }
}

@media (max-width: 960px) {
  .nav-links {
    position: absolute; top: calc(var(--nav-h) + 1.4rem); left: 1.25rem; right: 1.25rem;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 0.8rem;
    box-shadow: var(--shadow-md);
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links .mobile-book { display: block; color: var(--brand); font-weight: 800; }
  .nav-toggle { display: inline-flex; }
  .nav .btn-primary { display: none; }
}

/* ---------- Hero (borderless, full-bleed portrait) ---------- */

.hero { overflow: hidden; }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.hero-blob.two { width: 420px; height: 420px; bottom: -180px; left: -140px; background: rgba(13, 148, 136, 0.10); }

.hero-main {
  position: relative;
  min-height: clamp(620px, 94vh, 920px);
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 1.5rem);
}

.hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(56%, 860px);
  overflow: hidden; /* clip the Ken Burns scale so no hard photo edge escapes the fades */
}
.hero-media {
  position: absolute; inset: 0;
  will-change: transform;
}
.hero-media img,
.hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 14%;
}
.hero-media video { opacity: 0; transition: opacity 0.8s ease; }
.hero-media video.playing { opacity: 1; }

/* Soft blends into the canvas — this is what makes it "borderless" */
.hero-fade {
  position: absolute; inset: -2px; pointer-events: none; z-index: 1;
  background:
    linear-gradient(to right, var(--canvas) 0%, rgba(248, 250, 252, 0.72) 14%, rgba(248, 250, 252, 0) 48%),
    linear-gradient(to top, var(--canvas) 3%, rgba(248, 250, 252, 0) 34%),
    linear-gradient(to bottom, rgba(248, 250, 252, 0.55) 0%, rgba(248, 250, 252, 0) 16%);
}

.hero-copy { position: relative; z-index: 2; max-width: 580px; padding: 2.5rem 0 3.5rem; }
.hero-copy .h1 { margin: 1.1rem 0 1.3rem; }
.hero-copy .lede { margin-bottom: 2rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.6rem; }

.hero-note {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.88rem; color: var(--ink-muted); font-weight: 500;
}
.hero-note svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.hero-note + .hero-note { margin-top: 0.5rem; }

/* The phone IS the primary CTA for this audience — make it unmissable */
.hero-phones {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.8rem;
  font-size: 1.02rem; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.hero-phones svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.hero-phones a:hover strong { text-decoration: underline; }
.hero-phones strong { color: var(--brand-strong); font-weight: 800; }
.hero-phones .sep { color: var(--line); }
.hero-callback { margin-bottom: 0.5rem; }

/* Credential badges — a quiet row under the hero copy (moved off the photo) */
.cred-row {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin-top: 1.8rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.cred-chip {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem; font-weight: 700; line-height: 1.3;
  box-shadow: var(--shadow-sm);
}
.cred-chip small { display: block; font-size: 0.7rem; font-weight: 500; color: var(--ink-muted); }
.cred-chip .chip-icon {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--tint-100); color: var(--brand-strong);
}
.cred-chip .chip-icon svg { width: 17px; height: 17px; }

/* Stats */
.hero-stats {
  margin-top: 0.5rem; padding-bottom: 3.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 2rem; gap: 1.5rem;
  position: relative; z-index: 2;
}
.stat .stat-num {
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink);
}
.stat .stat-num span { color: var(--brand); }
.stat .stat-label { font-size: 0.88rem; color: var(--ink-muted); font-weight: 500; }

@media (max-width: 960px) {
  .hero-main { display: block; min-height: 0; padding-top: calc(var(--nav-h) + 1.2rem); }
  .hero-photo { position: relative; width: 100%; height: min(96vw, 500px); }
  .hero-fade {
    background:
      linear-gradient(to top, var(--canvas) 2%, rgba(248, 250, 252, 0) 34%),
      linear-gradient(to bottom, rgba(248, 250, 252, 0.4) 0%, rgba(248, 250, 252, 0) 14%);
  }
  .hero-media img, .hero-media video { object-position: 50% 8%; }
  .hero-copy { max-width: none; padding: 0.5rem 0 3rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Marquee ---------- */

.marquee-band {
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding: 1.1rem 0;
  overflow: hidden;
}
.marquee { display: flex; width: max-content; }
.marquee-track { display: flex; align-items: center; gap: 3.25rem; padding-right: 3.25rem; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-weight: 700; font-size: 0.92rem; color: var(--ink-soft); white-space: nowrap;
}
.marquee-track span::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); opacity: 0.55;
}

/* ---------- Sections shared ---------- */

.section-pad { padding: 6rem 0; }

/* ---------- Areas of care — bento ---------- */

.bento {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 1.4rem;
}
.bento-card {
  border-radius: var(--r-lg);
  padding: 2.2rem;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.9rem;
  border: 1px solid var(--tint-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.bento-card .card-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.75);
  color: var(--brand-strong);
  box-shadow: var(--shadow-sm);
}
.bento-card .card-icon svg { width: 26px; height: 26px; }
.bento-card h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.015em; }
.bento-card p { color: var(--ink-soft); font-size: 0.96rem; }

.bento-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
.bento-list li {
  display: flex; gap: 0.6rem; align-items: baseline;
  font-size: 0.92rem; font-weight: 600; color: var(--ink-soft);
}
.bento-list li::before { content: "✓"; color: var(--brand); font-weight: 800; }

.card-ckd   { grid-column: span 7; background: var(--tint-a); }
.card-htn   { grid-column: span 5; background: var(--surface); border-color: var(--line); }
.card-dial  { grid-column: span 5; background: linear-gradient(160deg, var(--brand-deep), var(--brand-deepest)); color: #fff; border: none; }
.card-tx    { grid-column: span 7; background: var(--tint-b); }

.card-dial h3 { color: #fff; }
.card-dial p { color: rgba(255, 255, 255, 0.78); }
.card-dial .card-icon { background: rgba(255, 255, 255, 0.12); color: var(--brand-light); box-shadow: none; }
.card-dial .bento-list li { color: rgba(255, 255, 255, 0.85); }
.card-dial .bento-list li::before { color: var(--brand-light); }

.modality-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.modality-chips span {
  padding: 0.35rem 0.8rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8rem; font-weight: 600;
}

.card-tele {
  grid-column: span 12;
  flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-bright) 100%);
  color: #fff; border: none;
}
.card-tele h3 { color: #fff; font-size: 1.5rem; }
.card-tele p { color: rgba(255, 255, 255, 0.85); max-width: 52ch; }
.card-tele .tele-copy { display: flex; flex-direction: column; gap: 0.6rem; }

@media (max-width: 900px) {
  .bento-card { grid-column: span 12 !important; }
  .card-tele { flex-direction: column; align-items: flex-start; }
}

/* ---------- About (dark) ---------- */

.about {
  background: linear-gradient(170deg, var(--brand-deep) 0%, var(--brand-deepest) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  margin: 0 auto; width: min(1320px, 100% - 1.5rem);
  overflow: hidden;
}
.about .eyebrow { color: var(--brand-light); }
.about .eyebrow::before { background: var(--brand-light); }
.about .lede { color: rgba(255, 255, 255, 0.72); }

.about-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.14), transparent 65%);
  top: -200px; right: -150px; pointer-events: none;
}

.about-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.about-bio p { color: rgba(255, 255, 255, 0.82); margin-bottom: 1.1rem; font-size: 1.02rem; }
.about-bio p strong { color: #fff; }

.lang-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.lang-chips span {
  padding: 0.45rem 1rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.86rem; font-weight: 600;
}

.affil { margin-top: 2.2rem; }
.affil h4 {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-light); margin-bottom: 0.9rem; font-weight: 700;
}
.affil-item {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.85rem 1rem; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.6rem;
}
.affil-item svg { width: 20px; height: 20px; color: var(--brand-light); flex: none; }
.affil-item strong { font-size: 0.95rem; display: block; }
.affil-item small { color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; }

/* Qualifications timeline */
.quals { position: relative; padding-left: 1.75rem; }
.quals::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, var(--brand-light), rgba(45, 212, 191, 0.1));
}
.qual {
  position: relative; padding-bottom: 1.6rem;
}
.qual::before {
  content: ""; position: absolute; left: -1.75rem; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand-deepest);
  border: 3px solid var(--brand-light);
}
.qual .qual-year { font-size: 0.78rem; font-weight: 700; color: var(--brand-light); letter-spacing: 0.08em; }
.qual strong { display: block; font-size: 1.02rem; margin: 0.15rem 0; }
.qual small { color: rgba(255, 255, 255, 0.62); font-size: 0.86rem; }

.awards-note {
  margin-top: 1.5rem; padding: 1.1rem 1.3rem;
  border-radius: var(--r-md);
  background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.25);
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.85);
}
.awards-note strong { color: var(--amber); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Publications ---------- */

.pub-list { display: grid; gap: 1rem; }
.pub {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 1.4rem; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pub:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--tint-border); }

.pub-num {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: var(--tint-50); color: var(--brand-strong);
  font-weight: 800; font-size: 1.05rem;
}
.pub-body strong { display: block; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.4; }
.pub-body span { font-size: 0.86rem; color: var(--ink-muted); }
.pub-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.84rem; font-weight: 700; color: var(--brand);
  white-space: nowrap;
}
.pub-link svg { width: 15px; height: 15px; }
.pub-link:hover { color: var(--brand-strong); }

@media (max-width: 700px) {
  .pub { grid-template-columns: auto 1fr; }
  .pub-link { grid-column: 2; }
}

/* ---------- Locations ---------- */

.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.loc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.loc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.loc-head {
  padding: 1.8rem 2rem 1.4rem;
  background: linear-gradient(140deg, var(--tint-a), var(--tint-50));
  border-bottom: 1px solid var(--tint-border);
}
.loc-head .loc-tag {
  display: inline-block; padding: 0.3rem 0.8rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.8); color: var(--brand-strong);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.loc-head h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.015em; }
.loc-head p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 0.3rem; }
.loc-head .loc-note { font-size: 0.82rem; color: var(--ink-muted); }

.loc-map {
  border-bottom: 1px solid var(--line);
  line-height: 0; /* kill inline-iframe gap */
}
.loc-map iframe {
  width: 100%; height: 190px; border: 0; display: block;
  filter: saturate(0.85);
}

.loc-body { padding: 1.6rem 2rem 2rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.loc-row { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.94rem; }
.loc-row svg { width: 19px; height: 19px; color: var(--brand); flex: none; margin-top: 3px; }
.loc-row strong { font-weight: 700; }
.loc-row a { color: var(--brand-strong); font-weight: 700; }
.loc-row a:hover { text-decoration: underline; }
.loc-row .muted { color: var(--ink-muted); }

.hours-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.hours-chips span {
  padding: 0.3rem 0.75rem; border-radius: var(--r-pill);
  background: var(--tint-50); border: 1px solid var(--tint-border);
  font-size: 0.8rem; font-weight: 700; color: var(--brand-deep);
}

.loc-actions { margin-top: auto; padding-top: 0.8rem; display: flex; gap: 0.7rem; flex-wrap: wrap; }
.loc-actions .btn { padding: 0.65rem 1.25rem; font-size: 0.86rem; }

@media (max-width: 860px) { .loc-grid { grid-template-columns: 1fr; } }

/* ---------- Appointment ---------- */

.appt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.appt-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4.5vw, 4rem); align-items: start;
}

.appt-side { position: sticky; top: calc(var(--nav-h) + 2rem); }

@media (max-width: 900px) {
  .appt-grid { grid-template-columns: 1fr; }
  .appt-side { position: static; }
}
.appt-side .h2 { margin: 0.9rem 0 1rem; }
.appt-side .lede { margin-bottom: 1.8rem; }

.referral-callout {
  border-radius: var(--r-lg);
  background: var(--tint-50);
  border: 1px solid var(--tint-border);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.2rem;
}
.referral-callout h4 {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.98rem; font-weight: 800; margin-bottom: 0.5rem;
}
.referral-callout h4 svg { width: 20px; height: 20px; color: var(--brand); }
.referral-callout p { font-size: 0.9rem; color: var(--ink-soft); }
.referral-callout .ref-none {
  margin-top: 0.7rem; padding-top: 0.7rem;
  border-top: 1px dashed var(--tint-border);
  font-weight: 600;
}

/* GP / referrer strip */
.gp-strip {
  margin-top: 1.2rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--canvas);
  padding: 1.4rem 1.6rem;
}
.gp-strip h4 {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.98rem; font-weight: 800; margin-bottom: 0.5rem;
}
.gp-strip h4 svg { width: 20px; height: 20px; color: var(--brand); }
.gp-strip p { font-size: 0.9rem; color: var(--ink-soft); }

.call-cards { display: grid; gap: 0.8rem; }
.call-card {
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1rem 1.2rem; background: var(--canvas);
}
.call-card svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.call-card strong { display: block; font-size: 0.92rem; }
.call-card a { font-weight: 800; color: var(--brand-strong); font-size: 1.02rem; }
.call-card a:hover { text-decoration: underline; }
.call-card small { color: var(--ink-muted); font-size: 0.78rem; display: block; }

/* Wizard */
.wizard {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--canvas);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.wizard-head {
  padding: 1.6rem 2rem;
  background: linear-gradient(120deg, var(--brand-deep), var(--brand-deepest));
  color: #fff;
}
.wizard-head h3 { font-size: 1.2rem; font-weight: 800; }
.wizard-head p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); margin-top: 0.2rem; }

.wizard-progress {
  display: flex; gap: 0.5rem; margin-top: 1.1rem;
}
.wizard-progress .p-step {
  flex: 1; height: 5px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.4s ease;
}
.wizard-progress .p-step.active { background: var(--brand-light); }

.wizard-body { padding: 2rem; }

.wstep { display: none; }
.wstep.active { display: block; }

.wstep-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.35rem; }
.wstep-sub { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 1.4rem; }
.wstep-label { margin: 1.4rem 0 0.8rem; font-weight: 700; color: var(--ink-soft); }

.opt-grid { display: grid; gap: 0.8rem; }
.opt-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.opt-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 680px) { .opt-grid.cols-3, .opt-grid.cols-2 { grid-template-columns: 1fr; } }

.opt-card {
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
  padding: 1.1rem 1.2rem; text-align: left;
  display: flex; flex-direction: column; gap: 0.3rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.opt-card svg { width: 22px; height: 22px; color: var(--brand); margin-bottom: 0.3rem; }
.opt-card strong { font-size: 0.95rem; font-weight: 800; }
.opt-card small { font-size: 0.8rem; color: var(--ink-muted); }
.opt-card:hover { border-color: var(--brand-bright); }
.opt-card.selected {
  border-color: var(--brand); background: var(--tint-50);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip-opt {
  padding: 0.55rem 1.1rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 0.87rem; font-weight: 700;
  transition: all 0.2s ease;
}
.chip-opt:hover { border-color: var(--brand-bright); }
.chip-opt.selected { background: var(--brand); border-color: var(--brand); color: #fff; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 680px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.83rem; font-weight: 700; color: var(--ink-soft); }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  padding: 0.8rem 1rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 0.94rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}
.field-err { font-size: 0.78rem; color: #DC2626; display: none; }
.field.invalid input, .field.invalid select { border-color: #DC2626; }
.field.invalid .field-err { display: block; }

.wizard-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.8rem; gap: 1rem;
}
.wizard-nav .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
.btn-back { color: var(--ink-muted); font-weight: 700; font-size: 0.9rem; padding: 0.75rem 1rem; border-radius: var(--r-pill); }
.btn-back:hover { color: var(--ink); background: var(--line); }

/* Booking panel (call or email) */
.book-body { padding: 1.8rem 2rem 2rem; display: flex; flex-direction: column; gap: 1.4rem; }
.book-loc {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
  padding: 1.3rem 1.4rem;
}
.book-loc-head {
  display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
  flex-wrap: wrap; margin-bottom: 1rem;
}
.book-loc-head strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.book-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.book-actions .btn { padding: 0.7rem 1.3rem; font-size: 0.9rem; }
.book-addr { display: block; margin-top: 0.6rem; color: var(--ink-muted); font-size: 0.8rem; }
.book-notes { display: grid; gap: 0.6rem; }
.book-note {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.9rem; color: var(--ink-soft); font-weight: 500;
}
.book-note svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }
.book-include {
  border-radius: var(--r-md);
  background: var(--tint-50); border: 1px solid var(--tint-border);
  padding: 1.1rem 1.3rem;
}
.book-include h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 0.5rem; }
.book-include li {
  display: flex; gap: 0.6rem; align-items: baseline;
  font-size: 0.88rem; color: var(--ink-soft); padding: 0.15rem 0;
}
.book-include li::before { content: "✓"; color: var(--brand); font-weight: 800; }

@media (max-width: 680px) {
  .wizard-head { padding: 1.4rem 1.3rem; }
  .book-body { padding: 1.3rem 1rem 1.4rem; }
  .book-loc { padding: 1.1rem 1rem; }
  .book-actions { flex-direction: column; }
  .book-actions .btn { width: 100%; white-space: normal; text-align: center; }
}

/* Summary */
.summary-box {
  border: 1px solid var(--tint-border); border-radius: var(--r-md);
  background: var(--tint-50); padding: 1.3rem 1.5rem;
  display: grid; gap: 0.6rem; margin-bottom: 1.4rem;
}
.summary-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; }
.summary-row span { color: var(--ink-muted); font-weight: 600; }
.summary-row strong { text-align: right; }

.privacy-note { font-size: 0.78rem; color: var(--ink-muted); margin-top: 1rem; }

/* Success */
.wizard-success { text-align: center; padding: 2.5rem 1rem; display: none; }
.wizard-success.active { display: block; }
.success-ring {
  width: 84px; height: 84px; margin: 0 auto 1.4rem; border-radius: 50%;
  background: var(--tint-100); display: grid; place-items: center;
}
.success-ring svg { width: 40px; height: 40px; color: var(--brand-strong); }
.wizard-success h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.6rem; }
.wizard-success p { color: var(--ink-muted); font-size: 0.94rem; max-width: 42ch; margin: 0 auto 0.4rem; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item.open { border-color: var(--tint-border); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; text-align: left;
  font-weight: 700; font-size: 1rem;
}
.faq-q .faq-icon {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--tint-50); color: var(--brand);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.faq-q .faq-icon svg { width: 16px; height: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a-inner { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); font-size: 0.94rem; }

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

.footer {
  margin-top: 6rem;
  background: linear-gradient(170deg, #04302B 0%, #020617 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem; margin-bottom: 3rem;
}
.footer .brand-mark strong { color: #fff; }
.footer-about { font-size: 0.9rem; margin-top: 1rem; max-width: 34ch; }
.footer h4 {
  color: #fff; font-size: 0.82rem; letter-spacing: 0.13em; text-transform: uppercase;
  margin-bottom: 1rem; font-weight: 700;
}
.footer-col a, .footer-col p { display: block; font-size: 0.9rem; padding: 0.28rem 0; }
.footer-col a:hover { color: var(--brand-light); }
.footer-col .f-strong { color: #fff; font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.6rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a { text-decoration: underline; }
.footer-bottom a:hover { color: var(--brand-light); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal defaults (JS adds motion; no-JS stays visible) ---------- */

.js [data-reveal] { opacity: 0; }
.js.reduced-motion [data-reveal] { opacity: 1; }

/* ---------- CJK typography ---------- */

html[lang="zh-Hant"] {
  --font: "Plus Jakarta Sans", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC",
          ui-sans-serif, system-ui, sans-serif;
}
html[lang="zh-Hans"] {
  --font: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
          ui-sans-serif, system-ui, sans-serif;
}
/* Negative tracking and ultra-tight leading suit Latin display type, not CJK */
html[lang^="zh"] .h1 { letter-spacing: 0; line-height: 1.18; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
html[lang^="zh"] .h2 { letter-spacing: 0; line-height: 1.25; }
html[lang^="zh"] .h3,
html[lang^="zh"] .bento-card h3 { letter-spacing: 0; }
html[lang^="zh"] .eyebrow { letter-spacing: 0.1em; }
html[lang^="zh"] body { line-height: 1.75; }

/* ---------- Reduced motion ---------- */

@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;
  }
}
