:root {
  --ink: #173128;
  --muted: #66736e;
  --paper: #f6f4ed;
  --card: #ffffff;
  --line: #dfe4df;
  --green: #1f5a43;
  --green-dark: #163f31;
  --gold: #c89b3c;
  --gold-soft: #f3ead5;
  --danger: #a12a2a;
  --shadow: 0 20px 55px rgba(21, 49, 40, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 0%, rgba(200,155,60,.14), transparent 28rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--paper) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
body.modal-open { overflow: hidden; }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 5000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 82px;
  padding: 14px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(31,90,67,.10);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.brand-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 54px; height: 54px; object-fit: contain; }
.brand-fallback {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  color: white; background: var(--green); font-weight: 800; letter-spacing: .04em; flex: 0 0 auto;
}
.brand-name { font-weight: 800; font-size: .98rem; letter-spacing: .015em; }
.brand-tagline { color: var(--muted); font-size: .86rem; }
.secure-note { color: var(--muted); font-size: .86rem; white-space: nowrap; }

.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 38px 0 72px; }
.front-door {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 210px);
  gap: 26px 38px;
  align-items: center;
  padding: clamp(26px, 5vw, 52px);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 14%, rgba(231,200,126,.25), transparent 19rem),
    linear-gradient(135deg, #173f31 0%, #0e2d24 100%);
  box-shadow: 0 24px 70px rgba(14,45,36,.20);
}
.front-door .eyebrow { color: #e7c87e; }
.front-door h1 { max-width: 760px; margin: 0; font-size: clamp(2.25rem, 5.4vw, 4.8rem); line-height: .96; letter-spacing: -.05em; }
.front-door-copy > p:last-child { max-width: 680px; margin: 18px 0 0; color: #d7e5de; font-size: clamp(1rem, 1.4vw, 1.14rem); }
.front-door-logo { width: min(100%, 190px); height: auto; justify-self: end; border-radius: 22px; box-shadow: 0 16px 42px rgba(0,0,0,.28); }
.path-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.path-card {
  min-height: 154px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.08);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.path-card:hover { color: #fff; transform: translateY(-2px); background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.36); }
.path-card-primary { color: #18352a; background: #f3ead5; border-color: #f3ead5; }
.path-card-primary:hover { color: #18352a; background: #fff5df; border-color: #fff5df; }
.path-kicker { font-size: .71rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
.path-card strong { font-size: 1.05rem; line-height: 1.2; }
.path-card > span:last-child { color: inherit; font-size: .84rem; line-height: 1.42; opacity: .82; }
.hero { max-width: 800px; margin: 0 0 34px; }
.intake-intro { margin-top: clamp(42px, 7vw, 76px); scroll-margin-top: 108px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .13em; font-size: .75rem; }
.hero h1, .hero h2 { margin: 0 0 12px; font-size: clamp(2.15rem, 5vw, 4.2rem); line-height: .98; letter-spacing: -.045em; }
.hero p { margin: 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 720px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.trust-strip span { padding: 8px 11px; border-radius: 999px; background: #edf4f0; color: var(--green-dark); font-size: .82rem; font-weight: 750; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.card { background: var(--card); border: 1px solid rgba(31,90,67,.10); border-radius: 24px; box-shadow: var(--shadow); }
.form-card { padding: clamp(20px, 4vw, 42px); }
.info-card { padding: 28px; position: sticky; top: 108px; }
.info-card h2 { margin: 0 0 22px; font-size: 1.55rem; line-height: 1.2; }
.info-card ol { padding: 0; margin: 0; list-style: none; display: grid; gap: 18px; }
.info-card li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.info-card li strong { color: var(--green); }
.info-card li span { color: var(--muted); font-size: .93rem; }
.privacy-box, .partner-box { margin-top: 26px; padding: 18px; border-radius: 16px; }
.privacy-box { background: var(--gold-soft); }
.privacy-box p { margin: 6px 0 0; color: #6e5b31; font-size: .9rem; }
.partner-box { background: #eef5f1; border: 1px solid #dce9e2; }
.partner-box p { margin: 6px 0 10px; color: #50665d; font-size: .9rem; }
.partner-box a { font-weight: 800; }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 36px; }
.step { position: relative; display: grid; justify-items: center; gap: 6px; color: #8b9591; font-size: .75rem; }
.step::before { content: ""; position: absolute; height: 2px; background: var(--line); left: -50%; right: 50%; top: 16px; z-index: 0; }
.step:first-child::before { display: none; }
.step span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #edf0ed; border: 1px solid var(--line); font-weight: 800; z-index: 1; }
.step.is-active, .step.is-done { color: var(--green); }
.step.is-active span, .step.is-done span { background: var(--green); color: #fff; border-color: var(--green); }
.step.is-done::before, .step.is-active::before { background: var(--green); }

.form-step { display: none; }
.form-step.is-active { display: block; animation: fade .22s ease-out; }
@keyframes fade { from { opacity: .55; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.form-step h2 { margin: 0 0 8px; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.025em; }
.form-step h3 { margin: 0 0 4px; }
.section-help { margin: 0 0 22px; color: var(--muted); }
.section-divider { height: 1px; background: var(--line); margin: 28px 0; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-card { display: grid; grid-template-columns: 24px 1fr; grid-template-areas: "radio title" "radio copy"; column-gap: 10px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: .15s ease; min-height: 92px; }
.choice-card:hover { border-color: #9db5aa; transform: translateY(-1px); }
.choice-card:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 2px rgba(31,90,67,.10); background: #f8fbf9; }
.choice-card input { grid-area: radio; margin-top: 3px; accent-color: var(--green); }
.choice-title { grid-area: title; font-weight: 800; }
.choice-copy { grid-area: copy; color: var(--muted); font-size: .88rem; margin-top: 3px; }
.choice-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

.conditional-section { margin-top: 10px; }
.field-grid { display: grid; gap: 16px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.parcel-grid { margin-top: 16px; }
label { font-weight: 700; font-size: .9rem; }
.field-block { display: block; margin-top: 16px; }
.optional { color: var(--muted); font-weight: 500; font-size: .82rem; }
input, select, textarea {
  width: 100%; border: 1px solid #cfd7d2; border-radius: 12px; padding: 12px 13px; margin-top: 7px;
  color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,90,67,.10); }
textarea { resize: vertical; min-height: 145px; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

.check-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-weight: 600; color: #3c5149; }
.check-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); flex: 0 0 auto; }
.check-row.important { padding: 16px; border-radius: 14px; background: #f4f7f5; }
.location-consent { padding: 14px 16px; border: 1px solid #d7e6de; border-radius: 14px; background: #f4f9f6; }
.field-error { color: var(--danger); min-height: 18px; font-size: .82rem; margin-top: 7px; }
.privacy-inline { color: var(--muted); font-size: .86rem; margin: 14px 0 0; }

.location-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid var(--line); background: #f8faf8; border-radius: 16px; margin-top: 22px; }
.location-panel h3 { font-size: 1rem; }
.location-panel p { margin: 3px 0 0; color: var(--muted); font-size: .88rem; }
.location-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.status-note { font-size: .84rem; color: var(--muted); margin: 10px 0; }
.map { height: 280px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: #edf1ee; }
.map.is-unavailable { height: auto; min-height: 84px; display: grid; place-items: center; padding: 18px; color: var(--muted); text-align: center; }
.map-help { margin: 9px 2px 0; color: var(--muted); font-size: .83rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.service-grid label { padding: 13px 12px; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 9px; align-items: center; cursor: pointer; min-height: 48px; }
.service-grid label:has(input:checked) { border-color: var(--green); background: #f4f9f6; }
.service-grid input { width: 17px; margin: 0; accent-color: var(--green); }
.community-impact { margin-top: 20px; padding: 18px; border: 1px solid #d7e6de; border-radius: 16px; background: #f4f9f6; }
.community-impact h3 { margin: 0 0 4px; }
.community-impact .section-help { margin-bottom: 14px; }
.safety-note { margin-top: 20px; padding: 15px 16px; border-left: 4px solid var(--gold); background: #fbf7ee; border-radius: 10px; color: #665632; font-size: .9rem; }

.review-summary { display: grid; gap: 12px; }
.review-group { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.review-group h3 { margin: 0 0 8px; font-size: .92rem; color: var(--green); text-transform: uppercase; letter-spacing: .07em; }
.review-group dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0; }
.review-group dt { color: var(--muted); }
.review-group dd { margin: 0; font-weight: 650; word-break: break-word; }

.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.button { appearance: none; border: 0; border-radius: 12px; padding: 12px 18px; min-height: 46px; font-weight: 800; transition: .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--green); color: #fff; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { background: var(--gold-soft); color: #624c1d; }
.button.ghost { background: #edf1ee; color: var(--ink); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.submit-error { margin-top: 14px; padding: 13px; color: var(--danger); background: #fff2f2; border-radius: 10px; }

.success-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); background: rgba(12,33,26,.66); backdrop-filter: blur(5px); }
.success-modal[hidden] { display: none !important; }
.success-card { position: relative; width: min(540px, 100%); max-height: min(90vh, 720px); overflow: auto; text-align: center; background: #fff; border-radius: 24px; padding: 42px 34px 34px; box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.modal-close { position: absolute; right: 14px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #eef2ef; color: var(--ink); font-size: 1.65rem; line-height: 1; }
.modal-close:hover { background: #e0e8e3; }
.success-icon { margin: 0 auto 14px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.7rem; font-weight: 900; }
.success-card h2 { margin: 0; font-size: 1.9rem; }
.success-card p { color: var(--muted); }
.request-id { margin: 14px 0; padding: 14px; min-height: 52px; background: #f2f5f3; border-radius: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; font-size: 1.06rem; overflow-wrap: anywhere; }
.location-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; overflow-wrap: anywhere; }
.success-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.marketing-section { margin: 34px 0 0; padding: clamp(24px, 5vw, 48px); border-radius: 24px; background: var(--green-dark); color: #fff; }
.marketing-section .eyebrow { color: #e7c87e; }
.marketing-section h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.marketing-section p:last-child { margin: 0; max-width: 850px; color: #d7e5de; }

.site-footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 42px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(31,90,67,.14); color: var(--muted); }
.site-footer > div { display: grid; gap: 3px; }
.site-footer strong { color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer a { font-weight: 700; }

.policy-page { max-width: 900px; }
.policy-page > h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -.035em; }
.policy-page > p { color: var(--muted); }
.policy-card { margin-top: 26px; }
.policy-card h2 { margin: 30px 0 8px; }
.policy-card h2:first-child { margin-top: 0; }
.policy-card p { color: #42554d; }

.system-note { margin: 0 0 24px; padding: 14px 16px; border-radius: 12px; background: #f2f5f3; }
.important-note { border-left: 4px solid var(--gold); }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #d6aa4e;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-header { position: static; }
  .secure-note { display: none; }
  .brand-name { font-size: .88rem; }
  .brand-tagline { font-size: .78rem; }
  .page-shell { width: min(100% - 20px, 1180px); padding-top: 34px; }
  .front-door { grid-template-columns: 1fr; gap: 20px; padding: 24px 18px; border-radius: 20px; }
  .front-door-logo { width: 96px; justify-self: start; grid-row: 1; }
  .front-door-copy { grid-row: 2; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 0; padding: 17px; }
  .intake-intro { scroll-margin-top: 18px; }
  .choice-grid, .field-grid.two, .service-grid { grid-template-columns: 1fr; }
  .choice-card:last-child:nth-child(odd) { grid-column: auto; }
  .form-card { border-radius: 18px; }
  .step small { font-size: .67rem; }
  .location-panel { align-items: stretch; flex-direction: column; }
  .location-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .location-actions .button { width: 100%; }
  .map { height: 240px; }
  .review-group dl { grid-template-columns: 1fr; gap: 2px; }
  .review-group dd { margin-bottom: 7px; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .form-actions .button:only-child, .form-actions #next-button:not([hidden]), .form-actions #submit-button:not([hidden]) { width: 100%; }
  .success-card { padding: 44px 20px 24px; border-radius: 20px; }
  .success-actions { display: grid; grid-template-columns: 1fr; }
  .success-actions .button { width: 100%; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
