/* Custom styles for OnFire Auto Repair */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5e0;
}
::-webkit-scrollbar-thumb {
    background: #3d7a3d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d5a2d;
}

/* Selection color */
::selection {
    background: #3d7a3d;
    color: #fdfdf8;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}
#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Service card hover effect */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Subtle animation for hero elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #3d7a3d;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-serif {
        font-size: 1.75rem;
    }
}
