/* 
  Absolute Safety Driving School — Custom Styles
  Minimalist, clean, forest green + off-white palette
*/

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FAFAF7;
}
::-webkit-scrollbar-thumb {
    background: #2d4a2d;
    opacity: 0.3;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a7a4a;
}

/* Selection color */
::selection {
    background-color: #2d4a2d;
    color: #FAFAF7;
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
    -webkit-tap-highlight-color: transparent;
}

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

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

/* Ensure text is readable on all backgrounds */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav, #contact, .btn-primary, .btn-outline {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}

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