/* Custom Styles for Emerald City Preschool */

/* Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    font-weight: 500;
    line-height: 1.2;
}

/* Scroll Reveal Animation Classes */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.delay-100 {
    transition-delay: 0.1s;
}

.reveal-on-scroll.delay-200 {
    transition-delay: 0.2s;
}

/* Mobile Menu Transitions */
#mobile-menu {
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

/* Smooth focus outlines */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: none;
}

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

::-webkit-scrollbar-track {
    background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
    background: #0f766e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #115e59;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Utility for hiding elements initially if JS fails (Progressive Enhancement) */
.js-enabled .reveal-on-scroll {
    /* Only apply JS-based animations if JS is enabled */
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img {
        transform: none;
    }
}
