// === GLOBAL NAV BEHAVIOR FOR MARICH MUSIC ===
// --- DROPDOWN ON HOVER (DESKTOP ONLY) ---
document.addEventListener('DOMContentLoaded', function () {
const dropdowns = document.querySelectorAll('.dropdown');
dropdowns.forEach(drop => {
drop.addEventListener('mouseenter', () => {
const menu = drop.querySelector('.dropdown-menu');
if (menu) menu.style.display = 'block';
});
drop.addEventListener('mouseleave', () => {
const menu = drop.querySelector('.dropdown-menu');
if (menu) menu.style.display = 'none';
});
});
});
// --- TOGGLE CUSTOM NAV ON MOBILE ---
function toggleMobileNav() {
const nav = document.querySelector('.menubg');
if (!nav) return;
const isVisible = window.getComputedStyle(nav).display !== 'none';
nav.style.display = isVisible ? 'none' : 'flex';
}