document.addEventListener('DOMContentLoaded', function () {
  const toggle = document.getElementById('mobile-menu-toggle');
  const menu = document.getElementById('mobile-menu');

  if (!toggle || !menu) return;

  toggle.addEventListener('click', function () {
      const isExpanded = toggle.getAttribute('aria-expanded') === 'true';

      menu.classList.toggle('hidden');
      toggle.setAttribute('aria-expanded', isExpanded ? 'false' : 'true');
      document.body.classList.toggle('overflow-hidden');
  });
});