/* GCPC Child Development Center — Custom Styles */

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

/* Base reveal animation — hidden by default */
.reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Reduced motion — keep everything visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Staggered delays */
    .reveal-up:nth-child(1) { transition-delay: 0.05s; }
    .reveal-up:nth-child(2) { transition-delay: 0.1s; }
    .reveal-up:nth-child(3) { transition-delay: 0.15s; }
    .reveal-up:nth-child(4) { transition-delay: 0.2s; }
    .reveal-up:nth-child(5) { transition-delay: 0.25s; }
    .reveal-up:nth-child(6) { transition-delay: 0.3s; }
}

/* Hero reveal — always visible (above the fold) */
.reveal-up {
    opacity: 1;
    transform: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #95c495;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #61a361;
}

/* Selection color */
::selection {
    background: #c5dfc5;
    color: #1f4f1f;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #3d833d;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu.open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(31, 79, 31, 0.08);
}
