/* Custom Styles for Shady Grove Fire Rescue */

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

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

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

::-webkit-scrollbar-thumb {
    background: #3d6628;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2f5020;
}

/* Selection color */
::selection {
    background-color: #3d6628;
    color: #FAFAF7;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 250, 247, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
}

#navbar.scrolled .font-display {
    color: #1c1917 !important;
}

#navbar.scrolled a:not(.bg-forest-700):not(.bg-transparent) {
    color: #57534e !important;
}

#navbar.scrolled a:not(.bg-forest-700):not(.bg-transparent):hover {
    color: #3d6628 !important;
}

/* Service card hover effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Fade-in animations for scroll reveals */
.fade-in-section {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .group {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .animate-bounce {
        animation: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

/* Print styles */
@media print {
    #navbar,
    .scroll-indicator,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #3d6628;
    outline-offset: 2px;
}

/* Button hover lift effect */
a:hover,
button:hover {
    transition: all 0.3s ease;
}

/* Image lazy loading placeholder */
img {
    background-color: #e8e6e0;
}
