/* Custom Styles for Little Pooh Bear Daycare */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #8c2b2b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #742626;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-heading {
    color: #1f2937;
}

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

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

/* Service card hover effect */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Testimonial card hover */
#testimonials .bg-white {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#testimonials .bg-white:hover {
    transform: translateY(-2px);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Ensure proper contrast for all text */
.text-burgundy-700 {
    color: #8c2b2b;
}

.text-burgundy-600 {
    color: #ab3434;
}

/* Hero overlay gradient fix */
#hero .absolute.inset-0 {
    background-image: linear-gradient(to right, rgba(62, 16, 16, 0.9) 0%, rgba(140, 43, 43, 0.8) 50%, rgba(168, 52, 43, 0.6) 100%);
}

/* Mobile menu link hover */
.mobile-link:hover {
    padding-left: 8px;
    transition: padding-left 0.2s ease;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Print styles */
@media print {
    #navbar,
    #hero .absolute.bottom-8,
    .service-card:hover {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
