/* Custom styles for Good Turns Driving Academy */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background-color: #b8224e;
    color: #fff5f7;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #140a0e;
}
::-webkit-scrollbar-thumb {
    background: #7d1636;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8224e;
}

/* Fade-in animations (progressive enhancement, below fold only) */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(13, 6, 8, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(125, 22, 54, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero gradient text fallback */
.text-transparent.bg-clip-text {
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ea6e8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Map filter override for light mode in iframe */
iframe[src*="google.com/maps"] {
    filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}
