/* ===== Custom Styles for S&B's Bar & Grill ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F4;
}
::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5c1f2b;
}

/* ===== Reveal Animations ===== */
/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only animate when user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children */
.reveal-grid > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-grid.animated > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-grid.animated > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-grid.animated > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-grid.animated > *:nth-child(4) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: no-preference) {
    .reveal-grid.animated > * {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Navbar shadow on scroll ===== */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.1);
}

/* ===== Mobile menu transitions ===== */
#mobileMenu {
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Menu item hover ===== */
#menu ul li {
    transition: background-color 0.15s ease;
}

/* ===== Button focus ===== */
a:focus-visible, button:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Image hover containers ===== */
.rounded-2xl.overflow-hidden {
    position: relative;
}
.rounded-2xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    box-shadow: inset 0 0 0 1px rgba(123, 45, 59, 0.08);
    pointer-events: none;
}

/* ===== Mobile menu links ===== */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #7B2D3B;
    transition: width 0.2s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* ===== Navbar height fix for fixed header ===== */
main {
    padding-top: 72px;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    main {
        padding-top: 64px;
    }
}
