/* ==========================================================================
   Conrad MIS Medical Centre — design system
   Palette source: /colour  →  #FEEBF1 · #FFE2E6 · #FFE9D2  (+ brand #FF00AE)
   ========================================================================== */

:root {
  /* — source palette (/colour) — */
  --petal:      #FEEBF1;   /* soft pink     */
  --blush:      #FFE2E6;   /* blush pink    */
  --cream:      #FFE9D2;   /* antique white */

  /* — derived surfaces — */
  --sand:       #F9E5D2;   /* deeper cream, for banding */
  --paper:      #FFF8F2;
  --paper-2:    #FFFCF8;
  --white:      #FFFDFB;

  /* — ink (warm cocoa-plum, not black) — */
  --ink:        #3A2A2E;
  --ink-deep:   #2C1F23;
  --ink-2:      #4E3439;
  --ink-3:      #6B5058;   /* body copy */
  --muted:      #7C626B;

  /* — accents — */
  --rose:       #C2246E;   /* softened from the brand mark */
  --rose-deep:  #96154F;
  --rose-soft:  #F0A9C4;   /* light rose, for dark surfaces */
  --tan:        #C9906A;   /* warm rose-gold, echoes the clinic's wood tones */
  --tan-deep:   #A9754F;
  --tan-ink:    #8A5B39;   /* text-safe bronze */

  /* — lines & shadows — */
  --line:       rgba(58, 42, 46, .11);
  --line-2:     rgba(58, 42, 46, .18);
  --line-light: rgba(255, 255, 255, .15);
  --shadow-sm:  0 2px 10px rgba(107, 66, 62, .05);
  --shadow:     0 18px 44px -18px rgba(107, 66, 62, .22);
  --shadow-lg:  0 40px 90px -34px rgba(107, 66, 62, .34);
  --shadow-rose:0 22px 46px -18px rgba(194, 36, 110, .34);

  /* — geometry — */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 38px;
  --r-pill: 999px;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 40px);

  /* — type — */
  --sans: "Manrope", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;

  --ease: cubic-bezier(.22, .68, .28, 1);
}

/* ── base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--rose); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 12px 20px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
  transform: translateY(-200%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; flex: 0 0 auto; }
.ic-lg { width: 24px; height: 24px; }
.ic-up { transform: rotate(-90deg); }

.shell { width: min(100% - (var(--gutter) * 2), var(--max)); margin-inline: auto; }

/* ── scroll progress ─────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed; inset: 0 0 auto; z-index: 200; height: 3px; pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--tan), var(--rose));
  border-radius: 0 3px 3px 0;
  transition: width .12s linear;
}

/* ── topbar ──────────────────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 40px; padding: 8px var(--gutter);
  background: var(--ink); color: rgba(255, 255, 255, .74);
  font-size: 12px; letter-spacing: .04em;
}
.topbar p { display: flex; align-items: center; gap: 8px; margin: 0; }
.topbar .ic { width: 15px; height: 15px; color: var(--rose-soft); }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-right a { display: flex; align-items: center; gap: 7px; font-weight: 700; color: #fff; transition: color .2s var(--ease); }
.topbar-right a:hover { color: var(--rose-soft); }

/* ── header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 120;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* The glass lives on a pseudo-element: a backdrop-filter on the header itself
   would make it the containing block for the fixed mobile menu overlay. */
.site-header::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: color-mix(in srgb, var(--cream) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: background .3s var(--ease);
}
.site-header.is-scrolled::before { background: color-mix(in srgb, var(--paper-2) 88%, transparent); }
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px -22px rgba(107, 66, 62, .5);
}
.nav-shell {
  width: min(100% - (var(--gutter) * 2), var(--max));
  min-height: 82px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; background: var(--white);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .3s var(--ease);
}
.brand-mark img { width: 26px; height: 26px; object-fit: contain; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-size: 15.5px; font-weight: 700; letter-spacing: .1em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 8.5px; font-weight: 600; letter-spacing: .18em; }

.site-nav { display: flex; align-items: center; gap: 18px; }
.nav-links { position: relative; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .5); border: 1px solid var(--line); }
.nav-links a {
  position: relative; z-index: 2; padding: 9px 16px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3);
  transition: color .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--ink); }
.nav-pill {
  position: absolute; z-index: 1; top: 5px; left: 0; height: calc(100% - 10px);
  border-radius: var(--r-pill); background: var(--white);
  box-shadow: 0 4px 14px -6px rgba(107, 66, 62, .35);
  opacity: 0; transition: transform .38s var(--ease), width .38s var(--ease), opacity .3s var(--ease);
}
.nav-links.has-active .nav-pill { opacity: 1; }

.menu-toggle { display: none; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 22px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.button-lg { min-height: 56px; padding: 15px 30px; font-size: 15px; }
.button .ic { transition: transform .25s var(--ease); }
.button:hover .ic { transform: translateX(3px); }

.button-primary { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -16px rgba(44, 31, 35, .8); }
.button-primary:hover { background: var(--rose); box-shadow: var(--shadow-rose); transform: translateY(-2px); }

.button-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.button-ghost:hover { background: var(--white); border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }

.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: var(--rose); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-rose); }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 700; color: var(--rose-deep);
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.text-link::after { content: ""; }
.text-link:hover { gap: 15px; color: var(--rose); }
.text-link-light { color: rgba(255, 255, 255, .8); }
.text-link-light:hover { color: #fff; }

/* ── shared type pieces ──────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  color: var(--rose-deep); font-size: 10.5px; font-weight: 800; letter-spacing: .22em;
}
.eyebrow i { display: block; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--tan), currentColor); }
.eyebrow-light { color: var(--rose-soft); }

.pill {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 26px;
  padding: 8px 16px 8px 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--rose);
  box-shadow: 0 0 0 4px rgba(194, 36, 110, .16);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(194, 36, 110, .16); }
  50%      { box-shadow: 0 0 0 8px rgba(194, 36, 110, .04); }
}

.mark { position: relative; z-index: 0; display: inline-block; color: var(--rose-deep); }
.mark::after {
  content: ""; position: absolute; z-index: -1; left: -.06em; right: -.06em; bottom: .1em; height: .34em;
  background: linear-gradient(90deg, var(--blush), var(--petal));
  border-radius: var(--r-pill); transform: rotate(-.6deg);
}

.section { padding: clamp(78px, 9vw, 140px) 0; position: relative; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(32px, 6vw, 88px); margin-bottom: clamp(44px, 5vw, 68px);
}
.section-head h2 {
  margin: 0; font-size: clamp(32px, 4vw, 56px); line-height: 1.32; letter-spacing: -.02em;
}
.section-lede { max-width: 420px; margin: 0; color: var(--ink-3); font-size: 15px; line-height: 1.95; }
.section-lede p { margin: 0; }

.card {
  position: relative; border-radius: var(--r-lg); background: var(--white);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card-icon {
  display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 auto;
  border-radius: 16px; color: var(--rose-deep);
  background: linear-gradient(150deg, var(--petal), var(--blush));
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.card-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--rose-deep);
  transition: gap .25s var(--ease);
}
.card-link:hover { gap: 15px; }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% -10%, var(--blush) 0%, transparent 58%),
    radial-gradient(90% 80% at 0% 100%, var(--petal) 0%, transparent 60%),
    linear-gradient(168deg, var(--cream) 0%, var(--sand) 44%, var(--petal) 100%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero-glow-a { width: 520px; height: 520px; top: -180px; right: -120px; background: rgba(194, 36, 110, .09); }
.hero-glow-b { width: 420px; height: 420px; bottom: -200px; left: -140px; background: rgba(201, 144, 106, .20); }
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 78%);
}

.hero-shell {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr .98fr; align-items: center;
  gap: clamp(40px, 5vw, 84px);
  padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 8vw, 116px);
}
.hero h1 {
  margin: 0; font-size: clamp(42px, 5.1vw, 76px); font-weight: 500;
  line-height: 1.24; letter-spacing: -.035em;
}
.hero-lede { max-width: 540px; margin: 26px 0 0; color: var(--ink-3); font-size: clamp(15px, 1.2vw, 17.5px); line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }

.hero-points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 46px 0 0; padding: 0; list-style: none;
}
.hero-points li {
  padding: 16px 18px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(6px);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.hero-points li:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .85); }
.hero-points strong { display: block; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.hero-points span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }

.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 560px; }
.hero-frame {
  position: relative; overflow: hidden; aspect-ratio: 5 / 6;
  border-radius: 280px 280px var(--r-xl) var(--r-xl);
  background: var(--blush); box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255, 255, 255, .7);
  transition: transform .6s var(--ease);
}
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(44, 31, 35, .78) 100%);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 49% center; }
.hero-frame-caption { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 30px; color: #fff; }
.hero-frame-caption span,
.hero-frame-caption small { display: block; color: rgba(255, 255, 255, .74); font-size: 10.5px; letter-spacing: .14em; font-weight: 600; }
.hero-frame-caption strong {
  display: block; margin: 6px 0 3px; font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; letter-spacing: .06em;
}

.float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 13px;
  padding: 15px 19px; border-radius: var(--r-md);
  background: rgba(255, 253, 251, .92); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}
.float-card small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; }
.float-card strong { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; }
.float-card-book { right: -22px; bottom: 76px; }
.float-card-book a {
  padding: 7px 13px; border-radius: var(--r-pill); background: var(--ink); color: #fff;
  font-size: 11.5px; font-weight: 700; transition: background .25s var(--ease);
}
.float-card-book a:hover { background: var(--rose); }
.float-card-spec { left: -26px; top: 58px; animation-delay: -3s; }
.float-card-spec .ic { color: var(--rose); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.status-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #4F9271;
  box-shadow: 0 0 0 5px rgba(79, 146, 113, .16);
}

/* ── trust strip ─────────────────────────────────────────────────────────── */
.trust { padding: 0; margin-top: -1px; background: var(--paper-2); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 108px; padding: 22px 16px; border-left: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.trust-item:first-child { border-left: 0; }
.trust-item:hover { background: var(--white); }
.trust-item .ic { color: var(--rose); }
.trust-item p { margin: 0; font-size: 13.5px; font-weight: 700; letter-spacing: .03em; }

/* ── about ───────────────────────────────────────────────────────────────── */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: clamp(36px, 6vw, 96px); align-items: end; }
.statement {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 52px); line-height: 1.5; letter-spacing: -.02em;
}
.about-side {
  padding: 30px 32px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--cream), var(--petal));
  border: 1px solid rgba(255, 255, 255, .7);
}
.about-side p { margin: 0 0 24px; color: var(--ink-3); font-size: 14.5px; line-height: 2; }

/* ── services ────────────────────────────────────────────────────────────── */
.services { background: linear-gradient(180deg, var(--paper) 0%, var(--blush) 42%, var(--petal) 100%); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  display: flex; flex-direction: column; gap: 22px;
  min-height: 320px; padding: clamp(26px, 2.6vw, 34px);
  box-shadow: var(--shadow-sm);
}
.service-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.service-card:hover .card-icon { transform: scale(1.07) rotate(-4deg); background: var(--rose); color: #fff; }
.service-head { display: flex; align-items: center; gap: 14px; }
.service-head b { font-size: 9.5px; font-weight: 800; letter-spacing: .16em; color: var(--muted); }
.service-body { margin-top: auto; }
.service-card h3 { margin: 0 0 12px; font-size: clamp(22px, 1.9vw, 27px); }
.service-card p { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.9; }
.service-card .card-link { align-self: flex-start; }

.service-featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: auto 1fr auto;
  column-gap: clamp(36px, 6vw, 88px); align-items: start;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 55%, #7A4058 100%);
  color: #fff; border-color: transparent; box-shadow: var(--shadow);
  overflow: hidden;
}
.service-featured::after {
  content: ""; position: absolute; width: 380px; height: 380px; right: -110px; top: -140px;
  border-radius: 50%; background: radial-gradient(circle, rgba(240, 169, 196, .30), transparent 66%);
  pointer-events: none;
}
.service-featured > * { position: relative; z-index: 2; }
.service-featured .service-head { grid-column: 1 / -1; }
.service-featured .service-head b { color: rgba(255, 255, 255, .6); }
.service-featured .card-icon { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.service-featured:hover .card-icon { background: var(--rose); border-color: transparent; }
.service-featured .service-body { grid-column: 1; grid-row: 2 / 4; align-self: end; margin-top: 0; }
.service-featured h3 { font-size: clamp(28px, 3.2vw, 44px); margin-bottom: 14px; }
.service-featured p { color: rgba(255, 255, 255, .74); }
.service-featured .card-link { grid-column: 2; grid-row: 3; align-self: end; justify-self: start; color: #fff; }
.service-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.tag-row {
  grid-column: 2; grid-row: 2; align-self: end;
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none;
}
.tag-row li {
  padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .88); font-size: 11.5px; font-weight: 600;
}

/* ── team ────────────────────────────────────────────────────────────────── */
.team { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.team::before {
  content: "CONRAD"; position: absolute; top: 90px; right: -40px;
  font-family: var(--serif); font-size: min(22vw, 300px); line-height: .7;
  color: rgba(255, 255, 255, .028); pointer-events: none;
}
.team-aura {
  position: absolute; width: 640px; height: 640px; left: -220px; bottom: -300px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201, 144, 106, .22), transparent 68%);
  filter: blur(30px); pointer-events: none;
}
.team .shell { position: relative; z-index: 2; }
.team .section-lede { color: rgba(255, 255, 255, .66); }

.doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.doctor-photo {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: var(--ink-2);
}
.doctor-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.doctor-card:nth-child(2) .doctor-photo img { object-position: 40% center; }
.photo-badge {
  position: absolute; z-index: 2; top: 16px; right: 16px;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 253, 251, .94); color: var(--ink);
  transform: translateY(-64px) rotate(-45deg); transition: transform .4s var(--ease);
}
.doctor-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(44, 31, 35, .5));
  opacity: 0; transition: opacity .4s var(--ease);
}
.doctor-photo:hover img { transform: scale(1.05); }
.doctor-photo:hover::after { opacity: 1; }
.doctor-photo:hover .photo-badge { transform: translateY(0) rotate(-45deg); }
.doctor-meta { padding: 22px 4px 0; }
.doctor-meta p { margin: 0 0 7px; color: var(--rose-soft); font-size: 10.5px; font-weight: 800; letter-spacing: .16em; }
.doctor-meta h3 { margin: 0; font-size: 24px; letter-spacing: .05em; }
.doctor-meta span { color: rgba(255, 255, 255, .5); font-size: 11.5px; letter-spacing: .06em; }

.credential {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px;
  margin-top: 52px; padding: 28px 32px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-light);
}
.credential span { color: var(--rose-soft); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; }
.credential p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 13.5px; line-height: 1.9; }

/* ── centre ──────────────────────────────────────────────────────────────── */
.centre { background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 68%); }
.centre .stamp {
  display: block; margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--tan); border-image: linear-gradient(90deg, var(--tan), transparent) 1;
  color: var(--tan-ink); font-size: 9.5px; font-weight: 700; letter-spacing: .18em;
}

.gallery { display: grid; grid-template-columns: 1.55fr .95fr; gap: 18px; margin-bottom: 18px; }
.gallery figure { position: relative; overflow: hidden; margin: 0; border-radius: var(--r-lg); background: var(--blush); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery-main img { height: clamp(360px, 44vw, 560px); object-position: 50% 48%; }
.gallery-side img { height: clamp(360px, 44vw, 560px); object-position: 24% 50%; }
.gallery-wide { grid-column: 1 / -1; }
.gallery-wide img { height: clamp(230px, 26vw, 340px); object-position: 50% 62%; }
.gallery figure::after {
  content: ""; position: absolute; inset: 40% 0 0;
  background: linear-gradient(180deg, transparent, rgba(44, 31, 35, .74));
  pointer-events: none;
}
.gallery figcaption { position: absolute; z-index: 2; left: 30px; right: 30px; bottom: 26px; color: #fff; }
.gallery figcaption span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: rgba(255, 255, 255, .78); }
.gallery figcaption strong {
  display: block; margin-top: 8px; max-width: 420px;
  font-family: var(--serif); font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; line-height: 1.6;
}

.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fact-card { padding: 30px; box-shadow: var(--shadow-sm); }
.fact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.fact-card:hover .card-icon { background: var(--rose); color: #fff; transform: scale(1.06); }
.fact-card small { display: block; margin: 22px 0 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.fact-card h3 { margin: 0 0 10px; font-size: 21px; }
.fact-card p { margin: 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.85; }

/* ── process ─────────────────────────────────────────────────────────────── */
.process { background: var(--paper); padding-top: clamp(60px, 6vw, 90px); }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step-card { padding: 32px 30px 34px; box-shadow: var(--shadow-sm); overflow: hidden; }
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.step-card:hover .card-icon { background: var(--rose); color: #fff; }
.step-num {
  position: absolute; top: 16px; right: 22px;
  font-family: var(--serif); font-size: 62px; font-weight: 400; line-height: 1;
  background: linear-gradient(160deg, var(--cream), var(--blush));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  pointer-events: none;
}
.step-card h3 { margin: 22px 0 10px; font-size: 22px; }
.step-card p { margin: 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.85; }

/* ── faq ─────────────────────────────────────────────────────────────────── */
.faq { background: linear-gradient(180deg, var(--paper) 0%, var(--petal) 100%); }
.faq-shell { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.faq-intro h2 { margin: 0 0 22px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.34; }
.faq-intro .section-lede { margin-bottom: 20px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-size: 15.5px; font-weight: 700; color: var(--ink);
  transition: color .25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--rose-deep); }
.faq-item summary i {
  position: relative; display: grid; place-items: center; flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(150deg, var(--petal), var(--blush)); color: var(--rose-deep);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.faq-item summary i::before,
.faq-item summary i::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-item summary i::before { width: 11px; height: 1.6px; }
.faq-item summary i::after { width: 1.6px; height: 11px; }
.faq-item[open] summary i { background: var(--rose); color: #fff; transform: rotate(90deg); }
.faq-item[open] summary i::after { opacity: 0; }
.faq-answer { padding: 0 24px 22px; }
.faq-answer p { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; line-height: 1.95; }

/* ── visit ───────────────────────────────────────────────────────────────── */
.visit { background: var(--ink); }
.visit-shell { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.visit-image { position: relative; overflow: hidden; min-height: 560px; }
.visit-image img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.visit-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(44, 31, 35, .55));
}
.visit-card {
  align-self: center; max-width: 660px;
  padding: clamp(56px, 7vw, 96px) clamp(28px, 6vw, 88px); color: #fff;
}
.visit-card h2 { margin: 0 0 40px; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.32; }

.visit-details { margin: 0; border-top: 1px solid var(--line-light); }
.visit-details > div { padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.visit-details dt {
  display: flex; align-items: center; gap: 9px; margin-bottom: 8px;
  color: var(--rose-soft); font-size: 11px; font-weight: 700; letter-spacing: .1em;
}
.visit-details dd { margin: 0; color: rgba(255, 255, 255, .78); font-size: 13.5px; line-height: 1.95; }

.contact-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.contact-pair a {
  padding: 16px 20px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-light);
  transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.contact-pair a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.contact-pair span { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .55); font-size: 11px; letter-spacing: .1em; }
.contact-pair strong { display: block; margin-top: 5px; font-size: 20px; font-weight: 700; letter-spacing: .05em; }

.visit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 34px; }

/* ── footer ──────────────────────────────────────────────────────────────── */
.footer { padding: clamp(62px, 7vw, 92px) 0 26px; background: var(--ink-deep); color: #fff; }
.footer-top {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(28px, 5vw, 70px);
  align-items: start; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer .brand-mark { background: rgba(255, 255, 255, .96); }
.footer .brand-copy small { color: rgba(255, 255, 255, .45); }
.footer-tagline { margin: 0; color: rgba(255, 255, 255, .58); font-size: 14.5px; line-height: 1.9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.footer-links a {
  padding: 9px 16px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8);
  font-size: 12.5px; font-weight: 600;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.footer-links a:hover { background: var(--rose); border-color: transparent; color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 22px; color: rgba(255, 255, 255, .58); font-size: 11px; letter-spacing: .06em;
}
.footer-bottom a { transition: color .25s var(--ease); }
.footer-bottom a:hover { color: #fff; }
.to-top { display: inline-flex; align-items: center; gap: 8px; }

/* ── floating cta ────────────────────────────────────────────────────────── */
.floating-book {
  position: fixed; z-index: 90; right: 22px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 20px; border-radius: var(--r-pill);
  background: var(--rose); color: #fff; box-shadow: var(--shadow-rose);
  font-size: 13.5px; font-weight: 800; letter-spacing: .04em;
  transition: transform .28s var(--ease), background .28s var(--ease);
}
.floating-book:hover { background: var(--ink); transform: translateY(-4px); }

/* ── reveal ──────────────────────────────────────────────────────────────── */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.js .reveal-delay { transition-delay: .12s; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .hero-shell { grid-template-columns: 1fr .95fr; gap: 40px; }
  .nav-links a { padding: 9px 12px; font-size: 13px; }
  .float-card-spec { left: -12px; }
  .about-grid { grid-template-columns: 1fr; align-items: start; gap: 34px; }
  .about-side { max-width: 620px; }
  .faq-shell { grid-template-columns: 1fr; gap: 38px; }
  .credential { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 1024px) {
  html { scroll-padding-top: 86px; }
  .topbar-right span { display: none; }
  .nav-shell { min-height: 70px; }

  .menu-toggle {
    position: relative; z-index: 130; display: grid; place-content: center; gap: 6px;
    width: 46px; height: 46px; border-radius: 14px;
    background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  }
  .menu-toggle .bar { display: block; width: 20px; height: 1.8px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  /* the .sr-only label is a <span> too, so count from the end, not nth-of-type */
  .menu-toggle[aria-expanded="true"] .bar:nth-last-of-type(2) { transform: translateY(3.9px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bar:nth-last-of-type(1) { transform: translateY(-3.9px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 0; z-index: 125;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    padding: 96px 26px 40px;
    background: linear-gradient(170deg, var(--cream), var(--petal));
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .32s var(--ease), visibility .32s var(--ease), transform .32s var(--ease);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .brand { position: relative; z-index: 130; }
  .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 0; background: none; border: 0;
  }
  .nav-links a {
    padding: 18px 4px; border-bottom: 1px solid var(--line); border-radius: 0;
    font-family: var(--serif); font-size: 25px; font-weight: 500;
  }
  .nav-pill { display: none; }
  .site-nav .nav-cta { margin-top: 30px; min-height: 56px; }

  .hero-shell { grid-template-columns: 1fr; gap: 48px; padding-bottom: 84px; }
  .hero h1 { font-size: clamp(36px, 9.5vw, 54px); }
  .hero-visual { justify-self: stretch; max-width: none; }
  .hero-frame { aspect-ratio: 1 / 1; border-radius: 220px 220px var(--r-lg) var(--r-lg); }
  .float-card-book { right: 6px; bottom: 40px; }
  .float-card-spec { left: 4px; top: 32px; }
  .hero-points { grid-template-columns: 1fr; }

  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { justify-content: flex-start; min-height: 88px; padding-left: 22px; border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(odd) { border-left: 0; }

  .section-head { display: block; }
  .section-head .section-lede,
  .section-head .button { margin-top: 24px; }
  .section-head h2 { font-size: clamp(28px, 7vw, 40px); }

  .service-grid, .fact-grid, .step-grid, .doctor-grid, .gallery { grid-template-columns: 1fr; }
  .service-featured { display: flex; }
  .service-featured .card-link { align-self: flex-start; }
  .tag-row { margin-bottom: 0; }
  .gallery-main img, .gallery-side img { height: 320px; }
  .gallery-wide img { height: 230px; }
  .doctor-grid { gap: 40px; }
  .photo-badge { transform: translateY(0) rotate(-45deg); }

  .visit-shell { grid-template-columns: 1fr; }
  .visit-image { min-height: 340px; }
  .visit-image::after { background: linear-gradient(180deg, transparent 60%, rgba(44, 31, 35, .6)); }
  .visit-card { padding: 62px 26px 74px; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { justify-content: flex-start; }

  .floating-book { right: 16px; bottom: 16px; padding: 14px 18px; }
}

@media (max-width: 560px) {
  .statement { font-size: 27px; line-height: 1.6; }
  .contact-pair { grid-template-columns: 1fr; }
  .faq-item summary { padding: 17px 18px; font-size: 14.5px; }
  .faq-answer { padding: 0 18px 20px; }
  .step-num { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
