/* Custom styles for Learning and Fun All in One Preschool */

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 251, 247, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(128, 0, 32, 0.08);
}

.nav-scrolled .nav-link {
    color: #4a5568;
}

.nav-scrolled .logo-text {
    color: #800020;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Program cards */
.program-card {
    border: 1px solid rgba(128, 0, 32, 0.08);
}

/* Testimonial cards */
.testimonial-card {
    border: 1px solid rgba(128, 0, 32, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(128, 0, 32, 0.1);
}

/* Scroll reveal animations (below the fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    .program-card,
    .testimonial-card {
        transition: none;
    }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #f4a7b8 !important;
    box-shadow: 0 0 0 3px rgba(244, 167, 184, 0.3) !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #ec6887;
}

/* Selection color */
::selection {
    background: #fce4e8;
    color: #800020;
}
