/* ── KJD BUM Header Override — loaded from plugin, max specificity ── */

/* Force header out of absolute/fixed positioning so it flows below the topbar */
body.ast-theme-transparent-header #masthead,
body #masthead {
  position: relative !important;
}

/* Nuke ALL header backgrounds */
body .site-header .main-header-bar,
body.ast-theme-transparent-header .site-header .main-header-bar,
body .ast-primary-header-bar {
  background: linear-gradient(135deg, #0c2340 0%, #1a4f7a 60%, #2980b9 100%) !important;
  border-bottom: 3px solid #e74c3c !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.15) !important;
  position: relative !important;
  z-index: 999;
}

/* Nuke ALL white backgrounds on menu elements */
body .main-header-menu,
body .main-header-menu .menu-link,
body .main-header-menu .menu-item,
body.ast-theme-transparent-header .main-header-menu,
body.ast-theme-transparent-header .main-header-menu .menu-link,
body.ast-theme-transparent-header .ast-builder-menu .main-header-menu,
body.ast-theme-transparent-header .ast-builder-menu .main-header-menu .menu-link,
body .ast-builder-menu-1 .main-header-menu,
body .ast-builder-menu-1 .main-header-menu .menu-link {
  background: transparent !important;
  background-color: transparent !important;
}

/* White menu text */
body .main-header-menu > .menu-item > .menu-link,
body.ast-theme-transparent-header .main-header-menu > .menu-item > .menu-link {
  color: #fff !important;
  font-weight: 600 !important;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: 13px !important;
}

/* Hover */
body .main-header-menu > .menu-item > .menu-link:hover,
body.ast-theme-transparent-header .main-header-menu > .menu-item > .menu-link:hover {
  color: #f7b731 !important;
}

/* Active item */
body .main-header-menu > .menu-item.current-menu-item > .menu-link,
body .main-header-menu > .menu-item.current-menu-ancestor > .menu-link,
body.ast-theme-transparent-header .main-header-menu > .menu-item.current-menu-item > .menu-link,
body.ast-theme-transparent-header .main-header-menu > .menu-item.current-menu-ancestor > .menu-link {
  color: #f7b731 !important;
  font-weight: 700 !important;
}

/* Logo invert for dark bg */
body .site-header .custom-logo,
body .site-header .site-logo-img img,
body.ast-theme-transparent-header .site-header .custom-logo {
  filter: brightness(0) invert(1) !important;
}

/* Submenu dropdown */
body .main-header-menu .sub-menu,
body.ast-theme-transparent-header .main-header-menu .sub-menu,
body.ast-theme-transparent-header .ast-builder-menu .main-header-menu .sub-menu {
  background: #0c2340 !important;
  border-top: 2px solid #e74c3c !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-top: 2px solid #e74c3c !important;
}
body .main-header-menu .sub-menu .menu-link,
body.ast-theme-transparent-header .main-header-menu .sub-menu .menu-link {
  color: rgba(255,255,255,.8) !important;
  background: transparent !important;
  font-size: 13px !important;
}
body .main-header-menu .sub-menu .menu-link:hover,
body.ast-theme-transparent-header .main-header-menu .sub-menu .menu-link:hover {
  color: #f7b731 !important;
  background: rgba(255,255,255,.05) !important;
}

/* CTA button in header */
body .site-header .ast-custom-button,
body .site-header .ast-custom-button a {
  background: #e74c3c !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
}

/* Mobile / tablet menu panel */
body.ast-header-break-point .main-header-bar-navigation,
body.ast-header-break-point .ast-header-break-point .main-header-bar-navigation,
body.ast-header-break-point .ast-builder-menu-mobile .main-navigation,
body.ast-header-break-point .ast-mobile-popup-drawer .ast-mobile-popup-inner {
  background: linear-gradient(180deg, #0c2340 0%, #143a5c 100%) !important;
}

body.ast-header-break-point .main-navigation ul,
body.ast-header-break-point .main-header-menu,
body.ast-header-break-point .main-navigation .sub-menu {
  background: transparent !important;
}

body.ast-header-break-point .main-navigation ul li {
  border-top: 1px solid rgba(255,255,255,.10) !important;
}

body.ast-header-break-point .main-navigation ul li:last-child {
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}

body.ast-header-break-point .main-navigation .menu-item > .menu-link,
body.ast-header-break-point .main-navigation .sub-menu .menu-item > .menu-link,
body.ast-header-break-point .main-header-menu > .menu-item > .menu-link,
body.ast-header-break-point .main-header-menu .sub-menu .menu-link {
  color: rgba(255,255,255,.92) !important;
  background: transparent !important;
  padding-top: .95rem !important;
  padding-bottom: .95rem !important;
}

body.ast-header-break-point .main-navigation .menu-item.current-menu-item > .menu-link,
body.ast-header-break-point .main-navigation .menu-item.current-menu-ancestor > .menu-link {
  color: #f7b731 !important;
}

body.ast-header-break-point .main-navigation .sub-menu {
  padding: .2rem 0 .4rem !important;
  border-top: 0 !important;
}

body.ast-header-break-point .main-navigation .sub-menu .menu-link {
  padding-left: 2rem !important;
  color: rgba(255,255,255,.78) !important;
  font-size: 12px !important;
  text-transform: none !important;
  letter-spacing: .01em !important;
}

body.ast-header-break-point .main-navigation .sub-menu .menu-link:hover,
body.ast-header-break-point .main-navigation .sub-menu .menu-item.current-menu-item > .menu-link {
  color: #f7b731 !important;
  background: rgba(255,255,255,.05) !important;
}

body.ast-header-break-point .main-header-menu .menu-item-has-children > .ast-menu-toggle,
body.ast-header-break-point .main-header-menu .page_item_has_children > .ast-menu-toggle {
  color: #ff4f73 !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 1rem !important;
}

body.ast-header-break-point .main-header-menu .menu-item-has-children > .ast-menu-toggle:hover,
body.ast-header-break-point .main-header-menu .page_item_has_children > .ast-menu-toggle:hover {
  background: rgba(255,255,255,.06) !important;
}
