/* ============================================================
 * HEADER
 * Matches the live site's transparent absolute-positioned header
 * with logo + centered navigation.
 * ============================================================ */

.header-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: #000; /* solid black on interior pages */
}

/* Homepage: transparent overlay so the hero image shows through */
.page-front .header-section {
  background: rgba(0, 0, 0, 0.3);
}

.header-section-inner {
  width: var(--container-max);
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 10px 0;
}

/* Logo + Navigation Row */
.header-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-wrap {
  flex-shrink: 0;
}

.header-logo {
  max-height: 80px;
  width: auto;
}

/* 1. Force the level-1 dropdown container to stay in a single horizontal row */
#block-reco-main-menu .navbar-nav > .nav-item.dropdown > .dropdown-menu.dropdown-menu-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important; /* Prevents columns from wrapping underneath each other */
  align-items: flex-start;
  gap: 2rem; /* Space between columns */
}

/* 2. Force top-level list items (columns) to share width equally side-by-side */
#block-reco-main-menu .dropdown-menu-row > li {
  flex: .25 .75 0% !important;   /* Distributes available width evenly across columns */
  width: auto !important;     /* Overrides Bootstrap's 100% item width */
  /* min-width: 200px;          Prevents columns from shrinking too small */
}

/* 3. Reset level-2 nested <ul> dropdowns so they flow naturally inside their parent column */
#block-reco-main-menu .dropdown-menu-row .dropdown-menu {
  position: static !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  min-width: auto !important;
}

/* 4. Ensure level-2 links stack vertically inside their respective column */
#block-reco-main-menu .dropdown-menu-row .dropdown-menu > li {
  width: 100% !important;
  display: block !important;
}

#block-reco-main-menu .dropdown-item.menu-header-item:hover,
#block-reco-main-menu .dropdown-item.menu-header-item.active,
#block-reco-main-menu .dropdown-item.menu-header-item:active {
  background: transparent !important;
  color: inherit !important;
}

/* Mobile toggle - hidden on desktop */
.header-mobile-toggle {
  display: none;
}

.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: relative;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 0;
}

.mobile-menu-icon::before { top: -7px; }
.mobile-menu-icon::after { top: 7px; }

/* Mobile nav row - hidden on desktop */
.header-nav-row--mobile {
  display: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media only screen and (max-width: 980px) {
  .header-section {
    position: relative;
    background: #000;
  }

  .header-nav-row--desktop {
    display: none;
  }

  .header-nav-row--mobile {
    display: flex;
  }

  .header-mobile-toggle {
    display: block;
  }

  .header-logo {
    max-height: 60px;
  }
}
