/* ============================================
   Saucy Brew Works — Custom Styles
   ============================================ */

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF6F0;
}
::-webkit-scrollbar-thumb {
    background: #c4532a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a13f1e;
}

/* --- Selection --- */
::selection {
    background: #c4532a;
    color: #FAF6F0;
}

/* --- Nav Scroll State --- */
#navbar.scrolled {
    background: rgba(250, 246, 240, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(61, 43, 31, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .nav-link,
#navbar.scrolled #menu-icon-open span {
    color: #3D2B1F !important;
}

#navbar.scrolled .nav-link {
    color: rgba(61, 43, 31, 0.7) !important;
}

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

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

.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #c4532a;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 80%;
}

/* --- Menu Toggle Animation --- */
#menu-toggle.active #menu-icon-open {
    opacity: 0;
    transform: scale(0.8);
}
#menu-toggle.active #menu-icon-close {
    display: flex;
}

/* --- Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* --- Hero Image Parallax --- */
#hero img {
    will-change: transform;
}

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

/* --- 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='%233D2B1F' 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 --- */
.overflow-hidden img {
    will-change: transform;
}

/* --- Print Styles --- */
@media print {
    #navbar, #mobile-menu, .reveal-up, .reveal-left, .reveal-right {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
