/* Custom styles for 5 Star Saloon */

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

/* Navbar transition */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    box-shadow: 0 1px 20px rgba(45, 69, 48, 0.08);
}

/* Menu tabs */
.menu-tab {
    background: transparent;
    color: #52875e;
    border: 2px solid #c7dfcc;
}

.menu-tab.active {
    background: #3d6b48;
    color: white;
    border-color: #3d6b48;
    box-shadow: 0 4px 15px rgba(61, 107, 72, 0.3);
}

.menu-tab:hover:not(.active) {
    background: #f2f7f4;
    border-color: #74a67d;
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-left {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9fc5a6;
}

/* Selection color */
::selection {
    background: #c7dfcc;
    color: #111e16;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #52875e;
    outline-offset: 2px;
}

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

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

/* Star animation for floating card */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Decorative dots animation */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

/* Form input animations */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(167, 201, 168, 0.3);
}

/* Gallery hover */
.grid > div > img:hover {
    transform: scale(1.05);
}

/* Ensure all content is visible by default for accessibility */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}
