/* =============================================================================
   Lapeyre Roofing - Theme
   Navy + gold roofing look (matches reference theme).
   ============================================================================= */
:root {
  --navy:        #0e1f3f;
  --navy-2:      #13294f;
  --navy-3:      #1c3763;
  --gold:        #f0a92b;
  --gold-2:      #ffc255;
  --orange:      #ef7f3b;
  --ink:         #16233b;
  --muted:       #63708a;
  --line:        #e4e8f0;
  --white:       #ffffff;
  --bg:          #f4f6fa;
  --radius:      14px;
  --shadow:      0 20px 50px rgba(8, 20, 45, 0.18);
  --font-head:   'Poppins', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: min(1160px, 92%); margin-inline: auto; }

.preview-badge {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: #b23b3b; color: #fff; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  letter-spacing: .06em; padding: 5px 12px;
}
body:has(.preview-badge) { padding-top: 26px; }
a { color: inherit; text-decoration: none; }

/* ---------- Buttons -------------------------------------------------------- */
.btn {
  font-family: var(--font-head);
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #3a2a05;
  padding: 15px 22px;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(240, 169, 43, .35);
}
.btn-primary:hover { filter: brightness(1.04); }

/* ---------- Header --------------------------------------------------------- */
.site-header { background: var(--navy); color: var(--white); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.logo {
  font-family: var(--font-head); font-weight: 800; font-size: 1.35rem;
  color: var(--white); letter-spacing: -.5px;
}
.logo span { color: var(--gold); }
.logo-img { height: 38px; width: auto; display: block; }
@media (max-width: 640px) { .logo-img { height: 30px; } }
.header-right { display: flex; align-items: center; gap: 22px; }
.header-rating { font-size: .82rem; color: #cdd6e6; }
.header-rating em { font-style: normal; color: #91a0bd; margin-left: 4px; }
.header-phone {
  font-family: var(--font-head); font-weight: 700; color: var(--gold);
  font-size: 1.05rem;
}

/* ---------- Hero ----------------------------------------------------------- */
.hero {
  background:
    linear-gradient(180deg, rgba(10,22,46,.90), rgba(10,22,46,.94)),
    radial-gradient(1200px 500px at 15% -10%, #1c3763 0%, transparent 60%),
    var(--navy);
  color: var(--white);
  padding: 56px 0 70px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: rgba(240,169,43,.16);
  color: var(--gold-2);
  font-family: var(--font-head); font-weight: 600; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 20px; margin-bottom: 18px;
}
.hero-headline {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.08; letter-spacing: -.5px;
}
.hero-sub {
  margin-top: 18px; font-size: 1.12rem; color: #c6d0e2; max-width: 30ch;
}
.hero-trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 26px; font-weight: 600; color: #dbe3f1; font-size: .95rem;
}

.local-line {
  margin-top: 18px; font-size: .95rem; color: #b8c4d8; max-width: 46ch; line-height: 1.5;
}

/* ---------- Quiz card ------------------------------------------------------ */
.quiz-shell { width: 100%; }
.quiz-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink);
}
.quiz-progress-track { height: 6px; background: #eef1f6; }
.quiz-progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transition: width .35s ease;
}
.quiz-trust {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-bottom: 1px solid var(--line);
  background: #fbfcfe; flex-wrap: wrap;
}
.qt-stars { color: var(--gold); letter-spacing: 1px; font-size: .82rem; }
.qt-text { font-size: .74rem; font-weight: 600; color: var(--muted); }

.quiz-ba {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  background: var(--navy); border-bottom: 1px solid var(--line);
}
.ba-item { position: relative; margin: 0; overflow: hidden; }
.ba-item img { width: 100%; height: 118px; object-fit: cover; object-position: center 32%; display: block; }
.quiz-card.is-last .quiz-ba { display: none; }   /* hide before/after on the final form + results */
.ba-cap {
  position: absolute; left: 8px; bottom: 8px; font-family: var(--font-head);
  font-weight: 700; font-size: .64rem; letter-spacing: .08em; padding: 3px 9px; border-radius: 5px;
}
.ba-cap.before { background: #fff; color: var(--navy); }
.ba-cap.after { background: var(--navy); color: #fff; }
@media (max-width: 640px) { .ba-item img { height: 96px; } }

.quiz-inner { padding: 30px 30px 32px; min-height: 300px; display: flex; flex-direction: column; }
.quiz-legal { margin-top: 12px; font-size: .74rem; color: #9fb0c9; text-align: center; }

.q-counter {
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  color: var(--muted); text-align: center; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: .06em;
}
.q-head { margin-bottom: 22px; }
.q-title { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.q-sub { color: var(--muted); margin-top: 8px; font-size: .98rem; }

.q-body { flex: 1; }

/* choices */
.q-choices { display: grid; gap: 12px; }
.q-choice {
  text-align: left; font-family: var(--font-body); font-weight: 600; font-size: 1.02rem;
  padding: 17px 18px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--ink); cursor: pointer;
  transition: border-color .12s ease, background .12s ease, transform .06s ease;
}
.q-choice:hover { border-color: var(--gold); background: #fffaf0; }
.q-choice:active { transform: translateY(1px); }

/* inputs */
.q-zip, .q-input { display: flex; flex-direction: column; gap: 12px; }
.q-text-input {
  font-family: var(--font-body); font-size: 1.1rem;
  padding: 16px 18px; border: 2px solid var(--line); border-radius: 12px;
  width: 100%; outline: none; transition: border-color .12s ease;
}
.q-text-input:focus { border-color: var(--gold); }
.q-submit { width: 100%; }

/* address autocomplete dropdown */
.addr-wrap { position: relative; width: 100%; }
.addr-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin: 4px 0 0;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(8, 20, 45, .15); max-height: 260px; overflow: auto;
}
.addr-item { padding: 12px 16px; cursor: pointer; font-size: .95rem; border-bottom: 1px solid #f2f4f8; }
.addr-item:last-child { border-bottom: none; }
.addr-item:hover { background: #fffaf0; }
.q-error { color: #d23b3b; font-size: .88rem; }

.q-back {
  align-self: flex-start; margin-top: 20px; background: none; border: none;
  color: var(--muted); font-family: var(--font-body); font-weight: 600;
  cursor: pointer; font-size: .9rem; padding: 4px 0;
}
.q-back:hover { color: var(--ink); }

/* contact step */
.q-contact { display: flex; flex-direction: column; gap: 12px; }
.q-banner {
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
  color: var(--gold-2); font-family: var(--font-head); font-weight: 700;
  text-align: center; font-size: .92rem; padding: 12px 14px; border-radius: 10px;
  margin-bottom: 4px; letter-spacing: .01em;
}
.q-spamnote { font-size: .82rem; color: var(--muted); text-align: center; margin: 2px 0; }
.q-tcpa-check {
  display: flex; align-items: flex-start; gap: 9px; font-size: .82rem;
  color: var(--ink); cursor: pointer; margin: 2px 0; line-height: 1.35;
}
.q-tcpa-check input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--gold); }
.q-privacy { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 2px; }
.q-disclaimer { font-size: .68rem; color: #9fb0c9; line-height: 1.45; margin-top: 4px; }
.q-disclaimer a { color: var(--muted); text-decoration: underline; }

/* loading interstitial */
.q-loading { padding: 14px 0 6px; }
.q-load-title {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  text-align: center; margin-bottom: 22px; color: var(--ink);
}
.q-load-list { list-style: none; display: grid; gap: 16px; max-width: 320px; margin: 0 auto; }
.q-load-item {
  display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 1.02rem;
  color: var(--muted); opacity: .55; transition: opacity .3s ease, color .3s ease;
}
.q-load-item.is-done { opacity: 1; color: var(--ink); }
.q-load-spin {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: 3px solid var(--line); border-top-color: var(--gold);
  animation: q-spin .7s linear infinite;
}
.q-load-item.is-done .q-load-spin {
  border: none; background: linear-gradient(180deg, var(--gold-2), var(--gold));
  animation: none; position: relative;
}
.q-load-item.is-done .q-load-spin::after {
  content: '✓'; position: absolute; inset: 0; display: grid; place-items: center;
  color: #3a2a05; font-size: 14px; font-weight: 800;
}
@keyframes q-spin { to { transform: rotate(360deg); } }

/* LAST STEP ribbon — full-width bar flush to the card edges */
.last-step-badge {
  align-self: stretch; text-align: center;
  background: linear-gradient(90deg, #2fb86a, #23974f);
  color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: .74rem; letter-spacing: .08em; padding: 8px 12px;
  margin: -30px -30px 20px;   /* break out of the 30px card padding */
}
@media (max-width: 480px) { .last-step-badge { margin: -24px -20px 16px; font-size: .7rem; } }

/* action zone → sticky mobile footer (Continue / Submit) */
.q-actions { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 640px) {
  body:not(.calc-mode) .q-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(8, 20, 45, .12);
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  }
  body:not(.calc-mode) .quiz-inner.has-sticky { padding-bottom: 100px; }
  body:not(.calc-mode) .q-actions .q-tcpa-check { margin: 0; font-size: .78rem; }
  body:not(.calc-mode) .q-actions .q-error { margin: 0; }
}

/* calculator: sticky mobile cost bar + CTA */
.calc-sticky { display: none; }
@media (max-width: 900px) {
  body.calc-mode .calc-sticky {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--navy); color: #fff;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(8, 20, 45, .35);
  }
  body.calc-mode .cst-label { display: block; font-size: .64rem; color: #9fb0c9; }
  body.calc-mode #cst-val { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; }
  body.calc-mode .cst-cta { padding: 12px 16px; font-size: .92rem; white-space: nowrap; }
}

/* review proof block under each button group */
.q-proof { text-align: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.q-proof-stars { color: var(--gold); letter-spacing: 3px; font-size: 1rem; }
.q-proof-text { margin-top: 6px; font-size: .9rem; color: var(--muted); }
.q-proof-text strong { color: var(--ink); font-weight: 800; }

/* ---------- Premium results screen ----------------------------------------- */
/* break the results out of the narrow quiz column into a centered wide card */
body.results-mode .hero { padding-bottom: 44px; }
body.results-mode .hero-copy { display: none; }
body.results-mode .hero-grid,
body.results-mode.calc-mode .hero-grid { grid-template-columns: 1fr !important; max-width: 720px; margin-inline: auto; }
body.results-mode .quiz-progress-track,
body.results-mode .quiz-trust { display: none; }
body.results-mode .calc-sticky { display: none !important; }
body.results-mode .quiz-inner { padding: 0; }

.res-hero {
  text-align: center; padding: 34px 30px 26px;
  background: linear-gradient(180deg, #f7f9fc, #fff); border-bottom: 1px solid var(--line);
}
.res-check {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(180deg, #2fb86a, #23974f); color: #fff;
  display: grid; place-items: center; font-size: 1.9rem; font-weight: 800;
  box-shadow: 0 8px 22px rgba(35, 151, 79, .35);
}
.res-title { font-family: var(--font-head); font-weight: 800; font-size: 1.85rem; color: var(--navy); line-height: 1.1; }
.res-sub { color: var(--muted); margin-top: 8px; max-width: 42ch; margin-inline: auto; }

.res-body { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 28px 30px; text-align: left; }
.res-h { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--navy); margin-bottom: 16px; }
.res-steps { list-style: none; display: grid; gap: 15px; }
.res-steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); font-size: .96rem; }
.rs-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #3a2a05;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: .8rem;
}
.res-founder-block {
  display: flex; gap: 14px; align-items: center; margin-top: 24px;
  padding: 16px; background: #f7f9fc; border-radius: 12px; border: 1px solid var(--line);
}
.rf-photo { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); flex-shrink: 0; }
.res-founder-block.no-photo { display: block; }
.rf-quote { font-style: italic; color: var(--ink); font-size: .9rem; line-height: 1.45; }
.rf-name { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .88rem; margin-top: 6px; }
.rf-name span { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .78rem; }

.res-col-est .est { text-align: left; }
.res-col-est .est .q-counter, .res-col-est .est .q-title, .res-col-est .est .q-sub { text-align: left; }
.res-col-est .est .q-title { font-size: 1.12rem; }
.res-col-est .est .est-rows { margin-top: 14px; }

.res-cta-wrap { padding: 4px 30px 32px; text-align: center; }
.res-cta { display: inline-block; text-decoration: none; padding: 16px 44px; }

@media (max-width: 700px) {
  .res-body { grid-template-columns: 1fr; gap: 22px; padding: 24px 20px; }
  .res-col-est { order: -1; }   /* show the estimate first on mobile */
  .res-hero { padding: 28px 20px 22px; }
  .res-title { font-size: 1.55rem; }
  .res-cta-wrap { padding: 0 20px 26px; }
}

/* city cost estimate results */
.est { text-align: center; }
.est .q-sub { margin-bottom: 18px; }
.est-rows { display: grid; gap: 14px; margin: 6px 0 20px; text-align: left; }
.est-row { border: 2px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.est-type { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--navy); }
.est-total { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--ink); margin: 4px 0 2px; }
.est-mo { font-size: .9rem; color: var(--muted); }
.est-mo strong { color: var(--orange); }
.est-mo span { display: block; font-size: .78rem; color: #9fb0c9; }
.est-cta { display: block; text-align: center; text-decoration: none; margin-top: 4px; }
.est-check { margin: 6px auto 0; }
.est-disc { font-size: .72rem; color: #9fb0c9; margin-top: 14px; line-height: 1.45; }

/* done */
.q-done { text-align: center; margin: 20px 0; }
.q-check {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #3a2a05; font-size: 2rem; display: grid; place-items: center; font-weight: 800;
}

/* ---------- Schedule (Step 2) embed --------------------------------------- */
body.scheduling .hero-grid { grid-template-columns: 1fr; }
body.scheduling .hero-copy { text-align: center; }
body.scheduling .hero-headline { max-width: 24ch; margin-inline: auto; }
.schedule-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.schedule-frame { width: 100%; height: 760px; border: 0; display: block; }
@media (max-width: 640px) { .schedule-frame { height: 620px; } }

/* ---------- Trust strip ---------------------------------------------------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 26px 0;
}
.trust-strip-inner div { text-align: center; }
.trust-strip-inner strong {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 1.6rem; color: var(--navy);
}
.trust-strip-inner span { color: var(--muted); font-size: .88rem; }

/* ---------- Interactive calculator ----------------------------------------- */
body.calc-mode .hero-grid { align-items: start; grid-template-columns: 1.1fr .9fr; }
.calc-card {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 24px 8px; margin-top: 22px;
}
.calc-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.calc-block:last-child { border-bottom: none; }
.calc-label { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .98rem; margin-bottom: 12px; }
.calc-label b { color: var(--orange); }
.calc-label small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.calc-inputbox {
  display: flex; align-items: center; gap: 6px; border: 2px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font-size: 1.2rem; font-weight: 700; color: var(--navy);
}
.calc-inputbox:focus-within { border-color: var(--gold); }
.calc-inputbox input { border: none; outline: none; font: inherit; color: inherit; width: 100%; background: none; }
.calc-suffix { font-size: .82rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.calc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px;
  background: #e7ebf2; margin: 14px 0 6px; outline: none; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: pointer; }
.calc-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--gold);
  border: 3px solid #fff; cursor: pointer; }
.calc-ticks, .calc-save-val { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.calc-save-val { justify-content: flex-start; gap: 6px; margin-top: 8px; font-size: .85rem; }
.calc-save-val b { color: #137a3f; }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.calc-chip {
  flex: 1 1 auto; min-width: 60px; text-align: center; cursor: pointer;
  border: 2px solid var(--line); background: #fff; border-radius: 9px; padding: 9px 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink); line-height: 1.1;
}
.calc-chip small { display: block; font-weight: 500; font-size: .66rem; color: var(--muted); margin-top: 2px; }
.calc-chip:hover { border-color: var(--gold); }
.calc-chip.is-active { background: var(--gold); border-color: var(--gold); color: #3a2a05; }
.calc-chip.is-active small { color: #5a4508; }

.calc-summary {
  background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: #fff;
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.cs-label { font-size: .82rem; color: #9fb0c9; }
.cs-monthly { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; margin: 4px 0 16px; }
.cs-monthly small { font-size: 1rem; color: #9fb0c9; font-weight: 600; }
.cs-rows { border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; display: grid; gap: 9px; }
.cs-row { display: flex; justify-content: space-between; font-size: .92rem; color: #c6d0e2; }
.cs-row b { color: #fff; font-family: var(--font-head); }
.cs-savline b { color: var(--gold-2); }
.cs-true { margin-top: 16px; background: rgba(255,255,255,.06); border-radius: 10px; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; }
.cs-true-label { font-size: .9rem; color: #dbe3f1; max-width: 8em; }
.cs-true-val { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--gold-2); }
.cs-true-val small { font-size: .8rem; color: #9fb0c9; font-weight: 600; }
.calc-disc { font-size: .68rem; color: #9fb0c9; line-height: 1.45; padding: 12px 0 4px; }
.cs-disc { font-size: .66rem; color: #8894ab; line-height: 1.45; margin-top: 14px; }
.q-fin-disc { font-size: .68rem; color: #9fb0c9; line-height: 1.4; margin: -4px 0 2px; }
.rev-disc { text-align: center; font-size: .74rem; color: var(--muted); margin-top: 22px; }

@media (max-width: 900px) { body.calc-mode .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Bottom social proof -------------------------------------------- */
.social-proof { background: #fff; border-top: 1px solid var(--line); padding: 48px 0 62px; }
.sp-title {
  font-family: var(--font-head); font-weight: 800; text-align: center;
  font-size: 1.6rem; color: var(--navy); margin-bottom: 28px;
}
.sp-title-sub { margin-top: 44px; }
.proj-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.rev-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.rev-card {
  flex: 0 1 320px; border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  box-shadow: 0 6px 20px rgba(8, 20, 45, .05);
}
.rev-stars { color: var(--gold); letter-spacing: 2px; }
.rev-text { margin: 10px 0; color: var(--ink); font-size: .98rem; line-height: 1.55; }
.rev-name { font-weight: 700; color: var(--muted); font-size: .85rem; }

.why-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-check {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #3a2a05;
  display: grid; place-items: center; font-weight: 800; margin-top: 2px;
}
.why-item h3 { font-family: var(--font-head); font-size: 1.02rem; color: var(--navy); }
.why-item p { color: var(--muted); font-size: .92rem; margin-top: 3px; line-height: 1.5; }

.proj-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 12px; overflow: hidden; background: var(--navy); }
.proj-imgs figure { margin: 0; position: relative; }
.proj-imgs img { width: 100%; height: 122px; object-fit: cover; object-position: center 32%; display: block; }

@media (max-width: 820px) {
  .rev-grid, .proj-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- Responsive ----------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 40px 0 48px; }
  .hero-sub { max-width: none; }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .header-rating { display: none; }
}
/* Phones: keep the quiz near the top - compact hero, hide long copy */
@media (max-width: 640px) {
  .hero { padding: 22px 0 26px; }
  .eyebrow { margin-bottom: 12px; }
  .hero-headline { font-size: 1.7rem; line-height: 1.12; }
  .hero-sub { font-size: 1rem; margin-top: 10px; }
  .hero-grid { gap: 18px; }
  .hero-trust { display: none; }   /* trust bar below still carries proof */
  .local-line { display: none; }   /* full local blurb hidden above the fold */
  .quiz-legal { margin-top: 10px; }
}
@media (max-width: 480px) {
  .quiz-inner { padding: 24px 20px 26px; }
  .q-title { font-size: 1.3rem; }
}
