if (typeof $ !== 'undefined') {
  $(".menu").click(function () {
    $(this).toggleClass("open");
  });
}

// responsive
const hamburger = document.querySelector(".hamburger");
const navMenu = document.querySelector(".navigation");
if (hamburger && navMenu) {
  hamburger.addEventListener("click", () => {
    hamburger.classList.toggle("active");
    navMenu.classList.toggle("active");
  });
}
// responsive end

// Header Sticky Start
window.addEventListener("scroll", function () {
  let head = document.querySelector(".dog");
  if (head) {
    head.classList.toggle("fixeds", window.scrollY > 40);
  }
});
// Header Sticky End   });

// Listen for change on Google Translate combo
googCombo.addEventListener('change', function () {
  console.log("Native Google Translate combo changed to:", googCombo.value);
  customSelects.forEach(function (customSelect) {
    customSelect.value = googCombo.value;
  });
});
      }
    }, 250);
  }

if (document.readyState === 'loading') {
  document.addEventListener('DOMContentLoaded', syncGoogleTranslate);
} else {
  syncGoogleTranslate();
}
}) ();