/* Reset browser defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Whole page */
body {
  font-family: "Inter", Arial, sans-serif;
  background: #ECE7E0;
  color: #111111;
  padding: 20px;
}

/* Header */
.site-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 45px;
  margin-bottom: 24px;
  padding-left: 240px;
}

.logo-circle {
  height: 190px;
  flex-shrink: 0;
  margin: -40px;
  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: 82px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 9px;
  line-height: 0.9;
  text-align: left;
}

.site-header p {
  font-family: "Inter", Arial, sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 10px 0 0 0;
  text-align: left;
}

/* Navigation */
.decade-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.decade-nav button {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  font-weight: 700;
  padding: 10px 26px;
  line-height: 20px;
  letter-spacing: 1px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
  border: 1px solid #d2d2d2;
  border-radius: 12px;
  background: white;
  color: #222;
  cursor: pointer;
  transition: all 0.2s ease;
}

.decade-nav button.active {
  background: #005A9C;
  color: white;
  border-color: #005A9C;
}

.decade-nav button:hover {
  background: #005a9c;
  color: white;
  border-color: #b88a44;
  transition: 0.2s ease;
  transform: translateY(-2px);
}

/* Search Bar */
.search-wrapper {
  display: flex;
  justify-content: center;
  margin: 0 auto 22px;
  padding: 0 20px;
}

.search-wrapper input {
  width: 100%;
  max-width: 520px;
  padding: 12px 18px;
  font-family: "Inter", Arial, sans-serif;
  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: white;
}

/* Main grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 8px 24px;
}

/* Individual card */
.car-card {
  min-height: 300px;
  padding: 14px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  background: #faf5f1;
  border: 1px solid #d8d2c8;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: visible;
  position: relative;
  z-index: 1;
  transition: all 0.2s ease;
  border-top: 2px solid #B88A44;
}

.car-card:hover {
  box-shadow: 0 0 0 2px #b88a44;
  z-index: 10;
  transform: translateY(-4px);
}

/* Title row */
.card-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

/* Year */
.card-title h2 {
  font-family: "Barlow Condensed", Arial, sans-serif;
  color: #004b83;
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
}

/* Model name */
.card-title h3 {
  font-family: "Inter", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

/* Image + stats layout */
.card-content {
  display: grid;
  grid-template-columns: 4fr 1fr;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

/* Description */
.car-description {
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  max-width: 360px;
  font-weight: 400;
  margin-top: 18px;
  line-height: 1.6;
  color: #444;
}

/* Car image */
.car-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

/* Stats column */
.stats {
  font-family: "Inter", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-row i {
  font-size: 18px;
  color: #b88a44;
  margin-top: 2px;
}

.stat-row span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #333;
}

.stat-row p {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}

/* 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;
  text-align: center;
}

.footer-content p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 10px;
}

/* Tablet */
@media (max-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-header h1 {
    font-size: 44px;
  }

  .site-header p {
    font-size: 16px;
  }
}

/* Phone */
@media (max-width: 650px) {
  body {
    padding: 12px;
  }

  .site-header {
    flex-direction: column;
  }

  .site-header h1 {
    font-size: 34px;
  }

  .site-header p {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .car-card {
    height: auto;
  }

  .card-content {
    grid-template-columns: 1fr;
  }

  .car-image {
    height: 180px;
  }

  .stats {
    font-size: 12px;
  }
}
