/* Custom styles for After Hours */

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

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

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

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

.nav-scrolled .mobile-nav-link {
    color: #1a3a2a !important;
}

.nav-scrolled #menu-icon-open,
.nav-scrolled #menu-icon-close {
    color: #1a3a2a !important;
}

/* Tab buttons */
.tab-btn {
    background: transparent;
    color: #4d7d52;
}

.tab-btn.active {
    background: #1a3a2a;
    color: #fafaf8;
    box-shadow: 0 2px 8px rgba(26, 58, 42, 0.3);
}

.tab-btn:not(.active):hover {
    background: rgba(26, 58, 42, 0.08);
}

/* Menu panels */
.menu-panel {
    animation: fadeIn 0.4s ease-out;
}

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

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

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

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

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #719a74;
}

/* Selection color */
::selection {
    background: #c5d5c8;
    color: #0f2319;
}
