:root {
  --ink: #15171a;
  --ink-soft: #25282d;
  --paper: #f4f1ed;
  --white: #ffffff;
  --red: #ed1c2e;
  --red-dark: #bb0d1c;
  --muted: #6e6e6b;
  --line: #d8d3cc;
  --shell: min(1180px, calc(100vw - 48px));
  --radius: 4px;
  --shadow: 0 22px 60px rgba(18, 20, 22, 0.12);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
h1 { font-size: clamp(3.8rem, 8.5vw, 7.8rem); }
h2 { font-size: clamp(2.8rem, 5vw, 5.1rem); margin-bottom: 0; }
h3 { font-size: clamp(1.65rem, 2.6vw, 2.35rem); }
h1 em, h2 em { color: var(--red); font-style: normal; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.eyebrow-light { color: #ff5260; }
.text-link { display: inline-block; border-bottom: 1px solid currentColor; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.text-link:hover { color: var(--red); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(21, 23, 26, .96); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.header-inner { height: 92px; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 48px; }
.brand img { width: 118px; height: auto; }
.desktop-nav { display: flex; justify-content: center; gap: 34px; }
.desktop-nav li { margin: 0; padding: 0; list-style: none; }
.desktop-nav a { position: relative; display: block; padding: 34px 0; color: #c9c9c9; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.desktop-nav a::after { content: ""; position: absolute; right: 0; bottom: 25px; left: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--white); }
.desktop-nav a:hover::after, .desktop-nav a.active::after { transform: scaleX(1); }
.header-cta { display: flex; flex-direction: column; padding-left: 24px; border-left: 1px solid #3b3e43; line-height: 1.2; }
.header-cta span { color: #92969c; font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; }
.header-cta strong { margin-top: 5px; font-size: .92rem; }
.menu-toggle { display: none; border: 0; background: none; padding: 10px; }
.menu-toggle > span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px 0; background: white; }
.mobile-nav { padding: 18px 24px 28px; background: var(--ink); border-top: 1px solid #36393e; }
.mobile-nav a { display: block; padding: 13px 0; border-bottom: 1px solid #303338; font-weight: 700; text-transform: uppercase; }

.hero { position: relative; min-height: min(780px, calc(100vh - 30px)); display: flex; align-items: center; overflow: hidden; background: var(--ink); color: var(--white); }
.hero-media { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(15,16,18,.92) 0%, rgba(15,16,18,.62) 48%, rgba(15,16,18,.34) 100%), linear-gradient(0deg, rgba(15,16,18,.5), transparent 50%), url('/images/hero-handshake.webp'); background-position: center; background-size: cover; transform: scale(1.02); }
.hero::after { content: "AVI"; position: absolute; right: -20px; bottom: -150px; color: rgba(255,255,255,.035); font-family: Impact, sans-serif; font-size: 34vw; line-height: 1; }
.hero-content { position: relative; z-index: 2; padding-bottom: 90px; }
.hero h1 { max-width: 900px; margin: 0 0 28px; }
.hero-copy { max-width: 620px; color: #d3d4d6; font-size: clamp(1rem, 1.4vw, 1.23rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 26px; border: 1px solid transparent; border-radius: 2px; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-red { background: var(--red); color: var(--white); }
.button-red:hover { background: var(--red-dark); }
.button-ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.button-ghost:hover { background: var(--white); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--white); }
.button-outline { border-color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--white); }
.button-small { min-height: 44px; padding-inline: 18px; }
.button-wide { width: 100%; }
.hero-stats { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, 1fr) 1.35fr; border-top: 1px solid rgba(255,255,255,.2); background: rgba(12,13,15,.72); backdrop-filter: blur(10px); }
.hero-stats > div, .hero-stats > a { min-height: 105px; display: flex; flex-direction: column; justify-content: center; padding: 20px 30px; border-right: 1px solid rgba(255,255,255,.14); }
.hero-stats strong { font-family: Impact, sans-serif; font-size: 1.85rem; font-weight: 400; letter-spacing: .03em; text-transform: uppercase; }
.hero-stats span { color: #aaaeb2; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-stats > a { background: var(--red); }
.hero-stats > a span { color: #ffd5d8; }

.section { padding: 110px 0; }
.section-intro { background: var(--white); }
.split-heading { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 90px; }
.intro-copy { padding-bottom: 8px; }
.intro-copy p { color: #505258; font-size: 1.08rem; }
.inventory-section { background: var(--paper); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.car-card { min-width: 0; background: var(--white); box-shadow: 0 1px 0 rgba(0,0,0,.06); transition: transform .25s ease, box-shadow .25s ease; }
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.car-card[hidden] { display: none; }
.car-image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #d8d6d2; }
.car-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.car-card:hover .car-image img { transform: scale(1.035); }
.status-pill { position: absolute; top: 16px; left: 16px; padding: 8px 11px; background: var(--white); color: #226b3c; border-radius: 2px; font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.status-pill.sold { color: #8d1b24; }
.car-body { padding: 25px; }
.car-heading { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.car-heading h3 { margin: 4px 0 0; }
.car-heading h3 a:hover { color: var(--red); }
.car-kicker { margin-bottom: 0; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.car-price { color: var(--red); font-size: 1.05rem; white-space: nowrap; }
.car-specs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; padding: 18px 0; border-top: 1px solid #ebe8e3; border-bottom: 1px solid #ebe8e3; }
.car-specs span { display: flex; flex-direction: column; font-size: .82rem; font-weight: 700; }
.car-specs span + span { padding-left: 18px; border-left: 1px solid #ebe8e3; }
.car-specs small { color: #99958f; font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.car-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.icon-link { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.icon-link:hover { color: var(--red); }
.notice { grid-column: 1 / -1; padding: 30px; border: 1px solid var(--line); background: var(--white); }
.notice a { color: var(--red); font-weight: 800; }

.story-section { background: var(--ink); color: var(--white); }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9vw; align-items: center; }
.story-image { position: relative; }
.story-image::before { content: ""; position: absolute; top: -22px; right: -22px; width: 42%; height: 42%; background: var(--red); }
.story-image img { position: relative; z-index: 1; width: 100%; height: 650px; object-fit: cover; }
.story-image span { position: absolute; z-index: 2; right: -18px; bottom: 30px; padding: 12px 20px; background: var(--white); color: var(--ink); font-size: .7rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.story-content > p:not(.eyebrow) { max-width: 640px; color: #b8bbc0; font-size: 1.05rem; }
.benefit-list { margin-top: 45px; }
.benefit-list > div { display: grid; grid-template-columns: 44px 190px 1fr; gap: 18px; padding: 21px 0; border-top: 1px solid #393c42; }
.benefit-list span { color: var(--red); font-size: .7rem; font-weight: 900; }
.benefit-list strong { text-transform: uppercase; }
.benefit-list p { margin: 0; color: #92969d; font-size: .88rem; }
.finance-section { background: var(--red); color: var(--white); }
.finance-section .eyebrow { color: #5e060e; }
.finance-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 90px; }
.finance-grid > div:last-child p { font-size: 1.08rem; }
.finance-grid .button { margin-top: 20px; }
.brands { padding: 45px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.brand-row p, .brand-row span { margin: 0; color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brand-row img { width: 95px; height: 55px; object-fit: contain; filter: grayscale(1); opacity: .72; }

.page-hero { padding: 100px 0; background: var(--ink); color: var(--white); }
.page-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: end; }
.page-hero h1 { margin: 0; }
.page-hero-grid > p { max-width: 500px; margin: 0 0 12px; color: #b9bdc2; font-size: 1.08rem; }
.inventory-page { min-height: 640px; }
.filters { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 12px; padding: 22px; background: var(--white); box-shadow: 0 10px 45px rgba(20,21,24,.08); }
.filters label { display: flex; flex-direction: column; gap: 6px; }
.filters label > span { color: #807c77; font-size: .58rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.filters input, .filters select { height: 48px; width: 100%; padding: 0 14px; border: 1px solid #dcd8d2; border-radius: 0; background: #faf9f7; color: var(--ink); outline: none; }
.filters input:focus, .filters select:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgba(237,28,46,.12); }
.inventory-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.inventory-meta p { margin-bottom: 12px; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.inventory-meta p strong { color: var(--ink); }
.inventory-meta button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.inventory-meta button:hover { color: var(--red); }
.empty-state { padding: 70px 0; text-align: center; }
.empty-state .eyebrow { justify-content: center; }
.empty-state h2 { font-size: 3.5rem; }

.vehicle-detail { padding: 38px 0 105px; background: var(--white); }
.breadcrumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 30px; color: #8b8985; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.breadcrumbs strong { color: var(--ink); }
.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.detail-image { position: sticky; top: 130px; min-height: 520px; background: #ddd9d3; }
.detail-image img { width: 100%; height: min(65vh, 650px); object-fit: cover; }
.detail-content { padding-top: 30px; }
.detail-content h1 { margin-bottom: 18px; font-size: clamp(3.3rem, 5.6vw, 6rem); }
.detail-price { margin-bottom: 30px; color: var(--red); font-family: Impact, sans-serif; font-size: 2.15rem; }
.detail-specs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 28px; }
.detail-specs div { min-height: 92px; display: flex; flex-direction: column; justify-content: center; padding: 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-specs span { color: var(--muted); font-size: .6rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.detail-specs strong { font-size: 1rem; }
.vehicle-description { color: var(--muted); }
.detail-phone { display: block; margin: 17px 0; text-align: center; font-size: .82rem; }
.detail-phone strong { color: var(--red); }
.detail-note { color: #8b8985; font-size: .7rem; text-align: center; }
.related-section { background: var(--paper); }
.car-grid-related { grid-template-columns: repeat(2, minmax(0, 380px)); }
.not-found { min-height: 660px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found h1 { max-width: 950px; margin-bottom: 25px; }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 11px; padding: 8px 15px 8px 8px; background: #20c565; color: #052b16; border-radius: 999px; box-shadow: 0 14px 35px rgba(0,0,0,.24); }
.whatsapp-float span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; background: #0d512b; color: white; font-size: .64rem; font-weight: 900; }
.whatsapp-float strong { font-size: .72rem; text-transform: uppercase; }
.site-footer { padding: 70px 0 25px; background: #101113; color: #d2d3d5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 70px; }
.footer-brand img { width: 145px; margin-bottom: 20px; }
.footer-brand p { max-width: 330px; color: #8f9297; }
.footer-label { color: var(--red); font-size: .65rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.site-footer address { font-style: normal; }
.site-footer a { display: block; margin-bottom: 8px; }
.site-footer small { color: #81848a; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 60px; padding-top: 22px; border-top: 1px solid #2a2c30; color: #74777c; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.footer-bottom p { margin: 0; }
.content-page { min-height: 62vh; background: var(--white); }
.content-narrow { max-width: 850px; }
.content-page h1 { font-size: clamp(3.5rem, 7vw, 6.5rem); }
.entry-content { margin-top: 35px; color: #505258; }
.entry-content a { color: var(--red); text-decoration: underline; }
.navigation.pagination { width: var(--shell); margin: 45px auto 0; }
.nav-links { display: flex; justify-content: center; gap: 8px; }
.page-numbers { display: grid; min-width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); background: var(--white); font-size: .75rem; font-weight: 800; }
.page-numbers.current, .page-numbers:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.admin-bar .site-header { top: 32px; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 760px); }
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: 760px; align-items: flex-start; padding-top: 105px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div, .hero-stats > a { min-height: 82px; padding: 14px 18px; }
  .split-heading, .story-grid, .finance-grid, .page-hero-grid, .detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .story-image { max-width: 520px; }
  .story-image img { height: 560px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .detail-image { position: relative; top: auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 28px); }
  .header-inner { height: 76px; }
  .brand img { width: 100px; }
  h1 { font-size: clamp(3.3rem, 17vw, 5.3rem); }
  h2 { font-size: clamp(2.65rem, 12vw, 4.2rem); }
  .hero { min-height: 760px; }
  .hero-content { padding-bottom: 250px; }
  .hero-copy { max-width: 92%; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 330px; }
  .hero-stats { grid-template-columns: 1fr 1fr; width: 100%; }
  .hero-stats > div, .hero-stats > a { padding: 12px; }
  .hero-stats strong { font-size: 1.38rem; }
  .hero-stats span { font-size: .57rem; }
  .section { padding: 78px 0; }
  .section-heading-row { align-items: flex-start; flex-direction: column; margin-bottom: 32px; }
  .car-grid, .car-grid-related { grid-template-columns: 1fr; }
  .story-image img { height: 480px; }
  .benefit-list > div { grid-template-columns: 34px 1fr; }
  .benefit-list p { grid-column: 2; }
  .brand-row { flex-wrap: wrap; justify-content: center; gap: 25px 40px; }
  .brand-row p { width: 100%; text-align: center; }
  .brand-row span { width: 100%; text-align: center; }
  .page-hero { padding: 72px 0; }
  .filters { grid-template-columns: 1fr; }
  .detail-grid { gap: 20px; }
  .detail-image { min-height: 0; }
  .detail-image img { height: auto; aspect-ratio: 4/3; }
  .detail-content { padding-top: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 42px 25px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .whatsapp-float strong { display: none; }
  .whatsapp-float { padding-right: 8px; }
  .admin-bar .site-header { top: 46px; }
}

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