/* Custom styles for Bright Minds Learning Academy */

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

/* Base styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #faf9f6;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.font-serif {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Hero section pattern background */
.pattern-bg {
    background-image: radial-gradient(circle, rgba(49, 82, 33, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Form input focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #315221;
    box-shadow: 0 0 0 3px rgba(49, 82, 33, 0.15);
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is always visible for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Service card hover effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(49, 82, 33, 0.12);
}

/* Navigation scroll effect */
.nav-scrolled {
    background-color: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(49, 82, 33, 0.1);
}

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-card-1 { animation: float 6s ease-in-out infinite; }
.float-card-2 { animation: float 6s ease-in-out infinite 1s; }
.float-card-3 { animation: float 6s ease-in-out infinite 2s; }

/* CTA button pulse effect */
@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(49, 82, 33, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(49, 82, 33, 0); }
}

.cta-pulse:hover {
    animation: subtle-pulse 1.5s ease-in-out infinite;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

/* Image aspect ratios to prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    nav, .cta-pulse, .float-card-1, .float-card-2, .float-card-3 {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
