/* Only service submenus in the existing header. Native mobile toggles stay in control. */
@media (min-width: 1025px) {
  header .tpl-menu-services > ul, .elementor-location-header .tpl-menu-services > ul {
    width: max-content !important;
    min-width: 18rem !important;
    max-width: min(42rem, 68vw) !important;
    max-height: min(68vh, 42rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .45rem !important;
    border-radius: .45rem;
  }
  header .tpl-menu-services:hover > ul, header .tpl-menu-services:focus-within > ul,
  .elementor-location-header .tpl-menu-services:hover > ul,
  .elementor-location-header .tpl-menu-services:focus-within > ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(36rem, 64vw) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
  }
  .tpl-menu-services > ul > li > a { white-space: normal !important; line-height: 1.3; }
  .tpl-menu-services > ul a:focus-visible { outline: 2px solid #994411; outline-offset: -3px; }
}
@media (max-width: 1024px) {
  .tpl-menu-services > ul { max-height: 50vh; overflow-y: auto; }
  .tpl-menu-services > ul a { white-space: normal !important; }
}

/* Give the existing service image itself a native, keyboard-accessible link. */
.elementor-carousel-image > .tpl-home-service-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 2;
}
.elementor-carousel-image > .tpl-home-service-link:focus-visible {
  outline: 3px solid #ee8440;
  outline-offset: -5px;
  box-shadow: inset 0 0 0 2px #101542;
}
