/* ============================================
   Kids First Daycare Center — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: #e8a838;
    color: #0a1628;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf6f0;
}
::-webkit-scrollbar-thumb {
    background: #0f2140;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1b3a70;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — only active when
   JS runs and prefers-reduced-motion is off
   ============================================ */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    /* Stagger children */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 33, 64, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.menu-line {
    transition: all 0.3s ease;
}

#menuBtn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn[aria-expanded="true"] .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   Buttons & Links
   ============================================ */
a {
    text-decoration: none;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    border-color: #e8a838 !important;
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   Geometric shape animations (subtle)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    @keyframes float {
        0%, 100% { transform: translateY(0px) rotate(0deg); }
        50% { transform: translateY(-10px) rotate(2deg); }
    }

    @keyframes float-reverse {
        0%, 100% { transform: translateY(0px) rotate(15deg); }
        50% { transform: translateY(-8px) rotate(13deg); }
    }

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

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

/* ============================================
   Image loading placeholder
   ============================================ */
img {
    background-color: #e5e7eb;
}
