/* Custom styles for Bonitaville */

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

/* Base styles */
body {
    overflow-x: hidden;
}

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

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

/* Menu tab styles */
.menu-tab {
    background: transparent;
    color: rgba(216, 243, 220, 0.6);
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: rgba(216, 243, 220, 0.15);
    color: #FDFCF8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.menu-tab:hover:not(.active) {
    background: rgba(216, 243, 220, 0.08);
    color: rgba(216, 243, 220, 0.9);
}

/* Menu content */
.menu-content {
    animation: fadeIn 0.4s ease;
}

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

/* Mobile menu */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.2s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #66BB6A;
}

/* Selection color */
::selection {
    background: #A5D6A7;
    color: #1B4332;
}

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

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #66BB6A;
    outline-offset: 2px;
}

/* Image hover effect */
img {
    max-width: 100%;
    height: auto;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 252, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

.nav-scrolled .logo-text {
    color: #1B4332 !important;
}

.nav-scrolled a:not(.bg-forest-800) {
    color: #2E7D32 !important;
}
