/* Custom styles for Beaver Brook */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Navbar transition states */
nav.scrolled {
    background: rgba(255, 254, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(6, 78, 59, 0.08);
}

nav.scrolled .nav-link {
    color: #065f46;
}

nav.scrolled .nav-text {
    color: #064e3b;
}

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

#mobile-menu.hidden {
    animation: slideUp 0.25s ease-in forwards;
}

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

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .animate-bounce {
        animation: none;
    }
    img, .group-hover\:scale-110, .hover\:scale-105, .hover\:scale-\[1.02\] {
        transition: none;
        transform: none;
    }
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}
