/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  scroll-behavior: smooth;
}

/* Navbar */
header {
  background: #111;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: fixed; /* fixed navbar */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
header .logo {
  display: flex;
  align-items: center;
}
header .logo img {
  height: 40px;
  margin-right: 10px;
}
header nav ul {
  list-style: none;
  display: flex;
}
header nav ul li {
  margin-left: 20px;
}
header nav ul li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s, border-bottom 0.3s;
  padding-bottom: 5px;
}
header nav ul li a:hover,
header nav ul li a.active {
  color: #f4b400;
  border-bottom: 2px solid #f4b400;
}

/* Hero */
.hero {
  background: url('theme.jpg') no-repeat center center/cover;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  margin-top: 80px; /* push down content below fixed navbar */
}
.hero-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px 40px;
  border-radius: 10px;
}
.hero .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 25px;
  background: #f4b400;
  color: #111;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}
.hero .btn:hover {
  background: #fff;
  transform: scale(1.05);
}

/* Cars */
.cars {
  padding: 80px 50px;
  text-align: center;
}
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}
.car-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}
.car-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.car-card h3 {
  margin: 15px 0 5px;
  font-size: 1.3rem;
}
.car-card p {
  color: #f4b400;
  font-weight: bold;
  margin-bottom: 15px;
}

/* About */
.about {
  padding: 80px 50px;
  text-align: center;
}
.about img {
  width: 100%;
  max-width: 600px;
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Locations */
.locations {
  padding: 80px 50px;
  background: #f9f9f9;
  text-align: center;
}
.locations ul {
  list-style: none;
  margin-top: 20px;
}
.locations ul li {
  padding: 12px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}
.locations ul li:last-child {
  border-bottom: none;
}

/* Footer */
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 25px;
  margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }
  header nav ul {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }
  header nav ul li {
    margin: 8px 0;
  }
  .hero {
    height: 70vh;
    margin-top: 100px;
    padding: 20px;
  }
}
/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}
.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-text {
  position: absolute;
  top: 40%;
  left: 10%;
  color: white;
}
.slide-text h2 {
  font-size: 2rem;
}
.slide-text h1 {
  font-size: 3rem;
  margin: 10px 0;
}
.slide-text .btn {
  background: #ff6600;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

/* Quick Filter */
.quick-filter {
  background: #f4f4f4;
  padding: 20px;
  text-align: center;
}
.quick-filter .filter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.quick-filter select, 
.quick-filter button {
  padding: 10px;
  font-size: 1rem;
}
.quick-filter .advanced-search {
  display: block;
  margin-top: 10px;
  color: #007BFF;
  text-decoration: none;
}

/* Vehicles on Offer */
.vehicles-offer {
  padding: 40px 20px;
  text-align: center;
}
.vehicle-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.vehicle-card {
  width: 300px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.vehicle-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.vehicle-card h3 {
  margin: 10px 0;
}
.vehicle-card p {
  color: #333;
}
.vehicle-card .btn {
  display: block;
  margin: 10px;
  padding: 10px;
  background: #007BFF;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

/* Container for Quick Filter */
.bg-gray-50 {
  background: #f9fafb;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

/* Box */
.bg-white {
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 1px solid #f1f1f1;
  max-width: 1100px;
  width: 100%;
}

/* Title */
.bg-white h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 1.5rem;
}

/* Form Layout */
#filterForm {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  #filterForm {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Dropdowns */
#filterForm select {
  padding: 0.9rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  transition: all 0.2s;
}

#filterForm select:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.25);
}

/* Search Button */
#filterForm button {
  background: #dc2626;
  color: #fff;
  font-weight: 600;
  padding: 0.9rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

#filterForm button:hover {
  background: #b91c1c;
}

/* Advanced Search link */
.text-center a {
  color: #dc2626;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.text-center a:hover {
  text-decoration: underline;
  color: #b91c1c;
}

/* Vehicles Section */
.max-w-6xl {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.max-w-6xl h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 2rem;
}

/* Grid for results */
#results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  #results {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Individual Car Card */
#results > div {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

#results > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

#results img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
}

#results h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111;
}

#results p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

/* Learn More Button */
#results button {
  background: #dc2626;
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

#results button:hover {
  background: #b91c1c;
}
