:root {
  --space: #1b2349;
  --vermillion: #f4442e;
  --eggshell: #efecd9;
  --frost: #bcc2d1;
  --camel: #d3c695;
  --jungle: #07835a;
  --slate: #5a6b87;
  --banana: #e7e444;
  --steel: #7f8ea9;
  --white: #ffffff;
  --space-light: #303b6e;
  --vermillion-light: #f66958;
  --font-mono: "Space Mono", monospace;
  --font-sans: "Space Grotesk", sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(27, 35, 73, 0.08);
  --shadow-lg: 0 8px 32px rgba(27, 35, 73, 0.12);
  --max-width: 1280px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--space);
  background: var(--eggshell);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ─── HEADER ─── */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(27, 35, 73, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  width: auto;
}


.header-nav {
  display: flex;
  gap: 24px;
}

.header-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--white);
}

/* ─── HERO ─── */
.hero {
  background: var(--space);
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(
      rgba(27, 35, 73, 0.65),
      rgba(27, 35, 73, 0.75)
    ),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--vermillion), var(--banana), var(--jungle));
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 140px 24px 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--vermillion);
}

.hero-sub {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--frost);
  max-width: 480px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 32px;
  background: var(--vermillion);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--vermillion-light);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--banana);
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--frost);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── STOCK SECTION ─── */
.stock {
  padding: 64px 0 96px;
  background: var(--white);
}

.stock-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--space);
  margin-bottom: 24px;
}

/* ─── FILTERS ─── */
.filters {
  margin-bottom: 40px;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.filter-group select,
.filter-group input[type="range"] {
  font-family: var(--font-sans);
}

.filter-group select {
  appearance: none;
  padding: 10px 36px 10px 14px;
  border: 2px solid var(--frost);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.9rem;
  color: var(--space);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a6b87' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--space);
}

.price-range {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-range label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
}

.price-range label span {
  font-weight: 700;
  color: var(--space);
}

.price-range input[type="range"] {
  width: 180px;
  height: 6px;
  appearance: none;
  background: var(--frost);
  border-radius: 3px;
  cursor: pointer;
}

.price-range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--vermillion);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.btn-clear {
  padding: 10px 20px;
  border: 2px solid var(--frost);
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clear:hover {
  border-color: var(--vermillion);
  color: var(--vermillion);
}

/* ─── VEHICLE GRID ─── */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.vehicle-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.vehicle-card[hidden] {
  display: none;
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--frost);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--space);
  line-height: 1.3;
}

.card-price {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--vermillion);
}

.card-specs {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--eggshell);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--slate);
}

.spec svg {
  flex-shrink: 0;
  color: var(--steel);
}

.card-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 3px 10px;
  background: var(--space);
  color: var(--eggshell);
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.card-spacer {
  flex: 1;
}

.btn-enquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  margin-top: 18px;
  background: var(--jungle);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: background 0.2s, transform 0.15s;
}

.btn-enquire:hover {
  background: #069a69;
  transform: translateY(-1px);
}

.btn-enquire svg {
  flex-shrink: 0;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  font-size: 1.1rem;
  color: var(--slate);
}

/* ─── FOOTER ─── */
.footer {
  border-top: 4px solid var(--vermillion);
}

.footer-top {
  background: var(--white);
  padding: 40px 0;
}

.footer-top-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-top-inner img {
  height: 36px;
  width: auto;
}

.footer-address {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.6;
}

.footer-bottom-section {
  background: var(--space);
  color: var(--frost);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-links a,
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--frost);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: var(--slate);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  .logo img {
    height: 32px;
  }

  .header-nav {
    gap: 16px;
  }

  .header-nav a {
    font-size: 0.72rem;
  }

  .hero-inner {
    flex-direction: column;
    padding: 100px 24px 56px;
    text-align: center;
    gap: 32px;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .filter-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group select {
    width: 100%;
  }

  .price-range {
    width: 100%;
  }

  .price-range input[type="range"] {
    width: 100%;
  }

  .btn-clear {
    width: 100%;
  }

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

  .footer-top-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    grid-column: auto;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
