/* ===== CUSTOM STYLES FOR MATT'S AUTO SERVICE ===== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Mobile menu animation */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobileMenu.open {
  max-height: 400px;
}

/* Nav background on scroll */
#nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Service card hover glow */
.group:hover .w-14 {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Geometric floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(12deg); }
  50% { transform: translateY(-12px) rotate(12deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(45deg); }
  50% { transform: translateY(-8px) rotate(45deg); }
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.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; }

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

::-webkit-scrollbar-track {
  background: #121214;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #E85D4A;
}

/* Selection color */
::selection {
  background: rgba(232, 93, 74, 0.3);
  color: #F6F6F7;
}

/* Map dark theme override */
iframe[title*="Map"] {
  border-radius: 0.75rem;
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #E85D4A;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

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