
/*
 * BHR Core v1.6 — restore visible runtime nav.
 *
 * v1.4 had a broad rule targeting every .elementor-top-section inside the
 * injected header. That could shift the menu section off-canvas on new pages.
 * This file explicitly restores the header sections and mega-menu widget.
 */

body.bhr-core-global-header-enabled .bhr-core-runtime-header .elementor-top-section,
body.bhr-core-global-header-enabled .bhr-core-runtime-header .e-con,
body.bhr-core-global-header-enabled .bhr-core-runtime-header .elementor-section{
  left:auto !important;
  right:auto !important;
  transform:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  visibility:visible !important;
  opacity:1 !important;
}

/* Brand/header content uses its saved Elementor width. */
body.bhr-core-global-header-enabled .bhr-core-runtime-header .elementor-top-section{
  width:100% !important;
  max-width:100% !important;
}

/* Make the actual mega-menu widget visible again. */
body.bhr-core-global-header-enabled .bhr-core-runtime-header .elementor-widget-hp_mega_menu,
body.bhr-core-global-header-enabled .bhr-core-runtime-header .elementor-widget-hp_mega_menu > .elementor-widget-container,
body.bhr-core-global-header-enabled .bhr-core-runtime-header .hpmm,
body.bhr-core-global-header-enabled .bhr-core-runtime-header .hpmm-bar,
body.bhr-core-global-header-enabled .bhr-core-runtime-header .hpmm-top-list{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}

/* The list itself needs flex, not block. */
body.bhr-core-global-header-enabled .bhr-core-runtime-header .hpmm-top-list{
  display:flex !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:32px !important;
}

/* Full-width dark bar, centered inner nav. */
body.bhr-core-global-header-enabled .bhr-core-runtime-header .hpmm-bar{
  position:relative !important;
  left:50% !important;
  right:auto !important;
  width:100vw !important;
  max-width:100vw !important;
  margin-left:-50vw !important;
  margin-right:0 !important;
  transform:none !important;
  background:#373635 !important;
  min-height:74px !important;
  overflow:visible !important;
}

/* Keep the header wrapper itself normal. */
body.bhr-core-global-header-enabled .bhr-core-runtime-header{
  left:auto !important;
  right:auto !important;
  transform:none !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  overflow:visible !important;
}

/* Desktop nav items */
body.bhr-core-global-header-enabled .bhr-core-runtime-header .hpmm-top-item{
  display:flex !important;
  align-items:stretch !important;
  position:relative !important;
  width:auto !important;
  flex:0 0 auto !important;
}

body.bhr-core-global-header-enabled .bhr-core-runtime-header .hpmm-top-link{
  display:flex !important;
  align-items:center !important;
  min-height:74px !important;
}

/* Keep CTA pushed right. */
body.bhr-core-global-header-enabled .bhr-core-runtime-header .hpmm-top-item:last-child{
  margin-left:auto !important;
}

/* Dropdowns stay floating, but hidden until the widget's normal state opens them. */
body.bhr-core-global-header-enabled .bhr-core-runtime-header .hpmm-dropdown{
  top:100% !important;
}

/* Mobile: let the widget's own mobile UI take over. */
@media(max-width:767px){
  body.bhr-core-global-header-enabled .bhr-core-runtime-header .hpmm-top-list{
    display:block !important;
  }

  body.bhr-core-global-header-enabled .bhr-core-runtime-header .hpmm-bar{
    min-height:0 !important;
  }
}
