/* 
 * All Star Driver Education Custom Styles
 * Palette: Emerald Green (#059669) + Cream (#FDF8F6) + Amber (#FCD34D)
 */

:root {
    --color-emerald-50: #ecfdf5;
    --color-emerald-100: #d1fae5;
    --color-emerald-600: #059669;
    --color-emerald-900: #064e3b;
    --color-emerald-950: #022c22;
    --color-cream: #FDF8F6;
    --color-amber-400: #fcd34d;
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --color-stone-600: #57534e;
    --color-stone-800: #292524;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--color-cream);
    color: var(--color-stone-800);
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Fredoka', sans-serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Utilities */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-up {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

/* Hidden state for JS to trigger */
.js-enabled .reveal-up,
.js-enabled .reveal-left,
.js-enabled .reveal-right {
    opacity: 0;
}

/* Navbar Glass Effect */
.nav-scrolled {
    background-color: rgba(253, 248, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

::-webkit-scrollbar-track {
    background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--color-emerald-200);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-emerald-600);
}

/* Focus styles for accessibility */
button:focus, a:focus, input:focus, textarea:focus {
    outline: 2px solid var(--color-emerald-600);
    outline-offset: 2px;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}
