/*
 * Static CSS dropdown for the desktop nav menu.
 * Elementor normally shows these sub-menus (and draws the dropdown caret) via a
 * JS handler that is lazy-loaded as a webpack chunk from the old WordPress plugin
 * path — which no longer exists on this static site. This restores hover/keyboard
 * dropdowns, correct sizing, and the caret with pure CSS (no Elementor JS).
 */
.elementor-nav-menu--main .elementor-nav-menu > li.menu-item-has-children,
.elementor-nav-menu--main .sub-menu .menu-item-has-children {
  position: relative;
}

/* Sub-menus: sized to their content (no wrapping), hidden until hover/focus. */
.elementor-nav-menu--main ul.sub-menu {
  display: block !important;
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  min-width: 200px;
  max-width: 460px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}

.elementor-nav-menu--main li.menu-item-has-children:hover > ul.sub-menu,
.elementor-nav-menu--main li.menu-item-has-children:focus-within > ul.sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0);
  pointer-events: auto;
}

/* Nested sub-menus fly out to the right. */
.elementor-nav-menu--main ul.sub-menu ul.sub-menu {
  top: -6px;
  left: 100%;
}

.elementor-nav-menu--main ul.sub-menu li {
  margin: 0;
  width: 100%;
}

.elementor-nav-menu--main ul.sub-menu a {
  display: block;
  padding: 10px 22px;
  white-space: nowrap !important;
  color: #1c1c1c;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.3;
}
.elementor-nav-menu--main ul.sub-menu li.menu-item-has-children > a {
  position: relative;
  padding-right: 34px;
}

/* ----- Dropdown caret indicators -----
   The underline-hover pointer uses ::after, so the caret uses the free ::before. */

/* Top-level parents: downward caret to the right of the label. */
.elementor-nav-menu--main > .elementor-nav-menu > li.menu-item-has-children > a {
  position: relative;
  padding-right: 20px;
}
.elementor-nav-menu--main > .elementor-nav-menu > li.menu-item-has-children > a::before {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  pointer-events: none;
}

/* Nested parents: rightward caret indicating a fly-out submenu. */
.elementor-nav-menu--main ul.sub-menu li.menu-item-has-children > a::before {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  opacity: 0.6;
  pointer-events: none;
}
