/* =====================================================================
   1HR Cash for Cars — Conversion-Optimized Stylesheet (v2)
   Mobile-first. Token-driven. No external dependency required.
   ===================================================================== */

:root {
  /* Brand */
  --c-primary:       #059669;   /* cash green */
  --c-primary-dark:  #064e3b;
  --c-primary-soft:  #d1fae5;
  --c-accent:        #f59e0b;   /* CTA amber */
  --c-accent-dark:   #b45309;
  --c-danger:        #dc2626;

  /* Surface */
  --c-bg:            #ffffff;
  --c-bg-alt:        #f8fafc;
  --c-bg-dark:       #0f172a;
  --c-bg-darker:     #020617;
  --c-border:        #e2e8f0;
  --c-border-strong: #cbd5e1;

  /* Text */
  --c-text:          #0f172a;
  --c-text-muted:    #475569;
  --c-text-light:    #f1f5f9;
  --c-text-light-muted: #94a3b8;

  /* Layout */
  --container:       1180px;
  --radius:          12px;
  --radius-sm:       8px;
  --radius-lg:       18px;
  --shadow-sm:       0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.06);
  --shadow:          0 4px 14px rgba(15,23,42,.08);
  --shadow-lg:       0 18px 40px rgba(15,23,42,.12);

  /* Type */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Poppins', var(--font-body);

  /* Motion */
  --t-fast: 120ms ease;
  --t: 200ms ease;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-dark); text-decoration: none; }
a:hover { color: var(--c-primary); }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 800; color: var(--c-text); margin: 0 0 .5em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw + .5rem, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.5vw + .5rem, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
.muted { color: var(--c-text-muted); }
.center { text-align: center; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--dark { background: var(--c-bg-dark); color: var(--c-text-light); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--alt { background: var(--c-bg-alt); }
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------- Sticky mobile call/sms bar ---------- */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--c-bg-dark); color: #fff;
  z-index: 60;
  box-shadow: 0 -6px 20px rgba(0,0,0,.25);
}
.sticky-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 6px; color: #fff; font-size: .82rem; font-weight: 600;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: background var(--t-fast);
}
.sticky-bar a:last-child { border-right: none; }
.sticky-bar a:hover, .sticky-bar a:active { background: rgba(255,255,255,.08); }
.sticky-bar .ico { font-size: 1.25rem; margin-bottom: 2px; }
.sticky-bar .call    { background: linear-gradient(180deg, #059669, #047857); }
.sticky-bar .sms     { background: linear-gradient(180deg, #2563eb, #1d4ed8); }
.sticky-bar .quote   { background: linear-gradient(180deg, #f59e0b, #b45309); }
@media (min-width: 900px) { .sticky-bar { display: none; } }
body.has-sticky-bar { padding-bottom: 76px; }
@media (min-width: 900px) { body.has-sticky-bar { padding-bottom: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 16px; }
.site-header .logo img { height: 38px; }
.site-header .nav-links { display: none; gap: 18px; }
.site-header .nav-links a { color: var(--c-text); font-weight: 600; font-size: .95rem; }
.site-header .nav-cta { display: flex; gap: 10px; align-items: center; }
.site-header .phone-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--c-primary); color: #fff;
  border-radius: 999px; font-weight: 700; font-size: .95rem;
}
.site-header .phone-link:hover { background: var(--c-primary-dark); color: #fff; }
@media (min-width: 900px) {
  .site-header .nav-links { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #022c22 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../img/1hrbg.jpg");
  background-size: cover; background-position: center;
  opacity: .14;
  filter: saturate(1.1);
  pointer-events: none;
}
.hero .container { position: relative; padding-top: 56px; padding-bottom: 56px; }
.hero-grid { display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: rgba(255,255,255,.12); padding: 6px 14px; border-radius: 999px;
  color: #d1fae5;
}
.hero h1 { color: #fff; margin: 16px 0 12px; }
.hero .subline { font-size: 1.1rem; color: #d1fae5; margin-bottom: 24px; max-width: 560px; }
.hero .trust-line {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: .92rem; color: #ecfdf5; margin-bottom: 28px;
}
.hero .trust-line span { display: inline-flex; align-items: center; gap: 6px; }
.hero .hero-phone {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 1.6rem; font-weight: 800; color: #fff;
  background: rgba(0,0,0,.18);
  padding: 14px 22px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
}
.hero .hero-phone .ico { color: var(--c-accent); }
.hero .hero-phone:hover { background: rgba(0,0,0,.32); color: #fff; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Hero embedded form card */
.hero-form-card {
  background: #fff; color: var(--c-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.4);
}
.hero-form-card h2 { font-size: 1.35rem; margin: 0 0 6px; }
.hero-form-card .sub { color: var(--c-text-muted); font-size: .92rem; margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: transform var(--t-fast), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-accent); color: #1f1300; border-color: var(--c-accent); }
.btn--primary:hover { background: var(--c-accent-dark); color: #fff; border-color: var(--c-accent-dark); }
.btn--green { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn--green:hover { background: var(--c-primary-dark); color: #fff; border-color: var(--c-primary-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 28px; font-size: 1.08rem; }

/* ---------- Form ---------- */
.field { margin-bottom: 14px; display: block; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--c-text); }
.field .req { color: var(--c-danger); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="number"],
.field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--radius-sm); font-size: 1rem;
  background: #fff; color: var(--c-text);
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(5,150,105,.18);
}
.field-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.field-help { font-size: .82rem; color: var(--c-text-muted); margin-top: 4px; }
.field-error { font-size: .82rem; color: var(--c-danger); margin-top: 4px; display: none; }
.field.has-error input, .field.has-error select { border-color: var(--c-danger); }
.field.has-error .field-error { display: block; }

/* Radio cards */
.radio-cards { display: grid; gap: 10px; }
.radio-cards label {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1.5px solid var(--c-border-strong);
  border-radius: var(--radius-sm); cursor: pointer;
  background: #fff; transition: all var(--t);
}
.radio-cards label:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }
.radio-cards input[type="radio"] { accent-color: var(--c-primary); }
.radio-cards input[type="radio"]:checked + span { font-weight: 700; }
.radio-cards label:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); }

/* ---------- 3-CTA bar ---------- */
.cta-trio { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cta-trio { grid-template-columns: repeat(3, 1fr); } }
.cta-trio a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px; border-radius: var(--radius);
  font-weight: 700; font-size: 1.05rem;
  text-align: center;
  transition: all var(--t);
  border: 2px solid transparent;
}
.cta-trio .call  { background: var(--c-primary); color: #fff; }
.cta-trio .call:hover { background: var(--c-primary-dark); }
.cta-trio .sms   { background: #2563eb; color: #fff; }
.cta-trio .sms:hover { background: #1d4ed8; }
.cta-trio .quote { background: var(--c-accent); color: #1f1300; }
.cta-trio .quote:hover { background: var(--c-accent-dark); color: #fff; }

/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 36px;
  padding: 22px 20px; background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
  font-size: .92rem; color: var(--c-text-muted);
}
.trust-bar span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.trust-bar .ico { color: var(--c-primary); font-size: 1.1rem; }

/* ---------- Easy 1-2-3 ---------- */
.steps { counter-reset: step; }
.steps .step { position: relative; padding: 24px 24px 24px 78px; background: #fff;
  border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.steps .step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
}
.steps .step h3 { margin-bottom: 6px; }
.steps .step p { color: var(--c-text-muted); margin: 0; }

/* ---------- Recent purchases ---------- */
.recent-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.recent-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.recent-card .img { aspect-ratio: 4 / 3; background: var(--c-bg-alt); overflow: hidden; }
.recent-card .img img { width: 100%; height: 100%; object-fit: cover; }
.recent-card .meta { padding: 12px 14px; }
.recent-card .meta .car { font-weight: 700; font-size: .98rem; color: var(--c-text); }
.recent-card .meta .loc { font-size: .85rem; color: var(--c-text-muted); }
.recent-card .meta .pay { display: inline-block; margin-top: 6px; font-weight: 800; color: var(--c-primary); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--c-border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  color: var(--c-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--c-primary); transition: transform var(--t);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 0 18px; color: var(--c-text-muted); }

/* ---------- Coverage area ---------- */
.coverage { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .coverage { grid-template-columns: 1fr 1fr; } }
.coverage .city-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.coverage .pill {
  background: var(--c-primary-soft); color: var(--c-primary-dark);
  padding: 6px 12px; border-radius: 999px;
  font-size: .88rem; font-weight: 600;
}
.coverage .map-frame {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--c-border); background: var(--c-bg-alt);
}

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(135deg, #064e3b, #022c22); color: #fff; padding: 64px 0; text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta .lede { font-size: 1.1rem; color: #d1fae5; max-width: 600px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-bg-darker); color: var(--c-text-light-muted); padding: 48px 0 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: var(--c-text-light-muted); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 32px; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* ---------- Multi-step form (getquote.html) ---------- */
.quote-shell { min-height: 100vh; background: linear-gradient(135deg, #064e3b 0%, #022c22 100%); padding: 32px 0 80px; }
.quote-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  max-width: 640px; margin: 0 auto; padding: 28px;
}
.quote-card .brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.quote-card .brand img { height: 36px; }
.quote-card .brand .phone { color: var(--c-primary); font-weight: 800; font-size: 1.05rem; }

.progress { position: relative; height: 8px; background: var(--c-bg-alt); border-radius: 999px; margin: 6px 0 24px; overflow: hidden; }
.progress .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 25%; background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); transition: width var(--t); }
.progress-meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--c-text-muted); margin-top: -16px; margin-bottom: 18px; }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form-step h2 { margin-bottom: 18px; }
.form-nav { display: flex; gap: 10px; margin-top: 8px; }
.form-nav .btn--prev { background: transparent; color: var(--c-text-muted); border-color: var(--c-border-strong); }
.form-nav .btn--prev:hover { background: var(--c-bg-alt); color: var(--c-text); }

/* ---------- Misc ---------- */
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--c-primary); margin-bottom: 8px; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.divider { height: 1px; background: var(--c-border); margin: 32px 0; border: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }

/* Region picker (used on national page) */
.region-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.region-card {
  display: block; padding: 22px;
  background: #fff; border: 1.5px solid var(--c-border);
  border-radius: var(--radius); text-align: center;
  transition: all var(--t); color: var(--c-text);
  box-shadow: var(--shadow-sm);
}
.region-card:hover { border-color: var(--c-primary); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--c-text); }
.region-card .name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 4px; }
.region-card .phone { color: var(--c-primary); font-weight: 700; font-size: .98rem; }

/* Star rating */
.stars { display: inline-flex; gap: 2px; color: var(--c-accent); }

/* Counter (cars purchased this month) */
.counter-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-primary-soft); color: var(--c-primary-dark);
  padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: .98rem;
  box-shadow: var(--shadow-sm);
}
.counter-pill .pulse { width: 10px; height: 10px; background: var(--c-primary); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
