/* ========================================
   Play Friends Preschool & Daycare
   Custom Styles
======================================== */

/* --- Base & Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Geometric Hero Shapes --- */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #fbbf24;
    top: 10%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #f97316;
    bottom: 20%;
    right: 15%;
    animation: float 6s ease-in-out infinite reverse;
}

.circle-3 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fde68a;
    top: 30%;
    right: 25%;
    animation: float 5s ease-in-out infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #fbbf24;
    top: 20%;
    right: 35%;
    animation: spin 12s linear infinite;
    opacity: 0.1;
}

.square-1 {
    width: 80px;
    height: 80px;
    background: #f97316;
    bottom: 30%;
    right: 8%;
    animation: spin 15s linear infinite;
    opacity: 0.1;
    border-radius: 12px;
}

.dot-pattern {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #fbbf24 2px, transparent 2px);
    background-size: 16px 16px;
    top: 60%;
    left: 5%;
    opacity: 0.2;
    animation: float 7s ease-in-out infinite;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 253, 247, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(92, 74, 61, 0.08);
}

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

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

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #d94f30;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

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

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

/* --- Scroll 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);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Form Select Arrow --- */
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='%235C4A3D' stroke-width='2.5' 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;
    appearance: none;
    -webkit-appearance: none;
}

/* --- Selection Color --- */
::selection {
    background: #f09982;
    color: #fff;
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
    .geo-shape {
        display: none;
    }
}
