/* ===== Custom Styles for 29 West Bar and Lounge ===== */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #0f0c08;
    color: #e8dcc8;
}

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

::-webkit-scrollbar-track {
    background: #0f0c08;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #dfc06e;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #e8dcc8;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(15, 12, 8, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

/* ===== Hero ===== */
#hero-bg {
    transition: transform 8s ease;
}

#hero:hover #hero-bg {
    transform: scale(1.08);
}

/* Scroll line animation */
@keyframes scrollLine {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* ===== Mobile Menu ===== */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu toggle animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

/* ===== Scroll Reveal ===== */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .animate-scroll-line {
        animation: none;
        opacity: 0.5;
    }

    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== Gold shimmer on hover for cards ===== */
.group:hover .group-hover\\:border-tw-gold {
    border-color: #c9a84c;
}

.group:hover .group-hover\\:bg-tw-gold\\/10 {
    background-color: rgba(201, 168, 76, 0.1);
}

/* ===== Input focus styles ===== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.3);
}

/* ===== Button hover glow ===== */
button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* ===== Image hover containers ===== */
.overflow-hidden {
    position: relative;
}

.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 12, 8, 0.2) 0%, transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}

/* ===== Section dividers ===== */
h2 .italic {
    font-style: italic;
}

/* ===== Custom focus visible ===== */
:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* ===== Print styles ===== */
@media print {
    #navbar,
    #menu-toggle,
    .animate-scroll-line {
        display: none;
    }

    body {
        background: white;
        color: #1a1a1a;
    }

    .bg-tw-dark,
    .bg-tw-dark-card {
        background: white !important;
        color: #1a1a1a !important;
    }
}
