
:root {
  --navy: #0A1F3A;
  --navy-2: #12294B;
  --orange: #E8772C;
  --orange-2: #C9611D;
  --cream: #F8F7F4;
  --ink: #131A2A;
  --muted: #5A6478;
  --line: #E4E3DD;
  --hot: #C23A1E;
  --hot-2: #9A2D14;
  --shadow: 0 1px 2px rgba(10,31,58,.04), 0 8px 32px rgba(10,31,58,.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font-family: 'Source Sans 3', system-ui, sans-serif; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; line-height: 1.6; font-size: 17px; }
a { color: inherit; }
img, svg { max-width: 100%; display:block; }
h1,h2,h3,h4 { font-family: 'Playfair Display', Georgia, serif; letter-spacing:-.005em; line-height:1.15; margin:0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: #2A3349; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: 'Source Sans 3', sans-serif; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color: var(--orange); font-size:.78rem; }
.muted { color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; background: rgba(248,247,244,.92); backdrop-filter: saturate(160%) blur(10px); z-index: 50; border-bottom: 1px solid var(--line); }
.nav-row { display:flex; align-items:center; justify-content: space-between; height: 72px; gap: 24px; }
.brand-mark { display:flex; align-items:center; gap:10px; text-decoration:none; color: var(--navy); }
.brand-word { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.4rem; letter-spacing:-.005em; }
.brand-word.light { color: var(--cream); }
.nav-links { display:flex; align-items:center; gap: 28px; }
.nav-link { text-decoration: none; color: var(--navy); font-weight: 500; font-size: .95rem; position: relative; }
.nav-link:hover { color: var(--orange); }
.nav-link.active { color: var(--orange); }
.nav-link.active::after { content:""; position:absolute; left:0; right:0; bottom:-8px; height:2px; background: var(--orange); }
.nav-toggle { display:none; border:0; background: transparent; width: 40px; height: 40px; cursor: pointer; flex-direction:column; justify-content:center; gap:5px; align-items:center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); display:block; }
.mobile-menu { display:none; flex-direction: column; padding: 10px 24px 20px; border-top: 1px solid var(--line); background: var(--cream); }
.mobile-menu .mobile-link { text-decoration:none; color: var(--navy); font-weight: 500; padding: 10px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu[data-open="true"] { display: flex; }
}

/* Buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5em; border-radius: 999px; padding: 14px 26px; font-weight:600; text-decoration:none; font-size:.98rem; border:1px solid transparent; transition: transform .08s ease, background .15s, border .15s, color .15s; cursor:pointer; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-2); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { color: var(--orange); }
.btn-hot { background: var(--hot); color:#fff; font-size: 1.15rem; padding: 20px 32px; }
.btn-hot:hover { background: var(--hot-2); }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items:center; }
.hero h1 { margin-top: .4em; }
.hero-lede { font-size: 1.15rem; color: #2A3349; max-width: 52ch; }
.hero-cta-row { display:flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-meta { margin-top: 28px; display:flex; gap: 20px; color: var(--muted); font-size:.92rem; flex-wrap: wrap; }
.hero-meta span::before { content: "✓"; color: var(--orange); margin-right:.4em; font-weight:700; }
.hero-card { background:#fff; border:1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.hero-card h3 { color: var(--navy); margin-bottom: 8px; }
.hero-card .steps { list-style: none; padding: 0; margin: 14px 0 20px; }
.hero-card .steps li { padding: 10px 0; border-bottom: 1px solid var(--line); display:flex; gap: 12px; align-items:flex-start; }
.hero-card .steps li:last-child { border-bottom: 0; }
.hero-card .steps .num { background: var(--navy); color: var(--cream); width:26px; height:26px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:.85rem; flex-shrink:0; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Sections */
section { padding: 72px 0; }
section.narrow { padding: 48px 0; }
.section-head { max-width: 64ch; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }

/* Brands strip */
.brands-strip { background: #fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding: 28px 0; }
.brands-row { display:grid; grid-template-columns: repeat(6, 1fr); gap: 36px; align-items:center; }
.brands-row img, .brands-row svg { max-height: 34px; width:auto; margin: 0 auto; filter: grayscale(100%); opacity: .75; transition: opacity .2s, filter .2s; }
.brands-row a:hover img, .brands-row a:hover svg { filter: grayscale(0); opacity: 1; }
@media (max-width: 820px) { .brands-row { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Cards */
.card-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background:#fff; border:1px solid var(--line); border-radius: 14px; padding: 28px; transition: transform .12s, box-shadow .15s, border-color .15s; text-decoration:none; color: inherit; display:flex; flex-direction:column; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #D5D4CD; }
.card h3 { color: var(--navy); margin-bottom: 6px; }
.card p { color: #333B52; margin-bottom: 14px; }
.card .meta { margin-top:auto; color: var(--orange); font-weight:600; font-size:.92rem; }
.card .icon { width: 44px; height: 44px; border-radius:10px; background: var(--navy); color: var(--cream); display:grid; place-items:center; margin-bottom: 16px; }
@media (max-width: 820px) { .card-grid, .card-grid.two { grid-template-columns: 1fr; } }

/* Assessment banner */
.band { background: var(--navy); color: var(--cream); padding: 64px 0; }
.band h2 { color: #fff; }
.band p { color: #D5DBE5; }
.band .btn-primary { background: var(--orange); }
.band-grid { display:grid; grid-template-columns: 1.1fr auto; gap: 32px; align-items:center; }
@media (max-width: 820px) { .band-grid { grid-template-columns: 1fr; } }

/* Trade-in banner */
.band-alt { background: #fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding: 56px 0; }

/* Forms */
.form-wrap { background:#fff; border:1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display:flex; flex-direction:column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight:600; font-size:.92rem; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { color: var(--muted); font-size:.85rem; }
.field.required label::after { content:" *"; color: var(--hot); }
.form-error { color: var(--hot); font-size:.88rem; margin-top:-10px; margin-bottom: 12px; display:none; }
.form-error.show { display:block; }
.choice-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice-grid.two { grid-template-columns: repeat(2, 1fr); }
.choice-grid label { display:flex; flex-direction:column; align-items:stretch; padding: 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .1s, background .1s; }
.choice-grid label:hover { border-color: var(--orange); }
.choice-grid input { position:absolute; opacity:0; pointer-events:none; }
.choice-grid input:checked + .choice { color: var(--orange); font-weight:600; }
.choice-grid input:checked ~ .choice-outline, .choice-grid label:has(input:checked) { border-color: var(--orange); background: #FFF4EC; }
.choice-grid .choice-title { font-weight:600; color: var(--navy); margin-bottom: 4px; }
.choice-grid .choice-sub { color: var(--muted); font-size:.88rem; }
@media (max-width: 640px) { .choice-grid, .choice-grid.two, .form-row { grid-template-columns: 1fr; } }

/* Assessment-specific */
.assessment-shell { padding: 48px 0 96px; }
.quiz-step { display:none; }
.quiz-step.active { display:block; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 28px; }
.progress > span { display:block; height: 100%; width: 0; background: var(--orange); transition: width .25s; }
.step-nav { display:flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.result-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.result-hot { border-color: var(--hot); background: linear-gradient(180deg, #FFF4F0 0%, #FFFFFF 60%); }
.result-hot .hot-flag { display:inline-flex; align-items:center; gap:6px; background: var(--hot); color:#fff; padding: 6px 12px; border-radius:999px; font-weight:600; font-size:.82rem; margin-bottom: 16px; }
.call-now-row { display:flex; flex-direction:column; gap:10px; background: #fff; border: 2px solid var(--hot); padding: 24px; border-radius: 14px; margin: 20px 0; }
.call-now-row .phone-text { font-family: 'Playfair Display', serif; font-size: 2.3rem; font-weight: 700; color: var(--hot); letter-spacing: -.01em; }
.rec-list { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
.rec-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--cream); }
.rec-card h4 { color: var(--navy); margin-bottom: 4px; font-family: 'Source Sans 3', sans-serif; font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing:.04em; }
.rec-card .model { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--navy); font-weight: 600; margin-bottom: 6px; }
.rec-card .price { color: var(--orange); font-weight: 700; margin-bottom: 8px; }
.rec-card p { color: #2A3349; font-size: .94rem; margin: 0; }
@media (max-width: 640px) { .rec-list { grid-template-columns: 1fr; } }

/* Blog */
.post-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 820px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius: 14px; overflow:hidden; text-decoration:none; color:inherit; transition: transform .12s, box-shadow .15s; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--navy), #1C3562); color: var(--cream); overflow:hidden; position:relative; }
.post-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.post-thumb svg { width: 70%; opacity: .35; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); }
.post-body { padding: 24px; }
.post-meta { color: var(--muted); font-size: .82rem; margin-bottom: 6px; }
.post-card h3 { margin-bottom: 8px; }
.article { max-width: 68ch; margin: 0 auto; padding: 56px 24px 96px; }
.article h1 { margin-bottom: 16px; }
.article .meta { color: var(--muted); margin-bottom: 32px; }
.article-hero { width:100%; margin: 8px 0 40px; }
.article-hero img { width:100%; aspect-ratio: 16/8; object-fit:cover; display:block; border-radius: 14px; background: var(--paper); }
.article-hero figcaption { color: var(--muted); font-size: .85rem; margin-top: 10px; font-style: italic; text-align:center; }
.article figure.inline-fig { margin: 32px 0; }
.article figure.inline-fig img { width:100%; border-radius: 10px; display:block; }
.article figure.inline-fig figcaption { color: var(--muted); font-size: .85rem; margin-top: 8px; font-style: italic; }
.article h2 { margin-top: 48px; }
.article h3 { margin-top: 32px; }
.article ul, .article ol { padding-left: 1.25em; color: #2A3349; }
.article li { margin-bottom: .5em; }
.article blockquote { border-left: 3px solid var(--orange); padding: 4px 0 4px 20px; margin: 24px 0; color: var(--navy); font-style: italic; }

/* Footer */
.site-footer { background: var(--navy); color: var(--cream); padding: 64px 0 28px; margin-top: 96px; }
.footer-grid { display:grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid h4 { color: #fff; font-family: 'Source Sans 3', sans-serif; font-size: .85rem; letter-spacing:.12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid a { display:block; color: #D5DBE5; text-decoration:none; padding: 5px 0; font-size: .94rem; }
.footer-grid a:hover { color: var(--orange); }
.footer-tag { color: #B6C0D2; font-size:.9rem; max-width: 32ch; }
.footer-bottom { display:flex; justify-content: space-between; padding-top: 24px; color: #B6C0D2; font-size:.85rem; flex-wrap: wrap; gap: 14px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Application detail pages */
.page-head { padding: 56px 0 32px; }
.page-head .eyebrow { margin-bottom: 10px; display:block; }
.page-head .lede { max-width: 60ch; font-size: 1.1rem; color: #2A3349; }
.split { display:grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items:start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.sidebox { background: #fff; border:1px solid var(--line); border-radius: 14px; padding: 24px; position: sticky; top: 92px; }
.sidebox h3 { margin-bottom: 10px; }
.fact-list { list-style: none; padding: 0; margin: 0 0 18px; }
.fact-list li { display:flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; color: #2A3349; }
.fact-list li:last-child { border-bottom: 0; }
.fact-list li::before { content: "→"; color: var(--orange); font-weight:700; flex-shrink: 0; }

/* Brand card */
.brand-card { background: #fff; border:1px solid var(--line); border-radius: 16px; padding: 32px; text-decoration:none; color: inherit; display:flex; flex-direction:column; }
.brand-card .logo-slot { height: 56px; display:flex; align-items:center; margin-bottom: 20px; }
.brand-card .logo-slot img, .brand-card .logo-slot svg { max-height: 48px; max-width: 200px; }
.brand-card h3 { margin-bottom: 8px; }
.brand-card p { color: #333B52; margin-bottom: 16px; }
.brand-card .uses { list-style: none; padding:0; margin: 0 0 16px; color: var(--muted); font-size:.9rem; }
.brand-card .uses li::before { content: "◆ "; color: var(--orange); }

/* 404 */
.four-oh-four { padding: 120px 0; text-align: center; }
.four-oh-four h1 { font-size: clamp(3rem, 8vw, 6rem); color: var(--orange); margin-bottom: 0; }
.four-oh-four p { max-width: 40ch; margin: 0 auto 20px; }

/* Utilities */
.center { text-align:center; }
.stack-sm > * + * { margin-top: 12px; }
.stack-md > * + * { margin-top: 20px; }
.hidden { display:none !important; }
