/**
 * IMI Theme — Drupal-specific overrides.
 */

/* Non-navigable parent menu items (e.g. Services) rendered as <span> */
.dropdown.menu > li > span.nav-parent-label,
.mobile-nav .vertical.menu > li > span.nav-parent-label {
  display: block;
  padding: 0.7rem 1rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  cursor: default;
  line-height: inherit;
  white-space: nowrap;
}

/* Dropdown arrow on the <span> parent (mirrors Foundation's <a>::after rule) */
.dropdown.menu > li.is-dropdown-submenu-parent > span.nav-parent-label {
  position: relative;
  padding-right: 1.5rem;
}
.dropdown.menu > li.is-dropdown-submenu-parent > span.nav-parent-label::after {
  display: block;
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px;
  content: "";
  border-bottom-width: 0;
  border-color: #BF181E transparent transparent;
  right: 5px;
  top: 50%;
  margin-top: -3px;
}

/* Mobile nav span label */
.mobile-nav .vertical.menu > li > span.nav-parent-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0.65rem 0.5rem;
}

/* ============================================================
   Desktop submenu — match reference design
   ============================================================ */

/* Push submenu below the header bottom (not just below the li).
   top: 156% matches the reference site's exact value so the
   dropdown opens flush with the header bottom edge. */
.dropdown.menu .is-dropdown-submenu {
  top: 156% !important;
  left: -60% !important;
  border-radius: 0 !important;
  border: 1px solid rgba(37, 37, 37, 0.5) !important;
  box-shadow: none !important;
  width: 17.125rem !important;
}

/* Item color — dark near-black, red on hover */
.dropdown.menu .is-dropdown-submenu a {
  color: #1e1e1e !important;
  background: transparent !important;
}
.dropdown.menu .is-dropdown-submenu a:hover {
  color: #BF181E !important;
  background: transparent !important;
}

/* Parent "Services" turns red when submenu is open/hovered */
.dropdown.menu > li.is-dropdown-submenu-parent.is-active > a,
.dropdown.menu > li.is-dropdown-submenu-parent:hover > a {
  color: #BF181E;
}