/* Custom overrides and enhancements for South Gate Driving School */

/* Ensure smooth rendering on all devices */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: var(--slate-900);
}

/* Subtle focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--teal-500);
    outline-offset: 2px;
}

/* Smooth scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--slate-300) transparent;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

/* Ensure the hero doesn't have layout shift */
.hero-bg img {
    will-change: transform;
}

/* Print styles */
@media print {
    .nav, .hero-scroll, .mobile-menu {
        display: none !important;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 4rem 2rem;
    }

    .hero-bg, .hero-overlay {
        display: none;
    }

    .hero-content {
        color: var(--slate-900);
    }

    .hero-headline, .hero-sub {
        color: var(--slate-900);
    }

    section {
        padding: 2rem 1rem;
    }

    .btn {
        background: var(--slate-800);
        color: #fff;
    }
}
