
/* =====================================================
   HOME PAGE – index.css
   Order matches index.html top → bottom
===================================================== */

/* =====================================================
   HERO
===================================================== */
.hero-home {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  overflow: hidden;
  background: #000; /* fallback color while image loads */
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay using pseudo-element to keep same look */
.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-hero);
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Rating summary inside hero */
.rating-summary {
  text-align: center;
  margin-bottom: 30px;
}

.stars {
  color: var(--brand-google-star);
  font-size: 1.6rem;
  letter-spacing: 4px;
}

.rating-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.google-logo {
  height: 26px;
  margin-bottom: 10px;
  opacity: 0.9;
}

/* =====================================================
   TRUST BAR
===================================================== */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 30px;
  background: var(--bg-section-dark);
  border-top: 1px solid var(--bg-border-dark);
  border-bottom: 1px solid var(--bg-border-dark);
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.trust-icon {
  color: var(--brand-primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.trust-text {
  font-size: 0.95rem;
  white-space: normal;
}

/* =====================================================
   FEATURED VEHICLES
===================================================== */
.featured-vehicles {
  background: var(--bg-page);
  padding: 100px 30px;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.vehicle-card {
  background: var(--bg-card);
  border: 0.5px solid #f3f2ef;
  box-shadow: var(--shadow-medium);
  border-radius: 10px;
  padding: 30px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.vehicle-card h3 {
  margin-top: 0;
}

.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(255, 255, 255, 0.5);
}

.vehicle-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.vehicle-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
}

.vehicle-card:hover .vehicle-image img {
  transform: scale(1.05);
}

.vehicle-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--overlay-image-fade),
    transparent
  );
}

.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--brand-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.vehicle-body {
  padding-top: 20px;
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 20px 0;
  color: var(--text-muted);
}

.specs div {
  line-height: 1.3;
}

/* Pricing */
.price {
  margin: 10px 0 5px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.price span {
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.1rem;
}

.price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* =====================================================
   HOW IT WORKS – TIMELINE
===================================================== */
.how-it-works {
  background: var(--bg-secondary);
  padding: 100px 30px;
}

.how-it-works.timeline {
  background: var(--bg-secondary);
}

.timeline-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.timeline-marker {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-medium);
  border-radius: 12px;
  padding: 25px 28px;
}

.timeline-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.timeline-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .timeline-step {
    gap: 30px;
  }

  .timeline-content {
    padding: 30px 35px;
  }
}

/* =====================================================
   GOOGLE REVIEWS
===================================================== */
.google-reviews {
  background: var(--bg-section);
  padding: 100px 30px;
}

.review-quotes {
  max-width: 900px;
  margin: 0 auto 40px;
  display: grid;
  gap: 20px;
}

.review-quotes blockquote {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-medium);
  padding: 25px 30px;
  border-left: 4px solid var(--accent);
  font-style: italic;
  color: var(--text-light);
}

.review-quotes blockquote::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.15;
}

.review-quotes blockquote span {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
}

.reviews-embed {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-embed);
}

.reviews-embed iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

.review-trust-note {
  text-align: center;
  margin-top: 30px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .reviews-embed {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-home {
    min-height: 78vh;
  }

  .hero-actions,
  .actions {
    align-items: stretch;
  }

  .trust-bar,
  .featured-vehicles,
  .how-it-works,
  .google-reviews,
  .why-choose-us {
    padding-left: 20px;
    padding-right: 20px;
  }

  .vehicle-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-card,
  .timeline-content,
  .why-card {
    padding: 24px 20px;
  }

  .timeline-step {
    gap: 14px;
  }
}

/* =====================================================
   WHY CHOOSE US
===================================================== */
.why-choose-us {
  background: var(--bg-header);
  padding: 100px 30px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-medium);
  padding: 35px 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,.5);
}

.why-icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--accent);
}

/* =====================================================
   UTILITIES
===================================================== */
.desktop-only {
  display: block;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
}

/* No-JS fallback */
.no-js .fade-in {
  opacity: 1;
  transform: none;
}
