/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: #ECE7E0;
  color: #111;
  padding: 20px;
}

/* Header */
.site-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 45px;
  margin-bottom: 24px;
  padding-left: 220px;
}

.logo-circle {
  height: 150px;
  flex-shrink: 0;
  margin: -25px;
  padding-right: 20px;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-header h1 {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 68px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 9px;
  line-height: 0.9;
}

.site-header p {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-top: 10px;
}

/* Sticky controls */
.sticky-controls {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(236, 231, 224, 0.94);
  backdrop-filter: blur(10px);
  padding: 14px 24px 18px;
  margin: 0 -20px 28px;
  border-bottom: 1px solid rgba(184, 138, 68, 0.35);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

/* Navigation */
.decade-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.decade-nav button {
  min-width: 112px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  font-weight: 700;
  padding: 10px 24px;
  letter-spacing: 1px;
  border: 1px solid #d2d2d2;
  border-radius: 12px;
  background: #fff;
  color: #222;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.decade-nav button.active,
.decade-nav button:hover {
  background: #005A9C;
  color: #fff;
  border-color: #B88A44;
  transform: translateY(-2px);
}

/* Search */
.search-wrapper {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
}

.search-wrapper input {
  width: 100%;
  max-width: 560px;
  height: 46px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  background: #FBF8F4;
  border: 1px solid #d2d2d2;
  border-radius: 10px;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.search-wrapper input::placeholder {
  color: #777;
  font-weight: 500;
}

.search-wrapper input:focus {
  border-color: #B88A44;
  box-shadow: 0 0 0 3px rgba(184, 138, 68, 0.18);
  background: #fff;
}

/* Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(360px, 1fr));
  gap: 14px;
  padding: 0 8px 24px;
}

/* Card */
.car-card {
  min-height: 500px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  background: #faf5f1;
  border: 1px solid #d8d2c8;
  border-top: 2px solid #B88A44;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.2s ease;
}

.car-card:hover {
  box-shadow: 0 0 0 2px #B88A44;
  z-index: 10;
  transform: translateY(-4px);
}

/* Title */
.card-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.card-title h2 {
  font-family: "Barlow Condensed", Arial, sans-serif;
  color: #004B83;
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
}

.card-title h3 {
  font-size: 22px;
  font-weight: 800;
}

/* Old wrapper safety */
.card-content {
  display: contents;
}

/* Image */
.car-image-wrap {
  height: 210px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 12px;
}

.car-image {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

/* Stats */
.stats,
.stats-horizontal {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: -9px;
  margin: 0 0 16px;
  padding: 14px 10px;
  border-top: 1px solid rgba(184, 138, 68, 0.35);
  border-bottom: 1px solid rgba(184, 138, 68, 0.35);
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
}

.stat-row i {
  flex-shrink: 0;
  font-size: 24px;
  color: #005A9C;
}

.stat-row span {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #333;
  line-height: 1.1;
}

.stat-row p {
  font-size: 12px;
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
}

/* Description */
.car-description {
  max-width: none;
  margin-top: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #444;
}

/* Footer */
.site-footer {
  margin-top: 80px;
  padding: 30px;
  text-align: center;
  font-size: 13px;
  color: #666;
  border-top: 1px solid #d8d2c8;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 10px;
}

/* Large laptops / smaller desktops */
@media (max-width: 1600px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(320px, 1fr));
  }

  .site-header {
    padding-left: 80px;
  }

  .site-header h1 {
    font-size: 52px;
  }
}

/* Tablets / small laptops */
@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }

  .car-card {
    min-height: auto;
  }

  .car-image-wrap {
    height: 200px;
  }

  .car-image {
    max-height: 190px;
  }

  .stats,
  .stats-horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Phones */
@media (max-width: 700px) {
  body {
    padding: 12px;
  }

  .site-header {
    flex-direction: column;
    padding-left: 0;
    gap: 10px;
    text-align: center;
  }

  .logo-circle {
    height: 110px;
    margin: 0;
    padding-right: 0;
  }

  .site-header h1 {
    font-size: 38px;
    letter-spacing: 5px;
  }

  .site-header p {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .sticky-controls {
    margin: 0 -12px 22px;
    padding: 12px;
  }

  .decade-nav {
    gap: 10px;
  }

  .decade-nav button {
    min-width: auto;
    font-size: 17px;
    padding: 8px 14px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .car-card {
    min-height: auto;
    padding: 12px;
  }

  .car-image-wrap {
    height: 180px;
  }

  .car-image {
    max-height: 170px;
  }

  .stats,
  .stats-horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}
