/* a {
  color: #fff;
} */

.navbar {
  background-color: #311c3b;
  width: 100%;
  min-height: 4.5rem;
  padding: 0 5%;
  display: flex;
  position: relative;
}

.nav_wrapper {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.nav_container {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.nav_logo-link {
  padding-left: 0;
  padding-top: 5px;
}

.nav_menu {
  flex: none;
  justify-content: space-between;
  align-items: center;
  margin-left: 1.5rem;
  display: flex;
  position: static;
  margin-left: auto;
}

.nav_menu-right {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  color: #fff;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  align-items: center;
  display: flex;
  margin-left: 1.4rem;
}

.nav_link {
  padding: 1.5rem 1rem;
  font-size: 15px;
  font-weight: 500;
}

.nav_link:hover {
  font-weight: 500 !important;
}

.button-nav {
  color: #fff;
  font-weight: 500 !important;
  font-size: 15px !important;
  text-align: center;
  background-color: #f25a28;
  border-radius: 2.5rem;
  padding: .25rem 1.25rem;
  text-decoration: none;
  transition: background-color 200ms ease-in-out, transform 200ms ease-in-out;
}

.button-nav:hover {
  color: #f25a28 !important;
  background-color: white !important;
}

.button-nav:focus {
  color: #fff !important;
}

.nav_menu-button {
  padding: 0;
  display: none;
}

.menu-icon {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  margin-right: -.5rem;
  padding-bottom: 0;
  padding-right: 0;
  display: flex;
  cursor: pointer !important;
}

.menu-icon_line-top, .menu-icon_line-bottom {
  width: 24px;
  height: 2px;
  padding-bottom: 0;
  padding-right: 0;
  background-color: white !important;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.menu-icon_line-middle {
  background-color: #000;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 2px;
  margin-top: 6px;
  margin-bottom: 6px;
  padding-bottom: 0;
  padding-right: 0;
  display: flex;
  background-color: white !important;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.menu-icon_line-middle-inner {
  width: 4px;
  height: 0;
  padding-bottom: 0;
  padding-right: 0;
  background-color: white !important;
}

/* Transform the top and bottom lines into an "X" */
.nav_menu-button.open .menu-icon_line-top {
  transform: translateY(10px) rotate(45deg);
}

.nav_menu-button.open .menu-icon_line-bottom {
  transform: translateY(-10px) rotate(-45deg);
}

/* Hide the middle line */
.nav_menu-button.open .menu-icon_line-middle {
  opacity: 0;
}

/* Optional: add a slight delay to the middle line disappearing to sync with the rotation */
.nav_menu-button.open .menu-icon_line-middle {
  transition-delay: 0.1s;
}

/* When the menu is not "open", reset the lines back to the initial hamburger state */
.nav_menu-button:not(.open) .menu-icon_line-top,
.nav_menu-button:not(.open) .menu-icon_line-bottom {
  transform: none;
}

.nav_menu-button:not(.open) .menu-icon_line-middle {
  opacity: 1;
  transition-delay: 0s;
}

/* USER-CHOSEN MENU */
.nav_menu [role="menu"] {
  display: flex !important;
  flex-direction: row !important;
  gap: 1rem !important;
}

/* USER-CHOSEN MENU LINKS */
[role="menuitem"] {
  font-size: 15px !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

[role="menuitem"]:hover {
  font-weight: 500 !important;
  color: #f05b2b !important;
}

.nav_dropdown {
  display: none;
}

.button-nav_mobile {
  display: none;
}

.hamburger-and-signin-wrapper {
  display: flex;
  gap: 1rem;
  align-items: center;
}


/****************/
/* MEDIA QUERIES */
/****************/
@media (max-width: 800px) {
  .nav_menu {
    display: none !important;
  }
  
  .nav_dropdown-menu [role="menu"] {
    gap: 1rem;
  }
  
  .nav_menu-button {
    display: block !important;
  }
  
  .nav_dropdown {
    display: none;
    padding-top: 5.5rem;
    padding-bottom: 3.5rem;
    position: absolute;
    width: 100%;
    height: auto;
    background-color: #311c3b;
  }
  
  .nav_dropdown-menu {
    flex: none;
    justify-content: space-between;
    align-items: center;
    margin-left: 1.5rem;
    display: flex;
    position: static;
  }
  
  .active-branch {
    flex-direction: column !important;
  }
  
  .button-nav_mobile {
    display: block;
  }
  
  .button-nav_mobile {
    color: #fff;
    font-weight: 500 !important;
    font-size: 15px !important;
    text-align: center;
    background-color: #f25a28;
    border-radius: 2.5rem;
    padding: .25rem 1.25rem;
    text-decoration: none;
    transition: background-color 200ms ease-in-out, transform 200ms ease-in-out;
  }

  .button-nav_mobile:hover {
    color: #f25a28 !important;
    background-color: white !important;
  }

  .button-nav_mobile:focus {
    color: #fff !important;
  }
  
  .menu li {
    margin-bottom:0 !important;
  }
