/* Custom styles for Child Development Center */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1e22;
}
::-webkit-scrollbar-thumb {
    background: #373d44;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f5601e;
}

/* Selection color */
::selection {
    background: rgba(245, 96, 30, 0.3);
    color: #f6f6f7;
}

/* Mobile menu animation */
#mobileMenu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}
#mobileMenu.active {
    opacity: 1;
    pointer-events: all;
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Card hover effects */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Fade-in animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure all content is visible by default (progressive enhancement) */
.fade-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
    }
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%237a8189' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid #ff7a3f;
    outline-offset: 2px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
