:root {
  --ink: #101b1a;
  --muted: #596d68;
  --paper: #f8fbfa;
  --soft: #fff2f2;
  --white: #ffffff;
  --line: #dce8e5;
  --red: #e60000;
  --red-dark: #ba0000;
  --red-soft: #ffe6e6;
  --teal: #0f766e;
  --teal-dark: #073f3a;
  --green-black: #061f1c;
  --shadow: 0 22px 60px rgba(16, 27, 26, .12);
  --shadow-soft: 0 12px 34px rgba(16, 27, 26, .06);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #ff6b6b, var(--teal));
  pointer-events: none;
}

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

section[id], footer[id] { scroll-margin-top: 90px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(248, 251, 250, .93);
  border-bottom: 1px solid rgba(220, 232, 229, .9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 270px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.brand-text { display: grid; gap: 2px; }
.brand-text strong { line-height: 1.08; font-size: 18px; letter-spacing: -.02em; }
.brand-text span { color: var(--muted); font-size: 13px; }

.site-nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; }
.site-nav a:hover { color: var(--red-dark); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--red); color: white; box-shadow: 0 14px 30px rgba(230, 0, 0, .2); }
.button.primary:hover { background: var(--red-dark); box-shadow: 0 18px 36px rgba(186, 0, 0, .24); }
.button.secondary { background: white; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { border-color: rgba(230, 0, 0, .35); color: var(--red-dark); }
.button.ghost { background: transparent; color: var(--teal-dark); border-color: var(--line); }
.button.small { min-height: 40px; padding: 0 15px; font-size: 14px; }

.section-shell { padding: clamp(70px, 8vw, 120px) clamp(20px, 5vw, 72px); }

.hero {
  min-height: 84vh;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, .97fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  background:
    radial-gradient(circle at 82% 14%, rgba(230, 0, 0, .12), transparent 31%),
    radial-gradient(circle at 12% 86%, rgba(15, 118, 110, .12), transparent 34%),
    linear-gradient(135deg, #fff, #f8fbfa 56%, #fff4f4);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 950;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 890px;
  margin-bottom: 24px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: .93;
  letter-spacing: -.058em;
}
h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: .98;
  letter-spacing: -.045em;
}
h3 { margin-bottom: 8px; font-size: 21px; letter-spacing: -.02em; }

.hero-lead, .section-heading p, .request-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.hero-lead { max-width: 650px; font-size: clamp(18px, 2.1vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 22px; }
.fine-print { color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 700px; }

.hero-panel {
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(220, 232, 229, .95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-logo-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  margin-bottom: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 242, 242, .78));
  border: 1px solid #f0d8d8;
  border-radius: var(--radius);
}
.hero-logo-card img { width: min(100%, 430px); height: auto; }
.hero-logo-card p { margin: 0; color: var(--muted); line-height: 1.45; }

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.panel-header span { color: var(--muted); font-weight: 850; }
.panel-header strong { color: var(--red); font-size: 56px; letter-spacing: -.05em; }
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 20px 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.metric-grid div { background: var(--white); padding: 18px; }
.metric-grid strong { display: block; font-size: 34px; letter-spacing: -.04em; }
.metric-grid span { color: var(--muted); font-size: 13px; font-weight: 850; }
.routing-card {
  display: flex;
  gap: 12px;
  padding: 18px;
  background: #f5fbf9;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
}
.routing-card p { margin: 6px 0 0; color: var(--muted); line-height: 1.45; }
.status-dot { flex: 0 0 11px; height: 11px; margin-top: 5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 7px rgba(230, 0, 0, .1); }

.section-heading { max-width: 860px; margin-bottom: 32px; }
.section-heading.narrow { max-width: 700px; }
.directory-section { background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
label { display: grid; gap: 7px; }
label span { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 12px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230, 0, 0, .1); }

.result-line { margin: 18px 0; color: var(--muted); font-weight: 850; }
.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.provider-card {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.provider-card:hover { border-color: #f1b3b3; box-shadow: 0 18px 42px rgba(16, 27, 26, .08); }
.provider-card header { margin-bottom: 14px; }
.provider-card .specialty { color: var(--red-dark); font-size: 13px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.provider-card p { color: var(--muted); line-height: 1.5; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 16px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 850;
}
.card-meta { display: grid; gap: 8px; margin-top: auto; color: var(--muted); font-size: 14px; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.card-links .button { min-height: 38px; font-size: 13px; padding: 0 13px; }
.empty-state { padding: 34px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); }

.process-section { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps article { background: white; padding: 26px; }
.steps span { display: block; margin-bottom: 28px; color: var(--red); font-size: 20px; font-weight: 950; }
.steps p { color: var(--muted); line-height: 1.55; }

.request-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  background:
    radial-gradient(circle at 90% 18%, rgba(230, 0, 0, .22), transparent 24%),
    var(--green-black);
  color: white;
}
.request-section p { color: rgba(255, 255, 255, .75); max-width: 650px; }
.request-section .eyebrow { color: #ffb5b5; }
.request-section .button.primary { background: white; color: var(--red-dark); box-shadow: none; }
.request-section .button.primary:hover { color: white; background: var(--red); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: #050f0e;
  color: rgba(255, 255, 255, .78);
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand img { flex: 0 0 46px; width: 46px; height: 46px; object-fit: contain; }
.site-footer strong { color: white; }
.site-footer p { margin: 8px 0 0; max-width: 520px; line-height: 1.5; }
.footer-contact { display: grid; gap: 8px; text-align: right; align-content: start; }
.footer-contact a:hover { color: white; }

.request-modal {
  width: min(760px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.request-modal::backdrop { background: rgba(5, 15, 14, .62); backdrop-filter: blur(4px); }
.request-form { display: grid; gap: 16px; padding: 24px; }
.modal-top { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.modal-top h2 { margin: 0 0 8px; font-size: 36px; }
.modal-top p:last-child { margin-bottom: 0; color: var(--muted); }
.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 26px;
  line-height: 1;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.acknowledgement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.acknowledgement input { width: auto; margin-top: 3px; }
.trap-field { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.form-status { min-height: 22px; color: var(--muted); font-weight: 850; }
.form-status[data-state="error"] { color: var(--red-dark); }
.form-status[data-state="success"] { color: var(--teal-dark); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 1050px) {
  .hero, .filter-panel { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header { align-items: center; padding: 12px 16px; }
  .site-nav { display: none; }
  .brand { min-width: 0; gap: 9px; }
  .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-text strong { font-size: 15px; }
  .brand-text span { display: none; }
  .button.small { min-height: 38px; padding: 0 12px; font-size: 13px; }
  .hero { min-height: auto; }
  .hero-logo-card img { width: min(100%, 330px); }
  .metric-grid, .provider-grid, .steps, .form-grid { grid-template-columns: 1fr; }
  .request-section, .site-footer { display: grid; }
  .footer-contact { text-align: left; }
  h1 { font-size: clamp(42px, 13vw, 70px); }
}

@media (max-width: 470px) {
  .site-header > .button.small { display: none; }
  .section-shell { padding-left: 16px; padding-right: 16px; }
  .hero-panel, .filter-panel, .provider-card, .request-form { padding: 16px; }
  .modal-top h2 { font-size: 30px; }
}
