/* =========================================================
   Champion Auto Insurance — Landing Page Styles
   Palette: deep navy (trust/finance) + warm gold accent
   Typography: General Sans (headings) + Inter (body)
   ========================================================= */

:root {
  /* Colors */
  --bg:           #F7F8FB;
  --bg-alt:       #FFFFFF;
  --bg-deep:      #071C3A;   /* hero, footer */
  --bg-deep-2:    #0A2552;
  --surface:      #FFFFFF;
  --surface-alt:  #F1F4F9;
  --border:       #DDE2EC;
  --border-deep:  #1B3768;

  --ink:          #0B1A33;
  --ink-2:        #1D2C46;
  --muted:        #5A6987;
  --faint:        #8C97AE;
  --on-deep:      #EDF1F8;
  --on-deep-mute: #A9B6CE;

  --accent:       #F5B73B;   /* warm gold */
  --accent-deep:  #D99B12;
  --accent-ink:   #2A1E00;

  --success:      #2B7A4B;
  --danger:       #B23A48;

  /* Radii / shadow */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(7,28,58,.06), 0 1px 1px rgba(7,28,58,.04);
  --shadow:    0 10px 30px -12px rgba(7,28,58,.18), 0 4px 10px -4px rgba(7,28,58,.08);
  --shadow-lg: 0 30px 60px -20px rgba(7,28,58,.30), 0 10px 20px -8px rgba(7,28,58,.18);

  /* Type */
  --font-display: "General Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --container: 1140px;
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--bg-deep-2); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--bg-deep); }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.container-narrow { max-width: 760px; }

/* ===== Headings ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.logo-mark { color: var(--bg-deep); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.logo-sub  { font-size: .7rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }

.header-nav { display: flex; align-items: center; gap: 18px; }
.nav-link {
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.nav-link:hover { color: var(--bg-deep); }
.cta-mini {
  background: var(--bg-deep); color: #fff !important; text-decoration: none;
  padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.cta-mini:hover { background: var(--bg-deep-2); }
@media (max-width: 640px) {
  .nav-link { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 6px 16px -6px rgba(217,155,18,.6);
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-alt); }

/* Ghost button on dark backgrounds (hero) */
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.30);
  background: rgba(255,255,255,.04);
}
.hero .btn-ghost:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.55);
}
.btn-block { width: 100%; }
.btn-cta-final {
  padding: 16px 26px;
  font-size: 1.05rem;
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1100px 480px at 88% -8%, rgba(245,183,59,.18), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, #071C3A 0%, #0A2552 100%);
  color: var(--on-deep);
  padding: 64px 0 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 0 56px; }
}
.hero-copy h1 { color: #fff; }
.hero-title { margin-bottom: 16px; }
.accent-underline {
  background-image: linear-gradient(180deg, transparent 65%, rgba(245,183,59,.45) 65%, rgba(245,183,59,.45) 92%, transparent 92%);
  padding: 0 .15em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: var(--on-deep); font-size: .85rem; font-weight: 500;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245,183,59,.25);
}
.hero-sub {
  color: var(--on-deep-mute); font-size: 1.1rem; max-width: 56ch;
  margin-bottom: 22px;
}
.hero-trust {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: flex; flex-wrap: wrap; gap: 14px 22px;
  color: var(--on-deep);
}
.hero-trust li {
  display: inline-flex; align-items: center; gap: 8px; font-size: .95rem;
}
.hero-trust svg { color: var(--accent); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.rating-row {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  color: var(--on-deep-mute); font-size: .9rem;
}
.stars { display: inline-flex; gap: 2px; color: var(--accent); }

/* Default disclosure (used on light sections) */
.disclosure {
  font-size: .85rem; line-height: 1.5;
  color: var(--ink-2);
  background: #FFF9E5;
  border: 1px solid #F2D88A;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0 0 18px;
}
.disclosure strong { color: var(--ink); }
.disclosure--pre-cta { max-width: 60ch; }

/* Disclosure variant for dark hero background */
.hero .disclosure {
  color: var(--on-deep);
  background: rgba(245,183,59,.10);
  border: 1px solid rgba(245,183,59,.45);
  border-left: 4px solid var(--accent);
}
.hero .disclosure strong { color: #fff; }

/* Hero card */
.hero-card {
  background: #fff; color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  border: 1px solid var(--border);
}
.hero-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.badge {
  background: var(--bg-deep); color: #fff;
  font-weight: 600; font-size: .75rem;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase;
}
.muted { color: var(--muted); font-size: .85rem; }
.card-title { margin-bottom: 4px; font-size: 1.4rem; }
.card-sub { color: var(--muted); margin-bottom: 16px; }
.zip-quick {
  display: grid; gap: 10px;
}
.zip-quick input {
  height: 52px; font-size: 1.05rem;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
  text-align: center;
  letter-spacing: .25em;
  font-weight: 600;
  color: var(--ink);
}
.zip-quick input:focus { background: #fff; border-color: var(--bg-deep-2); outline: none; box-shadow: 0 0 0 4px rgba(10,37,82,.12); }
.mini-list {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: grid; gap: 6px;
  font-size: .88rem; color: var(--muted);
}
.mini-list li::before { content: "✓  "; color: var(--success); font-weight: 700; }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); }
@media (max-width: 640px) { .section { padding: 56px 0; } }

.section-head { max-width: 720px; margin-bottom: 36px; }
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600;
  color: var(--bg-deep-2);
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title { margin-bottom: 12px; }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }

/* ===== Benefit grid ===== */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .benefit-grid { grid-template-columns: 1fr; } }

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.benefit-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.benefit-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(7,28,58,.06);
  color: var(--bg-deep);
  border-radius: 12px;
  margin-bottom: 14px;
}
.benefit-card h3 { margin-bottom: 6px; }
.benefit-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ===== Steps ===== */
.steps {
  counter-reset: stepc;
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--bg-deep); color: #fff;
  border-radius: 50%;
  font-family: var(--font-display); font-weight: 700;
  margin-bottom: 12px;
}
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); margin: 0; }

/* ===== Reviews ===== */
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px; margin: 0;
}
.stars-sm { color: var(--accent-deep); letter-spacing: 2px; font-size: 1rem; margin-bottom: 10px; }
.review blockquote {
  margin: 0 0 12px; font-size: 1.02rem; color: var(--ink-2); line-height: 1.55;
  font-family: var(--font-display); font-weight: 500;
}
.review figcaption { color: var(--muted); font-size: .9rem; }

/* ===== Quote form ===== */
.section-form {
  background: linear-gradient(180deg, var(--surface-alt) 0%, var(--bg) 100%);
}
.form-head { text-align: center; margin-bottom: 28px; max-width: none; }
.form-head .kicker, .form-head .section-title, .form-head .section-lead { margin-left: auto; margin-right: auto; }
.form-head .section-lead { margin-left: auto; margin-right: auto; }

/* Pre-CTA disclosure above the form should span full width */
.section-form .disclosure--pre-cta {
  max-width: none;
  margin-bottom: 22px;
}

.quote-form {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 28px;
}
@media (max-width: 560px) { .quote-form { padding: 22px 18px; } }

.progress {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  counter-reset: pc;
}
.progress-step {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--muted); font-weight: 500;
  padding-top: 8px;
  border-top: 3px solid var(--border);
  transition: border-color .2s ease, color .2s ease;
}
.progress-step span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-alt); color: var(--muted);
  font-weight: 700; font-size: .78rem;
}
.progress-step.is-active { color: var(--bg-deep); border-color: var(--accent); }
.progress-step.is-active span { background: var(--bg-deep); color: #fff; }
.progress-step.is-done { color: var(--bg-deep-2); border-color: var(--bg-deep-2); }
.progress-step.is-done span { background: var(--success); color: #fff; }
@media (max-width: 560px) {
  .progress-step { font-size: 0; gap: 0; }
  .progress-step span { font-size: .8rem; }
  .progress-step.is-active::after {
    content: attr(data-step) " of 3";
    font-size: .85rem; margin-left: 6px;
  }
}

.form-step { display: none; border: 0; padding: 0; margin: 0; }
.form-step.is-active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.field { display: block; margin-bottom: 16px; }
.field label {
  display: block; font-weight: 600; font-size: .92rem;
  margin-bottom: 6px; color: var(--ink-2);
}
.field input, .field select {
  width: 100%; height: 48px;
  padding: 0 14px;
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235A6987' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--bg-deep-2);
  box-shadow: 0 0 0 4px rgba(10,37,82,.12);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(178,58,72,.12);
}
.field .hint { color: var(--muted); font-size: .82rem; margin: 6px 0 0; }
.field .error-msg {
  color: var(--danger); font-size: .82rem; margin: 6px 0 0; font-weight: 500;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .grid-2 { grid-template-columns: 1fr; } }

.step-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px;
  gap: 10px;
}
.step-actions .btn-primary { margin-left: auto; }

/* Consent */
.consent {
  background: #FFF7E1;
  border: 1px solid #F2D88A;
  border-radius: var(--radius);
  padding: 14px;
  margin: 4px 0 12px;
}
.consent-row {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  align-items: start;
  font-size: .88rem; line-height: 1.55;
  color: var(--ink-2);
  cursor: pointer;
}
.consent-row input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--bg-deep);
  margin-top: 1px;
}
.consent-text a { color: var(--bg-deep-2); }
.consent-fineprint {
  display: block; margin-top: 6px;
  color: var(--muted); font-size: .78rem; font-style: italic;
}
.placeholder-bracket {
  display: inline-block;
  background: rgba(7,28,58,.06);
  border: 1px dashed var(--bg-deep-2);
  color: var(--bg-deep);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .78em;
  padding: 1px 6px;
  border-radius: 4px;
}

.form-footnote {
  text-align: center; font-size: .82rem;
  color: var(--muted); margin-top: 14px;
}

/* ===== A/B variants ===== */
.ab-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .ab-grid { grid-template-columns: 1fr; } }
.ab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.ab-label {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bg-deep-2);
  margin-bottom: 10px;
}
.ab-card h3 {
  font-size: 1.2rem; line-height: 1.25; margin-bottom: 10px; color: var(--ink);
}
.ab-note { color: var(--muted); font-size: .9rem; margin: 0; }

/* ===== Compliance ===== */
.compliance-list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px;
  margin: 0 0 36px;
}
@media (max-width: 760px) { .compliance-list { grid-template-columns: 1fr; } }
.compliance-list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: .94rem;
  color: var(--ink-2);
}
.compliance-list input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--success);
  margin-top: 2px;
}
.resource-row {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.resource-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600;
  margin: 0 0 10px;
}
.resource-list { list-style: disc; padding-left: 20px; margin: 0; }
.resource-list li { margin-bottom: 4px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-deep);
  color: var(--on-deep);
  padding: 56px 0 32px;
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.footer-wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: var(--on-deep); text-decoration: none; font-size: .94rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-disclosure {
  font-size: .82rem; line-height: 1.6;
  color: var(--on-deep-mute);
  max-width: 920px;
}
.footer-disclosure-title {
  font-family: var(--font-display);
  font-size: .85rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
}
.footer-disclosure p { margin: 0 0 10px; }
.footer-disclosure strong { color: #fff; }
.footer-disclosure .placeholder-bracket {
  background: rgba(245,183,59,.15);
  border-color: var(--accent);
  color: var(--accent);
}
.copyright { color: var(--faint); margin-top: 16px; font-size: .8rem; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
