/* Simplified navigation layout */

/* Desktop and tablet - single row layout */
.navbar5_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  flex-wrap: nowrap !important;
}

.navbar5_logo-link {
  flex-shrink: 0;
}

.navbar5_menu {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 0;
  padding-bottom: 0 !important;
}

.navbar5_menu-left {
  display: flex !important;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.navbar5_menu-right {
  display: flex !important;
  align-items: center;
  margin-left: auto;
  /* Override Webflow grid settings */
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  flex-direction: row !important;
  margin-top: 0 !important;
}

/* Clean up search styling */
.nav-search-container {
  position: relative !important;
}

.search.w-form {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

/* When navigation naturally wraps (around 991px), center the logo */
@media screen and (max-width: 991px) {
  .navbar5_container {
    flex-wrap: wrap !important;
    justify-content: center;
  }
  
  .navbar5_logo-link {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .navbar5_menu {
    width: 100%;
    justify-content: center;
  }
  
  .navbar5_menu-left {
    gap: 1rem;
  }
  
  .navbar5_menu-right {
    margin-left: 2rem;
  }
  
  .navbar5_link {
    font-size: 0.875rem;
  }
  
  .search-input {
    width: 120px;
  }
  
  .search-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Small screens - hide desktop nav, show mobile menu */
@media screen and (max-width: 767px) {
  .navbar5_menu {
    display: none !important;
  }
  
  .navbar5_menu-button {
    display: block;
  }
  
  /* Reset logo centering for mobile */
  .navbar5_container {
    flex-wrap: nowrap !important;
    justify-content: space-between;
  }
  
  .navbar5_logo-link {
    width: auto;
    margin-bottom: 0;
  }
  
  /* Mobile menu open state */
  .navbar5_menu.w--open {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #555b6e;
    padding: 1rem;
  }
  
  .navbar5_menu-left,
  .navbar5_menu-right {
    display: block !important;
    width: 100%;
  }
  
  .navbar5_menu-left {
    margin-bottom: 1rem;
  }
  
  .navbar5_link {
    display: block;
    padding: 0.5rem 0;
  }
}

/* Extra small screens - compact layout */
@media screen and (max-width: 479px) {
  .navbar5_logo-link img {
    max-height: 2rem;
  }
  
  .search-input {
    width: 100%;
    max-width: 150px;
  }
  
  .search-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}