/* ===== Custom Styles for AAA Driving School ===== */

:root {
    --cream: #F5F0E8;
    --cream-light: #FAF7F2;
    --emerald-dark: #022c22;
    --emerald-mid: #065f46;
    --emerald-light: #10b981;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
}

/* Base reset & smooth scrolling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #050D0A;
    color: var(--cream);
    overflow-x: hidden;
}

/* Playfair Display font for headings */
.font-['Playfair_Display',serif] {
    font-family: 'Playfair Display', Georgia, serif;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(5, 13, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(16, 185, 129, 0.1), 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu ===== */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050D0A;
}

::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(16, 185, 129, 0.3);
    color: var(--cream);
}

/* ===== Gold accent utilities ===== */
.text-gold {
    color: #f59e0b;
}

.bg-gold {
    background-color: #f59e0b;
}

/* ===== Focus styles for accessibility ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Button hover glow ===== */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

/* ===== Image optimization ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== Print styles ===== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    nav, footer, #contact-form {
        display: none;
    }
}
