/* ========================================
   River Valley Montessori — Custom Styles
   ======================================== */

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

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

body {
    min-height: 100vh;
}

/* ========================================
   Geometric Background Shapes
   ======================================== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(107, 45, 91, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    background: rgba(245, 158, 11, 0.1);
    top: 30%;
    left: 15%;
    border-radius: 50%;
    animation: float-medium 10s ease-in-out infinite;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(107, 45, 91, 0.1);
    top: 20%;
    right: 35%;
    border-radius: 20px;
    transform: rotate(45deg);
    animation: float-medium 12s ease-in-out infinite;
}

.shape-rect-2 {
    width: 80px;
    height: 80px;
    background: rgba(107, 45, 91, 0.05);
    bottom: 20%;
    right: 20%;
    border-radius: 16px;
    transform: rotate(20deg);
    animation: float-slow 18s ease-in-out infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(245, 158, 11, 0.06);
    top: 50%;
    left: 8%;
    animation: float-medium 14s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

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

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 245, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 45, 91, 0.08);
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
    opacity: 1;
    transition: color 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   Program Cards
   ======================================== */
.program-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.program-card:hover {
    transform: translateY(-6px);
}

/* ========================================
   Approach Cards
   ======================================== */
.approach-card {
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.approach-card:hover {
    border-color: rgba(107, 45, 91, 0.1);
}

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content is visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal[data-reveal="left"] {
        transform: translateX(-30px);
    }

    .reveal[data-reveal="right"] {
        transform: translateX(30px);
    }

    .reveal[data-reveal="scale"] {
        transform: scale(0.95);
    }

    .reveal.active {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   Form Styling
   ======================================== */
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='%236B2D5B' 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;
}

/* ========================================
   Selection Color
   ======================================== */
::selection {
    background: rgba(107, 45, 91, 0.2);
    color: #6B2D5B;
}

/* ========================================
   Focus Visible
   ======================================== */
:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }

    .shape-circle-2 {
        width: 200px;
        height: 200px;
    }

    .shape-rect-1,
    .shape-rect-2,
    .shape-triangle {
        display: none;
    }
}
