/* Golden Star Driving School — Custom Styles */

/* ── Base / Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Scroll Reveal (progressive enhancement) ── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hero Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

/* ── Navbar Scroll State ── */
#navbar.scrolled {
    background: rgba(5, 5, 7, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 55, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

#navbar.scrolled .font-serif {
    color: #e8b84b;
}

/* ── Gold Gradient Text Utility ── */
.text-gold-gradient {
    background: linear-gradient(135deg, #f0d080 0%, #d4a037 50%, #e8b84b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0c;
}
::-webkit-scrollbar-thumb {
    background: #2a0a0a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a1616;
}

/* ── Selection ── */
::selection {
    background: rgba(212, 160, 55, 0.3);
    color: #f0d080;
}

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid rgba(212, 160, 55, 0.6);
    outline-offset: 2px;
}

/* ── Mobile Menu Transitions ── */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ── Button Ripple Effect ── */
button, a {
    position: relative;
    overflow: visible;
}

/* ── Input Autofill Override ── */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0a0a0c inset !important;
    -webkit-text-fill-color: #f3f4f6 !important;
}

/* ── Service Card Shimmer ── */
.reveal.group:hover .absolute.inset-0 {
    opacity: 1;
}

/* ── Smooth Image Loading ── */
img {
    image-rendering: auto;
    loading: lazy;
}

/* ── Print Styles ── */
@media print {
    header, footer, .reveal { display: none; }
    body { background: white; color: black; }
    a { color: black; text-decoration: underline; }
}
