/* Custom styles for Mavis Discount Tire */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Navbar transition */
#navbar.scrolled {
  background: rgba(13, 15, 18, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 48, 54, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transitions */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* Service card hover lift */
.service-card {
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, background-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Underline animation for italic text */
.font-serif em {
  position: relative;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0d0f12;
}

::-webkit-scrollbar-thumb {
  background: #3d4148;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #52565e;
}

/* Selection color */
::selection {
  background: rgba(238, 79, 43, 0.3);
  color: #f6f6f7;
}

/* Map filter override for light mode */
@media (prefers-color-scheme: light) {
  iframe[src*="google.com/maps"] {
    filter: none !important;
  }
}
