/* Site header (ElementsKit template "Main Header"): overlays the page top, turns sticky with blur on scroll. */
.ekit-template-content-header { position: absolute; top: 0; left: 0; right: 0; z-index: 999; }
/* pages that start with a full-bleed dark hero sit under the header; others get pushed down */
body:not(:has(.elementor > .mh-dark:first-child, .mh-tpl > .mh-dark:first-child)) { padding-top: 100px; }
@media (max-width: 991px) { body:not(:has(.elementor > .mh-dark:first-child, .mh-tpl > .mh-dark:first-child)) { padding-top: 76px; } }
.ekit-template-content-header.is-sticky { position: fixed; top: -1px; animation: hdFadeInDown .5s ease both; }
@keyframes hdFadeInDown { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
/* while the menu is open, drop the animation so no transform can clip the panel */
.ekit-template-content-header.is-sticky:has(.elementskit-menu-offcanvas-elements.active) { animation: none; }

.hd-bar.e-con { background: rgba(10, 1, 2, .6); transition: .5s; --gap: 0px; }
/* The blur sits on a pseudo-element: a backdrop-filter on .hd-bar itself would become the containing block of the
   mobile off-canvas menu (position: fixed) and clip it to the 76px bar — the menu opened but stayed invisible. */
.ekit-template-content-header.is-sticky .hd-bar.e-con { position: relative; box-shadow: 0 2px 28px 0 rgba(0, 0, 0, .09); }
.ekit-template-content-header.is-sticky .hd-bar.e-con::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.hd-bar .elementor-widget { margin: 0 !important; }
/* reference logo is a 140x45 box with ~17px inner padding around the artwork */
.hd-bar .hd-logo { width: 267px; }
.hd-bar .hd-logo img { display: block; width: 250px; height: auto; margin-left: 17px; }
@media (max-width: 767px) { .hd-bar .hd-logo { width: 150px; } .hd-bar .hd-logo img { width: 150px; margin-left: 0; } }
@media (max-width: 374px) { .hd-bar .hd-logo { width: 136px !important; } .hd-bar .hd-logo img { width: 136px; } }
.hd-bar .hd-menu .elementskit-navbar-nav > li > a { white-space: nowrap; line-height: 1.5; }
.hd-bar .hd-cta .elementor-button { display: inline-flex; align-items: center; height: 50px; }

/* Desktop dropdown */
.hd-bar .hd-menu .elementskit-submenu-panel {
  padding: 15px 0 !important; border-radius: 0 0 5px 5px !important; border: 0 !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}
.hd-bar .hd-menu .elementskit-submenu-panel > li > a {
  font-family: "League Spartan", sans-serif; font-size: 15px !important; font-weight: 500 !important; line-height: 22.5px; padding: 8px 20px !important;
}
@media (min-width: 1400px) { .hd-bar .hd-menu { padding-left: 45px; } }

/* Hamburger + off-canvas panel */
.hd-bar .hd-menu button.elementskit-menu-hamburger {
  width: 44px; height: 44px; padding: 10px; border: 1px solid rgba(255, 255, 255, .2) !important; border-radius: 8px; background: transparent !important;
}
.hd-bar .hd-menu button.elementskit-menu-hamburger .elementskit-menu-hamburger-icon { background-color: #fff; }
@media (max-width: 1024px) {
  .hd-bar .hd-cta { order: 2; margin-left: auto !important; }
  .hd-bar .hd-menu { order: 3; flex: 0 0 auto !important; width: auto !important; margin-left: 10px !important; }
  .hd-bar .hd-cta .elementor-button { height: 44px; }
  .hd-bar .hd-menu .elementskit-menu-container { background: #0a1424 !important; border-left: 1px solid rgba(255, 255, 255, .08); }
  .hd-bar .hd-menu .elementskit-navbar-nav > li > a {
    color: #fff !important; font-size: 17px !important; padding: 14px 22px !important; border-bottom: 1px solid rgba(255, 255, 255, .06);
  }
  .hd-bar .hd-menu .elementskit-navbar-nav > li.current-menu-item > a { color: #1E7BE0 !important; }
  .hd-bar .hd-menu .elementskit-submenu-panel { background: #0f1b2e !important; box-shadow: none; padding: 0 !important; }
  .hd-bar .hd-menu .elementskit-submenu-panel > li > a { color: #c3cfdf !important; padding: 12px 22px 12px 36px !important; }
  .hd-bar .hd-menu button.elementskit-menu-close {
    color: #fff !important; border: 1px solid rgba(255, 255, 255, .3) !important; border-radius: 8px; background: transparent !important;
  }
  .elementskit-menu-overlay { background-color: rgba(0, 0, 0, .6) !important; }
}
@media (max-width: 339px) { .hd-bar .hd-logo { width: 116px !important; } .hd-bar .hd-logo img { width: 116px; } }

/* contrast ≥ 4.5:1 for the white CTA text (Lighthouse color-contrast) */
.hd-bar .hd-cta .elementor-button { background-color: var(--mode-blue, #0171c9) !important; }
.hd-bar .hd-cta .elementor-button:hover, .hd-bar .hd-cta .elementor-button:focus { background-color: var(--mode-blue-hover, #015a9f) !important; }
