/* Custom Styles for Faithful Steps Daycare LLC */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ee;
}
::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}

/* Scroll reveal base styles (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Only apply reveal animation when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
#navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
}

#navbar.scrolled .font-serif {
    color: #064e3b;
}

#navbar.scrolled a:not(.bg-emerald-700) {
    color: #064e3b;
}

#navbar.scrolled a:not(.bg-emerald-700):hover {
    color: #059669;
}

/* Hero image parallax-like effect */
#hero img {
    will-change: transform;
}

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

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

/* Form input focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Service card hover effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Ensure all text has proper contrast */
.text-emerald-200 {
    color: #a7f3d0;
}

/* Selection color */
::selection {
    background-color: #059669;
    color: #ffffff;
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
