/* === Custom Styles for Mad Fritz Tap House === */

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

/* Prevent flash of hidden content — progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .tap-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.5s ease, transform 0.5s ease, background-color 0.4s ease;
    }
}

/* Tap card hover effects */
.tap-card {
    transition: transform 0.3s ease, background-color 0.4s ease;
}

.tap-card:hover {
    transform: translateY(-4px);
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(35, 71, 35, 0.08);
}

#navbar.scrolled .nav-logo {
    color: #132713 !important;
}

/* Mobile menu transitions */
#mobile-menu {
    pointer-events: none;
}

#mobile-menu.active {
    pointer-events: all;
}

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

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

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

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

/* Selection color */
::selection {
    background: #c6db c6;
    color: #132713;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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