/* ===== Custom Styles for Gigi's Home Childcare Center ===== */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a85274;
}

/* ===== Animations ===== */

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

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* ===== Reveal Animations (Progressive Enhancement) ===== */

/* Default state: all elements visible */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* When JS is enabled and motion is preferred, add scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ===== Navbar Transitions ===== */

.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 58, 93, 0.08);
}

.nav-scrolled .font-serif {
    color: #4a2539 !important;
}

.nav-scrolled .text-plum-600 {
    color: #6B3A5D !important;
}

/* ===== Mobile Menu ===== */

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4A017;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* ===== Button Focus States ===== */

button:focus-visible,
a:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Input Focus States ===== */

input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
}

/* ===== Image Loading ===== */

img {
    background-color: #f5e9ed;
}

/* ===== Selection Color ===== */

::selection {
    background-color: #dbacbc;
    color: #331a27;
}

/* ===== Responsive Typography ===== */

@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* ===== Print Styles ===== */

@media print {
    nav, #contact, .reveal {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
