Skip to content
document.addEventListener("DOMContentLoaded", function () {
// Find the top-level "Products" item (adjust selector if needed)
const productsItem = Array.from(document.querySelectorAll(".elementor-nav-menu > li"))
.find(li => li.textContent.trim().includes("Products"));
if (!productsItem) return;
const firstSubItem = productsItem.querySelector(".sub-menu > li:first-child > a");
if (!firstSubItem) return;
productsItem.addEventListener("mouseenter", function () {
// Remove previous highlights
productsItem.querySelectorAll(".elementor-sub-item").forEach(a => {
a.classList.remove("highlighted");
});
// Activate first item (Commercial Solutions)
firstSubItem.classList.add("highlighted");
firstSubItem.setAttribute("aria-expanded", "true");
});
});