/* ============================================
   Sierra Vista Pre School — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ============================================
   Hero Gradient & Blobs
   ============================================ */
.hero-gradient {
    background: linear-gradient(135deg, #102a43 0%, #243b53 30%, #334e68 60%, #1a3a5c 100%);
    position: relative;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #fbbf24;
    top: -10%;
    right: -5%;
    animation: float-slow 8s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #60a5fa;
    bottom: -5%;
    left: -5%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #34d399;
    top: 40%;
    left: 50%;
    animation: float-slow 6s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero Badge */
.hero-badge {
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll dot animation */
.scroll-dot {
    animation: scroll-bounce 1.5s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.5; }
}

/* ============================================
   Navbar
   ============================================ */
.nav-scrolled {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-scrolled.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(16, 42, 67, 0.1);
}

/* ============================================
   Program Cards
   ============================================ */
.program-card {
    border: 1px solid rgba(16, 42, 67, 0.06);
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    border: 1px solid rgba(16, 42, 67, 0.06);
}

/* ============================================
   Reveal Animations (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-up.is-visible,
    .reveal-left.is-visible,
    .reveal-right.is-visible {
        opacity: 1;
        transform: none;
    }
}

/* Hidden state for JS-triggered animations */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        transform: translateY(30px);
        opacity: 0;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-left {
        transform: translateX(-30px);
        opacity: 0;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-right {
        transform: translateX(30px);
        opacity: 0;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* When JS runs, add visible class */
.js-enabled .reveal-up.is-visible,
.js-enabled .reveal-left.is-visible,
.js-enabled .reveal-right.is-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .hero-blob {
        opacity: 0.2;
    }
    
    .blob-1 {
        width: 300px;
        height: 300px;
    }
    
    .blob-2 {
        width: 250px;
        height: 250px;
    }
    
    .blob-3 {
        width: 150px;
        height: 150px;
    }
    
    .hero-badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }
}

/* ============================================
   Focus Styles for Accessibility
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .hero-gradient {
        background: #102a43 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .hero-blob {
        display: none;
    }
    
    .nav-scrolled {
        position: static;
    }
}
