/* ==========================================================================
   Zion Spine and Rehab — stylesheet
   One spacing scale, one type scale, one section rhythm.
   Spacing:  --s1 4 · --s2 8 · --s3 12 · --s4 16 · --s5 24 · --s6 32 · --s7 48 · --s8 64 · --s9 96
   ========================================================================== */

@font-face { font-family: Montserrat; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-regular.ttf") format("truetype"); }
@font-face { font-family: Montserrat; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-medium.ttf") format("truetype"); }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-semibold.ttf") format("truetype"); }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-bold.ttf") format("truetype"); }
@font-face { font-family: Montserrat; font-weight: 800 900; font-display: swap; src: url("../fonts/montserrat-extra-bold.ttf") format("truetype"); }

:root {
  /* colour */
  --navy: #062d55;
  --navy-2: #124777;
  --blue: #0075ad;
  --blue-hover: #00669a;
  --sky: #94d4f2;
  --sky-text: #91d6f8;
  --ink: #22394d;
  --text: #4b5c69;
  --muted: #5c6b78;
  --line: #d4e0e8;
  --pale: #eef6fb;
  --mist: #f7f9fb;
  --warn-bg: #fff6e8;
  --warn-line: #e0a23b;

  /* type */
  --heading: Montserrat, "Noto Sans KR", Arial, sans-serif;
  --body: Arial, Helvetica, "Noto Sans KR", sans-serif;
  --fs-display: clamp(38px, 4.6vw, 60px);
  --fs-h1: clamp(34px, 3.8vw, 52px);
  --fs-h2: clamp(28px, 2.9vw, 40px);
  --fs-h3: clamp(19px, 1.5vw, 21px);
  --fs-lead: clamp(17px, 1.35vw, 19px);
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-xs: 13px;

  /* spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  /* layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 8vw, 104px);
  --band-y: clamp(36px, 4.5vw, 48px);
  --split-gap: clamp(32px, 5vw, 72px);
  --radius: 6px;
  --curve: clamp(48px, 6vw, 80px);
  --shadow: 0 16px 36px #072a481f;
  --nav-h: 64px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--s6); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font: var(--fs-body)/1.75 var(--body);
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #00a9ed; outline-offset: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure, ul, ol, address { margin: 0; }
address { font-style: normal; }
h1, h2, h3, h4 { font-family: var(--heading); color: var(--navy); font-weight: 700; }
h1 { font-size: var(--fs-h1); line-height: 1.12; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -0.028em; }
h3 { font-size: var(--fs-h3); line-height: 1.4; letter-spacing: -0.015em; }
h4 { font-size: 17px; line-height: 1.4; }
[hidden] { display: none !important; }
::selection { background: #bfe8fa; color: var(--navy); }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip-link {
  position: fixed; z-index: 100; top: var(--s3); left: var(--s3);
  transform: translateY(-180%); padding: var(--s3) var(--s5); background: #fff; color: var(--navy);
}
.skip-link:focus { transform: none; }

.fi { display: inline-flex; align-items: center; justify-content: center; line-height: 1; font-size: 20px; flex-shrink: 0; }
.fi::before { display: block; }

/* ---------- shared text blocks ---------- */
.eyebrow {
  display: block;
  font: 700 var(--fs-xs)/1.5 var(--heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--s3);
}
.lead { font-size: var(--fs-lead); line-height: 1.75; }
.stack > * + * { margin-top: var(--s4); }
.stack > h2 + *, .stack > h3 + * { margin-top: var(--s4); }
.stack > * + .button, .stack > * + .button-row { margin-top: var(--s6); }

.section-head { max-width: 760px; margin: 0 auto var(--s7); text-align: center; }
.section-head > p { margin-top: var(--s4); font-size: var(--fs-lead); }
.section-head.align-left { margin-inline: 0; text-align: left; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 52px; padding: var(--s3) var(--s5);
  border: 2px solid transparent; border-radius: 4px;
  font: 700 15px/1.3 var(--heading);
  text-align: center;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.button .fi { font-size: 18px; }
.button-blue { background: var(--blue); color: #fff; }
.button-blue:hover { background: var(--blue-hover); }
.button-navy { background: var(--navy); color: #fff; }
.button-navy:hover { background: var(--navy-2); }
.button-white { background: #fff; color: var(--navy); }
.button-white:hover { background: #dceefa; }
.button-outline { border-color: #a8c1d3; color: var(--navy); background: transparent; }
.button-outline:hover { background: #e0f0fa; border-color: var(--blue); }
.button-ghost { border-color: #ffffff66; color: #fff; }
.button-ghost:hover { background: #ffffff14; border-color: #fff; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.button-row.center { justify-content: center; }
.text-link { display: inline-flex; align-items: center; gap: var(--s2); color: var(--blue); font: 700 var(--fs-small)/1.4 var(--heading); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .fi { font-size: 16px; }

/* ---------- media / image placeholders ---------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 3 / 2; background: var(--pale);
}
.media > img, .media > .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.media.curve-br { border-bottom-right-radius: var(--curve); }
.media.curve-tl { border-top-left-radius: var(--curve); }
.media.ratio-1-1 { aspect-ratio: 1 / 1; }
.media.ratio-4-3 { aspect-ratio: 4 / 3; }
.img-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2);
  padding: var(--s5); text-align: center;
  color: #4f7593;
  background:
    repeating-linear-gradient(135deg, #ffffff00 0 14px, #ffffff80 14px 28px),
    linear-gradient(135deg, #e3f0f8, #cfe3ef);
  border: 2px dashed #9dbfd6;
  border-radius: inherit;
  font: 600 var(--fs-xs)/1.4 var(--heading);
}
.img-placeholder .fi { font-size: 30px; color: var(--blue); }
.img-placeholder strong { color: var(--navy); font-size: 14px; word-break: break-all; }
.img-placeholder small { font: inherit; font-weight: 500; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: relative; z-index: 30; background: #fff; }
.masthead { display: flex; align-items: center; gap: var(--s6); height: 112px; }
.brand { flex-shrink: 0; }
.brand img { width: 220px; height: auto; }
.header-referrals { margin-left: auto; display: flex; align-items: center; gap: var(--s5); }
.header-referrals > a { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-xs); line-height: 1.4; }
.header-referrals .fi { font-size: 28px; color: var(--navy); }
.header-referrals strong { display: block; margin-top: 2px; color: var(--blue); font: 700 14px/1.4 var(--heading); }
.header-referrals a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.header-phone { flex-shrink: 0; padding-left: var(--s5); border-left: 1px solid var(--line); line-height: 1.3; }
.header-phone span { display: block; font-size: var(--fs-xs); margin-bottom: var(--s1); }
.header-phone strong { font: 700 22px/1.3 var(--heading); color: var(--navy); }
.header-phone:hover strong { color: var(--blue); }
.menu-toggle { display: none; }

.navigation-bar { background: var(--navy); color: #fff; }
.navigation-inner { position: relative; display: flex; justify-content: space-between; }
.desktop-nav { display: flex; flex: 1; align-items: stretch; justify-content: space-between; gap: var(--s4); margin-right: var(--s7); }
.nav-group { display: flex; align-items: stretch; }
.nav-toggle, .nav-link {
  display: flex; align-items: center; gap: var(--s2);
  min-height: var(--nav-h); padding: 0; border: 0; background: none;
  color: #fff; font: 600 14px/1.4 var(--heading); white-space: nowrap;
}
.nav-toggle > .fi { font-size: 16px; transition: transform 0.18s; }
.nav-toggle[aria-expanded="true"] > .fi { transform: rotate(180deg); }
.nav-toggle:hover, .nav-toggle[aria-expanded="true"], .nav-toggle.is-active,
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--sky-text); }
.nav-appointment {
  display: flex; align-items: center; justify-content: center; gap: var(--s3);
  padding: 0 var(--s5); background: var(--blue); font: 700 14px/1.4 var(--heading);
}
.nav-appointment:hover { background: var(--blue-hover); }
.nav-appointment .fi { font-size: 18px; }
.menu-scrim { position: fixed; inset: 0; z-index: 20; background: #062d553b; }

.mega-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--s6);
  padding: var(--s6);
  background: #fff; color: var(--ink);
  border-top: 4px solid var(--blue); box-shadow: var(--shadow);
}
.mega-panel.wide { grid-template-columns: 1.6fr 0.8fr; }
.menu-label { margin-bottom: var(--s3); font: 700 12px/1.5 var(--heading); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.mega-links { display: grid; align-content: start; gap: var(--s1); }
.mega-links.two-col { grid-template-columns: 1fr 1fr; column-gap: var(--s4); }
.mega-links.two-col > .menu-label, .mega-links.two-col > .mega-all { grid-column: 1 / -1; }
.mega-links > a { display: flex; align-items: center; gap: var(--s4); padding: var(--s3) var(--s4); border-radius: 4px; }
.mega-links > a:hover { background: var(--pale); }
.mega-links > a > .fi:first-child { width: 28px; font-size: 24px; color: var(--blue); }
.mega-links > a > .fi:last-child { margin-left: auto; font-size: 16px; color: var(--blue); }
.mega-links strong { display: block; font: 700 15px/1.5 var(--heading); color: var(--navy); }
.mega-links small { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }
.mega-links.compact > a { padding: var(--s2) var(--s4); }
.mega-links > .mega-all { margin-top: var(--s2); justify-self: start; }
.mega-feature { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--pale); }
.mega-feature .media { border-radius: 0; aspect-ratio: 16 / 9; }
.mega-feature > div:last-child { padding: var(--s4) var(--s5) var(--s5); }
.mega-feature strong { font: 700 17px/1.5 var(--heading); color: var(--navy); }
.mega-feature span { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); font-size: 14px; color: var(--blue); }
.mega-contact { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s6); border-radius: var(--radius); background: var(--pale); }
.mega-contact > p { font-size: 14px; color: var(--blue); }
.mega-contact h3 { font-size: 26px; line-height: 1.25; }
.mega-contact > a { font: 700 24px/1.3 var(--heading); color: var(--navy); }
.mega-contact > span { font-size: 14px; line-height: 1.7; }

.mobile-nav { display: none; }

/* ==========================================================================
   Heroes
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: #f8fbfd; }
.hero-photo {
  position: absolute; inset: 0 0 0 auto; width: 50%;
  overflow: hidden; border-bottom-left-radius: 210px; border-left: 7px solid var(--sky);
}
.hero-photo::after { content: ""; position: absolute; inset: 0; border-bottom-left-radius: 205px; border-left: 3px solid var(--blue); pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.hero-inner { position: relative; display: flex; align-items: center; min-height: 600px; }
.hero-copy { width: 46%; padding-block: var(--s8); }
.hero h1 { font-size: var(--fs-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; }
.hero h1 span { color: var(--blue); }
.hero-copy > p:not(.eyebrow) { max-width: 500px; margin-top: var(--s5); font-size: var(--fs-lead); }
.hero-copy .button-row { margin-top: var(--s6); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s5); padding: 0; list-style: none; font-size: var(--fs-small); color: var(--navy); }
.hero-points li { display: flex; align-items: center; gap: var(--s2); }
.hero-points .fi { font-size: 16px; color: var(--blue); }

.page-hero { background: var(--pale); }
.page-hero > .container {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: var(--split-gap);
  padding-block: var(--s7) var(--s8);
}
.page-hero-copy > p:not(.eyebrow) { margin-top: var(--s5); font-size: var(--fs-lead); max-width: 620px; }
.page-hero-copy .button-row { margin-top: var(--s6); }
.page-hero .media { border-bottom-left-radius: var(--curve); box-shadow: var(--shadow); }
.page-hero.compact > .container { grid-template-columns: 1fr; padding-block: var(--s7); }
.page-hero.compact .page-hero-copy { max-width: 820px; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s5); font-size: var(--fs-xs); color: var(--muted); }
.breadcrumbs ol { display: contents; list-style: none; }
.breadcrumbs li { display: flex; align-items: center; gap: var(--s2); }
.breadcrumbs .fi { font-size: 12px; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: var(--navy); font-weight: 700; }

.meta-row { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s5); font-size: var(--fs-small); color: var(--muted); }
.meta-row span { display: inline-flex; align-items: center; gap: var(--s2); }
.meta-row .fi { font-size: 16px; color: var(--blue); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section-y); }
/* two plain white sections in a row share one gap instead of doubling it */
.section:not(.bg-pale):not(.bg-navy):not(.bg-mist) + .section:not(.bg-pale):not(.bg-navy):not(.bg-mist) { padding-top: 0; }
.bg-pale { background: var(--pale); }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy); color: #d6e6f2; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .eyebrow { color: var(--sky-text); }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--split-gap); }
.split.reverse > .split-media { order: 2; }
.split-media { position: relative; }
.split-copy > p:not(.eyebrow) { font-size: var(--fs-lead); }
.split-copy > * + * { margin-top: var(--s4); }
.split-copy > h2 + * { margin-top: var(--s5); }
.split-copy > .button, .split-copy > .button-row, .split-copy > .text-link { margin-top: var(--s6); }
.split-copy > .eyebrow + h2 { margin-top: 0; }
.photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s4) var(--s5); background: #062d55ed; color: #fff;
  font: 700 var(--fs-small)/1.5 var(--heading);
}

/* card grids */
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.point { padding-top: var(--s5); border-top: 2px solid var(--line); }
.point > .fi { font-size: 30px; color: var(--blue); margin-bottom: var(--s4); }
.point h3 { margin-bottom: var(--s2); }
.point p { font-size: 16px; line-height: 1.7; }
.bg-navy .point { border-color: #ffffff26; }
.bg-navy .point > .fi { color: var(--sky-text); }

.panel { padding: var(--s6); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.bg-pale .panel { border-color: transparent; }
.panel h3 { margin-bottom: var(--s2); }
.panel p { font-size: 16px; line-height: 1.7; }
.panel > .fi { font-size: 28px; color: var(--blue); margin-bottom: var(--s4); }

/* photo link cards (home) */
.photo-link { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--navy); }
.photo-link .media { border-radius: 0; }
.photo-link img { transition: transform 0.35s; }
.photo-link:hover img { transform: scale(1.04); }
.photo-link > span { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); min-height: 72px; color: #fff; transition: background 0.18s; }
.photo-link strong { font: 700 17px/1.35 var(--heading); }
.photo-link > span > .fi:first-child { font-size: 24px; color: var(--sky-text); }
.photo-link > span > .fi:last-child { margin-left: auto; }
.photo-link:hover > span { background: var(--blue); }

/* topic cards (conditions, related, resources) */
.topic-card {
  display: flex; flex-direction: column; height: 100%;
  padding: var(--s5); border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.topic-card:hover { border-color: var(--blue); box-shadow: 0 10px 24px #072a4814; transform: translateY(-2px); }
.topic-card > .fi { width: 48px; height: 48px; margin-bottom: var(--s4); border-radius: 50%; background: var(--pale); color: var(--blue); font-size: 22px; }
.topic-card h3 { font-size: 19px; }
.topic-card p { margin-top: var(--s2); font-size: 15px; line-height: 1.65; }
.topic-card .text-link { margin-top: auto; padding-top: var(--s4); }

.article-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow 0.18s, border-color 0.18s; }
.article-card:hover { border-color: var(--blue); box-shadow: 0 10px 24px #072a4814; }
.article-card .media { border-radius: 0; }
.article-card > div:last-child { display: flex; flex: 1; flex-direction: column; padding: var(--s5); }
.article-card .eyebrow { margin-bottom: var(--s2); }
.article-card h3 { font-size: 19px; }
.article-card p { margin-top: var(--s2); font-size: 15px; line-height: 1.65; }
.article-card .text-link { margin-top: auto; padding-top: var(--s4); }

/* lists */
.check-list { display: grid; gap: var(--s3); padding: 0; list-style: none; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; column-gap: var(--s6); }
.check-list li { display: flex; align-items: flex-start; gap: var(--s3); font-size: 16px; line-height: 1.6; color: var(--ink); }
.check-list .fi { margin-top: 3px; font-size: 16px; color: var(--blue); }
.list-panel { padding: var(--s6); border-radius: var(--radius); background: #fff; box-shadow: 0 6px 20px #072a480f; }
.list-panel > p { margin-bottom: var(--s5); }

/* numbered steps */
.steps { display: grid; gap: var(--s5); padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; padding-left: 56px; counter-increment: step; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font: 700 16px/1 var(--heading);
}
.steps h3 { font-size: 18px; margin-bottom: var(--s1); }
.steps p { font-size: 16px; line-height: 1.7; }
.steps.horizontal { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s6); }
.steps.horizontal > li { padding: 56px 0 0; }
.bg-navy .steps > li::before { background: var(--sky); color: var(--navy); }

/* callouts */
.callout { display: flex; gap: var(--s4); padding: var(--s5) var(--s6); border-radius: var(--radius); background: var(--pale); border-left: 4px solid var(--blue); }
.callout > .fi { font-size: 26px; color: var(--blue); margin-top: 2px; }
.callout h3 { font-size: 19px; margin-bottom: var(--s2); }
.callout p, .callout li { font-size: 16px; line-height: 1.65; }
.callout ul { margin-top: var(--s3); padding-left: 20px; display: grid; gap: var(--s1); }
.callout.warn { background: var(--warn-bg); border-left-color: var(--warn-line); }
.callout.warn > .fi { color: #b9770e; }

/* call strip (inline CTA) */
.call-strip {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  padding: var(--s6) var(--s7); border-radius: var(--radius); background: var(--navy); color: #d6e6f2;
}
.call-strip h2 { font-size: clamp(22px, 2.2vw, 28px); color: #fff; }
.call-strip p { margin-top: var(--s2); font-size: 16px; }
.call-strip .button-row { flex-shrink: 0; }

/* FAQ */
.faq-section { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: var(--split-gap); align-items: start; }
.faq-intro > * + * { margin-top: var(--s4); }
.faq-intro .text-phone { display: inline-block; margin-top: var(--s5); font: 700 26px/1.3 var(--heading); color: var(--navy); }
.faq-intro .text-phone:hover { color: var(--blue); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s5);
  padding: var(--s5) 0; list-style: none; cursor: pointer;
  font: 700 17px/1.45 var(--heading); color: var(--navy);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--blue); }
.faq-list summary .fi { font-size: 16px; color: var(--blue); transition: transform 0.18s; }
.faq-list details[open] summary .fi { transform: rotate(45deg); }
.faq-answer { padding: 0 var(--s7) var(--s5) 0; font-size: 16px; line-height: 1.75; }
.faq-group + .faq-group { margin-top: var(--s8); }
.faq-group > h2 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: var(--s5); }

/* prose (articles) */
.prose { font-size: 18px; line-height: 1.8; color: var(--ink); }
.prose > * + * { margin-top: var(--s5); }
.prose > h2 { margin-top: var(--s7); font-size: clamp(24px, 2.2vw, 30px); }
.prose > h2 + * { margin-top: var(--s4); }
.prose ul, .prose ol { display: grid; gap: var(--s2); padding-left: 24px; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose .callout { margin-block: var(--s6); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s8); align-items: start; }
.article-layout .media { margin-bottom: var(--s7); }
.sidebar { position: sticky; top: var(--s5); display: grid; gap: var(--s5); }
.side-card { padding: var(--s5); border-radius: var(--radius); background: var(--pale); }
.side-card h3 { font-size: 18px; margin-bottom: var(--s2); }
.side-card p { font-size: 15px; line-height: 1.65; }
.side-card .button { width: 100%; margin-top: var(--s4); }
.side-card.navy { background: var(--navy); color: #d6e6f2; }
.side-card.navy h3 { color: #fff; }
.side-links { display: grid; gap: var(--s1); margin-top: var(--s3); padding: 0; list-style: none; }
.side-links a { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--line); font: 600 15px/1.4 var(--heading); color: var(--navy); }
.side-links a:hover { color: var(--blue); }

/* areas */
.area-card { padding: var(--s5); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.area-card h3 { display: flex; align-items: center; gap: var(--s2); font-size: 19px; margin-bottom: var(--s2); }
.area-card h3 .fi { font-size: 18px; color: var(--blue); }
.area-card p { font-size: 15px; line-height: 1.7; }

/* on-page nav chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: var(--s2) var(--s4); border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 14px/1.3 var(--heading); color: var(--navy); }
.chips a:hover, .chips a[aria-current] { border-color: var(--blue); color: var(--blue); }

/* utilities — vertical rhythm between blocks */
.center-text { text-align: center; margin-inline: auto; }
.after-text { margin-top: var(--s4); }
.after-block-sm { margin-top: var(--s6); }
.after-block { margin-top: var(--s7); }
.after-block-lg { margin-top: var(--s8); }
.split.align-start { align-items: start; }
.disclaimer { padding-top: var(--s5); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.faq-title { margin-bottom: var(--s5); font-size: clamp(24px, 2.2vw, 30px); }
.sticky-intro { position: sticky; top: var(--s5); }
.sticky-intro .chips { margin-bottom: var(--s5); }

/* on-page section nav */
.section-nav { padding-block: var(--s4); border-bottom: 1px solid var(--line); background: #fff; }
.section-nav .chips { gap: var(--s2); }

/* conditions hub rows */
.condition-row { display: grid; grid-template-columns: 220px 1fr; gap: var(--s5); align-items: center; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color 0.18s, box-shadow 0.18s; }
.condition-row:hover { border-color: var(--blue); box-shadow: 0 10px 24px #072a4814; }
.condition-row .media { border-radius: 4px; }
.condition-row .eyebrow { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s1); }
.condition-row .eyebrow .fi { font-size: 14px; }
.condition-row h2 { font-size: 22px; }
.condition-row p { margin-top: var(--s2); font-size: 15px; line-height: 1.6; }
.condition-row .text-link { margin-top: var(--s3); }

/* accident band (inline) */
.accident-band { padding-block: var(--band-y); background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #d6e6f2; }
.accident-band > .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); }
.accident-copy { display: flex; align-items: flex-start; gap: var(--s5); max-width: 760px; }
.accident-copy > .fi { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #ffffff14; color: var(--sky-text); font-size: 30px; }
.accident-copy .eyebrow { color: var(--sky-text); margin-bottom: var(--s2); }
.accident-copy h2 { color: #fff; font-size: clamp(24px, 2.4vw, 32px); }
.accident-copy p:last-child { margin-top: var(--s2); font-size: 16px; }
.accident-band .button-row { flex-shrink: 0; }

/* accident prompt (slide-in) */
.accident-prompt {
  position: fixed; z-index: 35; right: var(--s5); bottom: var(--s5);
  width: min(380px, calc(100% - 2 * var(--s4)));
  padding: var(--s6) var(--s5) var(--s5);
  border-radius: var(--radius); border-top: 4px solid var(--blue);
  background: #fff; box-shadow: 0 20px 48px #072a4838;
  animation: prompt-in 0.35s ease-out;
}
@keyframes prompt-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.accident-close { position: absolute; top: var(--s2); right: var(--s2); display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 4px; background: none; color: var(--muted); }
.accident-close:hover { background: var(--pale); color: var(--navy); }
.accident-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s3); border-radius: 50%; background: var(--pale); color: var(--blue); }
.accident-icon .fi { font-size: 22px; }
.accident-prompt h2 { padding-right: var(--s6); font-size: 21px; line-height: 1.3; }
.accident-prompt p { margin-top: var(--s2); font-size: 15px; line-height: 1.6; }
.accident-prompt .button-row { margin-top: var(--s4); gap: var(--s2) var(--s3); }
.accident-prompt .button { flex: 1; min-height: 46px; padding-inline: var(--s4); font-size: 14px; }
.accident-prompt .text-link { flex-basis: 100%; justify-content: center; }

/* accident intake chat */
/* the question pops up as a centered modal; "Yes" turns the same box into the chat */
.accident-backdrop { position: fixed; inset: 0; z-index: 49; background: #05284a99; animation: fade-in 0.2s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.accident-prompt.is-modal {
  z-index: 50; inset: 0; margin: auto;
  width: min(440px, calc(100% - 2 * var(--s4))); height: fit-content; max-height: calc(100dvh - 2 * var(--s4));
  padding: var(--s7) var(--s6) var(--s6); text-align: center;
  box-shadow: 0 24px 60px #00000059;
  animation: chat-in 0.25s ease-out;
}
.accident-prompt.is-modal .accident-icon { width: 64px; height: 64px; margin: 0 auto var(--s4); }
.accident-prompt.is-modal .accident-icon .fi { font-size: 30px; }
.accident-prompt.is-modal h2 { padding: 0; font-size: clamp(24px, 3vw, 28px); }
.accident-prompt.is-modal p { margin-top: var(--s3); font-size: 16px; }
.accident-prompt.is-modal .button-row { margin-top: var(--s5); }
.accident-prompt.is-modal .button { min-height: 52px; font-size: 15px; }
.accident-prompt.is-chat {
  display: flex; flex-direction: column;
  height: min(680px, calc(100dvh - 2 * var(--s4)));
  padding: 0; overflow: hidden; border-top: 0; text-align: left;
}
@keyframes chat-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.accident-prompt.is-chat .accident-chat { flex: 1; min-height: 0; max-height: none; }
body.chat-open { overflow: hidden; }
.accident-prompt.is-chat .accident-close { z-index: 2; color: #fff; }
.accident-prompt.is-chat .accident-close:hover { background: #ffffff1f; color: #fff; }
.accident-chat { display: flex; flex-direction: column; max-height: min(640px, calc(100dvh - 48px)); }
.chat-head { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s7) var(--s4) var(--s5); background: var(--navy); color: #d6e6f2; }
.chat-head strong { display: block; font: 700 16px/1.3 var(--heading); color: #fff; }
.chat-head small { display: block; font-size: 13px; line-height: 1.4; }
.chat-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; }
.chat-avatar .fi { font-size: 20px; }
.chat-log { display: flex; flex-direction: column; gap: var(--s2); flex: 1; min-height: 120px; overflow-y: auto; padding: var(--s4); background: var(--mist); }
.chat-msg { max-width: 86%; padding: var(--s2) var(--s3); border-radius: 14px; font-size: 15px; line-height: 1.5; animation: prompt-in 0.25s ease-out; }
.chat-msg.bot { align-self: flex-start; border-bottom-left-radius: 4px; background: #fff; color: var(--ink); box-shadow: 0 1px 3px #072a4814; }
.chat-msg.user { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--blue); color: #fff; }
.chat-msg.typing { display: flex; gap: 4px; padding: var(--s3); }
.chat-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9db3c4; animation: typing 1s infinite ease-in-out; }
.chat-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-input { padding: var(--s3) var(--s4) var(--s4); border-top: 1px solid var(--line); background: #fff; }
.chat-input:empty { display: none; }
.chat-options { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chat-option { min-height: 40px; padding: var(--s2) var(--s4); border: 1.5px solid var(--blue); border-radius: 999px; background: #fff; color: var(--blue); font: 600 14px/1.3 var(--heading); }
.chat-option:hover { background: var(--blue); color: #fff; }
.chat-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chat-actions .button { flex: 1; min-height: 44px; font-size: 14px; }
.chat-form-card { flex-shrink: 0; margin-top: var(--s1); padding: var(--s4); border-radius: 12px; background: #fff; box-shadow: 0 1px 3px #072a4814; animation: prompt-in 0.25s ease-out; }
.chat-form { display: grid; gap: var(--s3); }
.chat-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.chat-form label { display: grid; gap: 2px; font: 600 13px/1.4 var(--heading); color: var(--navy); }
.chat-form label small { font-size: inherit; font-weight: 500; color: var(--muted); }
.chat-form input:not([type="checkbox"]), .chat-form textarea {
  width: 100%; min-height: 40px; padding: var(--s2) var(--s3);
  border: 1px solid #b9cbd8; border-radius: 4px; font: 16px/1.4 var(--body); color: var(--ink);
}
.chat-form input:focus, .chat-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.chat-form textarea { resize: vertical; }
.chat-form label.check { display: flex; align-items: flex-start; gap: var(--s2); font: 400 13px/1.5 var(--body); color: var(--text); }
.chat-form label.check input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue); }
.chat-form label.check span { font-size: 13px; }
.chat-form label.check input[name="consent"] + span { font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.chat-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chat-error { padding: var(--s2) var(--s3); border-radius: 4px; background: #fdecec; color: #a12622; font-size: 14px; }
.chat-form .button { width: 100%; }

/* floating launcher (always available) */
.chat-launcher {
  position: fixed; z-index: 34; right: var(--s5); bottom: var(--s5);
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 52px; padding: var(--s1) var(--s5) var(--s1) var(--s1);
  border: 0; border-radius: 999px; background: var(--navy); color: #fff;
  font: 700 15px/1.2 var(--heading); box-shadow: 0 10px 28px #072a4859;
  transition: background 0.18s, transform 0.18s;
}
.chat-launcher:hover { background: var(--blue); transform: translateY(-2px); }
.chat-launcher-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); }
.chat-launcher:hover .chat-launcher-icon { background: var(--navy); }
.chat-launcher-icon .fi { font-size: 20px; }

/* ==========================================================================
   Bands
   ========================================================================== */
.location-band { padding-block: var(--band-y); background: var(--pale); }
.location-band > .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); }
.location-band .location-copy { display: flex; align-items: center; gap: var(--s5); }
.location-band .location-copy > .fi { font-size: 32px; color: var(--blue); }
.location-band h2 { font-size: clamp(22px, 2.1vw, 28px); }
.location-band p { margin-top: var(--s1); font-size: var(--fs-small); }

.appointment-band { padding-block: var(--band-y); background: var(--blue); color: #fff; }
.appointment-band > .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); }
.appointment-band p { font-size: var(--fs-small); }
.appointment-band h2 { margin-top: var(--s1); font-size: clamp(22px, 2.3vw, 30px); color: #fff; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; overflow: hidden; border-radius: var(--radius); background: var(--pale); }
.visit-info { padding: var(--s7); }
.visit-info h2 { font-size: clamp(26px, 2.4vw, 32px); }
.contact-line { display: flex; align-items: flex-start; gap: var(--s4); margin-top: var(--s5); font-size: 16px; line-height: 1.6; color: var(--ink); }
.contact-line > .fi { margin-top: 3px; font-size: 20px; color: var(--blue); }
.contact-line a { font: 700 20px/1.4 var(--heading); color: var(--navy); }
.contact-line a:hover { color: var(--blue); }
.visit-info .button-row { margin-top: var(--s6); }
.location-map { display: flex; flex-direction: column; min-height: 440px; }
.location-map iframe { flex: 1; width: 100%; min-height: 380px; border: 0; }
.location-map > a { display: flex; align-items: center; justify-content: flex-end; gap: var(--s2); padding: var(--s4) var(--s5); background: var(--navy); color: #fff; font: 700 14px/1.4 var(--heading); }
.location-map > a:hover { background: var(--navy-2); }

/* error */
.error-page { min-height: 60vh; display: grid; place-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--mist); }
.footer-main { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: var(--s6); padding-block: var(--s8) var(--s7); }
.footer-brand img { width: 200px; height: auto; }
.footer-brand p { margin-top: var(--s4); font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-main h3 { margin-bottom: var(--s3); font-size: 15px; }
.footer-main ul { display: grid; gap: var(--s1); padding: 0; list-style: none; }
.footer-main li a, .footer-main address { font-size: 14px; line-height: 1.7; }
.footer-main li a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.footer-phone { display: inline-block; margin-top: var(--s3); font: 700 17px/1.4 var(--heading); color: var(--navy); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s3) var(--s5); padding-block: var(--s5); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* mobile call bar */
.call-bar { display: none; }

/* ==========================================================================
   Dialog
   ========================================================================== */
.contact-dialog {
  width: min(520px, 100% - 32px); max-height: calc(100dvh - 40px);
  padding: var(--s7) var(--s6) var(--s6); border: 0; border-radius: var(--radius); color: var(--text);
}
.contact-dialog::backdrop { background: #05284aaa; }
.dialog-close { position: absolute; top: var(--s3); right: var(--s3); display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 4px; background: var(--pale); color: var(--navy); }
.dialog-close .fi { font-size: 15px; }
.contact-dialog h2 { font-size: clamp(26px, 3vw, 34px); }
.contact-dialog > p:not(.eyebrow) { margin-top: var(--s4); font-size: 16px; }
.dialog-call { width: 100%; margin-top: var(--s5); font-size: 18px; }
.contact-dialog address { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: 15px; line-height: 1.7; }
.contact-dialog > .dialog-note { margin-top: var(--s3); font-size: var(--fs-xs); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1600px) {
  :root { --container: 1320px; }
  .hero-inner { min-height: 660px; }
  .hero-photo { border-bottom-left-radius: 250px; }
  .hero-photo::after { border-bottom-left-radius: 245px; }
}

@media (max-width: 1200px) {
  .masthead { height: 100px; gap: var(--s5); }
  .brand img { width: 196px; }
  .header-referrals { gap: var(--s4); }
  .header-referrals .fi { font-size: 24px; }
  .header-referrals > a { font-size: 12px; }
  .header-referrals strong { font-size: 13px; }
  .header-phone { padding-left: var(--s4); }
  .header-phone strong { font-size: 20px; }
  .desktop-nav { margin-right: var(--s5); gap: var(--s3); }
  .nav-toggle, .nav-link, .nav-appointment { font-size: 13px; }
  .nav-appointment { padding-inline: var(--s4); }
  .hero-inner { min-height: 540px; }
  .hero-photo { border-bottom-left-radius: 170px; }
  .hero-photo::after { border-bottom-left-radius: 165px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s6); }
  .footer-brand p { margin-top: 0; max-width: 480px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s7); }
}

@media (max-width: 1060px) and (min-width: 901px) {
  .header-referrals .fi { display: none; }
  .nav-toggle, .nav-link, .nav-appointment { font-size: 12px; }
  .desktop-nav { gap: var(--s2); }
}

@media (max-width: 900px) {
  :root { --nav-h: 52px; }
  body { padding-bottom: 64px; }
  .masthead { height: 84px; gap: var(--s4); }
  .brand img { width: 168px; }
  .header-referrals, .desktop-nav { display: none; }
  .header-phone { margin-left: auto; padding: 0; border: 0; text-align: right; }
  .header-phone span { font-size: 12px; }
  .header-phone strong { font-size: 18px; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--navy); }
  .menu-toggle .fi { font-size: 24px; }
  .navigation-inner { width: 100%; }
  .nav-appointment { width: 100%; min-height: var(--nav-h); background: var(--navy); }
  .nav-appointment:hover { background: var(--navy-2); }
  .menu-scrim { display: none !important; }
  .mobile-nav {
    position: absolute; top: 84px; left: 0; right: 0;
    display: flex; flex-direction: column;
    max-height: calc(100dvh - 84px); overflow: auto;
    padding: var(--s3) var(--gutter) var(--s5);
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .mobile-nav > details, .mobile-nav > a:not(.button) { border-bottom: 1px solid var(--line); }
  .mobile-nav summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s4) 0; list-style: none; cursor: pointer; font: 700 16px/1.4 var(--heading); color: var(--navy); }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary .fi { font-size: 18px; transition: transform 0.18s; }
  .mobile-nav details[open] summary .fi { transform: rotate(180deg); }
  .mobile-nav details > a { display: block; padding: var(--s2) var(--s3); font-size: 15px; color: var(--text); }
  .mobile-nav details > a:last-child { margin-bottom: var(--s3); }
  .mobile-nav > a:not(.button) { padding: var(--s4) 0; font: 700 16px/1.4 var(--heading); color: var(--navy); }
  .mobile-referrals { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); padding: var(--s4) 0; font-size: 14px; font-weight: 700; color: var(--blue); }
  .mobile-nav > .button { margin-top: var(--s2); }

  .hero { display: flex; flex-direction: column; }
  .hero-inner { min-height: 0; }
  .hero-copy { width: 100%; padding-block: var(--s7); }
  .hero-copy > p:not(.eyebrow) { max-width: 600px; }
  .hero-photo { position: relative; order: 1; width: calc(100% - var(--gutter)); height: clamp(280px, 55vw, 440px); margin-left: var(--gutter); border-bottom-left-radius: 120px; }
  .hero-photo::after { border-bottom-left-radius: 115px; }

  .page-hero > .container { grid-template-columns: 1fr; padding-block: var(--s6) var(--s7); }
  .split, .faq-section, .article-layout { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .call-strip { flex-direction: column; align-items: flex-start; padding: var(--s6); }
  .location-band > .container, .appointment-band > .container { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: var(--s4); }

  .call-bar {
    position: fixed; z-index: 25; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s2);
    padding: var(--s2) var(--s3) calc(var(--s2) + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px #072a481a;
  }
  .call-bar .button { min-height: 48px; padding-inline: var(--s3); font-size: 14px; }
  .accident-prompt { right: var(--s4); left: var(--s4); bottom: calc(72px + env(safe-area-inset-bottom)); width: auto; }
  .chat-launcher { right: var(--s4); bottom: calc(76px + env(safe-area-inset-bottom)); min-height: 48px; font-size: 14px; }
  .chat-launcher-icon { width: 40px; height: 40px; }
  .accident-prompt.is-modal { left: 0; right: 0; bottom: 0; width: min(440px, calc(100% - 2 * var(--s4))); padding: var(--s6) var(--s5) var(--s5); }
  .accident-prompt.is-chat { inset: var(--s3); width: auto; height: auto; max-height: none; padding: 0; }
  .accident-band > .container { flex-direction: column; align-items: flex-start; }
  .sticky-intro { position: static; }
  .condition-row { grid-template-columns: 160px 1fr; }
}

@media (max-width: 640px) {
  :root { --fs-body: 16px; }
  .masthead { height: 76px; }
  .mobile-nav { top: 76px; max-height: calc(100dvh - 76px); }
  .brand img { width: 148px; }
  .header-phone span { display: none; }
  .header-phone strong { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .check-list.cols-2 { grid-template-columns: 1fr; }
  .hero-photo { border-bottom-left-radius: 90px; }
  .hero-photo::after { border-bottom-left-radius: 85px; }
  .hero-copy .button-row .button, .page-hero-copy .button-row .button, .call-strip .button-row .button { flex: 1 1 100%; }
  .page-hero-copy .button-row, .call-strip .button-row { width: 100%; }
  .section-head { margin-bottom: var(--s6); }
  .list-panel, .panel, .visit-info { padding: var(--s5); }
  .callout { flex-direction: column; gap: var(--s3); padding: var(--s5); }
  .faq-answer { padding-right: 0; }
  .faq-list summary { font-size: 16px; padding: var(--s4) 0; }
  .prose { font-size: 17px; }
  .footer-main { grid-template-columns: 1fr; gap: var(--s5); }
  .location-band .location-copy { align-items: flex-start; }
  .location-band .button, .appointment-band .button { width: 100%; }
  .accident-copy { flex-direction: column; gap: var(--s4); }
  .accident-copy > .fi { width: 52px; height: 52px; font-size: 24px; }
  .accident-band .button-row, .accident-band .button { width: 100%; }
  .condition-row { grid-template-columns: 1fr; }
  .chat-form-row { grid-template-columns: 1fr; }
  .section-nav { overflow-x: auto; }
  .section-nav .chips { flex-wrap: nowrap; }
  .section-nav .chips a { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Language switcher + Korean typography
   ========================================================================== */
.lang-switch { display: flex; flex-shrink: 0; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a { padding: 4px 12px; border-radius: 999px; font: 700 13px/1.4 var(--heading); color: var(--muted); }
.lang-switch a:hover { color: var(--navy); }
.lang-switch a[aria-current] { background: var(--navy); color: #fff; }
.mobile-lang { display: none; }

/* Hangul: Noto Sans KR for everything, no mid-word breaks, slightly tighter tracking than Latin headings */
html[lang="ko"] { --heading: "Noto Sans KR", Montserrat, Arial, sans-serif; --body: "Noto Sans KR", Arial, sans-serif; }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: anywhere; line-height: 1.8; }
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3 { letter-spacing: -0.02em; line-height: 1.3; }
html[lang="ko"] .hero h1 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.22; }
html[lang="ko"] .eyebrow { letter-spacing: 0.02em; }
html[lang="ko"] .nav-toggle, html[lang="ko"] .nav-link { font-size: 15px; }

@media (max-width: 1200px) {
  .lang-switch a { padding: 3px 9px; font-size: 12px; }
}
@media (max-width: 900px) {
  .masthead .lang-switch { display: none; }
  .mobile-lang { display: flex; gap: var(--s2); padding: var(--s4) 0 var(--s2); }
  .mobile-lang a { flex: 1; padding: var(--s2); border: 1px solid var(--line); border-radius: 4px; text-align: center; font: 700 15px/1.4 var(--heading); color: var(--navy); }
  .mobile-lang a[aria-current] { border-color: var(--navy); background: var(--navy); color: #fff; }
}

/* ==========================================================================
   Live chat panel (bottom-right, opens by itself once per visit; typed conversation)
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.live-chat {
  position: fixed; z-index: 45; right: var(--s5); bottom: var(--s5);
  display: flex; flex-direction: column;
  width: min(380px, calc(100% - 2 * var(--s4))); height: min(600px, calc(100dvh - 2 * var(--s5)));
  overflow: hidden; border: 1px solid #c9d3da; border-radius: 4px; background: #fff;
  box-shadow: 0 18px 50px #072a4840, 0 2px 6px #072a481f;
  animation: prompt-in 0.3s ease-out;
}
.live-chat[hidden] { display: none; }
.live-chat-head { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: var(--s2) var(--s3) var(--s2) var(--s5); background: var(--blue); color: #fff; }
.live-chat-head strong { display: flex; align-items: center; gap: var(--s2); font: 600 20px/1.2 var(--heading); }
.online-dot { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px #ffffff40; }
.live-chat .accident-close { position: static; width: 40px; height: 40px; color: #ffffffcc; }
.live-chat .accident-close:hover { background: #ffffff26; color: #fff; }
.live-chat .accident-close .fi { font-size: 20px; }
.live-chat-notice { padding: var(--s2) var(--s3); border-bottom: 1px solid #d5d9dc; background: #f7f7f7; font-size: 12.5px; line-height: 1.45; color: #333; }
.live-chat .accident-chat { display: flex; flex: 1; flex-direction: column; min-height: 0; max-height: none; }
.live-chat .chat-log { gap: var(--s4); padding: var(--s4) var(--s3) var(--s4) var(--s3); background: #fff; }
.chat-row { display: grid; align-items: end; gap: 2px var(--s2); animation: prompt-in 0.25s ease-out; }
.chat-row.bot { grid-template-columns: 40px minmax(0, 1fr) auto; }
.chat-row.user { justify-items: end; }
.chat-face { grid-row: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; object-fit: cover; }
.chat-time { align-self: start; padding-top: 4px; font-size: 12px; color: #999; white-space: nowrap; }
.live-chat .chat-msg { max-width: 100%; padding: var(--s2) var(--s3); font-size: 15.5px; line-height: 1.45; color: #111; animation: none; }
.live-chat .chat-msg.bot { justify-self: start; border: 1px solid #bfbfbf; border-radius: 12px; background: #f5f5f5; box-shadow: none; }
.live-chat .chat-msg.user { max-width: 85%; border: 1px solid #79c3e4; border-radius: 12px 12px 0 12px; background: #a6e1fa; color: #111; }
.live-chat .chat-msg.typing { padding: var(--s3); }
.live-chat .chat-msg a { color: var(--blue); font-weight: 700; }
.chat-quick { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s2); padding: var(--s2) var(--s3); border-top: 1px solid #ececec; background: #fff; }
.chat-quick[hidden] { display: none; }
.chat-chip { min-height: 36px; padding: 6px 14px; border: 1px solid #79c3e4; border-radius: 999px; background: #eaf7fd; color: var(--navy); font: 600 14px/1.2 var(--heading); cursor: pointer; }
.chat-chip:hover, .chat-chip:focus-visible { border-color: var(--blue); background: var(--blue); color: #fff; }
.chat-compose { display: flex; gap: var(--s3); padding: var(--s3); border-top: 1px solid #d5d9dc; background: #f0f0f0; }
.chat-compose textarea { flex: 1; min-width: 0; height: 64px; padding: var(--s2) var(--s3); border: 1px solid #c7c7c7; border-radius: 6px; background: #fff; font: 16px/1.4 var(--body); color: var(--ink); resize: none; }
.chat-compose textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.chat-send { flex-shrink: 0; width: 88px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font: 600 17px/1 var(--heading); cursor: pointer; }
.chat-send:hover { background: var(--navy); }
body.chat-open { overflow: auto; }

@media (max-width: 900px) {
  .live-chat { right: var(--s3); left: var(--s3); bottom: calc(68px + env(safe-area-inset-bottom)); width: auto; height: min(600px, calc(100dvh - 88px - env(safe-area-inset-bottom))); }
}
@media (max-width: 640px) {
  .live-chat { top: var(--s3); height: auto; }
  .live-chat-head strong { font-size: 18px; }
  .chat-compose textarea { height: 52px; }
  .chat-send { width: 76px; }
  body.chat-open { overflow: hidden; }
}
