/* Working site nav + dropdown (does not depend on Elementor mega-menu JS) */
.nb-topbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}
.nb-topbar__inner {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

a.nb-footer__logo {
  background: #fff;
  padding: 12px;
  border-radius: 21px;
}
.nb-topbar__logo img {
  height: 59px;
  width: auto;
  max-width: min(220px, 42vw);
  display: block;
  object-fit: contain;
}
.nb-topbar__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #d8e0ec;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nb-topbar__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #0b1220;
}
.nb-topbar__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nb-topbar__menu > li {
  position: relative;
}
.nb-topbar__menu > li > a,
.nb-dd > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nb-topbar__menu > li > a:hover,
.nb-dd > button:hover,
.nb-dd.open > button {
  background: #f1f5f9;
  color: #046bd2;
}
.nb-topbar__menu .nb-cta {
  background: #046bd2 !important;
  color: #fff !important;
  margin-left: 6px;
}
.nb-topbar__menu .nb-cta:hover {
  background: #0356a8 !important;
}
.nb-dd .chev {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.nb-dd.open .chev {
  transform: rotate(225deg);
}
.nb-dd__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: .18s ease;
  z-index: 10000;
  text-align: center;
}
.nb-dd:hover .nb-dd__panel,
.nb-dd.open .nb-dd__panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%);
}
.nb-dd__panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #1e293b;
  text-align: center;
}
.nb-dd__panel a:hover {
  background: #f1f5f9;
}
.nb-dd__panel strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}
.nb-dd__panel small {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

/* Hide broken Elementor mega menus — custom bar replaces them */
header.elementor-location-header,
.elementor-location-header,
.elementor-sticky__spacer {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

@media (max-width: 920px) {
  .nb-topbar__toggle { display: inline-flex; }
  .nb-topbar__menu {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
  }
  .nb-topbar__menu.open { display: flex; }
  .nb-topbar__menu > li > a,
  .nb-dd > button {
    width: 100%;
    justify-content: space-between;
  }
  .nb-dd__panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    min-width: 0;
    padding: 0 0 0 8px;
    text-align: left;
  }
  .nb-dd__panel a { text-align: left; }
  .nb-dd.open .nb-dd__panel {
    display: block;
    transform: none;
    left: auto;
  }
  .nb-topbar__menu .nb-cta {
    margin-left: 0;
    justify-content: center;
    text-align: center;
  }
}
