/* CarLogicPro marketing site – custom overrides + background images */

/* Hero: main image + second image for variety (left/right feel) */
.bg-hero-multi {
  background-color: #cbd5e1;
  background-image:
    url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 1024px) {
  .bg-hero-multi {
    background-image:
      url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1920&q=80'),
      url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920&q=80');
    background-size: 60% 100%, cover;
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
  }
}

/* Section backgrounds (subtle, low opacity) */
.bg-section-tools {
  background-image: url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-section-garage {
  background-image: url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-section-dashboard {
  background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-section-cta {
  background-image: url('https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

html {
  scroll-behavior: smooth;
}

body {
  font-feature-settings: "rlig" 1, "calt" 1;
}

/* Subtle focus for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgb(249 115 22);
  outline-offset: 2px;
}

/* Hero entrance */
.hero-reveal .hero-item {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-in 0.7s ease forwards;
}
.hero-reveal .hero-item:nth-child(1) { animation-delay: 0.1s; }
.hero-reveal .hero-item:nth-child(2) { animation-delay: 0.2s; }
.hero-reveal .hero-item:nth-child(3) { animation-delay: 0.3s; }
.hero-reveal .hero-item:nth-child(4) { animation-delay: 0.4s; }
.hero-reveal .hero-item:nth-child(5) { animation-delay: 0.5s; }
.hero-reveal .hero-item:nth-child(6) { animation-delay: 0.6s; }
.hero-reveal .hero-item:nth-child(7) { animation-delay: 0.7s; }
.hero-reveal .hero-item:nth-child(8) { animation-delay: 0.8s; }
.hero-reveal .hero-item:nth-child(9) { animation-delay: 0.9s; }
.hero-reveal .hero-item:nth-child(10) { animation-delay: 1s; }
.hero-reveal .hero-item:nth-child(11) { animation-delay: 1.1s; }
.hero-reveal .hero-item:nth-child(12) { animation-delay: 1.2s; }
.hero-reveal .hero-item:nth-child(13) { animation-delay: 1.3s; }
@keyframes hero-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section scroll reveal (initial state) */
.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.section-reveal.revealed .feature-card {
  opacity: 1;
  transform: translateY(0);
}
.feature-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.section-reveal.revealed .feature-card:nth-child(1) { transition-delay: 0.05s; }
.section-reveal.revealed .feature-card:nth-child(2) { transition-delay: 0.1s; }
.section-reveal.revealed .feature-card:nth-child(3) { transition-delay: 0.15s; }
.section-reveal.revealed .feature-card:nth-child(4) { transition-delay: 0.2s; }
.section-reveal.revealed .feature-card:nth-child(5) { transition-delay: 0.25s; }
.section-reveal.revealed .feature-card:nth-child(6) { transition-delay: 0.3s; }

/* Header scroll state (light theme) */
#site-header.header-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(226, 232, 240, 0.9);
}

/* Reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-reveal .hero-item,
  .section-reveal,
  .feature-card {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
