/* ── Custom styles for The ZOO ── */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Floating animations for hero cards */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-22px); }
}

.animate-float-slow {
    animation: float-slow 4s ease-in-out infinite;
}
.animate-float-medium {
    animation: float-medium 3.2s ease-in-out infinite;
    animation-delay: 0.4s;
}
.animate-float-fast {
    animation: float-fast 2.6s ease-in-out infinite;
    animation-delay: 0.8s;
}

/* ── Scroll-reveal (progressive enhancement) ── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Navbar glass on scroll ── */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(74, 140, 42, 0.08), 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ── Mobile menu transition ── */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Image hover zoom (no layout shift) ── */
img {
    max-width: 100%;
    height: auto;
}

/* ── Focus visible for accessibility ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4a8c2a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Selection color ── */
::selection {
    background: #b7d4a4;
    color: #1f4013;
}
