/* ============================================
   A&B Childcare Services — 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 */
::selection {
    background-color: #0d9488;
    color: #ffffff;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

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

/* Fade in from bottom */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero entrance animations */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Scroll reveal (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal[data-reveal].revealed:nth-child(1) { transition-delay: 0.05s; }
.reveal[data-reveal].revealed:nth-child(2) { transition-delay: 0.1s; }
.reveal[data-reveal].revealed:nth-child(3) { transition-delay: 0.15s; }
.reveal[data-reveal].revealed:nth-child(4) { transition-delay: 0.2s; }
.reveal[data-reveal].revealed:nth-child(5) { transition-delay: 0.25s; }
.reveal[data-reveal].revealed:nth-child(6) { transition-delay: 0.3s; }

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

#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ============================================
   Buttons & Links
   ============================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Form Elements
   ============================================ */

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ============================================
   Reduced Motion
   ============================================ */

@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;
    }

    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }

    .reveal[data-reveal].revealed {
        transition: none;
    }
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 767px) {
    #hero h1 {
        font-size: 3.5rem;
    }

    .lg\\:col-start-8 {
        order: 2;
    }

    .lg\\:order-1 {
        order: 1;
    }

    .lg\\:order-2 {
        order: 2;
    }
}

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

@media print {
    #navbar,
    #mobileMenu,
    .reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
