/* === Custom Styles for Little Hands Preschool === */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
    background: #96bc94;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6e9d6c;
}

/* Selection color */
::selection {
    background: #dce8de;
    color: #2d5a3d;
}

/* Scroll reveal base - content always visible by default (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Only apply hidden state when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(45, 90, 61, 0.08);
}

#navbar.scrolled .font-serif {
    color: #2d5a3d;
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Button hover micro-interactions */
a[href="#visit"], button[type="submit"] {
    position: relative;
    overflow: hidden;
}

/* Card hover effects */
.scroll-reveal:hover .aspect-\[4\/5\] img,
.group:hover img {
    transform: scale(1.03);
}

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

/* Image aspect ratio utilities */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}
.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}
.aspect-\[16\/9\] {
    aspect-ratio: 16 / 9;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        transition: none;
    }
    .group:hover img {
        transform: none;
    }
    .animate-pulse {
        animation: none;
    }
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, button {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    section {
        page-break-inside: avoid;
    }
}
