export function initMobileMenu() {
    const btn = document.getElementById('mobile-menu-btn')
    const menu = document.getElementById('mobile-menu')
    const iconOpen = document.getElementById('menu-icon-open')
    const iconClose = document.getElementById('menu-icon-close')

    if (btn && menu) {
        btn.addEventListener('click', () => {
            const isOpen = !menu.classList.contains('hidden')
            menu.classList.toggle('hidden')
            iconOpen.classList.toggle('hidden')
            iconClose.classList.toggle('hidden')
            btn.setAttribute('aria-expanded', String(!isOpen))
        })
    }
}
