/* Custom styles for Buckeye Fire Department website */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

::-webkit-scrollbar-track {
    background: #1e1b4b;
}

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

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

/* Selection color */
::selection {
    background: #fbbf24;
    color: #1e1b4b;
}

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

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

/* Reduced motion preference */
@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;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .service-card {
        border: 2px solid ButtonText;
    }
}

/* Ensure touch targets are large enough on mobile */
@media (max-width: 768px) {
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Optimize for low memory devices */
@media (prefers-reduced-data: reduce) {
    .service-card,
    .service-icon,
    .geo-shape {
        animation: none !important;
        transition: none !important;
    }
}

/* Loading state optimization */
.loading .reveal {
    opacity: 1 !important;
    transform: none !important;
}
