/* NQ Home Base Day Care — Custom Styles */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: rgba(61, 168, 110, 0.3);
    color: #f2faf5;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3da86e;
}

/* Reveal animations — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 100ms; }
    .reveal:nth-child(3) { transition-delay: 200ms; }
    .reveal:nth-child(4) { transition-delay: 300ms; }
    .reveal:nth-child(5) { transition-delay: 400ms; }
    .reveal:nth-child(6) { transition-delay: 500ms; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .card-float,
    .card-float-delayed {
        animation: none;
    }
}

/* Floating cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.card-float {
    animation: float 6s ease-in-out infinite;
}

.card-float-delayed {
    animation: float 6s ease-in-out 3s infinite;
}

/* Button shine effect */
.btn-elegant {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-elegant:hover::before {
    left: 100%;
}

/* Nav scroll state */
.nav-scrolled {
    background: rgba(9, 20, 33, 0.97) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

/* Service card hover */
.service-card {
    transition: all 0.5s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon {
    transition: transform 0.5s ease;
}

/* Mobile menu */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

/* Smooth focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3da86e !important;
    box-shadow: 0 0 0 3px rgba(61, 168, 110, 0.15);
}

/* Print styles */
@media print {
    nav, .card-float, .card-float-delayed, #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: #1a1a1a !important;
    }
    
    .bg-midnight-950, .bg-midnight-900, .bg-midnight-800 {
        background: white !important;
    }
    
    .text-white, .text-midnight-200, .text-midnight-300 {
        color: #1a1a1a !important;
    }
}
