/* --- CSS Reset & Variables --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff5a1f;
  --primary-hover: #e0480f;
  --bg-dark: #121824;
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --bg-light: #f8fafc;
  --border-color: #e5e7eb;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
}

/* --- Header & Navigation --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background-color: var(--bg-dark);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-card {
  background-color: var(--bg-dark);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-card:hover {
  background-color: var(--primary-color);
}

.btn-search {
  background-color: var(--primary-color);
  color: white;
  width: 100%;
}

/* --- SECTION 1: Hero --- */
.hero {
  position: relative;
  background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 5%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 24, 36, 0.75);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: #e5e7eb;
  margin-bottom: 2.5rem;
}

/* Quick Search Box */
.search-box {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  align-items: end;
}

.input-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.input-group select,
.input-group input {
  padding: 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
}

/* --- Section Title Formatting --- */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--bg-dark);
}

.section-title p {
  color: var(--text-muted);
}

/* --- SECTION 2: Fleet Grid --- */
.fleet {
  padding: 5rem 5%;
  background-color: var(--bg-light);
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.car-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: transform 0.3s ease;
}

.car-card:hover {
  transform: translateY(-6px);
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.car-image {
  height: 200px;
  overflow: hidden;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-details {
  padding: 1.5rem;
}

.car-details h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.car-specs {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- SECTION 3: Why Choose Us --- */
.features {
  padding: 5rem 5%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature-box {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.feature-box i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-box h3 {
  margin-bottom: 0.5rem;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- SECTION 4: How It Works --- */
.how-it-works {
  padding: 5rem 5%;
  background-color: var(--bg-light);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.step-num {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 1rem auto;
}

/* --- SECTION 5: Testimonials --- */
.testimonials {
  padding: 5rem 5%;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
}

.stars {
  color: #f59e0b;
  margin-bottom: 0.8rem;
}

.review-card p {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.review-card h4 {
  font-size: 1rem;
}

.review-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- SECTION 6: Footer --- */
.footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 4rem 5% 1.5rem 5%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h3, .footer-col h4 {
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  color: #9ca3af;
  font-size: 0.85rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .nav-links {
    display: none; /* Can be expanded into a burger menu */
  }
}