/* ==========================================================================
   Auto Solve Financial — design system
   Brand colours live in :root as CSS variables (swapped to match
   autosolvecars.com.au once brand extraction completes).
   ========================================================================== */

:root {
  /* Brand palette — matched to autosolvecars.com.au
     charcoal #2F2E2E + white base, steel-blue #2B5672 (trust/primary),
     red #DF3131 used sparingly as a highlight. */
  --navy:        #2F2E2E;   /* primary dark — charcoal (dark sections, headings) */
  --navy-800:    #262525;
  --navy-700:    #2B5672;   /* steel-blue — gradient partner + dark-section depth */
  --brand:       #2B5672;   /* primary action / links — steel-blue */
  --brand-600:   #21475C;   /* darker hover */
  --brand-050:   #EAF1F6;   /* light steel tint */
  --accent:      #16A36B;   /* success / "approved" green (functional) */
  --accent-600:  #0E8456;
  --gold:        #F2A93B;   /* ratings stars */
  --red:         #DF3131;   /* brand red — sparing highlight/CTA */
  --red-600:     #C42626;

  /* Neutrals */
  --ink:         #0C1622;   /* body text */
  --ink-600:     #41505F;
  --ink-400:     #6B7A8B;
  --line:        #E4E9F0;
  --line-200:    #EEF2F7;
  --bg:          #FFFFFF;
  --bg-soft:     #F6F9FC;
  --bg-tint:     #EFF4FA;

  /* System */
  --radius:      14px;
  --radius-sm:   10px;
  --radius-lg:   22px;
  --shadow-sm:   0 1px 2px rgba(12,22,34,.06), 0 1px 3px rgba(12,22,34,.10);
  --shadow:      0 10px 30px -12px rgba(12,22,34,.18);
  --shadow-lg:   0 30px 60px -20px rgba(10,37,64,.28);
  --maxw:        1280px;
  --gap:         clamp(20px, 4vw, 48px);
  --font:        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head:   "Saira", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-bg:   #161616;   /* dark header — matches the white-on-black brand logo */
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
button { font-family: inherit; cursor: pointer; }
ul { padding-left: 1.1em; }

/* Typography -------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--navy); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-600); }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--brand); }
.muted { color: var(--ink-400); }
.center { text-align: center; }

/* Layout ------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #DDE7F2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 14px; }
.grid { display: grid; gap: clamp(18px, 3vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Large screens — scale the whole design up so it fills big monitors
   (1080p, 1440p, 4K, 27"+) instead of sitting as a narrow centred column.
   Widening the container moves the nav out to the edges and gives the
   content room; nudging the root font-size grows type and rem spacing in step. */
@media (min-width: 1600px) { :root { --maxw: 1440px; } html { font-size: 16.5px; } }
@media (min-width: 1920px) { :root { --maxw: 1560px; } html { font-size: 17.5px; } }
@media (min-width: 2400px) { :root { --maxw: 1720px; } html { font-size: 19px; } }

/* Buttons ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-head); font-weight: 600;
  font-size: 1rem; padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent; transition: .18s ease; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(43,86,114,.7); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(43,86,114,.8); }
.btn-accent { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(223,49,49,.5); }
.btn-accent:hover { background: var(--red-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-lg { padding: 17px 30px; font-size: 1.06rem; }
.btn-block { width: 100%; justify-content: center; }

/* Header / nav ------------------------------------------------------------ */
.header { position: sticky; top: 0; z-index: 60; background: var(--header-bg); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; flex: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.brand-mark img { width: 40px; height: 40px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.14rem; letter-spacing: .05em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.brand .fin { font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .42em; text-transform: uppercase; color: #6FA0C4; margin-top: 5px; padding-left: 2px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 1px; list-style: none; padding: 0; margin: 0; }
.nav-links > li { position: relative; }
.nav-links a { display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border-radius: 9px; color: rgba(255,255,255,.74); font-weight: 500; font-size: .9rem; white-space: nowrap; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #fff; font-family: var(--font-head); white-space: nowrap; }
.nav-phone svg { flex: none; }
.nav-phone:hover { color: #6FA0C4; }
/* dropdown */
.has-menu > .submenu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: .16s ease; }
.has-menu:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink-600); font-weight: 500; }
.submenu a:hover { background: var(--brand-050); color: var(--brand-600); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-mobile-cta { display: none; }
@media (max-width: 940px) {
  .nav-links, .nav .nav-phone, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .nav-open .nav-links { display: flex; position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--header-bg); padding: 14px; gap: 2px; border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow); max-height: calc(100dvh - 72px); overflow:auto; }
  .nav-open .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav-open .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; background: transparent; }
  .nav-open .submenu a { color: rgba(255,255,255,.62); }
  .nav-open .submenu a:hover { color: #fff; background: rgba(255,255,255,.08); }
  .nav-open .nav-mobile-cta { display: block; margin-top: 8px; }
  .nav-open .nav-mobile-cta.first { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-open .nav-mobile-cta .btn { width: 100%; justify-content: center; }
  .nav-open .nav-mobile-cta .mphone { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-family: var(--font-head); font-weight: 700; padding: 12px; }
}

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; background: radial-gradient(1100px 520px at 78% -8%, rgba(20,99,255,.12), transparent 60%), var(--bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(28px, 5vw, 56px); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.hero-grid > * { min-width: 0; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { margin-top: 16px; }
.hero .lead { margin-top: 18px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 26px; list-style: none; padding: 0; }
.hero-points li { display: flex; align-items: center; gap: 9px; font-weight: 500; color: var(--ink-600); }
.hero-points svg { width: 20px; height: 20px; color: var(--accent-600); flex: none; }
@media (max-width: 560px) {
  .hero-points { gap: 13px 20px; }
  .hero-points li { flex: 1 1 46%; }
  .hero-cta { gap: 12px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* Rate / calculator card -------------------------------------------------- */
.rate-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 30px); }
.rate-card h3 { font-size: 1.18rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 7px; }
.field .hint { font-weight: 500; color: var(--ink-400); font-size: .82rem; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-050); }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type=range] {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 22px; background: transparent; cursor: pointer; margin: 0;
}
/* track (WebKit) carries the brand fill via --fill */
.range-row input[type=range]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(var(--brand), var(--brand)) 0 / var(--fill, 50%) 100% no-repeat, var(--line-200);
}
.range-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; margin-top: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
  box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .12s;
}
.range-row input[type=range]:active::-webkit-slider-thumb { transform: scale(1.14); }
/* Firefox */
.range-row input[type=range]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line-200); }
.range-row input[type=range]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--brand); }
.range-row input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border: 3px solid var(--brand); border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.range-row input[type=range]:focus-visible { outline: none; }
.range-row input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--brand-050), 0 1px 4px rgba(0,0,0,.25); }
.range-row input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--brand-050), 0 1px 4px rgba(0,0,0,.25); }
.range-val { font-family: var(--font-head); font-weight: 700; color: var(--navy); min-width: 92px; text-align: right; }
.calc-out { background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #fff; border-radius: var(--radius); padding: 18px 20px; margin-top: 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc-out .amt { font-family: var(--font-head); font-weight: 800; font-size: 2rem; letter-spacing: -.02em; }
.calc-out small { color: #AFC4E0; }

/* Trust bar --------------------------------------------------------------- */
.trustbar { border-top: 1px solid var(--line-200); border-bottom: 1px solid var(--line-200); background: var(--bg-soft); padding-block: 22px; overflow: hidden; }
.trustbar .label { display: block; text-align: center; font-size: .8rem; font-weight: 600; color: var(--ink-400); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }

/* Moving lender marquee */
.lender-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lender-track { display: flex; align-items: center; width: max-content; animation: lender-scroll 60s linear infinite; will-change: transform; }
.lender-marquee:hover .lender-track { animation-play-state: paused; }
.lender-track .l { display: inline-flex; align-items: center; gap: 10px; margin-right: clamp(34px, 5vw, 64px); filter: grayscale(1); opacity: .62; transition: .25s; flex: none; }
.lender-track .l:hover { filter: none; opacity: 1; }
.lender-track .l img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; flex: none; }
.lender-track .l b { font-family: var(--font-head); font-weight: 700; color: var(--ink-600); font-size: 1rem; white-space: nowrap; }
@keyframes lender-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .lender-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 18px; } .lender-track .l { margin-right: 30px; } }

.lenders { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); flex-wrap: wrap; }
.lenders span { font-family: var(--font-head); font-weight: 800; color: var(--ink-400); font-size: 1.05rem; opacity: .75; }
.lenders .l { display: inline-flex; align-items: center; gap: 9px; filter: grayscale(1); opacity: .68; transition: .2s; }
.lenders .l:hover { filter: none; opacity: 1; }
.lenders .l img { width: 26px; height: 26px; object-fit: contain; border-radius: 5px; }
.lenders .l b { font-family: var(--font-head); font-weight: 700; color: var(--ink-600); font-size: .98rem; }

/* Lender wall (lenders page) */
.lender-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 900px){ .lender-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 520px){ .lender-grid { grid-template-columns: repeat(2,1fr); } }
.lender-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 110px; transition: .2s; }
.lender-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand-050); }
.lender-tile img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.lender-tile b { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .9rem; text-align: center; }

/* Cards ------------------------------------------------------------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); transition: .2s; height: 100%; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--brand-050); }
.card .ico { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-050); color: var(--brand); margin-bottom: 16px; }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--ink-600); }
.card .link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-family: var(--font-head); }
.card .link svg { width: 16px; height: 16px; transition: .15s; }
.card:hover .link svg { transform: translateX(3px); }

/* Stats ------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 8px; }
.stat .n { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.55rem, 3.6vw, 2.8rem); color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.stat .l { color: #9FB6D2; font-weight: 500; margin-top: 4px; }

/* Steps ------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px,3vw,26px); }
@media (max-width: 900px){ .steps{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .steps{ grid-template-columns: 1fr;} }
.step { position: relative; padding-top: 8px; }
.step .num { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--ink-600); }

/* Feature split ----------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 880px){ .split{ grid-template-columns: minmax(0,1fr);} }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--accent-600); flex: none; margin-top: 1px; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--bg-tint); aspect-ratio: 4/3; display:grid; place-items:center; }
.media-frame .ph { color: var(--ink-400); font-weight:600; text-align:center; padding: 20px; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Wide photo band (top of inner pages) */
.photo-band { aspect-ratio: 16 / 6; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--bg-tint); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 620px){ .photo-band { aspect-ratio: 3 / 2; } }

/* Home photo gallery strip */
.photo-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 760px){ .photo-strip { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.photo-strip .tile { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.photo-strip .tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.photo-strip .tile:hover img { transform: scale(1.05); }

/* Testimonials ------------------------------------------------------------ */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; height: 100%; }
.quote .stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.quote p { margin: 12px 0 16px; color: var(--ink); font-size: 1.04rem; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .av { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-050); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); }
.quote .who b { color: var(--navy); display:block; }
.quote .who small { color: var(--ink-400); }

/* FAQ / accordion --------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 22px 4px; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.08rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ic { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-tint); display: grid; place-items: center; flex: none; transition: .2s; }
.acc[open] summary .ic { background: var(--brand); color: #fff; transform: rotate(45deg); }
.acc .body { padding: 0 4px 22px; color: var(--ink-600); }

/* CTA band ---------------------------------------------------------------- */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-700)); border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 60px); text-align: center; color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #BCD0E8; max-width: 560px; margin: 14px auto 26px; }
.cta-band .hero-cta { justify-content: center; }

/* Forms / apply ----------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px){ .form-grid{ grid-template-columns: 1fr;} }
.form-grid .full { grid-column: 1 / -1; }
.form-note { font-size: .85rem; color: var(--ink-400); margin-top: 14px; }
.form-success { display:none; background: #ECFBF3; border: 1px solid #BBEBD2; color: #0B6B43; border-radius: var(--radius); padding: 20px; font-weight: 500; }
.form-success.show { display:block; }

/* Page hero (interior pages) --------------------------------------------- */
.page-hero { background: linear-gradient(180deg, var(--bg-tint), var(--bg)); border-bottom: 1px solid var(--line-200); }
.page-hero .container { padding-block: clamp(40px, 6vw, 72px); }
.breadcrumb { font-size: .86rem; color: var(--ink-400); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-400); }
.breadcrumb a:hover { color: var(--brand); }
.page-hero .lead { margin-top: 14px; max-width: 680px; }

/* Prose (legal pages) ----------------------------------------------------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; }
.prose h3 { font-size: 1.18rem; margin-top: 26px; }
.prose p, .prose li { color: var(--ink-600); }
.prose p { margin-top: 14px; }
.prose ul { margin-top: 12px; display: grid; gap: 8px; }
.prose .updated { color: var(--ink-400); font-size: .9rem; }
.callout { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); padding: 18px 20px; margin-top: 22px; }
.callout.warn { border-left-color: var(--gold); }

/* Footer ------------------------------------------------------------------ */
.footer { background: var(--navy); color: #9FB6D2; padding-block: clamp(48px, 6vw, 72px) 28px; }
.footer a { color: #C7D8EC; }
.footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 880px){ .foot-grid{ grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px){ .foot-grid{ grid-template-columns: 1fr; } }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand small { color: #8FA8C6; }
.foot-about { max-width: 320px; font-size: .95rem; }
.foot-col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.foot-contact li { display:flex; gap:9px; align-items:flex-start; }
.foot-contact svg { width:18px;height:18px;color:#7F9BBE;flex:none;margin-top:2px;}
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 38px; padding-top: 22px; font-size: .82rem; color: #88A1BF; display: grid; gap: 14px; }
.foot-legal p { line-height: 1.7; }
.foot-bottom { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; align-items:center; }
.foot-bottom .links { display:flex; gap:18px; flex-wrap:wrap; }

/* Multi-step apply -------------------------------------------------------- */
.progress-track { height: 7px; background: var(--line-200); border-radius: 99px; overflow: hidden; margin: 8px 0 24px; }
.progress-track > div { height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 99px; transition: width .35s ease; }
.step-label { font-family: var(--font-head); font-weight: 700; color: var(--brand); font-size: .85rem; letter-spacing: .04em; }
.step-panel h2 { font-size: 1.5rem; }
.step-panel > p { color: var(--ink-600); margin: 6px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 11px 18px; font-weight: 600; font-family: var(--font-head); color: var(--navy); cursor: pointer; transition: .15s; font-size: .96rem; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.sel { background: var(--brand); color: #fff; border-color: var(--brand); }
.apply-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.apply-nav .btn-prev { background: none; border: 1.5px solid var(--line); color: var(--ink-600); }
.apply-nav .btn-prev:hover { border-color: var(--ink-400); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; margin-top: 22px; }
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-600); font-weight: 500; font-size: .94rem; }
.trust-strip svg { width: 18px; height: 18px; color: var(--accent-600); }

/* Contact ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 52px); align-items: start; }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-050); color: var(--brand); display: grid; place-items: center; flex: none; }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list b { color: var(--navy); font-family: var(--font-head); display: block; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 24px; aspect-ratio: 16/9; background: var(--bg-tint); display: grid; place-items: center; }
.map-frame .ph { color: var(--ink-400); font-weight: 600; padding: 20px; text-align: center; }

/* Calculator page tabs ---------------------------------------------------- */
.result-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 4px; }
@media (max-width: 640px){ .result-cards { grid-template-columns: 1fr; } }
.result { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.result .big { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: var(--navy); }
.result.lead-result { background: linear-gradient(135deg, var(--navy), var(--navy-700)); border: 0; color: #fff; }
.result.lead-result .big { color: #fff; }
.result small { color: var(--ink-400); }
.result.lead-result small { color: #AFC4E0; }

/* Reveal on scroll -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none;} html{scroll-behavior:auto;} }

/* Utilities --------------------------------------------------------------- */
.mt-0{margin-top:0}.mt-2{margin-top:14px}.mt-3{margin-top:22px}.mt-4{margin-top:32px}
.badge { display:inline-flex; align-items:center; gap:7px; background: var(--brand-050); color: var(--brand-600); font-weight:600; font-size:.84rem; padding:7px 13px; border-radius:999px; }
.badge.green { background:#E7F9F1; color: var(--accent-600); }
.skip-link { position:absolute; left:-999px; }
.skip-link:focus { left:12px; top:12px; background:#fff; padding:10px 16px; border-radius:8px; z-index:100; box-shadow: var(--shadow); }

/* ==========================================================================
   Auto Solve Cars — dealership additions (stock, car detail, finance band)
   ========================================================================== */
.badge.green { display:inline-flex; align-items:center; gap:8px; background:var(--brand-050); color:var(--brand-600);
  font-weight:600; font-size:.82rem; padding:7px 14px; border-radius:999px; }
.badge.green svg { width:15px; height:15px; color:var(--accent-600); }

/* stock grid + cards */
.stock-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(18px,2.4vw,26px); }
@media (max-width:900px){ .stock-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px){ .stock-grid{ grid-template-columns:1fr; } }
.stock-card { display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  overflow:hidden; box-shadow:var(--shadow-sm); transition:.2s ease; color:inherit; }
.stock-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--brand-050); color:inherit; }
.sc-img { position:relative; aspect-ratio:4/3; background:var(--bg-tint); overflow:hidden; }
.sc-img img { width:100%; height:100%; object-fit:cover; transition:.4s ease; }
.stock-card:hover .sc-img img { transform:scale(1.05); }
.card-sold { position:absolute; top:12px; left:12px; background:var(--navy); color:#fff; font-family:var(--font-head);
  font-weight:700; font-size:.74rem; letter-spacing:.08em; text-transform:uppercase; padding:5px 12px; border-radius:999px; z-index:2; }
.sc-body { padding:16px 18px 18px; display:flex; flex-direction:column; flex:1; }
.sc-body h3 { font-size:1.12rem; line-height:1.2; }
.sc-variant { color:var(--ink-400); font-size:.9rem; margin-top:3px; min-height:1.1em; }
.sc-meta { color:var(--ink-600); font-size:.86rem; margin-top:10px; }
.sc-foot { display:flex; align-items:center; justify-content:space-between; margin-top:14px; padding-top:14px; border-top:1px solid var(--line-200); }
.sc-price { font-family:var(--font-head); font-weight:800; font-size:1.3rem; color:var(--navy); letter-spacing:-.01em; }
.sc-cta { display:inline-flex; align-items:center; gap:5px; color:var(--brand); font-weight:600; font-size:.9rem; }

/* page hero (interior pages) */
.page-hero { background:linear-gradient(180deg, var(--bg-soft), var(--bg)); padding-block:clamp(40px,6vw,72px) clamp(8px,2vw,20px); }
.page-hero .lead { max-width:680px; }

/* stock filters */
.stock-filters { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:12px; margin-bottom:18px; }
@media (max-width:760px){ .stock-filters{ grid-template-columns:1fr 1fr; } }
.stock-filters input, .stock-filters select { width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:var(--radius-sm);
  font:inherit; font-size:.95rem; background:#fff; color:var(--ink); }
.stock-filters input:focus, .stock-filters select:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-050); }
.stock-count { margin-bottom:18px; font-size:.9rem; }

/* car detail */
.back-link { display:inline-flex; align-items:center; gap:7px; color:var(--ink-600); font-weight:600; font-size:.92rem; margin-bottom:18px; }
.back-link:hover { color:var(--brand); }
.cd-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:clamp(24px,3.5vw,48px); align-items:start; }
@media (max-width:900px){ .cd-grid{ grid-template-columns:1fr; } }
.gallery-main { aspect-ratio:4/3; border-radius:var(--radius-lg); overflow:hidden; background:var(--bg-tint); border:1px solid var(--line); }
.gallery-main img { width:100%; height:100%; object-fit:cover; }
.gthumbs { display:grid; grid-template-columns:repeat(6,1fr); gap:8px; margin-top:10px; }
.gthumb { aspect-ratio:1; border:2px solid transparent; border-radius:10px; overflow:hidden; padding:0; background:none; cursor:pointer; }
.gthumb img { width:100%; height:100%; object-fit:cover; }
.gthumb.sel { border-color:var(--brand); }
.cd-side h1 { font-size:clamp(1.6rem,3vw,2.2rem); }
.cd-variant { color:var(--ink-400); margin-top:4px; }
.cd-price { font-family:var(--font-head); font-weight:800; font-size:2.4rem; color:var(--navy); margin-top:16px; line-height:1; }
.cd-price span { display:block; font-size:.8rem; font-weight:600; color:var(--ink-400); letter-spacing:.04em; margin-top:6px; text-transform:uppercase; }
.cd-price.sold { color:var(--red); }
.cd-quickspecs { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.cd-quickspecs span { background:var(--bg-soft); border:1px solid var(--line); border-radius:999px; padding:7px 14px; font-size:.86rem; font-weight:500; color:var(--ink-600); }
.cd-actions { display:flex; flex-direction:column; gap:10px; margin-top:22px; }
.cd-lower { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:clamp(24px,3.5vw,48px); margin-top:clamp(32px,5vw,56px); }
@media (max-width:900px){ .cd-lower{ grid-template-columns:1fr; } }
.cd-desc p { color:var(--ink-600); line-height:1.7; }
.cd-desc h2, .cd-specs h2 { font-size:1.3rem; margin-bottom:14px; }
.spec-list { display:grid; grid-template-columns:1fr; gap:0; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.spec { display:flex; justify-content:space-between; gap:16px; padding:12px 16px; }
.spec:nth-child(odd){ background:var(--bg-soft); }
.spec dt { color:var(--ink-400); font-weight:500; }
.spec dd { font-weight:600; color:var(--navy); text-align:right; }

/* finance band (navy split with stats) */
.fin-stats { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.fin-stat { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:var(--radius); padding:20px; text-align:center; }
.fin-stat .n { font-family:var(--font-head); font-weight:800; font-size:clamp(1.5rem,2.6vw,2rem); color:#fff; }
.fin-stat .l { color:#9FB6D2; font-size:.86rem; margin-top:4px; }

/* ==========================================================================
   CAR SITE THEME — distinct "showroom" identity vs the finance site.
   Same design system; different skin: deep automotive red + dark hero.
   (Finance site stays steel-blue/light. This makes the two read as siblings.)
   ========================================================================== */
:root {
  --brand:     #C8102E;   /* deep automotive red — primary action + accents */
  --brand-600: #A20D24;   /* darker hover */
  --brand-050: #FCEAEC;   /* light red tint */
}
.badge.green { background:#FCEAEC; color:#A20D24; }
.badge.green svg { color:#C8102E; }
/* keep the success-green tick semantics where used as a checkmark */
.hero-points svg, .checklist svg { color:#C8102E; }

/* Dark, image-led hero — the signature difference from the finance site */
.hero--dark { position:relative; background:#141414; color:#fff; overflow:hidden; }
.hero--dark .hero-bg { position:absolute; inset:0; z-index:0; }
.hero--dark .hero-bg img { width:100%; height:100%; object-fit:cover; opacity:.5; }
.hero--dark::after { content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(90deg, #111 4%, rgba(17,17,17,.82) 46%, rgba(17,17,17,.30) 100%); }
.hero--dark .container { position:relative; z-index:2; }
.hero--dark .hero-inner { max-width:660px; padding-block:clamp(72px,12vw,148px); }
.hero--dark h1 { color:#fff; }
.hero--dark .lead { color:rgba(255,255,255,.84); max-width:560px; }
.hero--dark .hero-points li { color:rgba(255,255,255,.9); }
.hero--dark .hero-points svg { color:#fff; }
.hero--dark .badge.green { background:rgba(255,255,255,.12); color:#fff; backdrop-filter:blur(4px); }
.hero--dark .badge.green svg { color:#fff; }
.hero--dark .muted { color:rgba(255,255,255,.66) !important; }
.hero--dark .btn-ghost { background:rgba(255,255,255,.08); color:#fff; border-color:rgba(255,255,255,.28); }
.hero--dark .btn-ghost:hover { background:#fff; color:var(--navy); }
@media (max-width:700px){ .hero--dark::after { background:linear-gradient(180deg, rgba(17,17,17,.6) 0%, rgba(17,17,17,.86) 60%); } }
