/* Custom styles for The Grill on Chestnut */

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

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

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

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

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

/* Animation classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile menu animation */
#mobile-menu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

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

/* Link underline animation */
a {
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #C05640;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

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

/* Print styles */
@media print {
    nav,
    #gallery,
    #contact,
    footer {
        display: none;
    }
}
