:root {
    --red: #f5323a;
    --red-dark: #d61f2a;
    --black: #070708;
    --charcoal: #141416;
    --ink: #18181b;
    --muted: #6f7078;
    --line: #e5e5e8;
    --soft: #f4f4f5;
    --white: #fff;
    --shell: 1240px;
    --radius: 12px;
    --shadow: 0 24px 70px rgba(10, 10, 12, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; padding: 10px 16px; color: var(--white); background: var(--red); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 50; height: 96px; border-bottom: 1px solid rgba(255,255,255,.13); transition: background-color .25s ease, box-shadow .25s ease; }
.site-header.is-stuck { position: fixed; height: 78px; background: rgba(7,7,8,.96); box-shadow: 0 12px 40px rgba(0,0,0,.25); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; height: 100%; gap: 34px; }
.brand { flex: 0 0 auto; }
.brand img { width: 222px; height: 75px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; color: rgba(255,255,255,.76); font-size: 14px; font-weight: 750; }
.primary-nav a { position: relative; padding: 35px 0 31px; transition: color .2s ease; }
.site-header.is-stuck .primary-nav a { padding-block: 26px; }
.primary-nav a::after { position: absolute; right: 0; bottom: 24px; left: 0; height: 2px; content: ""; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--white); }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }
.header-cta { display: inline-flex; align-items: center; gap: 20px; padding: 13px 18px 13px 20px; color: var(--white); background: var(--red); border-radius: 7px; font-size: 14px; font-weight: 850; }
.header-cta span { font-size: 19px; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 850px; display: flex; align-items: center; color: var(--white); background: var(--black); overflow: hidden; }
.hero-backdrop { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,7,8,.98) 0%, rgba(7,7,8,.87) 37%, rgba(7,7,8,.14) 71%, rgba(7,7,8,.05) 100%), url("../images/extreme-auto-hero.png") 63% center / cover no-repeat; }
.hero-backdrop::before { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(0,0,0,.3), transparent 35%, rgba(0,0,0,.35)); }
.hero-backdrop::after { position: absolute; right: -70px; bottom: 175px; width: 48%; height: 5px; content: ""; background: var(--red); box-shadow: 0 0 35px rgba(245,50,58,.65); transform: rotate(-8deg); }
.hero-inner { position: relative; z-index: 2; padding-top: 68px; }
.hero-copy { max-width: 740px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { width: 34px; height: 3px; background: currentColor; }
.eyebrow-dark { color: var(--red-dark); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { margin-bottom: 22px; font-weight: 950; line-height: .98; letter-spacing: -.045em; }
h1 { max-width: 720px; font-size: clamp(49px, 6vw, 86px); }
h1 em, h2 em { color: var(--red); font-style: normal; }
.hero-lead { max-width: 650px; margin-bottom: 32px; color: rgba(255,255,255,.72); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 54px; padding: 0 22px; border: 1px solid transparent; border-radius: 7px; font-weight: 850; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--red); }
.button-primary:hover { background: var(--red-dark); }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); }
.button-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.trust-list { display: flex; flex-wrap: wrap; gap: 24px; margin: 34px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.65); font-size: 13px; }
.trust-list b { margin-right: 7px; color: var(--red); }

.vehicle-finder { position: absolute; z-index: 4; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1.25fr 1fr 1fr auto; gap: 1px; padding: 0; color: var(--ink); background: var(--line); box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.finder-heading, .vehicle-finder label { min-height: 105px; padding: 24px 26px; background: var(--white); }
.finder-heading { display: flex; flex-direction: column; justify-content: center; }
.finder-heading small { margin-bottom: 2px; color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.finder-heading strong { font-size: 19px; }
.vehicle-finder label { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.vehicle-finder label span { color: var(--muted); font-size: 12px; font-weight: 750; }
.vehicle-finder select { width: 100%; padding: 0 24px 0 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-weight: 850; }
.finder-submit { min-width: 175px; min-height: 105px; border-radius: 0; border: 0; }

.stats { color: var(--white); background: var(--black); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats article { display: flex; align-items: center; gap: 15px; padding: 34px 26px; border-right: 1px solid rgba(255,255,255,.1); }
.stats article:first-child { padding-left: 0; }
.stats article:last-child { border-right: 0; }
.stats strong { color: var(--red); font-size: 34px; line-height: 1; }
.stats span { max-width: 110px; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.35; text-transform: uppercase; }

.section { padding: 112px 0; }
.section-heading { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 60px; margin-bottom: 46px; }
.section-heading h2, .about h2, .contact h2, .import-copy h2 { font-size: clamp(42px, 5vw, 68px); }
.section-heading > p { margin: 0 0 8px; color: var(--muted); }
.filter-status { min-height: 26px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vehicle-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 15px 50px rgba(10,10,12,.08); transition: transform .22s ease, box-shadow .22s ease; }
.vehicle-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.vehicle-card[hidden] { display: none; }
.vehicle-image { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--soft); }
.vehicle-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.vehicle-card:hover .vehicle-image img { transform: scale(1.035); }
.vehicle-badge { position: absolute; top: 16px; left: 16px; padding: 6px 10px; color: var(--white); background: var(--red); border-radius: 4px; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.vehicle-arrow { position: absolute; right: 16px; bottom: 16px; display: grid; width: 42px; height: 42px; place-items: center; color: var(--white); background: rgba(7,7,8,.88); border-radius: 50%; }
.vehicle-card-body { padding: 22px; }
.vehicle-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.vehicle-title small { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.vehicle-title h3 { margin: 3px 0 0; font-size: 18px; line-height: 1.25; }
.vehicle-title > strong { flex: 0 0 auto; color: var(--red); font-size: 19px; white-space: nowrap; }
.vehicle-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; }
.vehicle-specs li { min-width: 0; }
.vehicle-specs b, .vehicle-specs span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-specs b { font-size: 12px; }
.vehicle-specs span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.section-action { margin-top: 34px; text-align: center; }
.text-link { display: inline-flex; align-items: center; gap: 22px; color: var(--red); font-weight: 900; }

.import-section { color: var(--white); background: var(--black); }
.import-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.import-copy { position: sticky; top: 115px; align-self: start; }
.import-copy > p:not(.eyebrow) { max-width: 540px; margin-bottom: 32px; color: rgba(255,255,255,.64); font-size: 18px; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 80px 1fr; gap: 25px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.14); }
.process-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.process-list > li > b { color: var(--red); font-size: 15px; }
.process-list h3 { margin-bottom: 8px; font-size: 22px; }
.process-list p { margin: 0; color: rgba(255,255,255,.56); }

.about { background: var(--soft); }
.about-grid { display: grid; grid-template-columns: .43fr 1fr; gap: 90px; align-items: center; }
.about-mark { position: relative; min-height: 470px; display: flex; flex-direction: column; justify-content: center; padding: 55px; color: var(--white); background: var(--black); overflow: hidden; }
.about-mark::before { position: absolute; right: -80px; bottom: 60px; width: 360px; height: 8px; content: ""; background: var(--red); transform: rotate(-36deg); }
.about-mark span { position: relative; z-index: 1; color: var(--red); font-size: 150px; font-weight: 950; line-height: .82; }
.about-mark small { position: relative; z-index: 1; margin-top: 22px; font-size: 17px; font-weight: 850; letter-spacing: .13em; line-height: 1.35; text-transform: uppercase; }
.about-lead { max-width: 750px; color: var(--muted); font-size: 19px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 45px; }
.benefit-grid article { padding-top: 20px; border-top: 2px solid var(--ink); }
.benefit-grid b { color: var(--red); font-size: 12px; }
.benefit-grid h3 { margin: 12px 0 8px; font-size: 16px; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.contact { color: var(--white); background: linear-gradient(125deg, #0a0a0b, #171719); }
.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: start; }
.contact-grid > div > p:last-child { max-width: 500px; color: rgba(255,255,255,.58); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 34px; background: var(--white); border-top: 5px solid var(--red); box-shadow: 0 22px 70px rgba(0,0,0,.32); }
.contact-form label { display: block; }
.contact-form label span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 15px; color: var(--ink); background: var(--soft); border: 1px solid transparent; outline: 0; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(245,50,58,.12); }
.field-wide { grid-column: 1 / -1; }
.contact-form .button { width: 100%; border: 0; }
.form-message { min-height: 22px; margin: 0; color: var(--red-dark); font-size: 13px; font-weight: 750; }

.site-footer { color: rgba(255,255,255,.58); background: var(--black); }
.footer-main { display: grid; grid-template-columns: .7fr 1fr 1fr; gap: 70px; align-items: center; padding: 55px 0; }
.footer-brand img { width: 185px; height: auto; }
.footer-main p { margin: 0; font-size: 14px; }
.footer-main nav { display: flex; justify-content: flex-end; gap: 24px; color: var(--white); font-size: 13px; font-weight: 800; }
.footer-main nav a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }

@media (max-width: 1040px) {
    .primary-nav { gap: 18px; }
    .header-cta { display: none; }
    .hero { min-height: 820px; }
    .vehicle-finder { grid-template-columns: 1.2fr 1fr 1fr; }
    .finder-submit { grid-column: 1 / -1; min-height: 62px; }
    .stats article { padding-inline: 16px; }
    .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
    .vehicle-card:last-child { grid-column: span 2; max-width: calc(50% - 11px); margin-inline: auto; }
    .import-grid, .contact-grid { gap: 55px; }
    .about-grid { grid-template-columns: .55fr 1fr; gap: 50px; }
}

@media (max-width: 760px) {
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .site-header, .site-header.is-stuck { height: 74px; }
    .brand img { width: 168px; height: 57px; }
    .menu-toggle { display: grid; grid-template-columns: 23px auto; grid-template-rows: repeat(3, 3px); align-items: center; gap: 4px 10px; margin-left: auto; padding: 10px 0; color: var(--white); background: transparent; border: 0; }
    .menu-toggle span { grid-column: 1; width: 23px; height: 2px; background: var(--red); transition: transform .2s ease, opacity .2s ease; }
    .menu-toggle b { grid-column: 2; grid-row: 1 / 4; font-size: 12px; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .primary-nav { position: fixed; inset: 74px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 28px; color: var(--white); background: rgba(7,7,8,.98); transform: translateX(100%); transition: transform .25s ease; }
    .nav-open .primary-nav { transform: translateX(0); }
    .primary-nav a, .site-header.is-stuck .primary-nav a { width: 100%; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 18px; }
    .primary-nav a::after { display: none; }
    .hero { min-height: 940px; align-items: flex-start; padding-top: 145px; }
    .hero-backdrop { background: linear-gradient(180deg, rgba(7,7,8,.64), rgba(7,7,8,.97) 62%), url("../images/extreme-auto-hero.png") 66% top / auto 58% no-repeat; }
    .hero-inner { padding-top: 0; }
    .eyebrow { font-size: 10px; letter-spacing: .12em; }
    h1 { font-size: clamp(44px, 13vw, 64px); }
    .hero-lead { font-size: 16px; }
    .trust-list { gap: 12px; }
    .vehicle-finder { right: 14px; left: 14px; width: auto; grid-template-columns: 1fr 1fr; }
    .finder-heading { grid-column: 1 / -1; min-height: 76px; }
    .vehicle-finder label { min-height: 86px; padding: 17px; }
    .finder-submit { grid-column: 1 / -1; min-height: 56px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats article { padding: 25px 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
    .stats article:nth-child(2) { border-right: 0; }
    .stats article:first-child { padding-left: 12px; }
    .section { padding: 78px 0; }
    .section-heading { grid-template-columns: 1fr; gap: 12px; }
    .section-heading h2, .about h2, .contact h2, .import-copy h2 { font-size: 44px; }
    .vehicle-grid { grid-template-columns: 1fr; }
    .vehicle-card:last-child { grid-column: auto; max-width: none; }
    .import-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
    .import-copy { position: static; }
    .about-mark { min-height: 340px; }
    .benefit-grid { grid-template-columns: 1fr; }
    .contact-form { grid-template-columns: 1fr; padding: 22px; }
    .field-wide { grid-column: auto; }
    .footer-main { grid-template-columns: 1fr; gap: 24px; }
    .footer-main nav { justify-content: flex-start; flex-wrap: wrap; }
    .footer-bottom { flex-direction: column; }
}

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