/* HEAR — modern, minimal stylesheet. Tokens in theme.css. */

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

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--navy); margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: var(--s4); }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 var(--s4); color: var(--ink-2); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s5); }
.container.narrow { max-width: var(--narrow); }

/* Minimal inline icon — small, single color, never a big badge */
.ico { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.15em; stroke: currentColor; fill: none; flex-shrink: 0; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }

/* ─── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.header-nav { display: flex; gap: var(--s6); margin-left: auto; margin-right: var(--s6); }
.header-nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.header-nav a:hover { color: var(--ink); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: var(--s5); flex-shrink: 0; }
.header-phone { color: var(--navy); font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: var(--s2); font-size: .94rem; }
.header-phone .ico { width: 16px; height: 16px; }
.header-phone:hover { color: var(--red); text-decoration: none; }
@media (max-width: 860px) { .header-nav { display: none; } }
@media (max-width: 620px) {
  .site-header .container { gap: var(--s3); padding: 0 var(--s4); }
  .header-actions { gap: var(--s2); }
  .header-phone span { display: none; }
  .brand img { height: 32px; }
  .btn-sm { padding: 8px 12px; font-size: .86rem; }
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero { position: relative; color: #fff; overflow: hidden; min-height: 620px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: url('img/van.webp') 43% center/cover no-repeat; transform: scale(1.02); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12,22,38,.82) 0%, rgba(12,22,38,.66) 34%, rgba(12,22,38,.26) 62%, rgba(12,22,38,.08) 100%),
    linear-gradient(0deg, rgba(12,22,38,.08), rgba(12,22,38,0));
}
.hero .container { position: relative; z-index: 1; padding: var(--s9) var(--s5); max-width: var(--container); width: 100%; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { color: rgba(255,255,255,.88); font-size: 1.15rem; max-width: 56ch; margin-top: var(--s4); }
.hero-chip {
  display: inline-block; margin-bottom: var(--s4);
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--red); padding: 6px 14px; border-radius: 6px;
}
.dollar { color: #FFC857; white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-bullets { display: flex; flex-wrap: wrap; gap: var(--s5); margin: var(--s6) 0 0; padding: 0; list-style: none; }
.hero-bullets li { display: flex; align-items: center; gap: var(--s2); color: rgba(255,255,255,.9); font-size: .95rem; }
.hero-bullets .ico { color: #5FD39B; width: 18px; height: 18px; }
@media (max-width: 720px) {
  .hero { min-height: auto; }
  .hero-bg { background-position: 33% center; }
  .hero-bg::after { background: linear-gradient(90deg, rgba(12,22,38,.86) 0%, rgba(12,22,38,.68) 58%, rgba(12,22,38,.28) 100%); }
  .hero .container { padding-top: var(--s8); padding-bottom: var(--s8); }
}

/* ─── Sections ────────────────────────────────────────────── */
.section { padding: var(--s9) 0; }
.section-alt { background: var(--bg-2); }
.eyebrow { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: var(--s3); }
.section-lede { color: var(--ink-2); font-size: 1.05rem; max-width: 64ch; margin-bottom: var(--s7); }
.section-lede.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ─── AMI Checker ─────────────────────────────────────────── */
.ami-checker {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr); gap: var(--s7);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s6); box-shadow: var(--shadow-md);
}
@media (max-width: 820px) { .ami-checker { grid-template-columns: 1fr; padding: var(--s5); } }
.ami-form .field { margin-bottom: var(--s5); }
.ami-form label, .lead-form label { display: block; font-weight: 600; color: var(--navy); margin-bottom: var(--s2); font-size: .95rem; }
.ami-form select, .ami-form input, .lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.ami-form select:focus, .ami-form input:focus, .lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(21,38,63,.1);
}
.field-help { font-size: .85rem; color: var(--ink-3); margin: var(--s2) 0 0; }

.ami-result {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s6); display: flex; flex-direction: column; justify-content: center;
}
.ami-result.empty { color: var(--ink-3); font-style: italic; align-items: flex-start; }
.ami-badge { display: inline-flex; align-items: center; gap: var(--s2); padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; margin-bottom: var(--s3); width: fit-content; }
.ami-badge.under_80 { background: var(--green-tint); color: var(--green); }
.ami-badge.between { background: var(--red-tint); color: var(--red); }
.ami-badge.over_150 { background: #EEF0F3; color: var(--ink-2); }
.ami-result .big { font-size: 2.1rem; font-weight: 800; color: var(--navy); line-height: 1.05; margin-bottom: var(--s2); }
.ami-result .coverage { color: var(--ink-2); margin-bottom: var(--s4); }
.ami-thresholds { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s4); margin-top: var(--s3); font-size: .9rem; }
.ami-thresholds dt { color: var(--ink-3); }
.ami-thresholds dd { margin: 0 0 var(--s2); color: var(--navy); font-weight: 700; }
.ami-result-actions { display: flex; gap: var(--s3); margin-top: var(--s5); flex-wrap: wrap; }

/* ─── Cards (rebates / why) ───────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: var(--s5); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s5); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .tag { font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--green); margin-bottom: var(--s3); display: inline-flex; align-items: center; gap: 5px; }
.card .tag.muted { color: var(--ink-3); }
.card .tag .ico { width: 13px; height: 13px; }
.card .amt { font-size: 1.65rem; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: var(--s2); }
.card .amt small { font-size: .55em; color: var(--ink-3); font-weight: 600; margin-right: 5px; vertical-align: 6px; }
.card h3 { color: var(--navy); margin-bottom: var(--s2); }
.card p { font-size: .92rem; margin-bottom: var(--s4); }
.card .reqs { list-style: none; padding: 0; margin: 0; font-size: .84rem; color: var(--ink-3); }
.card .reqs li { padding: 2px 0; padding-left: 14px; position: relative; }
.card .reqs li::before { content: ''; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.card-muted { background: var(--bg-2); }
.card-muted .amt { color: var(--ink-2); }

.other-block { margin-top: var(--s9); padding-top: var(--s7); border-top: 1px solid var(--line); }
.other-note { margin-top: var(--s6); font-size: .92rem; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s4) var(--s5); }

/* ─── Steps ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: var(--s5); counter-reset: step; }
.step { padding-top: var(--s5); border-top: 2px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: block; font-size: 1.1rem; font-weight: 800; color: var(--red); margin-bottom: var(--s2); }
.step h3 { margin-bottom: var(--s2); }
.step p { font-size: .92rem; margin: 0; }

/* ─── Why us (minimal) ────────────────────────────────────── */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: var(--s6); }
.why-item h3 { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.why-item h3 .ico { color: var(--red); width: 20px; height: 20px; }
.why-item p { font-size: .94rem; margin: 0; }

/* approved row */
.approved-row {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  background: var(--green-tint); border: 1px solid #BFE3CF; border-radius: var(--radius-sm);
  padding: var(--s4) var(--s5); margin-bottom: var(--s6);
}
.approved-row .ico { color: var(--green); width: 22px; height: 22px; }
.approved-row strong { color: var(--navy); }
.approved-row a { font-weight: 700; }

/* ─── Lead form ───────────────────────────────────────────── */
.assessment-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.lead-wrap {
  display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  max-width: 1040px; margin: 0 auto; box-shadow: var(--shadow-md); overflow: hidden;
}
.assessment-summary { background: var(--navy); padding: var(--s7); color: #fff; }
.assessment-summary h3 { color: #fff; font-size: 1.55rem; margin-bottom: var(--s3); max-width: 12ch; }
.assessment-summary p { color: rgba(255,255,255,.76); font-size: .98rem; margin-bottom: var(--s6); }
.summary-kicker { display: block; color: #FFC857; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; margin-bottom: var(--s3); }
.summary-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.summary-list li { display: flex; align-items: flex-start; gap: var(--s2); color: rgba(255,255,255,.9); font-size: .94rem; }
.summary-list .ico { color: #5FD39B; width: 17px; height: 17px; margin-top: 2px; }
.lead-form { padding: var(--s7); }
.lead-form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); }
@media (max-width: 760px) {
  .lead-wrap { grid-template-columns: 1fr; }
  .assessment-summary, .lead-form { padding: var(--s5); }
  .assessment-summary h3 { max-width: none; }
}
@media (max-width: 600px) { .lead-form .grid { grid-template-columns: 1fr; } }
.lead-form .full { grid-column: 1/-1; }
.measures { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: var(--s2); margin-top: var(--s1); }
.measure { display: flex; align-items: center; gap: var(--s2); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; font-size: .92rem; transition: border-color .15s var(--ease), background .15s var(--ease); }
.measure:hover { border-color: var(--navy); background: var(--bg-2); }
.measure input { accent-color: var(--red); margin: 0; }
.consent { display: flex; gap: var(--s3); font-size: .88rem; color: var(--ink-2); background: var(--bg-2); border-radius: var(--radius-sm); padding: var(--s4); margin-top: var(--s5); }
.consent input { margin-top: 3px; accent-color: var(--red); }
.form-note { font-size: .8rem; color: var(--ink-3); margin-top: var(--s4); padding-left: var(--s4); border-left: 3px solid var(--line-2); }
.form-error { background: var(--red-tint); color: var(--red-dark); border: 1px solid var(--red); border-radius: var(--radius-sm); padding: var(--s4); margin-bottom: var(--s4); }
.assessment-submit { margin-top: var(--s6); }

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: var(--s2); }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: var(--s5); font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; gap: var(--s4); align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--red); transition: transform .2s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--bg-2); }
.faq-item .answer { padding: 0 var(--s5) var(--s5); color: var(--ink-2); }
.faq-item .answer a { word-break: break-word; }

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: var(--s8) 0 var(--s5); font-size: .92rem; }
.site-footer h4 { color: #fff; margin-bottom: var(--s3); font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s7); margin-bottom: var(--s6); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s6); } }
.footer-brand img { height: 50px; margin-bottom: var(--s3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: var(--s4); font-size: .8rem; color: rgba(255,255,255,.5); display: flex; flex-direction: column; gap: var(--s2); }

/* ─── Utilities ───────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-6 { margin-top: var(--s6); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
