/* Custom styles for Joe n marys */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #141418;
}
::-webkit-scrollbar-thumb {
    background: #3d3d47;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

/* Selection */
::selection {
    background: rgba(123, 45, 59, 0.5);
    color: #f7f7f8;
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(20, 20, 24, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(61, 61, 71, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link {
    color: #b8b8c0;
}

/* Menu tabs */
.menu-tab {
    background: transparent;
    color: #767684;
    border: 1px solid transparent;
}
.menu-tab:hover {
    color: #e2a845;
    border-color: rgba(226, 168, 69, 0.3);
}
.menu-tab.active {
    background: #7B2D3B;
    color: #f7f7f8;
    border-color: #b9203d;
    box-shadow: 0 4px 15px rgba(123, 45, 59, 0.3);
}

/* Menu panels */
.menu-panel {
    animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Hamburger animation */
.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile links */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Gold shimmer on hover for decorative elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Image hover overlay */
.group:hover img {
    filter: brightness(1.05);
}

/* Subtle gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #e2a845, #d4942c, #f4d9aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #d4942c;
    outline-offset: 2px;
}

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

/* Touch device optimizations */
@media (hover: none) {
    .group:hover img {
        transform: none;
    }
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, .reveal {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
