/* ==========================================================================
   Meridian Family Clinic
   Palette (from Color Hunt): #071B2B navy, #167D8D teal, #B9E4E8 aqua, #EEEEEE mist.
   Type: Plus Jakarta Sans for text, Instrument Serif italic for the display moments.
   Layout: left-aligned, two-column splits with a sticky lead column. The one
   memorable element is the hero stage: meridian arcs, a pulse line and live openings.
   Everything else stays quiet.
   ========================================================================== */

:root {
  /* palette (light) */
  --navy: #071b2b;
  --teal: #167d8d;
  --aqua: #b9e4e8;
  --mist: #eeeeee;

  /* surfaces */
  --bg: #eeeeee;
  --bg-alt: #d8eaeb;
  --surface: #ffffff;
  --field-bg: #ffffff;
  --chip: #d5eff1;
  --hero-glow: rgba(185, 228, 232, .7);

  /* text */
  --ink: #071b2b;
  --ink-2: #31414e;
  --ink-3: #56636d;
  --accent: #167d8d;
  --accent-text: #0f6573;
  --display-accent: #167d8d;

  /* lines and states */
  --line: #ced0d3;
  --field-line: #7d8d98;
  --focus: #167d8d;
  --danger: #b3261e;
  --btn-hover-bg: #0f6573;
  --btn-hover-ink: #ffffff;

  /* chrome */
  --header-bg: rgba(238, 238, 238, .88);
  --shadow: 0 18px 50px -22px rgba(7, 27, 43, .38);
  --stage-1: #0b3547;
  --stage-2: #071b2b;

  /* dark bands */
  --band-bg: #071b2b;
  --band-ink: #eeeeee;
  --band-ink-2: #b8c3c9;
  --band-accent: #b9e4e8;
  --band-line: rgba(185, 228, 232, .2);
  --foot-bg: #071b2b;
  --foot-ink: #eeeeee;
  --foot-ink-2: #9fb0ba;

  /* map */
  --map-bg: #e3f1f2;
  --map-road: #ffffff;
  --map-block: #cfe6e9;

  /* type */
  --font-text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  /* shape */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --ease: cubic-bezier(.22, .8, .3, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071b2b;
    --bg-alt: #0e2333;
    --surface: #132938;
    --field-bg: #0b1f2e;
    --chip: #1c3342;
    --hero-glow: rgba(22, 125, 141, .24);
    --ink: #eeeeee;
    --ink-2: #c0c4c7;
    --ink-3: #969ea4;
    --accent-text: #b9e4e8;
    --display-accent: #b9e4e8;
    --line: #233b49;
    --field-line: #6b8696;
    --focus: #b9e4e8;
    --danger: #ffb4ab;
    --btn-hover-bg: #b9e4e8;
    --btn-hover-ink: #071b2b;
    --header-bg: rgba(7, 27, 43, .8);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
    --stage-1: #0f4a5a;
    --stage-2: #0a2536;
    --band-bg: #0c3d4d;
    --foot-bg: #040f18;
    --map-bg: #0e2333;
    --map-road: #1e3a4c;
    --map-block: #17303f;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #071b2b;
  --bg-alt: #0e2333;
  --surface: #132938;
  --field-bg: #0b1f2e;
  --chip: #1c3342;
  --hero-glow: rgba(22, 125, 141, .24);
  --ink: #eeeeee;
  --ink-2: #c0c4c7;
  --ink-3: #969ea4;
  --accent-text: #b9e4e8;
  --display-accent: #b9e4e8;
  --line: #233b49;
  --field-line: #6b8696;
  --focus: #b9e4e8;
  --danger: #ffb4ab;
  --btn-hover-bg: #b9e4e8;
  --btn-hover-ink: #071b2b;
  --header-bg: rgba(7, 27, 43, .8);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --stage-1: #0f4a5a;
  --stage-2: #0a2536;
  --band-bg: #0c3d4d;
  --foot-bg: #040f18;
  --map-bg: #0e2333;
  --map-road: #1e3a4c;
  --map-block: #17303f;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--teal); color: #fff; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.8vw, 4.9rem); line-height: 1.02; letter-spacing: -.04em; }
h1 em {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.16em;
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--display-accent);
  margin-top: .04em;
}
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.1; }
h3 { font-size: 1.18rem; line-height: 1.3; letter-spacing: -.02em; }
p { color: var(--ink-2); max-width: 62ch; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.6; max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .88em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.1; cursor: pointer; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--btn-hover-bg); color: var(--btn-hover-ink); }
.btn-ghost { border-color: var(--field-line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); color: var(--accent-text); }
.btn-sm { padding: .66em 1.15em; font-size: .94rem; }
.btn-block { width: 100%; padding-block: 1em; }
.btn .ico { transition: transform .3s var(--ease); }
.btn-primary:hover .ico { transform: translateX(3px); }

.text-link { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; color: var(--accent-text); border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.text-link:hover { border-color: currentColor; }

/* ---------- header ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; background: var(--teal); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

.site-header {
  position: fixed; z-index: 60; left: 0; right: 0;
  top: calc(14px + env(safe-area-inset-top, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  pointer-events: none;
}
.header-inner {
  pointer-events: auto; position: relative;
  max-width: 1180px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px 8px 18px; border-radius: 999px;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line);
  transition: box-shadow .35s, background-color .35s;
}
.site-header.is-scrolled .header-inner { box-shadow: var(--shadow); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-size: 1.08rem; white-space: nowrap; }
.brand-name em { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.22em; color: var(--accent-text); margin-left: .05em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) { position: relative; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .96rem; color: var(--ink-2); transition: color .2s, background-color .2s; }
.main-nav a:not(.btn):hover { color: var(--ink); background: var(--chip); }
.main-nav a:not(.btn).is-current { color: var(--ink); background: var(--chip); }
.nav-cta { margin-left: 8px; }

.header-tools { display: flex; align-items: center; gap: 6px; }
.theme-toggle, .menu-toggle {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.theme-toggle:hover, .menu-toggle:hover { background: var(--chip); border-color: var(--field-line); }
.theme-toggle .ico { grid-area: 1 / 1; width: 20px; height: 20px; transition: transform .5s var(--ease), opacity .3s; }
:root[data-theme="light"] .ico-sun, :root:not([data-theme]) .ico-sun { opacity: 0; transform: rotate(-60deg) scale(.5); }
:root[data-theme="dark"] .ico-moon { opacity: 0; transform: rotate(60deg) scale(.5); }
.menu-toggle { display: none; }
.menu-toggle span { grid-area: 1 / 1; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-toggle span:first-child { transform: translateY(-3.5px); }
.menu-toggle span:last-child { transform: translateY(3.5px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 9999; }

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(120px, 14vw, 156px);
  padding-bottom: clamp(56px, 7vw, 96px);
  background: radial-gradient(52% 46% at 88% 18%, var(--hero-glow), transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }

.open-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink); max-width: 100%; }
.open-badge .dot { position: relative; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--ink-3); }
.open-badge[data-state="open"] .dot { background: var(--teal); }
.open-badge[data-state="open"] .dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--teal); opacity: 0; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--ink-2); font-size: .96rem; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ico { color: var(--accent-text); width: 1.15em; height: 1.15em; stroke-width: 2.2; }

.hero-stage {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; max-width: 520px; margin-inline: auto 0; aspect-ratio: 520 / 600;
  border-radius: 32px;
  background: radial-gradient(90% 70% at 72% 6%, var(--stage-1), transparent 70%), linear-gradient(165deg, var(--stage-1), var(--stage-2) 62%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(185, 228, 232, .18);
}
.hero-stage svg.meridians, .hero-stage svg.ecg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.meridians { color: #b9e4e8; }
.m-lines { stroke-width: 1.2; opacity: .3; }
.m-lines > * { vector-effect: non-scaling-stroke; }
.m-spin { transform-box: fill-box; transform-origin: center; }
.ecg-base, .ecg-pulse { vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.ecg-base { stroke: #b9e4e8; stroke-opacity: .28; stroke-width: 2; }
.ecg-pulse { stroke-width: 3.2; }

.openings {
  position: absolute; z-index: 2; left: 6%; right: 6%; bottom: 6%;
  display: grid; gap: 14px; padding: 18px 18px 16px;
  border-radius: 22px; background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55);
}
.openings-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.openings-title { font-weight: 800; letter-spacing: -.02em; }
.openings-day { font-size: .88rem; font-weight: 600; color: var(--accent-text); }
.openings-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-chip {
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--field-line); background: transparent;
  font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; cursor: pointer; color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease);
}
.slot-chip:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-1px); }
.openings-fallback { font-weight: 600; color: var(--accent-text); }
.openings-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-size: .92rem; font-weight: 700; color: var(--accent-text); }
.openings-link .ico { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.openings-link:hover .ico { transform: translateX(3px); }

/* the one orchestrated moment: arcs draw, the pulse starts, openings settle in */
@media (prefers-reduced-motion: no-preference) {
  .m-lines > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease) forwards; }
  .m-lines > *:nth-child(2) { animation-delay: .1s; }
  .m-lines > *:nth-child(3) { animation-delay: .2s; }
  .m-lines > *:nth-child(4) { animation-delay: .3s; }
  .m-lines > *:nth-child(5) { animation-delay: .4s; }
  .m-lines > *:nth-child(6) { animation-delay: .5s; }
  .m-lines > *:nth-child(7) { animation-delay: .6s; }
  .m-spin.m-1 { animation: draw 1.8s var(--ease) .1s forwards, sway 16s ease-in-out 2s infinite alternate; }
  .m-spin.m-2 { animation: draw 1.8s var(--ease) .2s forwards, sway 13s ease-in-out 2s infinite alternate-reverse; }
  .m-spin.m-3 { animation: draw 1.8s var(--ease) .3s forwards, sway 19s ease-in-out 2s infinite alternate; }
  .ecg-base { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw-long 1.5s var(--ease) .9s forwards; }
  .ecg-pulse { stroke-dasharray: 150 850; stroke-dashoffset: 150; opacity: 0; animation: pulse-run 3.8s linear 2.3s infinite; }
  .openings { animation: settle .9s var(--ease) 1.2s backwards; }
  .open-badge { animation: fade .8s ease .2s backwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes draw-long { to { stroke-dashoffset: 0; } }
@keyframes sway { from { transform: scaleX(.82); } to { transform: scaleX(1.08); } }
@keyframes pulse-run { 0% { stroke-dashoffset: 150; opacity: 1; } 100% { stroke-dashoffset: -1000; opacity: 1; } }
@keyframes settle { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-alt { background: var(--bg-alt); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 4vw, 52px); }

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-head { display: grid; gap: 18px; justify-items: start; position: sticky; top: 110px; }
.split-head h2 { max-width: 14ch; }

/* services: a list, because each row carries a visit length */
.service-list { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 42px; align-items: center; gap: 8px 20px; padding: 22px 8px; border-bottom: 1px solid var(--line); transition: background-color .25s; }
.service:hover { background: color-mix(in srgb, var(--chip) 55%, transparent); }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--chip); color: var(--accent-text); }
.service-icon .ico { width: 24px; height: 24px; }
.service-body p { font-size: .98rem; margin-top: 2px; }
.service-meta { font-size: .88rem; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.service-book { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--field-line); color: var(--ink); transition: background-color .25s, border-color .25s, color .25s; }
.service:hover .service-book, .service-book:focus-visible { background: var(--teal); border-color: var(--teal); color: #fff; }
.service-book .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.service:hover .service-book .ico { transform: translateX(2px); }

/* steps: a true sequence, so numerals and a connecting line */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.steps::before { content: ""; position: absolute; left: 22px; right: calc(33.333% - 22px); top: 22px; height: 2px; background: var(--teal); opacity: .55; transform-origin: left center; }
.step { position: relative; display: grid; gap: 10px; align-content: start; }
.step-num { position: relative; z-index: 1; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-alt); border: 2px solid var(--teal); font-family: var(--font-display); font-style: italic; font-size: 1.7rem; line-height: 1; color: var(--accent-text); padding-bottom: 2px; margin-bottom: 10px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::before { transform: scaleX(0); animation: grow-x linear both; animation-timeline: view(); animation-range: entry 25% cover 50%; }
  }
}
@keyframes grow-x { to { transform: scaleX(1); } }
@keyframes grow-y { to { transform: scaleY(1); } }

/* team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.person { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: border-color .25s; }
.person:hover { border-color: var(--teal); }
.avatar { position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; border-radius: 14px; margin-bottom: 12px; background: linear-gradient(135deg, var(--teal), var(--aqua)); }
.avatar::before { content: ""; position: absolute; inset: auto -20% -45% -20%; height: 90%; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.avatar span { position: relative; font-family: var(--font-display); font-style: italic; font-size: 3.2rem; line-height: 1; color: #fff; text-shadow: 0 2px 18px rgba(7, 27, 43, .35); }
.person:nth-child(2) .avatar { background: linear-gradient(160deg, #0f6573, #5fb3bf); }
.person:nth-child(3) .avatar { background: linear-gradient(45deg, #167d8d, #8fcfd6 95%); }
.person:nth-child(4) .avatar { background: linear-gradient(200deg, #071b2b, #167d8d 80%); }
.role { font-weight: 700; font-size: .92rem; color: var(--accent-text); }
.person p:not(.role) { font-size: .96rem; flex: 1; }
.tag { align-self: flex-start; margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: var(--chip); color: var(--accent-text); font-size: .82rem; font-weight: 700; }

/* commitments band */
.band { background: var(--band-bg); color: var(--band-ink); padding-block: clamp(72px, 9vw, 112px); }
.band h2, .band h3 { color: var(--band-ink); }
.band p { color: var(--band-ink-2); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.band-intro { display: grid; gap: 36px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px clamp(22px, 4vw, 48px); }
.stat { display: flex; flex-direction: column-reverse; gap: 4px; }
.stat dt { font-size: .9rem; color: var(--band-ink-2); max-width: 15ch; line-height: 1.35; }
.num { font-family: var(--font-display); font-style: italic; font-size: clamp(2.7rem, 5vw, 4rem); line-height: 1; color: var(--band-accent); font-variant-numeric: tabular-nums; }
.promises { display: grid; }
.promises li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--band-line); }
.promises li:last-child { border-bottom: 1px solid var(--band-line); }
.promises .ico { color: var(--band-accent); margin-top: 3px; }
.promises h3 { font-size: 1.08rem; }
.promises p { font-size: .96rem; margin-top: 2px; }

/* booking */
.split-book { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.contact-list { display: grid; gap: 16px; margin-top: 6px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--chip); color: var(--accent-text); }
.contact-list .k { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-3); line-height: 1.3; }
.contact-list a { font-weight: 700; color: var(--accent-text); overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.contact-list li > div { min-width: 0; color: var(--ink); font-weight: 600; }
.emergency-note { padding: 14px 16px; border: 1px solid var(--field-line); border-radius: 14px; font-size: .92rem; }
.emergency-note strong { color: var(--ink); }

.book-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.2vw, 38px); box-shadow: var(--shadow); }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend { padding: 0; font-weight: 700; font-size: .92rem; color: var(--ink); }
.opt { font-weight: 500; color: var(--ink-3); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--field-line); background: var(--field-bg); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 28%, transparent); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid > label, .field.is-invalid > legend { color: var(--danger); }
.hint { font-size: .86rem; color: var(--ink-3); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; border: 1.5px solid var(--field-line); background: var(--field-bg); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: grid; place-items: center; padding: 10px 12px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--ink-2); cursor: pointer; transition: background-color .25s, color .25s; }
.seg input:checked + label { background: var(--teal); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { padding: 11px 8px; border-radius: 12px; border: 1.5px solid var(--field-line); background: var(--field-bg); font-weight: 700; font-size: .94rem; font-variant-numeric: tabular-nums; cursor: pointer; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.slot:hover { border-color: var(--teal); color: var(--accent-text); }
.slot[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; transform: scale(1.02); }
.slots-field.is-invalid .hint { color: var(--danger); }
.form-error { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--danger); color: var(--danger); font-weight: 600; font-size: .94rem; max-width: none; }

.confirm { display: grid; gap: 14px; justify-items: start; padding: 8px 0; }
.confirm:focus { outline: none; }
.confirm-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; animation: pop .6s var(--ease) backwards; }
.confirm-icon .ico { width: 26px; height: 26px; stroke-width: 2.4; }
.confirm-demo { padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--field-line); font-size: .88rem; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* hours + location */
.hours-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.hours-card { display: grid; gap: 18px; align-content: start; padding: clamp(22px, 3vw, 34px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 1rem; }
.hours-table th { font-weight: 700; color: var(--ink); }
.hours-table td { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table tr.is-today th, .hours-table tr.is-today td { background: var(--chip); color: var(--ink); font-weight: 700; }
.hours-table tr.is-today th { border-radius: 12px 0 0 12px; }
.hours-table tr.is-today td { border-radius: 0 12px 12px 0; }
.today-pill { margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--teal); color: #fff; font-size: .74rem; font-weight: 700; vertical-align: 2px; }
.hours-note { font-size: .88rem; color: var(--ink-3); }

.place-card { display: grid; grid-template-rows: 1fr auto; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.map { min-height: 220px; position: relative; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-bg { fill: var(--map-bg); }
.map-roads { stroke: var(--map-road); }
.map-block rect { fill: var(--map-block); }
.map-pulse { fill: var(--teal); opacity: .22; }
.map-pin { fill: var(--teal); }
.place-body { display: grid; gap: 10px; justify-items: start; padding: 22px clamp(22px, 3vw, 30px) 26px; }
.place-body p { font-size: .98rem; }

/* faq */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px; border-right: 2.5px solid var(--accent-text); border-bottom: 2.5px solid var(--accent-text); transform: translateY(-3px) rotate(45deg); transition: transform .35s var(--ease); }
.faq[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--accent-text); }
.faq-body { padding: 0 4px 24px; }
.faq[open] .faq-body { animation: unfold .45s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }

/* footer */
.site-footer { background: var(--foot-bg); color: var(--foot-ink); padding-top: clamp(56px, 7vw, 88px); }
.site-footer p, .site-footer li { color: var(--foot-ink-2); font-size: .96rem; }
.site-footer h3 { font-size: .9rem; font-weight: 700; letter-spacing: 0; color: var(--foot-ink); margin-bottom: 12px; }
.site-footer a:hover { color: var(--band-accent); }
.site-footer .brand-name em { color: var(--band-accent); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.3fr; gap: 36px; padding-bottom: 48px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col p + p { margin-top: 8px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px; border-top: 1px solid var(--band-line); font-size: .88rem; }
.footer-base p, .footer-base a { color: var(--foot-ink-2); font-size: .88rem; }

.mobile-bar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { margin-inline: 0; max-width: 480px; }
  .split, .split-book, .band-grid, .hours-grid { grid-template-columns: minmax(0, 1fr); }
  .split-head { position: static; }
  .split-head h2 { max-width: 20ch; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top right;
    transition: opacity .25s, transform .35s var(--ease), visibility 0s linear .35s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav a:not(.btn) { padding: 13px 16px; font-size: 1.02rem; }
  .nav-cta { margin: 8px 0 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps::before { left: 22px; right: auto; top: 22px; bottom: 60px; width: 2px; height: auto; transform-origin: center top; }
  .step { padding-left: 70px; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .steps::before { transform: scaleY(0); animation: grow-y linear both; animation-timeline: view(); animation-range: entry 25% cover 50%; }
    }
  }
  .mobile-bar {
    position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--header-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  }
  .site-footer { padding-bottom: 76px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .service { grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 6px 14px; padding-inline: 0; }
  .service-icon { width: 44px; height: 44px; align-self: start; }
  .service-meta { grid-column: 2; grid-row: 2; font-size: .82rem; }
  .service-book { grid-row: 1 / span 2; grid-column: 3; width: 40px; height: 40px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .stat dt { font-size: .82rem; }
  .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hours-table th, .hours-table td { padding-inline: 8px; }
  .brand-name { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .brand-name em { display: none; }
  .openings { padding: 14px; left: 5%; right: 5%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
