/* ==========================================================================
   Med First Clinic — design system (v2: modern sans, photo-led)
   Palette: white first, blue/navy second, red for action only
   ========================================================================== */

:root {
  --blue: #164B80;
  --blue-dark: #113B66;
  --red: #D62839;
  --red-dark: #B51F2E;
  --red-on-navy: #FF7C89;
  --navy: #102C4A;
  --white: #FFFFFF;
  --mist: #F4F7FA;
  --sky: #E9F1F9;
  --gray: #5B6676;
  --text: #344054;
  --line: #E1E7EE;
  --control: #B6C0CC;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(52px, 6.5vw, 96px);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: -0.005em; line-height: 1.35; }

:focus-visible { outline: 3px solid rgba(22, 75, 128, .55); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .section--navy :focus-visible { outline-color: rgba(255, 255, 255, .85); }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  padding: 12px 18px; background: var(--navy); color: #fff; border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
.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; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--sky { background: var(--sky); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .8); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--flush-top { padding-top: 0; }
.rule-top { border-top: 1px solid var(--line); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }

.section-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 72px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--stack { display: block; max-width: 760px; }
.section-head--stack .lead { margin-top: 16px; }

.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-size: .84rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
.section--navy .eyebrow, .on-dark .eyebrow { color: rgba(255, 255, 255, .86); }
.section--navy .eyebrow::before, .on-dark .eyebrow::before { background: var(--red-on-navy); }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.22rem); line-height: 1.55; color: var(--text); }
.section--navy .lead, .on-dark .lead { color: rgba(255, 255, 255, .88); }
.muted { color: var(--gray); }
.section--navy .muted, .on-dark .muted { color: rgba(255, 255, 255, .68); }
.small { font-size: .92rem; line-height: 1.55; }
.accent-blue { color: var(--blue); }
.measure { max-width: 60ch; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 13px 28px;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1.2 var(--font); letter-spacing: -0.01em; text-decoration: none; text-align: center; text-wrap: balance;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn--lg { min-height: 62px; padding: 16px 34px; font-size: 1.08rem; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 12px 24px -14px rgba(214, 40, 57, .75); }
.btn--red:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--sky); color: var(--navy); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--sm { min-height: 48px; padding: 10px 22px; font-size: .98rem; box-shadow: none; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 30px; }

.i-arrow {
  display: inline-block; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
a:hover > .i-arrow, .btn:hover > .i-arrow { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue); text-decoration: none; }
.link-arrow:hover { color: var(--red); }
.section--navy .link-arrow, .on-dark .link-arrow { color: #fff; }

/* ---------- Lists ---------- */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 36px; font-weight: 500; color: var(--navy); }
.checks li::before { content: ""; position: absolute; left: 0; top: .12em; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); }
.checks li::after { content: ""; position: absolute; left: 9px; top: calc(.12em + 6px); width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks--red li::before { background: var(--red); }
.checks--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.section--navy .checks li, .on-dark .checks li { color: #fff; }
.section--navy .checks li::before, .on-dark .checks li::before { background: #fff; }
.section--navy .checks li::after, .on-dark .checks li::after { border-color: var(--navy); }

.dashes { list-style: none; display: grid; gap: 9px; }
.dashes li { position: relative; padding-left: 22px; }
.dashes li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* ---------- Media ---------- */
.media { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--sky); aspect-ratio: var(--ar, 4 / 3); }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
/* Photo with an attached caption bar (replaces the old floating card) */
.media-fig { margin: 0; }
.media-fig .media { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.media-fig figcaption { padding: 16px 22px 18px; border-radius: 0 0 var(--r-lg) var(--r-lg); background: var(--navy); color: rgba(255, 255, 255, .86); font-size: .98rem; line-height: 1.45; }
.media-fig figcaption strong { color: #fff; }

/* ---------- Surfaces ---------- */
.card { padding: clamp(22px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }

/* ---------- Notice ---------- */
.notice { padding: 20px 24px; background: var(--mist); border-left: 4px solid var(--blue); border-radius: var(--r-sm); font-size: .98rem; line-height: 1.6; }
.notice--urgent { border-left-color: var(--red); background: #FDF3F4; }
.notice strong { color: var(--navy); }
.notice__title { display: block; margin-bottom: 4px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.notice--urgent .notice__title { color: var(--red-dark); }
.section--mist .notice:not(.notice--urgent), .section--sky .notice:not(.notice--urgent) { background: #fff; }
.section .form-card .notice:not(.notice--urgent), .section .card .notice:not(.notice--urgent) { background: var(--mist); }
.section--navy .notice, .on-dark .notice { background: rgba(255, 255, 255, .08); border-left-color: var(--red-on-navy); color: rgba(255, 255, 255, .88); }
.section--navy .notice strong, .section--navy .notice__title, .on-dark .notice strong, .on-dark .notice__title { color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 12px 30px -22px rgba(16, 44, 74, .5); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.wordmark { display: inline-flex; align-items: baseline; gap: .15em; font: 800 1.9rem/1 var(--font); letter-spacing: -0.055em; text-decoration: none; white-space: nowrap; }
.wordmark .wm-med { color: var(--blue); }
.wordmark .wm-first { color: var(--red); }
.wordmark .wm-clinic { color: var(--gray); font-weight: 500; letter-spacing: -0.04em; }
.wordmark--light .wm-med { color: #fff; }
.wordmark--light .wm-first { color: var(--red-on-navy); }
.wordmark--light .wm-clinic { color: rgba(255, 255, 255, .72); }

.site-nav ul { display: flex; gap: clamp(16px, 1.8vw, 30px); list-style: none; }
.site-nav a { white-space: nowrap; }
.site-nav a { position: relative; display: block; padding: 10px 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav a:hover { color: var(--blue); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--blue); }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; position: relative; width: 48px; height: 48px; padding: 0; background: var(--mist); border: 0; border-radius: 50%; cursor: pointer; }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, top .25s ease; }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(16, 44, 74, .45); }
.mobile-menu__inner { padding-block: 6px 26px; }
.mobile-menu ul { list-style: none; margin-bottom: 20px; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; font-size: 1.22rem; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); text-decoration: none; }
.mobile-menu li a[aria-current="page"] { padding-left: 16px; color: var(--blue); box-shadow: inset 4px 0 0 var(--red); }
.mobile-menu__meta { margin-top: 16px; font-size: .92rem; color: var(--gray); }

/* ==========================================================================
   Home hero — copy left, full-bleed photograph right
   ========================================================================== */
.hero { display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); min-height: clamp(540px, 44vw, 680px); background: var(--sky); }
.hero__copy { align-self: center; padding: clamp(40px, 5vw, 72px) clamp(28px, 4.5vw, 64px) clamp(40px, 5vw, 72px) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.hero h1 { font-size: clamp(2.2rem, 3.7vw, 3rem); line-height: 1.05; letter-spacing: -0.042em; }
.hero h1 span { display: block; text-wrap: balance; }
.hero__lead { margin-top: 22px; max-width: 33em; font-size: clamp(1.1rem, 1.4vw, 1.22rem); line-height: 1.55; }
.hero__sub { margin-top: 12px; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.hero__media { position: relative; margin: 0; min-height: 320px; background: var(--mist); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 42%; }

.highlights { background: var(--navy); color: #fff; }
.highlights ul { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.highlights li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px 12px; font-size: .98rem; font-weight: 700; letter-spacing: -0.005em; text-align: center; }
.highlights li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red-on-navy); }
.highlights li + li { border-left: 1px solid rgba(255, 255, 255, .16); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { padding: 26px 26px 28px; background: var(--mist); border-radius: var(--r-lg); }
.section--mist .step, .section--sky .step { background: #fff; }
.step__num { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1rem; font-weight: 800; letter-spacing: 0; }
.step h3 { margin-bottom: 8px; }
.section--navy .step { background: rgba(255, 255, 255, .07); }
.section--navy .step__num { background: #fff; color: var(--navy); }
.section--navy .step p { color: rgba(255, 255, 255, .8); }

/* ---------- Home services: one lead feature, two wide features, three supporting ---------- */
.svc-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.svc-card { position: relative; grid-column: span 4; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.svc-card:hover { color: inherit; transform: translateY(-3px); border-color: transparent; box-shadow: 0 26px 44px -30px rgba(16, 44, 74, .55); }
.svc-card__img { position: relative; display: block; flex: none; overflow: hidden; aspect-ratio: 3 / 2; background: var(--sky); }
.svc-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform .6s ease; }
.svc-card:hover .svc-card__img img { transform: scale(1.04); }
.svc-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.svc-card__title { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; color: var(--navy); }
.svc-card__text { display: block; margin-top: 8px; font-size: .98rem; line-height: 1.55; color: var(--text); }
.svc-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; font-size: .96rem; font-weight: 700; color: var(--blue); }
.svc-card:hover .svc-card__more { color: var(--red); }
.svc-card:hover .i-arrow { transform: translateX(4px); }

.svc-card--lead { grid-column: 1 / span 6; grid-row: span 2; background: var(--navy); border-color: var(--navy); }
.svc-card--lead .svc-card__img { flex: 1; aspect-ratio: auto; min-height: 300px; }
.svc-card--lead .svc-card__body { flex: none; padding: 28px 30px 30px; }
.svc-card--lead .svc-card__title { font-size: clamp(1.5rem, 2.2vw, 1.85rem); color: #fff; }
.svc-card--lead .svc-card__text { font-size: 1.05rem; color: rgba(255, 255, 255, .82); }
.svc-card--lead .svc-card__more, .svc-card--lead:hover .svc-card__more { color: #fff; }

.svc-card--row { grid-column: 7 / span 6; flex-direction: row; }
.svc-card--row .svc-card__img { flex: 0 0 44%; aspect-ratio: auto; min-height: 220px; }
.svc-card--row .svc-card__body { justify-content: center; }
.svc-card--row .svc-card__more { margin-top: 0; }
.svc-card--row .svc-card__title { font-size: 1.4rem; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; list-style: none; }
.benefits li { padding: 26px 26px 28px; background: var(--mist); border-radius: var(--r-lg); }
.section--mist .benefits li, .section--sky .benefits li { background: #fff; }
.benefits li::before { content: ""; display: block; width: 34px; height: 5px; margin-bottom: 18px; border-radius: 5px; background: var(--blue); }
.benefits h3 { margin-bottom: 8px; }
.benefits--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- CTA ---------- */
.section.cta { padding-block: clamp(36px, 5vw, 72px); background: #fff; }
.cta .cta__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; width: calc(100% - var(--gutter) * 2); max-width: var(--wrap); padding: clamp(32px, 5.5vw, 72px); border-radius: 28px; background: var(--navy); color: rgba(255, 255, 255, .84); }
.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.04em; }
.cta p { font-size: 1.12rem; max-width: 30em; }
.cta .btn { margin-top: 24px; }

.cta-duo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.cta-duo__lead { display: flex; align-items: center; background: var(--red); padding: clamp(48px, 7vw, 96px) var(--gutter); padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.cta-duo__lead h2 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.3rem); letter-spacing: -0.04em; }
.cta-duo__lead h2 span { display: block; }
.cta-duo__body { display: flex; flex-direction: column; justify-content: center; background: var(--navy); color: rgba(255, 255, 255, .86); padding: clamp(40px, 7vw, 96px) var(--gutter); padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding-left: clamp(28px, 5vw, 72px); }
.cta-duo__body p { font-size: 1.15rem; max-width: 28em; }
.cta-duo__body .btn { margin-top: 26px; align-self: flex-start; }

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero { padding-block: clamp(36px, 5vw, 72px) clamp(44px, 6vw, 80px); background: var(--sky); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero__grid--copy-wide { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); }
.page-hero .lead { margin-top: 20px; max-width: 36em; }
.page-hero p + p { margin-top: 12px; }
.page-hero--simple { padding-bottom: clamp(36px, 4.5vw, 56px); background: var(--navy); color: rgba(255, 255, 255, .84); }
.page-hero--simple .wrap > * { max-width: 780px; }
.page-hero--simple h1 { color: #fff; }
.page-hero--simple .eyebrow { color: rgba(255, 255, 255, .86); }
.page-hero--simple .eyebrow::before { background: var(--red-on-navy); }
.page-hero--simple .lead { color: rgba(255, 255, 255, .88); }
.page-hero--simple .muted { color: rgba(255, 255, 255, .7); }
.page-hero--simple .breadcrumb, .page-hero--simple .breadcrumb a { color: rgba(255, 255, 255, .72); }
.page-hero--simple .breadcrumb a:hover { color: #fff; }
.page-hero--simple .breadcrumb li + li::before { color: rgba(255, 255, 255, .4); }
.page-hero--simple .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .55); }
.page-hero--simple .btn--outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.page-hero--simple :focus-visible { outline-color: rgba(255, 255, 255, .85); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; list-style: none; font-size: .9rem; font-weight: 500; color: var(--gray); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--control); }
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; }
.hero-points li { position: relative; padding: 8px 14px 8px 38px; border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); white-space: nowrap; }
.hero-points li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--blue); }
.hero-points li::after { content: ""; position: absolute; left: 18px; top: 50%; width: 6px; height: 10px; margin-top: -7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- Definition rows ---------- */
.rows { margin: 0; counter-reset: row; }
.rows > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); counter-increment: row; }
.rows > div:first-child { padding-top: 0; }
.rows > div:last-child { padding-bottom: 0; border-bottom: 0; }
.rows > div::before { content: counter(row, decimal-leading-zero); grid-column: 1; grid-row: 1 / span 2; padding-top: 3px; font-size: .86rem; font-weight: 800; color: var(--red); }
.rows dt { grid-column: 2; font-size: 1.15rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; color: var(--navy); }
.rows dd { grid-column: 2; margin: 0; }
.section--navy .rows > div { border-bottom-color: rgba(255, 255, 255, .16); }
.section--navy .rows dt { color: #fff; }
.section--navy .rows > div::before { color: var(--red-on-navy); }
.section--navy .rows dd { color: rgba(255, 255, 255, .8); }

/* ---------- Symptom pills ---------- */
.tagline-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; }
.tagline-row li { padding: 10px 20px; border: 2px solid var(--line); border-radius: 999px; font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.section--navy .tagline-row li { border-color: rgba(255, 255, 255, .32); color: #fff; }

/* ---------- Patient journey ---------- */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-block: clamp(24px, 3.5vw, 40px); list-style: none; }
.journey li { position: relative; padding: 22px 22px 24px; background: var(--sky); border-radius: var(--r-lg); }
.journey li:not(:last-child)::after {
  content: ""; position: absolute; z-index: 1; right: -25px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23164B80' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: 0 0 0 1px var(--line);
}
.journey__dot { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .95rem; font-weight: 800; }
.journey li:last-child .journey__dot { background: var(--red); }
.journey__label { display: block; font-size: 1.12rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; color: var(--navy); }
.journey__text { display: block; margin-top: 6px; font-size: .95rem; line-height: 1.5; color: var(--text); }

/* ---------- Supporting cells ---------- */
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.cells li { padding: 24px 24px 26px; background: var(--mist); border-radius: var(--r-lg); }
.section--mist .cells li, .section--sky .cells li { background: #fff; }
.cells h3 { margin-bottom: 8px; font-size: 1.2rem; }
.cells p { font-size: .98rem; }

/* ---------- Link cards ---------- */
.link-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.link-cards a { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; height: 100%; min-height: 148px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; font-size: 1.15rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; color: var(--navy); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.link-cards a:hover { border-color: var(--blue); transform: translateY(-2px); }
.link-cards .i-arrow { color: var(--blue); width: 22px; height: 22px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { padding-inline: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.faq details[open] { border-color: var(--blue); }
.faq summary { position: relative; display: block; padding: 20px 44px 20px 0; font-size: 1.12rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.015em; color: var(--navy); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 18px; height: 2.5px; margin-top: -1px; border-radius: 2px; background: var(--blue); transition: transform .25s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--blue); }
.faq__a { padding: 0 0 22px; max-width: 62ch; }

/* ---------- Services page ---------- */
.svc-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.svc-index { position: sticky; top: calc(var(--header-h) + 28px); font-size: .96rem; }
.svc-index h2 { margin-bottom: 12px; font-size: .82rem; font-weight: 700; line-height: 1.4; letter-spacing: .07em; text-transform: uppercase; color: var(--gray); }
.svc-index ol { list-style: none; border-top: 1px solid var(--line); }
.svc-index a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--navy); text-decoration: none; }
.svc-index a:hover { color: var(--red); }
.svc-group + .svc-group { margin-top: clamp(44px, 6vw, 72px); }
.svc-group__label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); font-size: .84rem; font-weight: 700; line-height: 1.4; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); }
.svc-group__label span { font-size: .9rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--gray); }
.svc-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(24px, 4vw, 48px); padding: clamp(26px, 3.5vw, 40px) 0; border-bottom: 1px solid var(--line); }
.svc-item h3 { font-size: clamp(1.4rem, 2.1vw, 1.75rem); font-weight: 800; letter-spacing: -0.03em; }
.svc-item__tag { display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: 999px; background: var(--sky); font-size: .8rem; font-weight: 700; color: var(--blue); }
.svc-item .dashes { margin-top: 16px; }
.svc-item .link-arrow { margin-top: 20px; }
.svc-band { margin-top: clamp(28px, 4vw, 44px); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-card { padding: clamp(22px, 4vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.form-card > h2 { font-size: clamp(1.5rem, 2.3vw, 1.9rem); margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; margin-top: 26px; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .field > legend { display: block; margin-bottom: 8px; padding: 0; font-size: .96rem; font-weight: 700; color: var(--navy); }
.field > label.check { display: grid; margin-bottom: 0; font-size: .97rem; font-weight: 400; color: var(--text); }
.req { color: var(--red); }
.opt { font-weight: 400; color: var(--gray); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  display: block; width: 100%; min-height: 54px; padding: 13px 15px;
  font: 500 1rem/1.4 var(--font); color: var(--navy);
  background: #fff; border: 1.5px solid var(--control); border-radius: var(--r-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23164B80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gray); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 75, 128, .2); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(214, 40, 57, .2); }
.field-hint { margin: 7px 0 0; font-size: .88rem; line-height: 1.45; color: var(--gray); }
.field-error { margin: 7px 0 0; font-size: .9rem; font-weight: 700; line-height: 1.4; color: var(--red-dark); }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 20px 10px 14px; border: 1.5px solid var(--control); border-radius: 999px; font-size: .98rem; font-weight: 600; color: var(--navy); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.choice:hover { border-color: var(--gray); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--sky); }
.choice:has(input:focus-visible) { outline: 3px solid rgba(22, 75, 128, .55); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .97rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.check strong { color: var(--navy); font-weight: 700; }

.form-foot { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-foot .btn { min-width: 230px; }
.form-disclosure { margin-top: 16px; font-size: .88rem; line-height: 1.55; color: var(--gray); }
.form-pending { margin-top: 20px; }
.form-status { margin-top: 22px; padding: 18px 22px; border-radius: var(--r-sm); border-left: 4px solid var(--blue); background: var(--mist); font-size: .98rem; line-height: 1.55; }
.form-status:focus { outline: none; }
.form-status strong { display: block; margin-bottom: 4px; color: var(--navy); }
.form-status--error { border-left-color: var(--red); background: #FDF3F4; }
.form-status--error strong { color: var(--red-dark); }
.form-status--success { border-left-color: #1B7F4B; background: #F1F8F4; }
.form-status--success strong { color: #14603A; }
.form-status ul { margin: 8px 0 0 18px; }

.aside-block + .aside-block { margin-top: 30px; padding-top: 30px; border-top: 1px solid #D5DEE8; }
.aside-block h2, .aside-block h3 { font-size: 1.3rem; margin-bottom: 12px; }
.mini-steps { list-style: none; counter-reset: mini; display: grid; gap: 14px; }
.mini-steps li { position: relative; padding-left: 44px; counter-increment: mini; }
.mini-steps li::before { content: counter(mini); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .86rem; font-weight: 800; }
.mini-steps strong { display: block; color: var(--navy); }

.contact-list { list-style: none; border-top: 2px solid var(--navy); }
.contact-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid #D5DEE8; }
.contact-list .k { padding-top: 4px; font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gray); }
.contact-list .v { color: var(--navy); font-weight: 600; }
.placeholder-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border: 1px dashed var(--control); border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gray); vertical-align: middle; }
.site-footer .placeholder-tag { border-color: rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .62); }

.portal { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(26px, 4vw, 48px); border: 2px dashed var(--control); border-radius: var(--r-lg); background: #fff; }
.portal__status { display: inline-block; margin-bottom: 14px; padding: 5px 13px; border-radius: 999px; background: var(--sky); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin: 44px 0 14px; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em 1.2em; }
.prose li { margin-bottom: 6px; }
.prose .notice { margin-bottom: 36px; }
.prose .notice + h2 { margin-top: 0; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .74); font-size: .97rem; }
.site-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 36px clamp(24px, 3vw, 48px); padding-block: clamp(48px, 6vw, 76px) clamp(36px, 4.5vw, 56px); }
.site-footer__brand p { margin-top: 18px; max-width: 30ch; line-height: 1.6; }
.site-footer__contact { margin-top: 20px; list-style: none; display: grid; gap: 6px; }
.site-footer h2 { margin-bottom: 16px; font-size: .8rem; font-weight: 700; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .58); }
.site-footer nav ul { list-style: none; display: grid; gap: 11px; }
.site-footer nav a { font-weight: 500; }
.site-footer__legal { padding-block: 26px 34px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .86rem; line-height: 1.6; color: rgba(255, 255, 255, .64); }
.site-footer__legal p { max-width: 96ch; margin-bottom: 10px; }
.site-footer__legal .copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 18px; max-width: none; }

/* ==========================================================================
   Motion
   ========================================================================== */
.js.anim .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js.anim .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .site-footer__top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
  .benefits--4, .steps--4, .link-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet landscape: the hero buttons no longer fit side by side, so let them stack at equal width */
@media (min-width: 961px) and (max-width: 1200px) {
  .hero .btn-row .btn { flex: 1 1 auto; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__copy { padding: 36px var(--gutter) 34px; }
  .hero__media { min-height: 0; aspect-ratio: 16 / 10; }
  .split, .split--wide-left, .split--wide-right, .page-hero__grid, .section-head, .cta .cta__grid, .form-layout, .svc-page, .legal-layout, .portal { grid-template-columns: minmax(0, 1fr); }
  .split, .page-hero__grid { gap: 28px; }
  .section-head { align-items: start; gap: 14px; }
  .svc-index { display: none; }
  .svc-card--lead, .svc-card--row { grid-column: 1 / -1; }
  .svc-card--lead .svc-card__img { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .cta-duo { grid-template-columns: minmax(0, 1fr); }
  .cta-duo__lead, .cta-duo__body { padding-inline: var(--gutter); }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey li:nth-child(2)::after { display: none; }
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-item { grid-template-columns: minmax(0, 1fr); }
  .order-first-mobile { order: -1; }
}

@media (max-width: 640px) {
  .wordmark { font-size: 1.55rem; }
  .steps, .steps--4, .benefits, .benefits--4, .checks--2col, .form-grid, .cells, .link-cards, .journey { grid-template-columns: minmax(0, 1fr); }
  .steps, .benefits, .cells, .journey { gap: 12px; }
  .step, .benefits li, .cells li { padding: 22px 22px 24px; }
  .step { display: grid; grid-template-columns: 50px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .step__num { grid-row: 1 / span 2; margin-bottom: 0; }
  .step h3 { padding-top: 2px; }
  .hero__media { aspect-ratio: 5 / 4; }
  .highlights ul { grid-template-columns: minmax(0, 1fr); padding-block: 8px; }
  .highlights li { justify-content: flex-start; padding: 9px 2px; text-align: left; }
  .highlights li + li { border-left: 0; }
  .btn-row .btn { flex: 1 1 100%; }
  .btn--lg { min-height: 56px; padding: 14px 24px; font-size: 1.03rem; }
  .cta .cta__grid { padding: 30px 24px 32px; }
  .cta .btn, .cta-duo__body .btn { display: flex; width: 100%; align-self: stretch; }
  .svc-bento { gap: 12px; }
  .svc-card { grid-column: 1 / -1; flex-direction: row; }
  .svc-card .svc-card__img { flex: 0 0 36%; aspect-ratio: auto; min-height: 150px; }
  .svc-card .svc-card__body { justify-content: center; padding: 18px 18px 20px; }
  .svc-card .svc-card__title { font-size: 1.14rem; }
  .svc-card .svc-card__text { font-size: .95rem; }
  .svc-card .svc-card__more { display: none; }
  .svc-card--lead, .svc-card--row { flex-direction: column; }
  .svc-card--row .svc-card__img { flex: none; aspect-ratio: 2 / 1; min-height: 0; }
  .svc-card--row .svc-card__title { font-size: 1.25rem; }
  .svc-card--lead .svc-card__img { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .svc-card--lead .svc-card__body { padding: 22px 22px 24px; }
  .svc-card--lead .svc-card__title { font-size: 1.45rem; }
  .svc-card--lead .svc-card__text { font-size: 1rem; }
  .svc-card--lead .svc-card__more { display: inline-flex; }
  .journey li { padding-left: 76px; }
  .journey li::after { display: none !important; }
  .journey__dot { position: absolute; left: 22px; top: 22px; margin: 0; }
  .link-cards a { min-height: 0; flex-direction: row; align-items: center; padding: 20px 22px; }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .faq details { padding-inline: 18px; }
  .form-foot .btn { width: 100%; }
  .media__bar { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; }
}

@media (max-width: 520px) {
  .hide-xs { display: none; }
  .wordmark { font-size: 1.42rem; }
  .site-header__bar { gap: 10px; }
  .site-header__actions .btn--sm { min-height: 44px; padding-inline: 14px; font-size: .94rem; }
  .nav-toggle { width: 44px; height: 44px; }
  .nav-toggle span { left: 12px; right: 12px; }
  .nav-toggle span:nth-child(1) { top: 16px; }
  .nav-toggle span:nth-child(2) { top: 25px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1), .nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; }
}

@media (max-width: 380px) {
  .cta .btn .i-arrow, .cta-duo__body .btn .i-arrow { display: none; }
  .btn--lg { padding-inline: 14px; font-size: .97rem; }
  .wordmark { font-size: 1.26rem; }
  .site-header__bar { gap: 8px; }
  .site-header__actions { gap: 8px; }
  .site-header__actions .btn--sm { padding-inline: 12px; font-size: .9rem; }
}

@media (max-width: 340px) {
  .btn, .btn--lg { padding-inline: 14px; font-size: .95rem; }
  .wordmark { font-size: 1.12rem; }
  .site-header__actions .btn--sm { padding-inline: 10px; font-size: .86rem; }
}
