:root {
  color-scheme: light;
  --ink: #15201b;
  --muted: #56645f;
  --line: #d8ded9;
  --paper: #f5f1e8;
  --surface: #ffffff;
  --accent: #23724e;
  --accent-dark: #145338;
  --warning: #a85520;
  --steel: #dfe6e3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 241, 232, 0.92) 420px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 22px 24px;
}

.site-header {
  position: relative;
  z-index: 2;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.hero,
.band,
.quote-section,
.thanks,
.admin {
  margin: 0 auto;
  max-width: 1120px;
  padding: 56px 24px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  min-height: 62vh;
  padding-top: 34px;
}

.eyebrow {
  color: var(--warning);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 24px;
  max-width: 900px;
}

h2 {
  font-size: 2rem;
  line-height: 1.12;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.lede {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 30px 0 0;
  max-width: 680px;
  padding-top: 22px;
}

.trust-row dt {
  color: var(--warning);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.trust-row dd {
  color: var(--muted);
  font-weight: 700;
  margin: 4px 0 0;
}

.button {
  border: 1px solid var(--accent);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
}

.hero-media,
.process-band,
.service-grid article,
.intake-grid div,
.lead-form,
.lead-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 33, 29, 0.08);
}

.hero-media {
  margin: 0;
  overflow: hidden;
  position: relative;
}

.hero-media img,
.image-band img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-media img {
  aspect-ratio: 7 / 5;
}

.hero-media figcaption {
  background: rgba(21, 32, 27, 0.84);
  bottom: 14px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 750;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 10px 12px;
  position: absolute;
}

.process-band {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
  overflow: hidden;
}

.process-step {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding: 24px;
}

.process-step:last-child {
  border-right: 0;
}

.process-step strong {
  color: var(--accent);
  font-size: 2.4rem;
  line-height: 1;
}

.process-step span {
  color: var(--muted);
  font-weight: 800;
}

.image-band {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  margin: 0 auto;
  max-width: 1120px;
  padding: 56px 24px 24px;
}

.image-band img {
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 33, 29, 0.08);
}

.image-band p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.quick-intake {
  margin: 0 auto;
  max-width: 1120px;
  padding: 36px 24px 18px;
}

.intake-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.intake-grid div {
  padding: 20px;
}

.intake-grid span {
  color: var(--accent-dark);
  font-weight: 850;
}

.intake-grid p {
  color: var(--muted);
  margin: 8px 0 0;
}

.section-heading {
  max-width: 680px;
}

.service-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.service-grid article {
  padding: 24px;
}

.service-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.lead-form,
.provider-form,
.admin-filters {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  padding: 24px;
}

.provider-form,
.admin-filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-filters {
  align-items: end;
  grid-template-columns: minmax(180px, 0.4fr) minmax(180px, 0.4fr) auto auto;
  margin-bottom: 20px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  font-weight: 750;
  gap: 7px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.turnstile-row {
  min-height: 65px;
}

.thanks {
  min-height: 60vh;
}

.thanks p {
  color: var(--muted);
  max-width: 620px;
}

.lead-table-wrap {
  overflow-x: auto;
}

.lead-table {
  border-collapse: collapse;
  min-width: 1120px;
  width: 100%;
}

.lead-table th,
.lead-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.lead-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.lead-table span {
  color: var(--muted);
  font-size: 0.9rem;
}

.status-pill {
  background: #eaf4ef;
  border-radius: 999px;
  color: var(--accent-dark) !important;
  display: inline-flex;
  font-weight: 800;
  padding: 4px 10px;
}

.admin-update {
  display: grid;
  gap: 10px;
  min-width: 260px;
}

.admin-update .button {
  min-height: 40px;
  padding: 8px 12px;
}

.provider-targets {
  margin-top: 36px;
}

.target-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.target-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.target-grid span,
.muted {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  gap: 18px;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 36px;
  }

  .hero-media img {
    aspect-ratio: 4 / 3;
  }

  .trust-row,
  .process-band,
  .image-band,
  .intake-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .image-band {
    padding-top: 36px;
  }

  .service-grid,
  .target-grid,
  .admin-filters,
  .provider-form,
  .lead-form {
    grid-template-columns: 1fr;
  }
}
