:root {
  --bg: #08090b;
  --panel: #111318;
  --panel-soft: #171a20;
  --text: #f8f8f8;
  --muted: #b6bac2;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #e31d28;
  --accent-dark: #aa111b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(5, 6, 8, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.top-strip {
  min-height: 30px;
  display: flex;
  justify-content: center;
  gap: 26px;
  align-items: center;
  padding: 6px 16px;
  color: var(--muted);
  font-size: 13px;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 34px;
}

.brand img {
  display: block;
  width: min(250px, 34vw);
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #f2f2f2;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-menu a {
  position: relative;
  padding: 8px 0;
}

.main-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 180ms ease;
}

.main-menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 138px 6vw 36px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/vehicle-hero.jpg?v=2");
  background-size: cover;
  background-position: center 48%;
  filter: saturate(1.08) contrast(1.08) brightness(1.12);
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.76)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.04) 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding-bottom: 86px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 0.98;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(30px, 4vw, 50px);
}

h2 {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.04;
  margin-bottom: 18px;
}

h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.hero-copy {
  width: min(620px, 100%);
  color: #e6e8ec;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.36);
}

.quick-search {
  position: absolute;
  z-index: 3;
  left: 6vw;
  right: 6vw;
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  padding: 16px;
  background: rgba(12, 14, 18, 0.92);
  border: 1px solid var(--line);
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0b0c10;
  color: var(--text);
  font: inherit;
}

.section {
  padding: 86px 6vw;
}

.page-main {
  padding-top: 102px;
}

.page-hero {
  position: relative;
  padding: 72px 6vw 58px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.56)),
    url("assets/vehicle-hero.jpg?v=2") center 48% / cover;
  border-bottom: 1px solid var(--line);
}

.page-hero.compact-hero {
  padding-top: 58px;
  padding-bottom: 48px;
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 54px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #e6e8ec;
  font-size: 20px;
  line-height: 1.55;
}

.page-search {
  position: static;
  margin: 0 0 28px;
}

.home-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: #f4f4f4;
}

.vehicle-search-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  background: #050608;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.search-section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 42px);
}

.home-search {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
}

.home-links a {
  min-height: 96px;
  display: flex;
  align-items: center;
  padding: 24px;
  background: white;
  border-left: 4px solid var(--accent);
  color: #0c0d10;
  font-weight: 800;
  text-transform: uppercase;
}

.visit-us {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: stretch;
  background: var(--panel-soft);
}

.visit-copy {
  align-self: center;
}

.visit-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.visit-details {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.visit-details a {
  padding: 16px 18px;
  background: #0c0e13;
  border: 1px solid var(--line);
  font-weight: 800;
}

.map-panel {
  min-height: 390px;
  border: 1px solid var(--line);
  background: #0c0e13;
  overflow: hidden;
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  border: 0;
  filter: grayscale(1) contrast(1.08);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.vehicle-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vehicle-photo {
  min-height: 260px;
  background-size: cover;
  background-position: center;
}

.vehicle-main-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #0b0c10;
}

.photo-vehicle {
  background-image: url("assets/vehicle-hero.jpg?v=2");
}

.photo-showroom {
  background-image: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.2)), url("assets/showroom-hero.png?v=2");
}

.photo-showroom.alt {
  background-position: center 60%;
  filter: contrast(1.08);
}

.vehicle-info {
  padding: 24px;
}

.vehicle-info p {
  color: var(--muted);
  line-height: 1.6;
}

.vehicle-info a {
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 18px 0 20px;
}

.gallery-strip button {
  display: block;
  padding: 0;
  border: 2px solid transparent;
  background: #050608;
  cursor: pointer;
}

.gallery-strip button.active {
  border-color: var(--accent);
}

.gallery-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: 0.78;
  transition: opacity 160ms ease;
}

.gallery-strip button:hover img,
.gallery-strip button.active img {
  opacity: 1;
}

.status {
  color: var(--accent) !important;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.sold-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 32px;
  background: #f5f5f5;
  color: #0b0c10;
}

.sold-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sold-grid span {
  padding: 18px;
  background: white;
  border-left: 4px solid var(--accent);
  font-weight: 800;
}

.sold-stock {
  background: #f4f4f4;
  color: #0c0d10;
}

.sold-stock .eyebrow {
  color: var(--accent);
}

.sold-vehicle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sold-card {
  background: white;
  border-color: rgba(0, 0, 0, 0.08);
}

.sold-card .vehicle-info p:not(.status),
.sold-card .vehicle-info span {
  color: #4b4f56;
}

.sold-card .vehicle-info span {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.sold-status {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  background: var(--accent);
  color: white !important;
}

.split,
.finance,
.contact,
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 44px;
  align-items: center;
}

.split p,
.finance p,
.contact p,
.about p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

.about,
.reviews {
  background: var(--panel-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stats div {
  min-height: 120px;
  padding: 20px;
  background: #0b0d12;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 22px;
  margin-bottom: 10px;
}

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

.review-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.reviews-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.rating-box {
  padding: 24px;
  background: #0c0e13;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rating-box strong {
  display: block;
  font-size: 52px;
  line-height: 1;
}

.rating-box span,
.stars {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
}

.rating-box p {
  margin: 8px 0 0;
  color: var(--muted);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: #0c0e13;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-card p {
  color: #e4e6ea;
  line-height: 1.65;
}

.review-card strong,
.review-card span {
  display: block;
}

.review-card strong {
  margin-bottom: 5px;
}

.review-card span {
  color: var(--muted);
  font-size: 14px;
}

blockquote {
  margin: 0;
  padding: 28px;
  background: #0c0e13;
  border-left: 4px solid var(--accent);
  color: #e4e6ea;
  line-height: 1.7;
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.contact-panel a {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(160px, 1fr));
  gap: 28px;
  padding: 42px 6vw;
  border-top: 1px solid var(--line);
  background: #050608;
  color: var(--muted);
}

.site-footer img {
  width: 190px;
  height: auto;
}

.footer-brand p {
  max-width: 360px;
  margin: 18px 0 0;
  line-height: 1.6;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-column h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 15px;
  text-transform: uppercase;
}

.footer-column a,
.footer-column span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.footer-column a:hover {
  color: white;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .main-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 28px 24px;
    background: rgba(5, 6, 8, 0.98);
    border-top: 1px solid var(--line);
  }

  .main-menu.open {
    display: flex;
  }

  .main-menu a {
    width: 100%;
    padding: 14px 0;
  }

  .quick-search,
  .vehicle-grid,
  .gallery-grid,
  .sold-vehicle-grid,
  .sold-band,
  .split,
  .finance,
  .contact,
  .about,
  .home-links,
  .vehicle-search-section,
  .visit-us,
  .reviews-summary,
  .review-grid,
  .review-row {
    grid-template-columns: 1fr;
  }

  .quick-search {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 28px;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
    display: block;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .page-main {
    padding-top: 102px;
  }
}

@media (max-width: 640px) {
  .top-strip {
    display: none;
  }

  .nav-shell {
    min-height: 68px;
    padding: 10px 18px;
  }

  .brand img {
    width: min(210px, 52vw);
    height: auto;
    max-height: 48px;
  }

  .hero {
    padding: 104px 22px 28px;
  }

  .page-main {
    padding-top: 68px;
  }

  .page-hero {
    padding: 58px 22px 50px;
  }

  .section {
    padding: 64px 22px;
  }

  .sold-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}
