/* ============================================
   BIN CITY — Custom Styles
   Classic & Elegant | Burgundy + Blush
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #8c3143;
    color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf9f7;
}
::-webkit-scrollbar-thumb {
    background: #c44f64;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8c3143;
}

/* --- Navigation --- */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 253, 251, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(140, 49, 67, 0.08);
}

#navbar.scrolled .menu-line {
    background-color: #4d4038;
}

#navbar.scrolled a:not(.bg-burgundy-700) {
    color: #4d4038;
}

/* --- Mobile Menu --- */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* --- Menu Button Animation --- */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    .reveal.delay-100 { transition-delay: 0.1s; }
    .reveal.delay-200 { transition-delay: 0.2s; }
    .reveal.delay-300 { transition-delay: 0.3s; }
    .reveal.delay-400 { transition-delay: 0.4s; }
}

/* --- Button Ripple Effect --- */
a, button {
    position: relative;
    overflow: hidden;
}

/* --- Image Hover Transitions --- */
img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Subtle Patterns --- */
.burgundy-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(140, 49, 67, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
}

/* --- Focus States --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #8c3143;
    outline-offset: 4px;
    border-radius: 2px;
}

/* --- Mobile responsiveness tweaks --- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* --- Print Styles --- */
@media print {
    nav, #mobileMenu, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
