/* Custom styles for Amazing Lil Faces Childcare */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero underline animation */
@keyframes underline-grow {
    from {
        width: 0;
        transform: translateX(0);
    }
    to {
        width: 100%;
        transform: translateX(0);
    }
}

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

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

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobileMenu.open {
    max-height: 500px;
}

/* Navbar scroll state */
.nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

/* Selection color */
::selection {
    background-color: #f9d0d0;
    color: #6e1c1c;
}

/* Image hover effects */
img {
    display: block;
    max-width: 100%;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    img,
    .group:hover img,
    button,
    a {
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Form input focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 54, 54, 0.15);
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Print styles */
@media print {
    .nav,
    #mobileMenu,
    .reveal {
        display: block !important;
        opacity: 1 !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
