:root {
  --bg: #111111;
  --bg-2: #1a1a1a;
  --panel: rgba(255, 255, 255, 0.065);
  --accent: #d61f26;
  --accent-2: #ff3a42;
  --text: #ffffff;
  --muted: #b5b5b5;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #070707;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader span {
  width: 52px;
  height: 52px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
}

.topbar {
  background: #070707;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.topbar__inner,
.topbar__info,
.topbar__actions,
.navbar__inner,
.nav-menu,
.hero__buttons {
  display: flex;
  align-items: center;
}

.topbar__inner {
  min-height: 36px;
  justify-content: space-between;
  gap: 18px;
}

.topbar__info,
.topbar__actions {
  gap: 18px;
  flex-wrap: wrap;
}

.quick-link {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}

.social-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.social-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-icon:hover {
  border-color: rgba(214, 31, 38, 0.7);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.navbar {
  background: rgba(17, 17, 17, 0.34);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.navbar.is-solid {
  background: rgba(17, 17, 17, 0.94);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.navbar__inner {
  min-height: 76px;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(214, 31, 38, 0.55);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 28px rgba(214, 31, 38, 0.45);
  overflow: hidden;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.brand__text {
  display: grid;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand__text strong {
  font-size: 20px;
}

.brand__text small {
  color: var(--muted);
  font-size: 10px;
}

.nav-menu {
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 0 0 rgba(214, 31, 38, 0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(214, 31, 38, 0.35);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
}

.btn--small {
  min-height: 40px;
  padding: 0 18px;
  color: var(--text);
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 158px 0 54px;
}

.hero__media,
.cta {
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.22)), url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.hero__media {
  position: absolute;
  inset: 0;
  transform: scale(1.04);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 42%, rgba(214, 31, 38, 0.34), transparent 25%), linear-gradient(0deg, #111111 0%, rgba(17, 17, 17, 0.12) 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.split h2,
.finance h2,
.contact h2,
.cta h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero__sub {
  max-width: 690px;
  margin: 22px 0 8px;
  color: var(--text);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 700;
}

.hero__copy {
  max-width: 620px;
  color: var(--muted);
}

.hero__buttons {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 48px;
}

.hero__stats div,
.stats-strip__inner div {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.075);
  padding: 18px;
  backdrop-filter: blur(14px);
}

.hero__stats strong,
.stats-strip strong {
  display: block;
  font-size: 28px;
}

.hero__stats strong::after,
.stats-strip strong::after {
  content: "+";
  color: var(--accent);
}

.hero__stats div:last-child strong::after,
.stats-strip div:last-child strong::after {
  content: "%";
}

.hero__stats span,
.stats-strip span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.search-band {
  position: relative;
  z-index: 2;
  margin-top: -38px;
  padding-bottom: 54px;
}

.search-panel,
.calculator,
.contact-form {
  border: 1px solid var(--border);
  background: rgba(26, 26, 26, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.search-panel {
  padding: 28px;
}

.search-panel__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: none;
  padding: 13px 14px;
}

select option {
  color: #111111;
}

.section {
  padding: 92px 0;
}

.section--dark {
  background: var(--bg-2);
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2,
.split h2,
.finance h2,
.contact h2,
.cta h2 {
  font-size: clamp(34px, 4.2vw, 58px);
}

.section-heading p:last-child,
.split p,
.finance p,
.contact p,
.footer p {
  color: var(--muted);
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.vehicle-card {
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #111111;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vehicle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.vehicle-card img {
  height: 180px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.vehicle-card:hover img {
  transform: scale(1.08);
}

.vehicle-card__body {
  padding: 20px;
}

.tag {
  display: inline-flex;
  margin-top: -40px;
  position: relative;
  z-index: 1;
  background: var(--accent);
  color: var(--text);
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 900;
}

.vehicle-card h3,
.budget-card h3 {
  margin: 14px 0 6px;
}

.vehicle-card p,
.budget-card p {
  color: #666666;
  font-size: 13px;
}

.vehicle-card a,
.inventory-slider a {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
}

.budget-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.budget-card,
.trust-grid div {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.budget-card:hover,
.trust-grid div:hover {
  transform: translateY(-5px);
  border-color: rgba(214, 31, 38, 0.6);
}

.budget-card span {
  display: inline-flex;
  background: var(--accent);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.budget-card p {
  color: var(--muted);
}

.budget-card strong {
  color: var(--accent-2);
  font-size: 26px;
}

.split {
  background: linear-gradient(90deg, #141414 0%, #141414 55%, #202020 55%);
}

.split__inner,
.finance__inner,
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.feature-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.feature-list i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--accent);
  font-style: normal;
  font-weight: 900;
}

.split__image img {
  max-height: 560px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.finance {
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.94), rgba(17, 17, 17, 0.62)), url("https://images.unsplash.com/photo-1549924231-f129b911e442?auto=format&fit=crop&w=1600&q=80") center / cover fixed;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 6px;
}

.pill-list span {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  padding: 9px 12px;
  color: var(--muted);
  font-size: 13px;
}

.calculator,
.contact-form {
  padding: 30px;
}

.calculator h3 {
  margin-top: 0;
  font-size: 28px;
}

.calculator output {
  display: block;
  margin-top: 20px;
  color: var(--accent-2);
  font-size: 36px;
  font-weight: 900;
}

.stats-strip {
  padding: 72px 0;
  background: linear-gradient(rgba(5, 5, 5, 0.74), rgba(5, 5, 5, 0.74)), url("https://images.unsplash.com/photo-1533473359331-0135ef1b58bf?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.stats-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}

.inventory-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.inventory-slider article {
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--bg-2);
  scroll-snap-align: start;
}

.inventory-slider img {
  height: 250px;
  object-fit: cover;
}

.inventory-slider strong,
.inventory-slider span,
.inventory-slider a {
  display: block;
  margin: 18px 20px;
}

.inventory-slider span {
  color: var(--muted);
}

.testimonial-slider {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 16px;
  align-items: center;
}

.testimonial-track {
  min-height: 360px;
  position: relative;
}

.testimonial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 34px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.testimonial.active {
  opacity: 1;
  transform: translateY(0);
}

.testimonial img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial h3,
.testimonial p {
  margin: 0;
}

.testimonial span {
  color: var(--accent-2);
}

.testimonial p {
  max-width: 580px;
  color: var(--muted);
}

.slider-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
}

.trust-grid div {
  display: grid;
  gap: 16px;
  text-align: center;
}

.trust-grid span {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto;
  place-items: center;
  border: 1px solid rgba(214, 31, 38, 0.45);
  color: var(--accent-2);
}

.trust-grid svg {
  width: 30px;
  height: 30px;
}

.cta {
  padding: 110px 0;
  background-attachment: fixed;
}

.cta p {
  color: var(--muted);
  font-size: 20px;
}

.contact {
  background: var(--bg-2);
}

.contact__details a {
  color: var(--text);
}

.map-embed {
  overflow: hidden;
  min-height: 230px;
  margin-top: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(214, 31, 38, 0.2), rgba(255, 255, 255, 0.05));
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  filter: grayscale(1) invert(0.9) contrast(0.9);
}

.contact-form {
  gap: 14px;
  display: grid;
}

.footer {
  padding-top: 64px;
  background: linear-gradient(rgba(7, 7, 7, 0.92), rgba(7, 7, 7, 0.98)), url("https://images.unsplash.com/photo-1511919884226-fd3cad34687c?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 38px;
}

.footer h3 {
  margin-top: 0;
}

.footer a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.brand--footer {
  color: var(--text);
}

.newsletter {
  display: flex;
  gap: 8px;
}

.newsletter button {
  border: 0;
  background: var(--accent);
  color: var(--text);
  padding: 0 14px;
  font-weight: 800;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
}

.footer .socials .social-icon {
  display: inline-grid;
  margin: 0;
  color: var(--text);
}

.footer__bottom {
  margin-top: 52px;
  border-top: 1px solid var(--border);
  padding: 22px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .topbar {
    display: none;
  }

  .site-header {
    position: sticky;
  }

  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .budget-grid,
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .search-panel__grid,
  .split__inner,
  .finance__inner,
  .contact__inner,
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    background: rgba(17, 17, 17, 0.98);
    border: 1px solid var(--border);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .hero {
    min-height: 92vh;
    padding-top: 92px;
  }

  .hero__stats,
  .stats-strip__inner,
  .vehicle-grid,
  .budget-grid,
  .trust-grid,
  .search-panel__grid,
  .split__inner,
  .finance__inner,
  .contact__inner,
  .footer__grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    margin-top: 30px;
  }

  .section {
    padding: 68px 0;
  }

  .split {
    background: #141414;
  }

  .testimonial-slider {
    grid-template-columns: 1fr;
  }

  .slider-btn {
    margin: 0 auto;
  }

  .testimonial-track {
    min-height: 430px;
  }

  .newsletter {
    flex-direction: column;
  }
}
