/* ==== GLOBAL ==== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
}

/* ===== HEADER: SPORT BLACK / PERFORMANCE ===== */
.sport-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 35px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-stack {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo-car {
  height: 90px;
  width: auto;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.topgear-black {
  font-family: 'Cooper Black', 'Fredoka One', cursive;
  font-size: 62px;
  font-style: italic;
  letter-spacing: 3px;
  color: #111;
  margin: 0;
  padding: 0;
}

.subtext-black {
  font-family: 'Fredoka One', cursive;
  margin: 5px 0 0 5px;
  font-size: 22px;
  letter-spacing: 8px;
  color: #444;
  text-transform: uppercase;
}

/* NAVIGATION */
nav a {
  margin-left: 22px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

nav a.active,
nav a:hover {
  color: #800020;
}

/* ===== HERO BANNER ===== */
.hero-banner {
  background: #800020;
  color: white;
  padding: 80px 20px;
  text-align: center;
  background-image: url('../images/hero-cars.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(128,0,32,0.7);
}

.hero-banner h1,
.hero-banner p {
  position: relative;
  z-index: 1;
}

.hero-banner h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-banner p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.cta-hero {
  display: inline-block;
  padding: 15px 30px;
  background: #fff;
  color: #800020;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: 0.3s;
  position: relative;
  z-index: 1;
}

.cta-hero:hover {
  background: #f2f2f2;
  transform: translateY(-2px);
}

/* ===== SEARCH & FILTER SECTION ===== */
.search-filter {
  display: flex;
  justify-content: space-between;
  padding: 20px 35px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.search-bar {
  flex: 2;
  display: flex;
  align-items: center;
  gap: 15px;
}

#search-input {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

#search-input:focus {
  border-color: #800020;
  outline: none;
}

button {
  padding: 10px 20px;
  background: #800020;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #5a0016;
}

/* Filter options */
.filter-options {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.filter-options label {
  font-weight: bold;
  margin-bottom: 5px;
}

#make, #model, #year {
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ddd;
}

#make:focus, #model:focus, #year:focus {
  border-color: #800020;
}

/* ===== FEATURED INVENTORY ===== */
.featured-inventory {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.featured-inventory h2 {
  text-align: center;
  color: #800020;
  margin-bottom: 30px;
  font-size: 2rem;
}

.inventory-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.car-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.car-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.car-card .car-info {
  padding: 15px;
}

.car-card h3 {
  color: #800020;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.car-card p {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #555;
}

.cta-button {
  display: inline-block;
  padding: 10px 20px;
  background: #800020;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background: #5a0016;
  transform: translateY(-2px);
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.car-card:hover img {
  transform: scale(1.05);
}

.car-card:hover h3 {
  color: #5a0016;
}

/* ==== FOOTER ==== */
footer {
  text-align: center;
  padding: 25px;
  background: #f0f0f0;
  color: #555;
  margin-top: 50px;
}

/* ===== MOBILE ===== */
@media(max-width: 768px) {
  .sport-header {
    flex-direction: column;
    text-align: center;
  }

  nav {
    margin-top: 15px;
  }

  nav a {
    margin: 10px;
  }

  .hero-banner h1 {
    font-size: 2rem;
  }

  .inventory-container {
    flex-direction: column;
    align-items: center;
  }

  .search-filter {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }

  .filter-options {
    align-items: center;
  }

  #make, #model, #year {
    width: 100%;
    margin-bottom: 10px;
  }
}
