/* ============================================
   Warner Family Childcare — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

/* ============================================
   Floating Geometric Shapes
   ============================================ */
.floating-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
}

.shape-circle-1 {
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    border: 3px solid #fbbf24;
    border-radius: 50%;
    animation: floatSlow 20s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 20%;
    left: 8%;
    width: 180px;
    height: 180px;
    border: 2px solid #fbbf24;
    border-radius: 50%;
    animation: floatSlow 15s ease-in-out infinite reverse;
}

.shape-square-1 {
    top: 40%;
    left: 3%;
    width: 100px;
    height: 100px;
    border: 2px solid #fbbf24;
    border-radius: 16px;
    transform: rotate(45deg);
    animation: floatSlow 18s ease-in-out infinite;
}

.shape-triangle-1 {
    top: 60%;
    right: 10%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(251, 191, 36, 0.06);
    animation: floatSlow 22s ease-in-out infinite reverse;
}

.shape-ring-1 {
    top: 25%;
    left: 15%;
    width: 120px;
    height: 120px;
    border: 3px solid #fbbf24;
    border-radius: 50%;
    animation: floatSlow 16s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
    75% { transform: translateY(-25px) rotate(1deg); }
}

/* ============================================
   Floating Stat Cards
   ============================================ */
.floating-card {
    animation: floatCard 4s ease-in-out infinite;
}

.card-stat-1 {
    animation-delay: 0s;
}

.card-stat-2 {
    animation-delay: 1.3s;
}

.card-stat-3 {
    animation-delay: 2.6s;
}

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

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default state for reveal elements — visible for accessibility */
.reveal[data-reveal] {
    opacity: 1;
    transform: translateY(0);
}

/* Only apply hidden state when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* ============================================
   Navbar scroll state
   ============================================ */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   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='%23fbbf24' 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;
}

/* ============================================
   Selection color
   ============================================ */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fff;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .floating-shape {
        display: none;
    }
    
    .shape-circle-1,
    .shape-circle-2 {
        display: block;
        opacity: 0.04;
    }
}
