/* ==========================================================================
   HOME PAGE — Specific overrides and enhancements
   ========================================================================== */

/* Hero slide price animation */
.hero__slide-price {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Vehicle grid — ensure consistent card heights */
.section--gray .vehicle-card {
  height: 100%;
}

/* Price cards — equal height */
.price-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Loaner highlight pulse */
.loaner-highlight__icon {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}

/* Swiper pagination custom */
.hero__pagination {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero__pagination .swiper-pagination-bullet {
  width: 12px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transition: all var(--transition-base);
}

.hero__pagination .swiper-pagination-bullet-active {
  width: 32px;
  background: var(--color-primary);
}

/* Brand carousel on smaller screens */
@media (max-width: 768px) {
  .brand-carousel__track {
    gap: var(--space-xl);
  }
  .brand-carousel__item img {
    height: 35px;
  }
}

/* Mobile: Move hero slide content up so buttons don't overlap with nav arrows */
@media (max-width: 768px) {
  .hero__slide-content {
    bottom: 80px;
    padding: var(--space-xl) 0;
  }

  .hero__slide-actions {
    flex-direction: column !important;
    align-items: flex-start;
    gap: var(--space-sm) !important;
    margin-top: var(--space-md) !important;
  }

  .hero__slide-title {
    font-size: var(--text-2xl);
  }

  .hero__slide-price {
    font-size: var(--text-xl);
  }

  .hero__slide-meta {
    gap: var(--space-md);
  }

  .hero__nav {
    bottom: var(--space-md);
    right: var(--space-md);
  }
}
