/* ==========================================================================
   Home Page Styles — DriveBro Theme
   ========================================================================== */

/* Hero Section
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #1a3d4a 100%);
  color: var(--primary-foreground);
  padding: 5rem 0 4rem;
  overflow: hidden;
  min-height: auto;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  width: fit-content;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.hero__title span {
  color: var(--accent);
}

.hero__desc {
  font-size: 1.125rem;
  line-height: 1.8;
  opacity: 0.9;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  opacity: 0.85;
}

.hero__trust-item strong {
  font-size: 1.25rem;
  color: var(--accent);
}

/* Hero Image */

.hero__image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-xl);
}

.hero__image-wrapper img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius-xl);
  object-fit: cover;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__image-badge {
  position: absolute;
  background: var(--surface);
  color: var(--foreground);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__image-badge--top {
  top: 10%;
  left: 0;
}

.hero__image-badge--bottom {
  bottom: 10%;
  right: 0;
}

/* Booking Form Card
   ========================================================================== */

.booking-form {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  margin-top: 0;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.booking-form__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.booking-form__title svg {
  color: var(--accent);
}

.booking-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.booking-form__field--full {
  grid-column: 1 / -1;
}

.booking-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.booking-form__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.booking-form__input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: "Tajawal", sans-serif;
  font-size: 0.9375rem;
  background: var(--background);
  color: var(--foreground);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.booking-form__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.booking-form__submit {
  margin-top: 1.5rem;
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius);
  font-family: "Tajawal", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.booking-form__submit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Featured Cars Section
   ========================================================================== */

.featured-cars {
  padding: 5rem 0;
  background: var(--background);
}

.featured-cars__header {
  text-align: center;
  margin-bottom: 3rem;
}

.featured-cars__header .section-label {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.featured-cars__header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--foreground);
  margin: 0;
}

.featured-cars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.featured-cars__more {
  text-align: center;
  margin-top: 2.5rem;
}

/* About Section
   ========================================================================== */

.home-about {
  padding: 5rem 0;
  background: var(--background);
  position: relative;
  overflow: hidden;
}

.home-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 15%, rgba(212, 175, 55, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 85%, rgba(30, 58, 71, 0.06) 0%, transparent 45%);
  pointer-events: none;
}

.home-about .container {
  position: relative;
  z-index: 1;
}

.home-about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.home-about__image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.home-about__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.home-about__label-wrap {
  margin-bottom: 0.25rem;
}

.home-about__label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.28);
  width: fit-content;
}

.home-about__content h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--foreground);
  margin: 0 0 1rem;
}

.home-about__content p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.home-about__content p:last-of-type {
  margin-bottom: 1.5rem;
}

.home-about__features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.25rem;
}

.home-about__feature {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  color: var(--foreground);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  font-size: 0.9375rem;
  font-weight: 600;
}

.home-about__feature-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke-width: 2;
}

.home-about__feature-icon--shield {
  color: var(--green);
}

.home-about__feature-icon--star {
  color: var(--accent);
}

/* Testimonials Section
   ========================================================================== */

.testimonials {
  padding: 5rem 0;
  background: var(--background);
}

.testimonials__header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials__header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--foreground);
  margin: 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.testimonial-card__stars {
  display: flex;
  gap: 0.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.testimonial-card__text {
  color: var(--foreground);
  line-height: 1.8;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
}

.testimonial-card__name {
  font-weight: 700;
  color: var(--foreground);
  font-size: 0.9375rem;
}

.testimonial-card__role {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .featured-cars__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    align-items: center;
  }

  .hero__desc {
    margin: 0 auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__image-wrapper {
    order: -1;
  }

  .hero__image-wrapper img {
    max-width: 450px;
  }

  .featured-cars__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-about__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 4rem 0 2rem;
    min-height: auto;
  }

  .booking-form {
    padding: 1.25rem;
  }

  .booking-form__grid {
    grid-template-columns: 1fr;
  }

  .booking-form__field--full {
    grid-column: auto;
  }

  .featured-cars__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .home-about__features {
    flex-direction: column;
    align-items: stretch;
  }

  .home-about__feature {
    justify-content: flex-start;
  }
}
