/* ============================================
   Magical Creations Childcare Center
   Premium Dark Luxury Theme
   Colors: Terracotta + Sand on Deep Dark
   ============================================ */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0b09;
}
::-webkit-scrollbar-thumb {
    background: #3a2a20;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5a3a28;
}

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

/* Selection color */
::selection {
    background: rgba(199, 64, 40, 0.3);
    color: #fdfbf7;
}

/* Base styles */
body {
    background-color: #080605;
    color: #faf5e8;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement - content is visible
   by default, JS adds animation classes
   ============================================ */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
    background: rgba(8, 6, 5, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 175, 77, 0.08);
}

/* ============================================
   Mobile menu
   ============================================ */
.mobile-link {
    display: block;
    text-decoration: none;
}

/* ============================================
   Form enhancements
   ============================================ */
select {
    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='%239ca3af' 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 1rem center;
    padding-right: 2.5rem;
}

/* ============================================
   Button hover glow
   ============================================ */
button[type="submit"],
a[href="#contact"] {
    position: relative;
    overflow: hidden;
}
button[type="submit"]::after,
a[href="#contact"]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 30px rgba(199, 64, 40, 0.4);
}
button[type="submit"]:hover::after,
a[href="#contact"]:hover::after {
    opacity: 1;
}

/* ============================================
   Image hover effects
   ============================================ */
img {
    will-change: transform;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
}

/* ============================================
   Focus visible for accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid rgba(212, 175, 77, 0.5);
    outline-offset: 2px;
}

/* ============================================
   Loading state for form
   ============================================ */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
