/* Common Elementor header. The negative margin keeps the hero behind the card. */
:root { scroll-padding-top: 9rem; }
body .elementor-location-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 7rem;
  margin-bottom: -7rem;
  z-index: 100;
  overflow: visible;
}
body .elementor-location-header .sbm-nav-shell,
body .elementor-location-header .sbm-nav-inner { overflow: visible; }
body .elementor-location-header .elementor-widget-nav-menu {
  flex: 1;
  width: auto;
  min-width: 0;
  margin: 0;
}
body .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu {
  justify-content: center;
  margin: 0 auto;
}
body .elementor-location-header .elementor-nav-menu .elementor-item {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 750;
  letter-spacing: .025em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: #181818;
  transition: background-color .18s, color .18s;
}
body .elementor-location-header .elementor-nav-menu--main .elementor-item {
  font-size: 13px;
  padding: 12px 8px;
}
body .elementor-location-header .elementor-nav-menu .elementor-item.elementor-item-active {
  color: var(--sbm-orange, #ff6600);
}
body .elementor-location-header .elementor-nav-menu .elementor-item:hover,
body .elementor-location-header .elementor-nav-menu .elementor-item:focus-visible,
body .elementor-location-header .elementor-nav-menu .elementor-item.highlighted {
  background-color: var(--sbm-orange, #ff6600);
  color: #fff;
}
body .elementor-location-header .sbm-social a { display: flex; }
body .elementor-location-header .sbm-social img { transition: filter .18s; }
body .elementor-location-header .sbm-social a:hover img,
body .elementor-location-header .sbm-social a:focus-visible img {
  filter: invert(42%) sepia(89%) saturate(2167%) hue-rotate(359deg) brightness(101%) contrast(107%);
}
/* Keep the native WordPress menu and its accessible keyboard/toggle behaviour. */
@media (min-width: 768px) {
  /* Scrolls out naturally on the way down; JavaScript pins it on the way up. */
  body .elementor-location-header { top: -10rem; transition: top .22s ease; }
  body .elementor-location-header.sbm-header-revealed { top: 0; }
  body .elementor-location-header .sbm-nav-inner { box-shadow: 0 2px 14px rgb(0 0 0 / 8%); }
  body .elementor-location-header .elementor-menu-toggle,
  body .elementor-location-header .elementor-nav-menu--dropdown.elementor-nav-menu__container { display: none; }
  body .elementor-location-header .elementor-nav-menu--main { display: flex; }
  body .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu { column-gap: 12px; }
  body .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu::after { display: none; }
  body .elementor-location-header .elementor-nav-menu--main .elementor-item,
  body .elementor-location-header .elementor-nav-menu--main .elementor-item:is(:hover, :focus, :active, .highlighted) {
    padding: 12px 8px;
  }
  body .elementor-location-header .elementor-nav-menu--main .elementor-item:is(:hover, :focus-visible, .highlighted) {
    background: transparent;
    color: var(--sbm-orange, #ff6600);
  }
  /* Adapted from Temani Afif, "The Colorful", effect 3:
     https://codepen.io/t_afif/pen/xxgeMWb */
  @supports (background-clip: text) {
    body .elementor-location-header .elementor-nav-menu--main .sbm-menu-label {
      display: inline-block;
      margin-bottom: -3px;
      border-bottom: 3px solid var(--sbm-orange, #ff6600);
      background: linear-gradient(var(--sbm-orange, #ff6600) 0 0) center / 0% 100% no-repeat var(--sbm-menu-ink, #181818);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), 50% calc(100% - 4px), 50% 100%, 50% 100%, 50% calc(100% - 4px), 0 calc(100% - 4px));
      transition: background-size .5s, clip-path .5s;
    }
    body .elementor-location-header .elementor-nav-menu--main .elementor-item-active .sbm-menu-label {
      --sbm-menu-ink: var(--sbm-orange, #ff6600);
    }
    body .elementor-location-header .elementor-nav-menu--main .elementor-item:is(:hover, :focus-visible, .highlighted) .sbm-menu-label {
      background-size: 100% 100%;
      clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), 100% calc(100% - 4px), 100% 100%, 0% 100%, 0% calc(100% - 4px), 0 calc(100% - 4px));
    }
  }
}
@media (min-width: 1200px) {
  body .elementor-location-header .sbm-header-logo-zone { width: 120px; }
  body .elementor-location-header .sbm-header-logo {
    width: auto;
    max-width: none;
    height: 120px;
    inset-block-start: 50%;
    transform: translateY(-50%);
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  body .elementor-location-header { height: 6.375rem; margin-bottom: -6.375rem; }
  body .elementor-location-header .elementor-nav-menu--main .elementor-item,
  body .elementor-location-header .elementor-nav-menu--main .elementor-item:is(:hover, :focus, :active, .highlighted) {
    font-size: clamp(10px, 1vw, 12px);
    letter-spacing: .01em;
    padding: 12px 5px;
  }
  body .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu { column-gap: clamp(8px, 1vw, 12px); }
  body .elementor-location-header .sbm-header-join { display: none; }
  body .elementor-location-header .sbm-social { gap: .75rem; }
}
@media (max-width: 767px) {
  :root { scroll-padding-top: 4.625rem; }
  /* At scroll 0 the banner is visible; after 30px only the white 58px bar stays. */
  body .elementor-location-header {
    top: -1.875rem;
    height: 5.5rem;
    margin-bottom: -5.5rem;
  }
  body .elementor-location-header .sbm-header-join { display: none; }
  body .elementor-location-header .sbm-social {
    display: flex;
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    width: auto;
    height: 3.625rem;
    padding: 0;
    gap: 0;
    align-items: center;
    z-index: 3;
  }
  body .elementor-location-header .sbm-social a {
    width: 2.5rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
  }
  body .elementor-location-header .sbm-social img {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
  }
  body .elementor-location-header .sbm-header-logo-zone { z-index: 2; }
  body .elementor-location-header .elementor-widget-nav-menu {
    position: static;
    flex: 0 0 4.625rem;
    width: 4.625rem;
    height: 3.625rem;
    margin: 0;
  }
  body .elementor-location-header .elementor-nav-menu--main { display: none; }
  body .elementor-location-header .elementor-menu-toggle {
    position: relative;
    width: 4.625rem;
    height: 3.625rem;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #181818;
    cursor: pointer;
  }
  body .elementor-location-header .elementor-menu-toggle svg,
  body .elementor-location-header .elementor-menu-toggle i { display: none; }
  body .elementor-location-header .elementor-menu-toggle::before,
  body .elementor-location-header .elementor-menu-toggle::after {
    content: "";
    position: absolute;
    left: 20px;
    width: 34px;
    height: 4px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .18s, top .18s, width .18s;
  }
  body .elementor-location-header .elementor-menu-toggle::before { top: 16px; box-shadow: 0 10px 0 currentColor; }
  body .elementor-location-header .elementor-menu-toggle::after { top: 36px; width: 24px; }
  body .elementor-location-header .elementor-menu-toggle:hover { color: var(--sbm-orange, #ff6600); }
  body .elementor-location-header .elementor-menu-toggle.elementor-active::before { top: 27px; box-shadow: none; transform: rotate(45deg); }
  body .elementor-location-header .elementor-menu-toggle.elementor-active::after { top: 27px; width: 34px; transform: rotate(-45deg); }
  body .elementor-location-header .elementor-nav-menu--dropdown.elementor-nav-menu__container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid #eee;
    background: #fff;
    box-shadow: 0 16px 28px #00000014;
    z-index: 110;
  }
  body .elementor-location-header .elementor-nav-menu--dropdown .elementor-item {
    font-size: 14px;
    padding: 16px 20px;
  }
}
