/* Injury Relief Hub — production styles */
:root {
  --cream: #FBF7F2;
  --cream-deep: #F3EBE3;
  --white: #FFFFFF;
  --teal: #2A9D8F;
  --teal-dark: #1F7A6F;
  --teal-soft: #E6F5F2;
  --coral: #E07A5F;
  --coral-dark: #C9654B;
  --coral-soft: #FBECE7;
  --ink: #243333;
  --muted: #5C6B6B;
  --line: #E5DDD4;
  --shadow: 0 8px 28px rgba(36, 51, 51, 0.08);
  --shadow-lg: 0 16px 48px rgba(36, 51, 51, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --focus: 0 0 0 3px rgba(42, 157, 143, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--coral-dark); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--teal); color: #fff;
  padding: .75rem 1rem; z-index: 1000; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: 4rem 0; }
.section--alt { background: var(--white); }
.section__eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: .5rem;
}
.section__title {
  font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.25; margin: 0 0 .75rem; color: var(--ink);
}
.section__lead { color: var(--muted); max-width: 40rem; margin: 0 0 2rem; font-size: 1.05rem; }
.section__head { text-align: center; margin-bottom: 2.5rem; }
.section__head .section__lead { margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 242, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0; min-height: 4rem;
}
.logo { display: flex; align-items: center; text-decoration: none; color: inherit; }
.logo img, .logo svg { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: .25rem 1.25rem; flex-wrap: wrap; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .35rem .2rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-dark); }
.nav-toggle {
  display: none; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .5rem .65rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1rem; box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .75rem .5rem; border-bottom: 1px solid var(--cream-deep); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  padding: .9rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(224, 122, 95, 0.28);
}
.btn--primary:hover { background: var(--coral-dark); color: #fff; }
.btn--secondary {
  background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(42, 157, 143, 0.25);
}
.btn--secondary:hover { background: var(--teal-dark); color: #fff; }
.btn--ghost {
  background: transparent; color: var(--teal-dark); border-color: var(--teal);
}
.btn--ghost:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn--block { width: 100%; }

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(42,157,143,.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 5% 90%, rgba(224,122,95,.1), transparent 50%),
    var(--cream);
}
.hero__grid {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.1rem, 4.5vw, 3.15rem);
  line-height: 1.15; margin: 0 0 1rem; color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--teal-dark); }
.hero__sub { font-size: 1.125rem; color: var(--muted); margin: 0 0 1.75rem; max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero-card {
  background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.hero-card h2 { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 .35rem; }
.hero-card p { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }
.trust-bar {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center;
  padding: 1rem 0 0; color: var(--muted); font-size: .9rem; font-weight: 600;
}
.trust-bar span { display: inline-flex; align-items: center; gap: .4rem; }
.trust-bar svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal); }

/* Cards / grids */
.card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.4rem; box-shadow: var(--shadow); height: 100%;
}
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-dark); margin-bottom: .9rem;
}
.card__icon--coral { background: var(--coral-soft); color: var(--coral-dark); }
.card h3 { margin: 0 0 .45rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.steps { counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.4rem 1.4rem; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800;
  font-size: .9rem; margin-bottom: .85rem;
}
.step h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.benefits-list { display: grid; gap: .85rem; max-width: 48rem; margin: 0 auto; }
.benefit {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}
.benefit svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }
.benefit strong { display: block; margin-bottom: .15rem; }
.benefit span { color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { max-width: 44rem; margin: 0 auto; display: grid; gap: .75rem; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .25rem 1.1rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.35rem; color: var(--teal); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; color: var(--muted); }

/* Form */
.form-section { background: linear-gradient(180deg, var(--cream) 0%, var(--teal-soft) 100%); }
.form-wrap {
  display: grid; gap: 2rem; align-items: start;
}
@media (min-width: 900px) {
  .form-wrap { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
}
.lead-form {
  background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem; box-shadow: var(--shadow-lg);
}
.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 560px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}
.field label {
  display: block; font-weight: 650; font-size: .9rem; margin-bottom: .35rem;
}
.field .req { color: var(--coral); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; background: var(--cream);
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: var(--focus); background: #fff;
}
.field .error {
  display: none; color: #B42318; font-size: .82rem; margin-top: .35rem; font-weight: 600;
}
.field.is-invalid input, .field.is-invalid select {
  border-color: #F04438; background: #FEF3F2;
}
.field.is-invalid .error { display: block; }
.form-note { font-size: .82rem; color: var(--muted); margin: .75rem 0 0; }
.form-success {
  display: none; text-align: center; padding: 2rem 1rem;
}
.form-success.is-visible { display: block; }
.lead-form.is-submitted .form-fields { display: none; }
.lead-form.is-submitted .form-success { display: block; }
.form-success__icon {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center;
}
.disclaimer-banner {
  background: var(--coral-soft); border: 1px solid #F0C9BC; border-radius: var(--radius-sm);
  padding: 1rem 1.15rem; font-size: .9rem; color: var(--ink); margin-top: 2rem;
}
.disclaimer-banner strong { color: var(--coral-dark); }

/* Partners page */
.partners-toolbar {
  display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem;
}
@media (min-width: 720px) {
  .partners-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
}
.search-wrap { position: relative; flex: 1; max-width: 28rem; }
.search-wrap input {
  width: 100%; padding: .8rem 1rem .8rem 2.6rem; border: 1.5px solid var(--line);
  border-radius: 999px; font: inherit; background: var(--white);
}
.search-wrap svg {
  position: absolute; left: .95rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: .45rem .9rem; font-weight: 650; font-size: .85rem;
  cursor: pointer; font-family: inherit;
}
.chip:hover, .chip.is-active {
  background: var(--teal); border-color: var(--teal); color: #fff;
}
.partner-count { font-weight: 700; color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.partner-count strong { color: var(--teal-dark); }
.partner-grid {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.partner-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; box-shadow: 0 4px 14px rgba(36,51,51,.05);
  display: flex; flex-direction: column; gap: .5rem; min-height: 88px;
}
.partner-card h3 { margin: 0; font-size: .98rem; line-height: 1.35; }
.badge {
  align-self: flex-start; font-size: .72rem; font-weight: 750; letter-spacing: .04em;
  text-transform: uppercase; padding: .25rem .55rem; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-dark);
}
.badge--medical { background: #E8F0FE; color: #1A56DB; }
.badge--legal { background: #F3E8FF; color: #6941C6; }
.badge--insurance { background: var(--coral-soft); color: var(--coral-dark); }
.badge--benefits { background: #FEF7C3; color: #854D0E; }
.badge--other { background: var(--cream-deep); color: var(--muted); }
.partners-empty {
  display: none; text-align: center; padding: 3rem 1rem; color: var(--muted);
  grid-column: 1 / -1;
}
.partners-empty.is-visible { display: block; }

/* Legal pages */
.legal {
  padding: 3rem 0 4.5rem; background: var(--white);
}
.legal__inner { max-width: 46rem; }
.legal h1 {
  font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin: 0 0 .5rem; line-height: 1.2;
}
.legal .meta { color: var(--muted); margin: 0 0 2rem; font-size: .95rem; }
.legal h2 {
  font-size: 1.25rem; margin: 2rem 0 .75rem; padding-top: .5rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }

/* Footer */
.site-footer {
  background: #1A2E2E; color: #D5E0E0; padding: 3rem 0 1.5rem;
}
.site-footer a { color: #B8E0D8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid {
  display: grid; gap: 2rem; margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer__brand p { color: #9BB0B0; font-size: .92rem; margin: .75rem 0 0; max-width: 22rem; }
.footer__brand .logo { margin-bottom: .25rem; filter: brightness(1.1); }
.footer h3 {
  margin: 0 0 .85rem; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: #7FA3A0;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .5rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: #8AA0A0;
}
.footer__disclaimer { max-width: 48rem; font-size: .82rem; color: #8AA0A0; line-height: 1.5; }

.page-hero {
  padding: 2.5rem 0 1rem;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(42,157,143,.1), transparent 50%),
    var(--cream);
}
.page-hero h1 {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 0 0 .5rem; line-height: 1.2;
}
.page-hero p { color: var(--muted); margin: 0; max-width: 40rem; font-size: 1.05rem; }

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

/* CloudFront form embed */
.embed-form {
  width: 100%;
  min-height: 420px;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}
.embed-form iframe,
.embed-form > * {
  max-width: 100%;
}
