/* Custom Styles for Tracey's Auto Repair & Collision */

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

/* Navbar Scroll Effect */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .text-forest-800 {
    color: #283d2f !important;
}

.navbar-scrolled .font-serif {
    color: #283d2f !important;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
}

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

/* Review Cards */
.review-card {
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(45, 77, 57, 0.12) !important;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #9cc4a5;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6fa078;
}

/* Button Hover Effects */
a {
    transition: all 0.2s ease;
}

/* Image Loading */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4d7d59;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card:hover,
    .review-card:hover {
        transform: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Print Styles */
@media print {
    nav,
    .animate-bounce,
    #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .service-card,
    .review-card {
        break-inside: avoid;
    }
}
