/* Header and Navigation Styles for Achieve B&NES Theme */

/* Header container alignment */
.lgd-header .lgd-container {
  max-width: 1200px;
  margin: 0 auto; /* Center align like main content */
  padding: 0 24px;
}

/* Header top section (logo area) */
.header-top {
  border-bottom: 1px solid #e5e7eb;
}

/* Navigation styles - Aligned with logo */
.lgd-header__nav--primary {
  background: #fff;
  border-bottom: 3px solid #e5e7eb;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 0;
  margin: 0;
}

.lgd-header__nav--primary ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  margin-left: 0;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  width: 100%;
}

.lgd-header__nav--primary ul > li {
  flex: 0 0 auto;
  margin-right: 1rem;
}

.lgd-header__nav--primary ul > li:last-child {
  margin-right: 0;
}

.lgd-header__nav--primary ul > li > a {
  display: block;
  padding: 1rem 1.5rem;
  color: #333;  /* Dark text for white background */
  text-decoration: none;
  text-align: left;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  align-self: flex-start;
}

.lgd-header__nav--primary ul > li > a:hover {
  background: #f3f4f6;  /* Light gray background on hover */
  color: #218649;  /* Green text on hover */
}

.lgd-header__nav--primary ul > li > a:focus {
  background: #f3f4f6;
  color: #218649;
  outline: 2px solid #218649;
  outline-offset: -2px;
}

/* Active/current page styling */
.lgd-header__nav--primary ul > li.is-active-trail > a,
.lgd-header__nav--primary ul > li.is-active > a {
  background: #218649;
  color: #fff;
}

.lgd-header__nav--primary ul > li.is-active-trail > a:hover,
.lgd-header__nav--primary ul > li.is-active > a:hover {
  background: #1a6b3a;
  color: #fff;
}

/* Desktop navigation media query */
@media screen and (min-width: 48rem) {
  .lgd-header__nav--primary {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    margin: 0;
  }
}

/* Mobile menu styles for dropdown under header */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 0;
  border-radius: 0 0 8px 8px;
  border: 2px solid #e5e7eb; /* Debug border */
}

.mobile-menu.active {
  display: block !important;
  background: #f0f0f0 !important; /* Debug background */
}

@media (max-width: 768px) {
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 0 0 8px 8px;
  }
  .mobile-menu-toggle {
    display: flex !important;
    background: #f0f0f0 !important; /* Debug background */
    border: 1px solid #ccc !important; /* Debug border */
  }
  .banes-logo-container {
    display: none !important;
  }
  /* Hide desktop navigation on mobile */
  .lgd-header__nav--primary {
    display: none !important;
  }
}

/* Hide mobile menu on desktop */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

.mobile-menu-content {
  padding: 24px;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu li {
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu a {
  display: block;
  padding: 1.5rem 0;
  color: #333;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #218649;
}

/* Mobile fallback menu */
.mobile-fallback-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-fallback-menu li {
  border-bottom: 1px solid #e5e7eb;
}

.mobile-fallback-menu a {
  display: block;
  padding: 1.5rem 0;
  color: #333;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.mobile-fallback-menu a:hover {
  color: #218649;
}

/* Mobile menu toggle button styles */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 10000;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
} 