/* Champion Auto Finance — SEO resource pages
   Design system matched to the LIVE v7 white theme
   (/caf-v7-assets/styles.css + caf-white.css): white ground, dark ink,
   Sora + Inter, blue #2b89ff / accent #1466c9, red #e3142d reserved.
   Class + variable names unchanged from the original dark version so the
   1,400+ generated pages need no markup edits; only values are remapped.
   Scoped to the /lb- resource pages only; never affects the WordPress site. */

:root {
  --navy:        #ffffff;                 /* page ground */
  --navy-2:      #f3f7fc;                 /* light panel tint */
  --navy-3:      #e9f0f9;                 /* deeper panel tint */
  --panel:       #ffffff;
  --panel-2:     #f3f7fc;
  --border:      rgba(16,42,79,.14);
  --border-2:    rgba(16,42,79,.26);
  --accent:      #1466c9;                 /* readable brand blue on white */
  --accent-2:    #0b4f93;
  --text:        #0f1728;
  --muted:       #38455f;
  --white:       #0f1728;                 /* heading ink (name kept for compat) */
  --ok:          #16a34a;
  --maxw:        1120px;
  --radius:      16px;
  --shadow:      0 20px 50px -30px rgba(16,42,79,.28);
  --glow:        0 0 0 1px rgba(43,137,255,.28), 0 14px 34px -14px rgba(43,137,255,.30);
  --head:        "Sora", system-ui, sans-serif;
  --body:        "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 12% -8%, rgba(43,137,255,.08), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(227,20,45,.04), transparent 55%),
    var(--navy);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #072f5c; text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header / nav ---------- */
.site-head {
  /* 2026-08-25: static — the bar sits in normal flow and scrolls away.
     .site-head__inner is the containing block for the mobile dropdown. */
  position: static; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--border);
}
.site-head__inner { display: flex; align-items: center; gap: 22px; height: auto; padding: 0; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { height: 104px; width: auto; display: block; }  /* 2026-08-25: fills the static header edge to edge */
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { color: var(--accent-2); font-family: var(--head); font-weight: 600; font-size: 14.5px; letter-spacing: .2px; text-decoration: none; }
.nav a:hover { color: #072f5c; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, #2b89ff, #1a6ee0); color: #000000; box-shadow: var(--glow); }
.btn--primary:hover { transform: translateY(-2px); color: #000000; text-decoration: none; box-shadow: 0 18px 44px -14px rgba(43,137,255,.55); }
.btn--ghost { background: transparent; color: var(--accent-2); border-color: var(--border); }
.btn--ghost:hover { background: rgba(43,137,255,.08); color: var(--accent-2); border-color: rgba(43,137,255,.6); text-decoration: none; }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.nav__cta { flex: 0 0 auto; }
.nav__burger { display: none; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 13.5px; color: #5c6a84; padding: 16px 0 0; }
.crumbs a { color: var(--accent-2); }
.crumbs span { color: #5c6a84; margin: 0 6px; }

/* ---------- Hero ---------- */
.hero { padding: 46px 0 34px; }
.eyebrow { font-family: var(--head); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 12.5px; color: var(--muted); }
.hero h1 { font-family: var(--head); font-weight: 800; font-size: clamp(30px, 5vw, 50px); line-height: 1.08; margin: 12px 0 16px; color: var(--text); letter-spacing: -.5px; }
.hero__lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 720px; margin: 0 0 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px; font-size: 13px; color: var(--muted); font-family: var(--head); font-weight: 600; box-shadow: 0 6px 18px -10px rgba(16,42,79,.25); }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(22,163,74,.55); }

/* ---------- Content ---------- */
main { padding-bottom: 40px; }
.content { max-width: 820px; }
.content.full { max-width: var(--maxw); }
section.block { padding: 30px 0; border-top: 1px solid var(--border); }
section.block:first-of-type { border-top: 0; }
h2 { font-family: var(--head); font-weight: 700; font-size: clamp(23px, 3vw, 31px); color: var(--text); margin: 0 0 14px; letter-spacing: -.3px; }
h3 { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--text); margin: 26px 0 8px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin: 0 0 9px; }
strong { color: var(--text); }
.lead { font-size: 19px; color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: 0 10px 30px -22px rgba(16,42,79,.35); }
.card h3 { margin-top: 0; font-size: 18px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 15.5px; }
.card__icon { font-size: 24px; margin-bottom: 8px; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 64px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); margin: 0; box-shadow: 0 10px 30px -22px rgba(16,42,79,.35); }
.steps li::before { content: counter(s,decimal-leading-zero); position: absolute; left: 18px; top: 16px; font-family: var(--head); font-weight: 800; color: var(--accent); font-size: 20px; }
.steps li strong { display: block; color: var(--text); font-family: var(--head); margin-bottom: 3px; }

/* Callout */
.callout { background: rgba(43,137,255,.07); border: 1px solid rgba(43,137,255,.22); border-left: 3px solid #2b89ff; border-radius: 12px; padding: 18px 20px; margin: 20px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--accent-2); }

/* Table */
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 15.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
th { font-family: var(--head); color: var(--text); background: var(--panel-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* FAQ accordion */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 4px 18px; }
.faq details[open] { border-color: rgba(43,137,255,.45); }
.faq summary { font-family: var(--head); font-weight: 600; color: var(--text); cursor: pointer; padding: 14px 0; list-style: none; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* Related links */
.related { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 8px 0 0; }
.related a { display: block; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; color: var(--text); font-family: var(--head); font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.related a:hover { border-color: rgba(43,137,255,.55); color: var(--text); box-shadow: var(--shadow); transform: translateY(-3px); }
.related a span { display: block; color: #5c6a84; font-family: var(--body); font-weight: 400; font-size: 13px; margin-top: 3px; }

/* CTA band */
.cta-band { margin: 34px 0 0; background: #eef3fa; border: 1px solid var(--border); border-radius: 20px; padding: 34px; text-align: center; }
.cta-band h2 { margin-top: 0; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 20px; }
.cta-band .hero__actions { justify-content: center; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr .9fr; gap: 22px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 8px 0 4px; box-shadow: 0 10px 30px -22px rgba(16,42,79,.35); }
.calc__field { margin-bottom: 16px; }
.calc__field label { display: block; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 6px; }
.calc__input { position: relative; }
.calc__input input { width: 100%; background: #ffffff; border: 1px solid var(--border-2); border-radius: 10px; color: var(--text); font-family: var(--body); font-size: 16px; padding: 12px 14px; }
.calc__input input:focus { outline: 2px solid #2b89ff; outline-offset: 1px; border-color: #2b89ff; }
.calc__input--prefix input { padding-left: 28px; }
.calc__input--prefix::before { content: "$"; position: absolute; left: 12px; top: 12px; color: #5c6a84; }
.calc__hint { font-size: 12.5px; color: #5c6a84; margin-top: 5px; }
.calc__result { background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); border: 1px solid var(--border-2); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.calc__pay { font-family: var(--head); font-weight: 800; font-size: 44px; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.calc__pay small { font-size: 16px; color: var(--muted); font-weight: 600; }
.calc__break { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; font-size: 14.5px; }
.calc__break div { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); }
.calc__break div span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 680px) { .calc { grid-template-columns: 1fr; } }

/* Draft banner (scaffold pages) */
.draft-note { background: #fff7e6; border: 1px solid #f0c36d; color: #8a5a00; border-radius: 10px; padding: 10px 16px; font-size: 13.5px; margin: 16px 0; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--border); background: #ffffff; margin-top: 30px; }
.site-foot__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 40px 0 26px; }
.site-foot h4 { font-family: var(--head); color: var(--text); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 12px; }
.site-foot a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 8px; text-decoration: none; }
.site-foot a:hover { color: var(--accent-2); }
.site-foot__brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.site-foot__brand img { height: 64px; margin-bottom: 12px; }
.foot-legal { border-top: 1px solid var(--border); padding: 18px 0 30px; }
.foot-legal p { color: #5c6a84; font-size: 12.5px; margin: 0 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  /* The nav used to be display:none with no burger, leaving these pages with
     no navigation at all on a phone (2026-08-25). It is now a dropdown that
     the burger opens; .site-head is position:relative so top:100% anchors to
     the bar. */
  .nav { display: none; }
  .site-head.is-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    background: #fff; padding: 6px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(16,42,79,.12);
  }
  .site-head.is-open .nav a { padding: 14px 20px; font-size: 16px; }
  .grid--2, .grid--3, .related, .site-foot__inner { grid-template-columns: 1fr; }
  .brand img { height: 56px; }
  .nav__cta { margin-left: auto; padding: 10px 16px; font-size: 14px; }
}

/* ---------- City / topic directory (hub pages) ---------- */
.citylist { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.citylist a { display: inline-block; background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; color: var(--accent-2); font-family: var(--head); font-weight: 600; font-size: 13.5px; line-height: 1.2; text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.citylist a:hover { border-color: rgba(20,102,201,.55); background: rgba(20,102,201,.08); transform: translateY(-1px); }

/* In-page anchors must clear the sticky .site-head (2026-08-25). */
[id]:not(body):not(html) { scroll-margin-top: 16px; }  /* header is static now */

/* Mobile menu button. NOTE: the display:flex override must come AFTER this
   base rule in source order — a media query adds no specificity, so a later
   `display:none` would win and silently re-hide the button. */
.nav__burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-left: 10px; padding: 10px;
  background: none; border: 0; cursor: pointer; flex: 0 0 auto;
}
.nav__burger span { display: block; height: 2px; width: 100%; background: var(--accent-2, #123a6d); border-radius: 2px; }
@media (max-width: 820px) {
  .nav__burger { display: flex; margin-left: 0; }
  /* brand + CTA + burger must fit one row at 390px; the default 22px gap and
     the full-size CTA pushed the burger 7px past the viewport. */
  .site-head__inner { gap: 10px; flex-wrap: nowrap; }
  .site-head__inner .nav__cta { padding: 9px 12px; font-size: 13px; white-space: nowrap; flex: 0 1 auto; min-width: 0; }
  .brand img { max-width: 46vw; }
}
