:root {
  --navy: #102c42;
  --navy-band: #1a3d56;
  --navy-deep: #123049;
  --ink: #17344a;
  --body: #3e5163;
  --muted: #5a6e80;
  --line: #e3e8ee;
  --line-strong: #d5dee6;
  --cream: #f6f5f1;
  --mist: #eef3f6;
  --paper: #ffffff;
  --sand: #f4f2ec;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --container: 1360px;
  --header: 78px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--paper);
  font-size: 16.5px;
  line-height: 1.6;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--navy-band);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  left: 16px;
  top: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
  background: var(--navy);
  color: #fff;
  z-index: 50;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, .serif {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 4.6vw, 56px);
  line-height: 1.08;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.15;
}

h3 { margin: 0; color: var(--ink); }

p { margin: 0 0 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eef1f4;
}

.header-inner {
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  justify-self: start;
}

.logo svg { width: 24px; height: 36px; color: var(--ink); flex: none; }

.logo-text strong,
.logo-text small {
  display: block;
  font-style: normal;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 14px;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: var(--ink);
}

.logo-text small {
  margin-top: 2px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  font-weight: 650;
  color: #6a7e90;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  text-decoration: none;
  color: #24384a;
  font-size: 14.5px;
  font-weight: 520;
}

.site-nav a[aria-current="page"],
.site-nav a:hover { color: var(--navy); }

.header-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  font-size: 14.5px;
  white-space: nowrap;
}

.header-phone svg,
.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex: none;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-sm { min-height: 38px; padding: 0 14px; font-size: 11.5px; }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #0c2436; }

.btn-ghost { background: #fff; border-color: #cfd6dd; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-soft { background: var(--sand); border-color: #e5e0d6; color: var(--ink); }
.btn-soft:hover { background: #ebe6dc; }

.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f3f6f8; }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); }

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: #f4f7f8;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 249, 249, 0.97) 0%, rgba(248, 249, 249, 0.9) 30%, rgba(248, 249, 249, 0.28) 48%, rgba(248, 249, 249, 0) 60%),
    url("../images/hero.jpg") 72% center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  padding: 72px 0;
}

.hero h1 { max-width: 640px; font-size: clamp(42px, 4vw, 52px); }

.lede {
  max-width: 46ch;
  font-size: 18px;
  color: #31485c;
}

.trust {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 26px 0 28px;
  padding: 0;
}

.trust li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 150px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.trust svg {
  width: 48px;
  height: 48px;
  flex: none;
  margin-top: 1px;
  color: var(--navy-band);
}

.hero-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  color: #4e6274;
  font-size: 14.5px;
}

.section { padding: 78px 0; }
.band-cream { background: var(--cream); }
.band-mist { background: var(--mist); }
.band-white { background: #fff; }

.attorney-grid,
.doctor-grid {
  display: grid;
  align-items: center;
}

.attorney-grid {
  grid-template-columns: 0.92fr 1.15fr 0.9fr;
  gap: 40px;
}

.frame {
  margin: 0;
}

.frame img,
.doctor-photo {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 8px;
}

.doctor-photo { object-position: center 32%; height: 340px; }

.checklist {
  border-left: 1px solid #e1e4de;
  padding-left: 32px;
}

.checklist ul,
.plain-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.checklist li,
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 13px 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
}

.checklist svg,
.check-list svg { margin-top: 2px; color: var(--navy-band); }

.services-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 1.15fr;
}

.services-grid > * { padding: 4px 36px; }
.services-grid > *:first-child { padding-left: 0; }
.services-grid > *:not(:first-child) { border-left: 1px solid var(--line); }
.services-grid > *:last-child { padding-right: 0; }

.check-list { list-style: none; margin: 12px 0 0; padding: 0; }
.check-list li { margin: 9px 0; font-weight: 520; }

.accident {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  margin: 0 0 22px;
}

.accident:last-child { margin-bottom: 0; }

.icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f2f5f7;
  display: grid;
  place-items: center;
  color: var(--navy-band);
}

.accident h3 {
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.accident p { margin: 0; font-size: 14.5px; line-height: 1.45; }

.why-grid {
  display: grid;
  grid-template-columns: 280px repeat(6, 1fr);
  align-items: center;
}

.why-intro { padding-right: 18px; }
.why-intro h2 { font-size: clamp(28px, 2.4vw, 36px); }
.why-intro p { margin: 0; font-size: 15.5px; }

.why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 12px;
  padding: 4px 12px;
  border-left: 1px solid #d7e0e7;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.why-item svg {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0;
  flex: none;
  color: var(--navy-band);
}

.why-item span {
  display: block;
  width: 100%;
  text-align: center;
}

.signs {
  display: grid;
  grid-template-columns: minmax(280px, 34vw) minmax(0, 1fr);
  background: var(--navy-band);
  color: #fff;
  min-height: 360px;
}

.signs-photo { min-height: 340px; }
.signs-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.signs-main {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: center;
  padding: 48px max(40px, calc((100vw - var(--container)) / 2)) 48px 48px;
}

.signs .eyebrow { color: rgba(255, 255, 255, 0.72); }
.signs h2 { color: #fff; margin-bottom: 10px; }
.signs p { color: rgba(255, 255, 255, 0.9); max-width: 62ch; }

.symptoms {
  display: flex;
  gap: 36px;
  margin-top: 8px;
}

.symptoms ul {
  margin: 0;
  padding-left: 18px;
}

.symptoms li { margin: 3px 0; }

.signs-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 250px;
}

.doctor-grid {
  grid-template-columns: 300px 1fr;
  gap: 48px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin: 6px 0 22px;
  padding: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}

.chips li { display: flex; align-items: center; gap: 8px; }
.chips svg { color: var(--navy-band); }

.refer {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(400px, 1fr);
  align-items: stretch;
  background: #f4f7f9;
  padding: 0;
}

.refer-story {
  --panel: min(420px, 48%);
  position: relative;
  min-height: 640px;
  border-radius: 0;
  overflow: hidden;
  background: #10283a;
}

.refer-story img {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: calc(100% - var(--panel));
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
}

.refer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--panel);
  background: #15364e;
  color: #fff;
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.refer-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f7f9;
  padding: 64px 40px;
}

.refer-panel .eyebrow { color: rgba(255, 255, 255, 0.7); }
.refer-panel h2 { color: #fff; font-size: clamp(34px, 3vw, 44px); }
.refer-kicker { margin: 0 0 18px; font-weight: 650; color: rgba(255, 255, 255, 0.92); }
.refer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.refer-actions p { margin: 0; }
.refer-actions a:not(.btn) { color: #fff; font-weight: 700; }
.fine { margin: 16px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.78); }

.refer-form,
.form-success {
  background: #fff;
  border: 1px solid #e5ebf0;
  border-radius: 10px;
  padding: 26px 26px 22px;
  box-shadow: 0 10px 30px rgba(18, 48, 73, 0.04);
}

.refer .refer-form,
.refer .form-success {
  width: 100%;
  margin-inline: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.refer .fields {
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.refer .field input,
.refer .field select {
  min-height: 48px;
}

.refer .form-note {
  margin: 0 0 18px;
  max-width: none;
}

.refer-form h2,
.form-success h2 {
  font-size: 30px;
  margin-bottom: 18px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #31485c;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d5dee6;
  background: #fff;
  border-radius: 4px;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--ink);
}

.field textarea { min-height: 96px; resize: vertical; }
.field-2 { grid-column: span 2; }
.field-4 { grid-column: 1 / -1; }

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.form-note {
  margin: 0;
  align-self: stretch;
  font-size: 12.5px;
  color: #6c7e8d;
  line-height: 1.45;
}

.form-error {
  width: 100%;
  margin: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
  color: #8a3b32;
}

.form-error[hidden] { display: none; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success { display: flex; flex-direction: column; justify-content: center; }
.form-success[hidden],
.refer-form[hidden] { display: none; }

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.86);
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  column-gap: 28px;
  row-gap: 20px;
  align-items: start;
}
.footer-grid > .logo { grid-column: 1; }
.footer-contact { grid-column: 2; justify-self: end; }
.footer-links { grid-column: 3; }
.footer-legal { grid-column: 5; }

.site-footer .logo-text strong { color: #fff; }
.site-footer .logo-text small,
.site-footer .logo svg { color: rgba(255, 255, 255, 0.82); }

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-contact a,
.footer-links a,
.footer-legal a { text-decoration: none; }
.footer-contact a:hover,
.footer-links a:hover,
.footer-legal a:hover { text-decoration: underline; }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14.5px;
  line-height: 1.75;
}

.footer-links {
  flex-wrap: nowrap;
  justify-content: center;
  white-space: nowrap;
}
.footer-legal {
  flex-direction: column;
  align-items: flex-start;
  justify-self: end;
  gap: 8px;
  line-height: 1.45;
}
.footer-legal a::before {
  content: "•";
  margin-right: 10px;
  opacity: 0.7;
}
.footer-links a,
.footer-legal a { white-space: nowrap; }
.dot { opacity: 0.7; padding: 0 8px; }

.page-hero {
  background:
    linear-gradient(180deg, #f7f6f2 0%, #fff 100%);
  padding: 72px 0 36px;
  border-bottom: 1px solid #f0eeea;
}

.page-hero h1 { max-width: 16em; }
.page-hero .lede { max-width: 58ch; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pair { grid-template-columns: 1fr 1fr; }

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}

.info-card h3 {
  font-family: var(--sans);
  font-size: 18px;
  margin-bottom: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 28px;
  align-items: start;
}

.contact-card {
  background: var(--navy-deep);
  color: #fff;
  border-radius: 10px;
  padding: 28px;
}

.contact-card h2,
.contact-card .eyebrow { color: #fff; }
.contact-card a { color: #fff; }
.contact-card .btn-white { color: var(--ink); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a { font-weight: 700; text-decoration: none; }

.draft {
  margin: 0 0 18px;
  padding: 10px 12px;
  background: #f6f5f1;
  border-left: 3px solid var(--navy);
  color: var(--ink);
  font-size: 14.5px;
}

.prose { max-width: 72ch; }
.prose h2 { font-size: 30px; margin-top: 8px; }
.prose ul { margin-top: 0; }

@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; grid-column: 3; grid-row: 1; justify-self: end; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .logo { grid-column: 1; grid-row: 1; }
  .header-cta { grid-column: 2; grid-row: 1; order: 0; gap: 10px; justify-self: end; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(16, 44, 66, 0.08);
    padding: 8px 8px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 16px;
  }
}

@media (max-width: 1100px) {
  .why-grid { grid-template-columns: 1fr 1fr 1fr; gap: 18px 0; }
  .why-intro { grid-column: 1 / -1; padding-bottom: 8px; }
  .why-item:nth-child(3n + 2) { border-left: 0; }
  .attorney-grid,
  .services-grid,
  .doctor-grid,
  .refer-grid,
  .split,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr 1fr; }
  .services-grid > *:last-child { grid-column: 1 / -1; border-left: 0; padding: 28px 0 0; border-top: 1px solid var(--line); margin-top: 20px; }
  .checklist { border-left: 0; padding-left: 0; grid-column: 1 / -1; display: grid; grid-template-columns: 180px 1fr; gap: 12px 24px; align-items: start; }
  .footer-grid > .logo,
  .footer-contact,
  .footer-links,
  .footer-legal { grid-column: auto; justify-self: start; }
  .footer-links { flex-wrap: wrap; white-space: normal; }
  .signs { grid-template-columns: minmax(220px, 34vw) minmax(0, 1fr); }
  .signs-actions { min-width: 0; }
  .signs-main { gap: 24px; padding: 40px 28px; }
}

@media (max-width: 860px) {
  .trust svg { width: 32px; height: 32px; }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-media {
    position: relative;
    height: 280px;
    background:
      linear-gradient(180deg, rgba(247, 248, 248, 0) 40%, #f7f8f8 100%),
      url("../images/hero.jpg") center 30% / cover no-repeat;
  }
  .hero .container { display: contents; }
  .hero-content { padding: 8px 24px 48px; }
  .trust { flex-direction: column; gap: 12px; }
  .trust li { max-width: none; }
  .attorney-grid,
  .services-grid,
  .doctor-grid,
  .refer-grid,
  .split,
  .card-grid,
  .contact-grid,
  .footer-grid,
  .fields,
  .refer .fields,
  .signs { grid-template-columns: 1fr; }
  .services-grid > * { padding: 22px 0; border-top: 1px solid var(--line); }
  .services-grid > *:first-child { border-top: 0; padding-top: 0; }
  .services-grid > *:not(:first-child) { border-left: 0; }
  .services-grid > *:last-child { margin-top: 0; }
  .why-grid { grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 22px; align-items: start; }
  .why-item { border-left: 0; border-top: 0; padding: 4px 4px 0; }
  .pair { grid-template-columns: 1fr 1fr; }
  .refer { grid-template-columns: 1fr; }
  .refer-story {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .refer-story img {
    position: relative;
    width: 100%;
    height: 240px;
    object-position: center 38%;
  }
  .refer-panel {
    position: relative;
    inset: auto;
    width: auto;
    padding: 32px 24px 36px;
  }
  .refer-form-wrap { padding: 32px 20px 48px; }
  .signs-main,
  .signs-actions { display: block; }
  .signs-main { padding: 32px 24px 40px; }
  .signs-actions .btn { width: 100%; margin-top: 10px; }
  .symptoms { flex-direction: column; gap: 0; }
  .checklist { grid-template-columns: 1fr; }
  .field-2,
  .field-4 { grid-column: auto; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .container { width: min(var(--container), calc(100% - 32px)); }
}

@media (max-width: 640px) {
  h1,
  .hero h1 { font-size: 34px; }
  h2,
  .prose h2,
  .refer-form h2,
  .form-success h2 { font-size: 28px; }
  .refer-panel h2 { font-size: 32px; }
  .section { padding: 48px 0; }
  .page-hero { padding: 40px 0 24px; }
  .header-cta .btn { display: none; }
  .logo { min-width: 0; }
  .logo-text strong { font-size: 12.5px; letter-spacing: 0.05em; }
  .logo-text small { font-size: 9px; letter-spacing: 0.08em; }
  .hero-content { padding: 4px 20px 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn,
  .stack-actions .btn,
  .refer-actions .btn { width: 100%; }
  .pair { grid-template-columns: 1fr; }
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-links .dot { display: none; }
  .footer-links a,
  .footer-legal a { white-space: normal; }
  .field input,
  .field select,
  .field textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
