/* First Step Driving School — Custom Styles */

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

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

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

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

/* Selection color */
::selection {
    background-color: #B83030;
    color: #FDF9F6;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Print styles */
@media print {
    nav, .scroll-indicator, #mobile-menu {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: #2C2424 !important;
    }
    
    .service-card {
        break-inside: avoid;
    }
}

/* 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;
    }
    
    .stat-card {
        animation: none !important;
    }
    
    .scroll-indicator {
        animation: none !important;
    }
}

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

/* Ensure all interactive elements are keyboard accessible */
button:focus, a:focus {
    outline: none;
}

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

/* Additional responsive adjustments */
@media (max-width: 640px) {
    .serif-display {
        letter-spacing: -0.005em;
    }
}
