/* ============================================
   WISE GAME CLUB — Custom Styles
   Fresh & Airy · Emerald Green + Cream
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background-color: rgba(16, 185, 129, 0.2);
    color: #064E3B;
}

/* --- Hero Animations --- */
.hero-content {
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-left {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-right {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* --- Navbar Transition --- */
.nav-scrolled {
    background-color: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08), 0 4px 20px rgba(6, 78, 59, 0.06);
}

.nav-scrolled .nav-link {
    color: #065F46 !important;
}

.nav-scrolled .font-serif {
    color: #064E3B !important;
}

/* --- Mobile Menu Transitions --- */
.mobile-menu-active #mobile-menu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-active #menu-icon-open {
    display: none;
}

.mobile-menu-active #menu-icon-close {
    display: block;
}

.mobile-menu-active body {
    overflow: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FAF6EE;
}

::-webkit-scrollbar-thumb {
    background: #A7F3D0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6EE7B7;
}

/* --- Form Focus Styles --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* --- Button Hover Glow --- */
button, a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Image Loading Placeholder --- */
img {
    background: linear-gradient(135deg, #EDE2C8 0%, #F5EFE0 100%);
}

/* --- Gallery Image Hover --- */
.rounded-3xl img {
    will-change: transform;
}

/* --- Map Container --- */
iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.5s ease;
}

iframe:hover {
    filter: saturate(1) contrast(1);
}

/* --- Back to Top --- */
#back-to-top.visible {
    opacity: 1 !important;
    pointer-events: all !important;
}
