:root {
  --ink: #17233f;
  --ink-soft: #41506c;
  --blue: #1d2b61;
  --red: #a31f2a;
  --red-dark: #7d151f;
  --cream: #f7f2eb;
  --mist: #edf3f4;
  --white: #ffffff;
  --line: #d7dee2;
  --success: #28624c;
  --shadow: 0 22px 55px rgba(21, 34, 61, 0.12);
  --radius: 24px;
  --content: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { color: var(--red); }

button,
input,
select { font: inherit; }

img { max-width: 100%; height: auto; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.dev-banner {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.55rem 1rem;
  color: var(--white);
  background: var(--red-dark);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-align: center;
}

.clinic-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem max(1.25rem, calc((100vw - var(--content)) / 2));
  color: #e8edf5;
  background: var(--ink);
  font-size: 0.82rem;
}

.clinic-bar a { color: var(--white); font-weight: 750; text-decoration: none; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(190px, 280px) 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1rem max(1.25rem, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid rgba(23, 35, 63, 0.09);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.brand { display: block; }
.brand img { display: block; width: min(100%, 280px); }

.site-header nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.4rem;
}

.site-header nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.header-call,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.25rem;
  border: 1px solid var(--red);
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.header-call:hover,
.button:hover {
  color: var(--white);
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--blue);
  background: transparent;
  border-color: rgba(29, 43, 97, 0.45);
}

.button.secondary:hover { color: var(--white); background: var(--blue); border-color: var(--blue); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(163, 31, 42, 0.1), transparent 32%),
    linear-gradient(135deg, #faf7f3 0%, #ffffff 58%, #edf3f4 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -11rem;
  bottom: -17rem;
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(29, 43, 97, 0.08);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  width: min(var(--content), calc(100% - 2.5rem));
  min-height: 650px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.eyebrow,
.kicker {
  margin: 0 0 0.8rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.55rem, 5vw, 4.7rem);
  letter-spacing: -0.04em;
}

h2 { margin-bottom: 1rem; font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -0.025em; }
h3 { margin-bottom: 0.7rem; font-size: 1.35rem; }

.hero-copy > p:not(.eyebrow) {
  max-width: 670px;
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  max-width: 620px;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.hero-note::before {
  content: "i";
  display: inline-grid;
  flex: 0 0 1.45rem;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font: 800 0.78rem/1 Georgia, serif;
}

.journey-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(29, 43, 97, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.journey-card ol { display: grid; gap: 1rem; margin: 1.4rem 0 0; padding: 0; counter-reset: path; list-style: none; }
.journey-card li { position: relative; padding-left: 3.1rem; color: var(--ink-soft); }
.journey-card li::before {
  counter-increment: path;
  content: counter(path);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  color: var(--blue);
  background: var(--cream);
  font-weight: 850;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--content), calc(100% - 2.5rem));
  margin: -1.4rem auto 0;
  border-radius: 18px;
  background: var(--blue);
  box-shadow: var(--shadow);
}

.trust-strip div { padding: 1.35rem 1.5rem; border-right: 1px solid rgba(255, 255, 255, 0.16); }
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong,
.trust-strip span { display: block; }
.trust-strip strong { color: var(--white); font-size: 0.93rem; }
.trust-strip span { margin-top: 0.25rem; color: rgba(255, 255, 255, 0.72); font-size: 0.78rem; }

.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) max(1.25rem, calc((100vw - var(--content)) / 2));
}

.section.mist { background: var(--mist); }
.section.cream { background: var(--cream); }
.section.navy { color: var(--white); background: var(--blue); }
.section.navy h2,
.section.navy h3 { color: var(--white); }
.section.navy .eyebrow { color: #f2a3aa; }

.section-heading { max-width: 780px; margin-bottom: 2.6rem; }
.section-heading > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; }
.section.navy .section-heading > p:not(.eyebrow) { color: rgba(255,255,255,0.76); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}
.card p { margin-bottom: 0; color: var(--ink-soft); }
.card .number { display: block; margin-bottom: 1rem; color: var(--red); font-weight: 850; }

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.55fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.prose { max-width: 760px; }
.prose p,
.prose li { color: var(--ink-soft); }
.prose h3 { margin-top: 2rem; }
.prose li + li { margin-top: 0.55rem; }

.doctor-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.doctor-card picture,
.doctor-card img { display: block; width: 100%; }
.doctor-card img { aspect-ratio: 1 / 1.03; object-fit: cover; object-position: center 20%; }
.doctor-card .doctor-copy { padding: 1.5rem; }
.doctor-card .doctor-copy p { color: var(--ink-soft); }
.doctor-card .doctor-copy a { font-weight: 750; }

.guide-shell {
  width: min(940px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.guide-intro,
.guide-step,
.guide-result { padding: clamp(1.5rem, 5vw, 3rem); }

.guide-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.guide-progress {
  height: 6px;
  margin: 1.2rem 0 2rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebee;
}

.guide-progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width 180ms ease;
}

.guide-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1.5rem 0; }
.guide-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 84px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  cursor: pointer;
}
.guide-option:hover { border-color: var(--blue); }
.guide-option[aria-pressed="true"] { border-color: var(--blue); background: #eef1fa; box-shadow: inset 0 0 0 1px var(--blue); }
.guide-option::before {
  content: "";
  flex: 0 0 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.18rem;
  border: 2px solid #98a5b6;
  border-radius: 50%;
}
.guide-option[aria-pressed="true"]::before { border-color: var(--blue); box-shadow: inset 0 0 0 3px var(--white); background: var(--blue); }

.guide-actions { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1.6rem; }
.guide-actions .button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.text-button { border: 0; color: var(--blue); background: transparent; font-weight: 750; cursor: pointer; }
.text-button:hover { color: var(--red); }

.guide-result { display: grid; gap: 1rem; }
.guide-result ul { margin: 0; padding-left: 1.25rem; color: var(--ink-soft); }
.guide-result li + li { margin-top: 0.5rem; }
.guide-result .result-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.share-status { min-height: 1.5rem; margin: 0; color: var(--success); font-weight: 700; }

[hidden] { display: none !important; }

.boundaries { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.boundary {
  padding: 1.8rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.1);
}
.boundary p,
.boundary li { color: rgba(255,255,255,0.78); }
.boundary li + li { margin-top: 0.5rem; }

.faq-list { display: grid; gap: 0.75rem; max-width: 920px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.faq-list summary { padding: 1.15rem 3rem 1.15rem 1.2rem; color: var(--blue); font-weight: 800; cursor: pointer; }
.faq-list details p { margin: 0; padding: 0 1.2rem 1.25rem; color: var(--ink-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-copy p { color: var(--ink-soft); }
.contact-paths { display: grid; gap: 0.8rem; margin-top: 1.5rem; }
.contact-path { padding: 1rem 1.1rem; border-left: 4px solid var(--red); background: var(--cream); }
.contact-path strong,
.contact-path span { display: block; }
.contact-path span { color: var(--ink-soft); font-size: 0.9rem; }

.callback-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.callback-form label { display: grid; gap: 0.4rem; color: var(--ink); font-size: 0.88rem; font-weight: 750; }
.callback-form input,
.callback-form select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #aab5c0;
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
}
.callback-form .full { grid-column: 1 / -1; }
.callback-form .consent { display: flex; flex-direction: row; align-items: flex-start; gap: 0.7rem; font-weight: 500; }
.callback-form .consent input { flex: 0 0 1.1rem; width: 1.1rem; min-height: 1.1rem; margin-top: 0.25rem; }
.form-note { margin: 0; color: var(--ink-soft); font-size: 0.83rem; }
.honeypot { position: absolute !important; left: -10000px !important; }

footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: 3rem max(1.25rem, calc((100vw - var(--content)) / 2));
  color: rgba(255,255,255,0.78);
  background: #10182d;
}
footer strong,
footer span { display: block; }
footer strong { color: var(--white); }
footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.9rem 1.2rem; }
footer a { color: var(--white); }
footer p { grid-column: 1 / -1; max-width: 920px; margin: 0; font-size: 0.8rem; }

:focus-visible { outline: 3px solid #e3a216; outline-offset: 3px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero-grid,
  .content-layout,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .journey-card { max-width: 660px; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip div:nth-child(2) { border-right: 0; }
  .trust-strip div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.16); }
  .cards { grid-template-columns: 1fr; }
  .doctor-card { max-width: 520px; }
}

@media (max-width: 680px) {
  .dev-banner { flex-direction: column; gap: 0; }
  .clinic-bar { align-items: center; font-size: 0.72rem; }
  .clinic-bar span { max-width: 210px; }
  .site-header { padding-top: 0.8rem; padding-bottom: 0.8rem; }
  .brand img { width: 190px; }
  .header-call { min-height: 42px; padding: 0.65rem 0.8rem; font-size: 0.8rem; }
  .hero-grid { width: min(100% - 2rem, var(--content)); padding: 3.8rem 0 4.5rem; }
  h1 { font-size: clamp(2.45rem, 12vw, 3.35rem); }
  h2 { font-size: clamp(1.9rem, 9vw, 2.5rem); }
  .trust-strip { width: calc(100% - 2rem); grid-template-columns: 1fr; }
  .trust-strip div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.16); }
  .trust-strip div:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.16); }
  .section { padding-left: 1rem; padding-right: 1rem; }
  .guide-options,
  .boundaries,
  .callback-form,
  footer { grid-template-columns: 1fr; }
  .guide-actions { align-items: stretch; flex-direction: column-reverse; }
  .guide-actions .button,
  .guide-actions .text-button { width: 100%; min-height: 46px; }
  .callback-form .full,
  footer p { grid-column: auto; }
  footer nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
