/* Custom styles for Bridger Deck Restaurant */

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

/* Navbar styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 248, 245, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(61, 43, 31, 0.06);
    box-shadow: 0 1px 20px rgba(61, 43, 31, 0.06);
}

/* Nav links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #b5202d;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* Mobile menu */
.mobile-link {
    display: block;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Default visible state for accessibility */
.scroll-reveal {
    visibility: visible;
}

/* Button hover effects */
a[href="#menu"]:hover,
a[href="#visit"]:hover,
a[href="#about"]:hover,
a[href="#gallery"]:hover,
a[href="#contact"]:hover {
    transform: translateY(-1px);
}

/* Image hover effects */
img {
    will-change: transform;
}

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

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

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

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

/* Selection color */
::selection {
    background: #f0a5ad;
    color: #561117;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    img {
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }
    
    #hero h1 span:last-child {
        font-size: 2rem;
    }
}

/* Ensure hero text is always readable */
#hero h1,
#hero p,
#hero a {
    position: relative;
    z-index: 1;
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Card hover lift */
.group {
    transition: transform 0.3s ease;
}

/* Gallery grid */
#gallery .grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
    #gallery .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Map section */
#visit .bg-white {
    position: relative;
}

/* About stats */
#about .font-serif {
    font-variant-numeric: tabular-nums;
}

/* Loading state for buttons */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
