/* Broad Street Breads — Custom Styles */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(18, 13, 7, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

#navbar.scrolled .menu-line {
    background: #e8d5bc;
}

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

#mobile-menu:not(.open) {
    opacity: 0;
    pointer-events: none;
}

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

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

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

/* Hamburger animation */
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* Gold accent line animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.gold-line {
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
    background-size: 200% 100%;
    animation: shimmer 4s ease-in-out infinite;
}

/* Image hover zoom wrapper */
.rounded-2xl.overflow-hidden {
    will-change: transform;
}

/* Subtle glow on gold buttons */
button, a[href^="tel:"], a[href^="mailto:"] {
    -webkit-tap-highlight-color: transparent;
}

/* Focus visible styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #120d07;
}
::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.25);
    color: #e8d5bc;
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, [data-reveal] { display: none !important; }
    body { background: white; color: black; }
}
