/* Champion Auto Finance — SEO resource pages
   Design system matched to live LeadEngine theme:
   navy #040926, accents #9CC4F0 / #7EA6D6, Montserrat + Open Sans.
   Scoped to the /lb- resource pages only; never affects the WordPress site. */

:root {
  --navy:        #040926;
  --navy-2:      #0a1236;
  --navy-3:      #101a44;
  --panel:       rgba(255,255,255,.04);
  --panel-2:     rgba(255,255,255,.06);
  --border:      rgba(156,196,240,.16);
  --border-2:    rgba(156,196,240,.28);
  --accent:      #9CC4F0;
  --accent-2:    #7EA6D6;
  --text:        #eaf1fb;
  --muted:       #a8b7d4;
  --white:       #ffffff;
  --ok:          #7ee0b8;
  --maxw:        1120px;
  --radius:      16px;
  --shadow:      0 20px 60px -20px rgba(0,0,0,.6);
  --head:        "Montserrat", system-ui, sans-serif;
  --body:        "Open Sans", 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(126,166,214,.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(156,196,240,.12), transparent 55%),
    var(--navy);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--white); text-decoration: underline; }

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

/* ---------- Header / nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4,9,38,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-head__inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-family: var(--head); font-weight: 600; font-size: 14.5px; letter-spacing: .2px; text-decoration: none; }
.nav a:hover { color: var(--white); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04122e; box-shadow: 0 10px 30px -10px rgba(156,196,240,.5); }
.btn--primary:hover { transform: translateY(-2px); color: #04122e; text-decoration: none; }
.btn--ghost { background: var(--panel); color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { background: var(--panel-2); color: var(--white); 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: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--accent-2); }
.crumbs span { color: var(--muted); 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(--accent); }
.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(--white); 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; }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* ---------- 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(--white); margin: 0 0 14px; letter-spacing: -.3px; }
h3 { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--white); 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: #f4f8ff; }
.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; }
.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; }
.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(--white); font-family: var(--head); margin-bottom: 3px; }

/* Callout */
.callout { background: linear-gradient(135deg, rgba(156,196,240,.10), rgba(126,166,214,.05)); border: 1px solid var(--border-2); border-left: 3px solid var(--accent); border-radius: 12px; padding: 18px 20px; margin: 20px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--accent); }

/* 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(--white); 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: var(--border-2); }
.faq summary { font-family: var(--head); font-weight: 600; color: var(--white); 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; }
.related a:hover { background: var(--panel-2); border-color: var(--border-2); color: var(--white); }
.related a span { display: block; color: var(--muted); font-family: var(--body); font-weight: 400; font-size: 13px; margin-top: 3px; }

/* CTA band */
.cta-band { margin: 34px 0 0; background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); border: 1px solid var(--border-2); 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; }

/* 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; }
.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: rgba(0,0,0,.25); border: 1px solid var(--border-2); border-radius: 10px; color: var(--white); font-family: var(--body); font-size: 16px; padding: 12px 14px; }
.calc__input input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.calc__input--prefix input { padding-left: 28px; }
.calc__input--prefix::before { content: "$"; position: absolute; left: 12px; top: 12px; color: var(--muted); }
.calc__hint { font-size: 12.5px; color: var(--muted); 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(--white); 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: rgba(255,196,120,.10); border: 1px solid rgba(255,196,120,.4); color: #ffd79a; border-radius: 10px; padding: 10px 16px; font-size: 13.5px; margin: 16px 0; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--border); background: rgba(4,9,38,.6); margin-top: 30px; }
.site-foot__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 40px 0 26px; }
.site-foot h4 { font-family: var(--head); color: var(--white); 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(--white); }
.site-foot__brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.site-foot__brand img { height: 30px; margin-bottom: 12px; }
.foot-legal { border-top: 1px solid var(--border); padding: 18px 0 30px; }
.foot-legal p { color: #7d8cad; font-size: 12.5px; margin: 0 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav { display: none; }
  .grid--2, .grid--3, .related, .site-foot__inner { grid-template-columns: 1fr; }
  .site-head__inner { height: 60px; }
  .nav__cta { margin-left: auto; padding: 10px 16px; font-size: 14px; }
}
