/* Custom styles for Teach Me Driving School */

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Base body styling */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: #ff3a2a;
    color: #ffffff;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ff3a2a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f7;
}
::-webkit-scrollbar-thumb {
    background: #c4c6cb;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9fa2aa;
}

/* Navbar scroll state */
.nav-scrolled {
    box-shadow: 0 1px 20px rgba(30, 32, 38, 0.08);
}

/* Image lazy load fade-in */
img[loading="lazy"] {
    transition: opacity 0.4s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .service-card:hover .card-icon {
        transform: none;
    }
    .btn-primary, .btn-secondary {
        transition: none;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #menu-btn {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    .hero-pattern {
        background: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
