/* 
 * Navbar Module CSS
 * 
 * This stylesheet is specifically for the navbar/header components
 * All styles are namespaced with eh- prefix to prevent conflicts
 */

/* Desktop header styles */
.eh-mega-menu {
  display: none;
  background: #f8f9fa;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-direction: row;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(-20px);
}

.eh-mega-menu.show {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.eh-has-mega-menu {
  position: relative;
}

.eh-gap-element {
  background: transparent;
  height: 60px;
  position: absolute;
  top: 100%; /* Just below the nav item */
  width: 100%;
  z-index: 2;
}

/* This wraps both gap and menu so hover keeps it open */
.eh-has-mega-menu:hover .eh-mega-menu-wrapper,
.eh-has-mega-menu:hover .eh-gap-element {
  display: block;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.eh-mega-menu-wrapper {
  position: absolute;
  top: calc(100% + 50px); /* below the gap */
  left: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 12;
}

.eh-has-mega-menu:hover .eh-mega-menu-wrapper {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Show mega menu on hover */
.eh-has-mega-menu:hover .eh-mega-menu {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* Remove the gap issue */
.eh-nav-item.eh-has-mega-menu {
  position: relative;
}

.eh-header-logo-container {
  display: flex;
  align-items: center;
}

.eh-header-logo {
  display: block;
  max-width: 180px;
}

.ef-desktop-header .eh-nav-item {
  text-transform: uppercase;
  padding-left: 30px;
  font-weight: bold;
}

/* Mobile header styles */
@media (max-width: 991.95px) {
  .eh-mobile-logo {
    display: flex;
    align-items: center;
    width: 25%;
  }
  
  .eh-header-logo img {
    width: 100%;
  }
  
  .eh-navbar-toggler {
    border: none;
    background: transparent;
    padding: 0.5rem;
    cursor: pointer;
  }

  .eh-navbar-nav {
    width: 100%;
    border: none;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    background: #fff;
    line-height: 36px;
    padding: 10px 0;
  }
  
  .eh-navbar-nav li {
    width: 100% !important;
    background: transparent;
  }
  
  .eh-navbar-nav li a {
    background: transparent;
    text-align: left;
    color: inherit;
    outline: none;
    font-size: 18px;
    box-shadow: unset !important;
    display: block;
    padding: 8px 18px;
    width: 100%;
  }
}