:root {
  --bmh-nav-arrow-size: 22px;      /* controls arrow size */
  --bmh-nav-arrow-stroke: 2.5;       /* controls arrow thickness */
}

.bmh-site-header a {
  font-family: "MilligramText-Regular", sans-serif !important;
  text-decoration: none;
}

.bmh-site-header a:hover {
  text-decoration: none;
  color: inherit;
}

.bmh-site-header {
  width: 100%;
  top: 0;
  background: transparent;
  transition: all 0.3s ease;
}

#headerContainer.dark .bmh-site-header.bmh-light.bmh-scrolled nav .bmh-nav-item a {
  color: black;
}
#headerContainer.dark .bmh-site-header.bmh-light.bmh-scrolled nav .bmh-nav-item .bmh-nav-arrow{
  stroke: black;
}

#headerContainer.dark .bmh-site-header.bmh-light.bmh-scrolled nav .bmh-header-cta .bmh-btn-trial {
  color: black;
}

#headerContainer.dark .bmh-site-header.bmh-light.bmh-scrolled button span {
  /* background: black; */
}

/* SCROLLED STATE */
.bmh-site-header.bmh-scrolled {
  position: fixed;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  z-index: 9999;
}

body.bmh-header-dark .bmh-site-header.bmh-scrolled {
  background: #021940;
}

/* TOP BAR */
.bmh-top-bar {
  padding: 6px 0;
}

.bmh-top-bar a {
  text-decoration: none;
  color: #000000;
  font-weight: 600;
}

.bmh-top-bar a:hover {
  text-decoration: none;
  color: #000000;
  font-weight: 600;
}

.bmh-top-bar span {
  color: #000000;
}

.bmh-site-header.bmh-scrolled .bmh-top-bar {
  display: none;
}

.bmh-mega-column h6 {
  color: black;
}

.bmh-eco-column h6 {
  color: black;
}

/* HEADER INNER */
.bmh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  transition: height 0.3s ease;
}

.bmh-site-header.bmh-scrolled .bmh-header-inner {
  height: 70px;
}

/* LOGO */
.bmh-logo img {
  height: 60px;
  transition: 0.3s;
}

/* MENU */
.bmh-main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bmh-main-nav a {
  text-decoration: none;
  font-weight: 500;
  color: black;
}

.bmh-main-nav a:hover {
  text-decoration: none;
  font-weight: 500;
  color: black;
}
.bmh-nav-link .bmh-nav-arrow{
      display: flex;
    justify-content: center;
    align-items: center;
}
.bmh-nav-item.bmh-has-mega .bmh-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* SVG ARROW (desktop + mobile) */
.bmh-nav-arrow {
  width: var(--bmh-nav-arrow-size);
  height: var(--bmh-nav-arrow-size);
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--bmh-nav-arrow-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: transform 0.25s ease;
}

/* BUTTON */
.bmh-header-btn {
  margin-left: 20px;
  white-space: nowrap;
  border-radius: 30px;
  padding: 8px 22px;
  background-color: #4aa517;
  color: #ffffff !important;
  border: 2px solid #266402;
}

/* LIGHT */
body.bmh-header-light .bmh-site-header {
  color: #333;
}

/* DARK */
body.bmh-header-dark .bmh-site-header {
  color: #fff;
}

/* ========================================
   HEADER CTA BUTTONS
======================================== */

.bmh-header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 5px;
}

/* Start Free Trial */
.bmh-btn-trial {
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid #4aa517;
  color: #222;
  background: transparent;
  transition: all 0.25s ease;
  text-align: center;
}

.bmh-btn-trial:hover {
  background: #e8f5e9;
}

/* Request Demo */
.bmh-btn-demo {
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  background: #4aa517;
  color: #fff !important;
  border: 2px solid #4aa517;
  box-shadow: 0 4px 12px rgba(74, 165, 23, 0.25);
  transition: all 0.25s ease;
  text-align: center;
}

.bmh-btn-demo:hover {
  background: #3b8f12;
  border-color: #3b8f12;
}

/* ========================================
   MEGA MENU BASE
======================================== */

.bmh-has-mega {
  position: relative;
  display: inline-block;
}

.bmh-mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translate(-50%, 10px);
  width: 680px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 9999;
}

@media (min-width: 992px) {
  /* Invisible bridge so the menu stays open while moving the cursor down */
  .bmh-nav-item.bmh-has-mega::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 22px;
  }

  .bmh-nav-item.bmh-has-mega:hover > .bmh-mega-menu,
  .bmh-nav-item.bmh-has-mega.bmh-open > .bmh-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }

  .bmh-mega-group:hover .bmh-inventory-arrow,
  .bmh-mega-group.bmh-open .bmh-inventory-arrow {
    transform: rotate(-180deg);
  }

  .bmh-mega-group:hover .bmh-mega-sub-links,
  .bmh-mega-group.bmh-open .bmh-mega-sub-links {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 6px;
  }
}

.bmh-has-mega:hover .bmh-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* Triangle */
.bmh-mega-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-left: 1px solid #e8e8e8;
  border-top: 1px solid #e8e8e8;
}

/* Container */
.bmh-mega-container {
  display: flex;
  gap: 50px;
  padding: 25px 40px;
}

.bmh-mega-column {
  flex: 1;
}

/* Headings */
.bmh-mega-column h6 {
  font-weight: 700;
  margin-bottom: 20px;
  margin-left: 15px;
  position: relative;
  padding-bottom: 6px;
}

.bmh-mega-column h6 ~ h6 {
  margin-top: 28px;
}

.bmh-mega-column h6::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30%;
  height: 1px;
  background: #006AA4;
  border-radius: 2px;
}

/* ========================================
   UNIFIED LINK STYLE (ECOSYSTEM STYLE)
======================================== */

.bmh-mega-group {
}

.bmh-mega-menu a,
.bmh-parent-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: all 0.25s ease;
}
.bmh-mega-column a, .bmh-parent-link{
  width: 100%;
}
/* HOVER (Ecosystem style) */
.bmh-mega-menu a:hover,
.bmh-parent-link:hover {
  background: #DDFFD4CC;
  transform: translateX(4px);
  color: #006AA4;
}

/* ACTIVE */
.bmh-mega-menu a.bmh-active,
.bmh-mega-group.bmh-active > .bmh-parent-row .bmh-parent-link {
  background: #d7f0d6;
  color: #0a7f2e;
  font-weight: 600;
}

/* ========================================
   PRODUCTS SUBMENU (Inventory/Warehouse)
======================================== */

.bmh-parent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bmh-submenu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* inventory arrow wrapper (for rotate) */
.bmh-inventory-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.bmh-inventory-arrow .inline-svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bmh-mega-group.bmh-open .bmh-inventory-arrow {
  transform: rotate(-180deg);
}

.bmh-mega-sub-links {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.25s ease;
  padding-left: 18px;
  border-left: 2px solid #e8e8e8;
}

.bmh-mega-group.bmh-open .bmh-mega-sub-links {
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 6px;
}

@media (min-width: 992px) {
  .bmh-mega-group .bmh-submenu-toggle {
    pointer-events: none;
  }
}

.bmh-mega-sub-links a {
  padding: 8px 10px;
}

/* ========================================
   INDUSTRIES / RESOURCES WIDTHS
======================================== */

.bmh-industries-mega {
  width: 500px;
}

.bmh-resources-mega {
  width: 720px;
}

.bmh-contact-mega {
  width: 750px;
}

/* ========================================
   ECOSYSTEM MEGA MENU
======================================== */

.bmh-ecosystem-mega {
  width: 900px;
  padding: 0;
}

.bmh-eco-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.bmh-eco-left {
  background: linear-gradient(90deg, #DDFFD4 0%, #D3F1FF 100%);
  padding: 50px 30px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.bmh-eco-left {
  text-align: center;
}

.bmh-eco-left h4 {
  font-weight: 700;
  color: #222;
}

.bmh-eco-left-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
  margin: 40px 0;
}

.bmh-eco-right {
  padding: 45px 50px;
}

.bmh-eco-top,
.bmh-eco-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.bmh-eco-top {
  margin-bottom: 40px;
}

.bmh-eco-column h6 {
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 6px;
  margin-left: 15px;
}

.bmh-eco-column h6::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30%;
  height: 1px;
  background: #006AA4;
  border-radius: 2px;
}

/* ========================================
   DARK MODE
======================================== */

body.bmh-header-dark .bmh-mega-menu {
  background: #021940;
  border-color: #0a2a6b;
}

body.bmh-header-dark .bmh-mega-menu::before {
  background: #021940;
  border-left: 1px solid #0a2a6b;
  border-top: 1px solid #0a2a6b;
}

body.bmh-header-dark .bmh-mega-menu a,
body.bmh-header-dark .bmh-parent-link {
  color: #fff;
}

/* SVG arrow color in dark main nav */
#headerContainer.dark .bmh-main-nav .bmh-nav-link .bmh-nav-arrow {
  stroke: #ffffff;
}

/* ========================================
   MOBILE HIDE
======================================== */

@media (max-width: 1102px) {
.bmh-has-mega:nth-child(1) .bmh-mega-menu  {
 transform: translateX(-250px);

}
.bmh-has-mega:nth-child(1) .bmh-mega-menu::before {
   transform: translateX(-100px) rotate(45deg);

}
}
@media (max-width: 991px) {
  .bmh-mega-menu {
    display: none !important;
  }
}

.bmh-mega-column a:hover .bmh-menu-icon img,
.bmh-mega-column a.bmh-active .bmh-menu-icon img,
.bmh-mega-group.bmh-active > .bmh-parent-row .bmh-menu-icon img,
.bmh-eco-column a:hover .bmh-menu-icon img,
.bmh-eco-column a.bmh-active .bmh-menu-icon img {
  filter: invert(26%) sepia(96%) saturate(1560%) hue-rotate(177deg) brightness(92%) contrast(101%);
}

/* ========================================
   PREMIUM MOBILE DESIGN
======================================== */

/* PREMIUM HAMBURGER */

.bmh-mobile-toggle {
  width: 28px;
  height: 22px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.bmh-mobile-toggle span {
  height: 3px;
  width: 100%;
  background: #222;
  border-radius: 2px;
  transition: all 0.3s ease;
}

body.bmh-header-dark .bmh-mobile-toggle span {
  background: #fff;
}

/* Animate to X when open */
.bmh-mobile-menu.bmh-open ~ .bmh-mobile-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.bmh-mobile-menu.bmh-open ~ .bmh-mobile-toggle span:nth-child(2) {
  opacity: 0;
}

.bmh-mobile-menu.bmh-open ~ .bmh-mobile-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* MOBILE CLOSE BUTTON */

.bmh-mobile-menu-header {
  display: flex;
  justify-content: flex-end;
}

.bmh-mobile-close {
  background: #f5f7f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bmh-mobile-close:hover {
  background: #e2e6ea;
  transform: rotate(90deg);
}

/* SVG X icon */
.bmh-mobile-close .bmh-close-icon {
  width: 18px;
  height: 18px;
  stroke: #222;
  stroke-width: 2.2;
  fill: none;
}

#headerContainer.dark .bmh-mobile-close .bmh-close-icon {
  stroke: #ffffff;
}

.bmh-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 340px;
  height: 100%;
  background: #fff;
  z-index: 10000;
  transition: left 0.3s ease;
  padding: 25px;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.08);
}

.bmh-mobile-menu.bmh-open {
  left: 0;
  overflow-x: auto;
}

.bmh-mobile-link {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #222;
  border-bottom: 1px solid #f0f0f0;
}

.bmh-mobile-submenu-toggle {
  background: #f5f7f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s ease;
}

.bmh-mobile-submenu-toggle:hover {
  background: #e2e6ea;
}

/* MOBILE CHEVRON STYLE (SVG) */

.bmh-mobile-item.bmh-open > .bmh-mobile-link .bmh-nav-arrow,
.bmh-mobile-item.bmh-open > .bmh-mobile-link-row .bmh-nav-arrow {
  transform: rotate(180deg);
}

/* Submenu */
.bmh-mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-left: 10px;
}

.bmh-mobile-item.bmh-open > .bmh-mobile-submenu {
  max-height: 600px;
}

/* Sub links */
.bmh-mobile-submenu a {
  display: block;
  padding: 10px 10px;
  color: #444;
  text-decoration: none;
  transition: 0.2s ease;
  border-radius: 10px;
}

/* Hover */
.bmh-mobile-submenu a:hover {
  color: #0a7f2e;
  padding-left: 6px;
  background: #DDFFD4CC;
}

/* Active */
.bmh-mobile-submenu a.bmh-active {
  color: #0a7f2e;
  font-weight: 600;
}

/* MOBILE CTA BUTTONS */

.bmh-mobile-cta-group {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Start Free Trial */
.bmh-mobile-btn-trial {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 30px;
  border: 2px solid #4aa517;
  color: #222;
  font-weight: 500;
  text-decoration: none;
  transition: 0.25s ease;
}

.bmh-mobile-btn-trial:hover {
  background: #e8f5e9;
}

/* Request Demo */
.bmh-mobile-btn-demo {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 30px;
  background: #4aa517;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(74, 165, 23, 0.25);
  transition: 0.25s ease;
}

.bmh-mobile-btn-demo:hover {
  background: #3b8f12;
}

/* 3RD LEVEL */
.bmh-mobile-submenu .bmh-mobile-item .bmh-mobile-submenu {
  padding-left: 15px;
  border-left: 2px solid #e8f5e9;
}

.bmh-mobile-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bmh-mobile-link-text {
  flex: 1;
  padding: 12px 0;
  text-decoration: none;
  color: #222;
  font-weight: 500;
}

/* Smaller nested links */
.bmh-mobile-submenu .bmh-mobile-submenu a {
  color: #555;
}

.bmh-mega-column a,
.bmh-parent-link,
.bmh-mobile-submenu a,
.bmh-mobile-link-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* MENU ICON (DESKTOP + MOBILE) */

.bmh-menu-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bmh-menu-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: 0.25s ease;
}

/* Responsive Start */

@media screen and (min-width: 1400px) and (max-width: 1600px) {
  .bmh-main-nav {
    gap: 8px;
  }
  .bmh-header-cta {
    margin-left: 0;
    gap: 8px;
  }
}

@media screen and (min-width: 992px) and (max-width: 1360px) {
  .bmh-main-nav {
    gap: 12px;
  }
  .bmh-header-cta {
    margin-left: 0;
    gap: 3px;
  }
}
@media screen and (max-width: 1016px) {
  .bmh-header-inner{
    
    gap: 6px;
}

}
@media (min-width: 992px) {
  .bmh-nav-item:hover > .bmh-nav-link .bmh-nav-arrow {
    transform: rotate(180deg);
  }
}
/* Responsive End */

/* DARK HEADER CONTAINER */

/* Top Bar - White text */
#headerContainer.dark .bmh-top-bar a,
#headerContainer.dark .bmh-top-bar span {
  color: #ffffff;
}

/* Main Nav - White text */
#headerContainer.dark .bmh-main-nav .bmh-nav-link {
  color: #ffffff;
}

/* Hamburger - White bars */
#headerContainer.dark .bmh-mobile-toggle span {
  background: #ffffff;
}

/* CTA Buttons in dark mode */
#headerContainer.dark .bmh-btn-trial {
  color: #ffffff;
  border-color: #4aa517;
}

#headerContainer.dark .bmh-btn-trial:hover {
  background: rgba(74, 165, 23, 0.2);
}

.bmh-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bmh-mobile-overlay.bmh-show {
  opacity: 1;
  visibility: visible;
}
