/* ═══════════════════════════════════════════
   ESL Classes WestGate South Hills — Styles
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Navbar height fix ── */
#navbar { height: 68px; }

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

.geo-circle-1 {
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52,212,184,0.08) 0%, transparent 70%);
    top: -100px; right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}
.geo-circle-2 {
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(52,212,184,0.06);
    bottom: 10%; left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}
.geo-circle-3 {
    width: 150px; height: 150px;
    border-radius: 50%;
    background: rgba(245,208,128,0.1);
    top: 30%; right: 15%;
    animation: float-slow 12s ease-in-out infinite;
}
.geo-rect-1 {
    width: 120px; height: 120px;
    background: rgba(52,212,184,0.07);
    border-radius: 20px;
    top: 20%; left: 8%;
    transform: rotate(45deg);
    animation: float-slow 18s ease-in-out infinite;
}
.geo-rect-2 {
    width: 80px; height: 80px;
    background: rgba(245,208,128,0.08);
    border-radius: 14px;
    bottom: 20%; right: 10%;
    transform: rotate(20deg);
    animation: float-slow 14s ease-in-out infinite reverse;
}
.geo-triangle {
    width: 0; height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(52,212,184,0.06);
    top: 45%; left: 3%;
    animation: float-slow 16s ease-in-out infinite;
}
.geo-dots {
    background-image: radial-gradient(rgba(52,212,184,0.3) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    width: 120px; height: 120px;
    top: 60%; right: 5%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--r, 0deg)); }
}
.geo-rect-1 { --r: 45deg; }
.geo-rect-2 { --r: 20deg; }
.geo-triangle { --r: 0deg; }

/* ── Scroll Reveal (progressive enhancement) ── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-active .reveal {
    opacity: 0;
    transform: translateY(30px);
}
.js-active .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.js-active .reveal:nth-child(2) { transition-delay: 0.1s; }
.js-active .reveal:nth-child(3) { transition-delay: 0.2s; }
.js-active .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ── Card hover lift ── */
.card { transform: translateY(0); }
.js-active .card { transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }

/* ── Selection color ── */
::selection { background: rgba(52,212,184,0.3); color: #0B1D3A; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF6E8; }
::-webkit-scrollbar-thumb { background: #0B1D3A; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2A3F70; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none !important; }
}

/* ── Mobile menu animation ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* ── 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='%236B7280' 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;
}
