/* Custom styles for Mick Daniel's Saloon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
    background: #3a3a4e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e07a5f;
}

/* Selection color */
::selection {
    background: #e07a5f;
    color: #0d0d14;
}

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

/* Nav link underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e07a5f;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

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

/* Hamburger animation */
#mobile-menu-btn.active #bar1 {
    transform: translateY(4px) rotate(45deg);
}
#mobile-menu-btn.active #bar2 {
    opacity: 0;
}
#mobile-menu-btn.active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* For reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.6s ease;
}
.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.05);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e07a5f;
    outline-offset: 2px;
}

/* Subtle gradient overlay on hero */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(13, 13, 20, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

#hero > .relative {
    position: relative;
    z-index: 2;
}

/* CTA section coral background pattern */
section.py-20.bg-coral-400::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(224, 122, 95, 1) 0%, rgba(212, 101, 74, 1) 100%);
    z-index: 0;
}

/* Menu section card hover */
.bg-charcoal-900\\/60:hover {
    border-color: rgba(224, 122, 95, 0.2);
    transition: border-color 0.3s ease;
}

/* Map container */
.rounded-2xl.overflow-hidden.relative iframe {
    border-radius: 0.75rem;
}
