/* ========== BASIS NAV ========== */

.navbar-header {
  background-color: #e8dcd8;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-main {
  padding: 1.5rem 0;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo-img {
  height: 50px;
  width: 50px;
}

/* ========== DESKTOP NAV ========== */

.navbar-nav {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #5a5a5a;
  text-decoration: none;
  padding: 0.5rem 2rem;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  display: block;
}

.nav-link:hover,
.nav-link.active {
  border-bottom-color: #a87365;
}

/* ========== HAMBURGER ========== */

.hamburger {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #5a5a5a;
  left: 0;
  transition: 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 9px;
}

.hamburger span:nth-child(3) {
  bottom: 0;
}


.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 10px;
}

/* ========== MOBILE FULLSCREEN MENU ========== */

@media (max-width: 768px) {

  .hamburger {
    display: block;
  }

  .navbar-nav {
    position: fixed;
    inset: 0;
    height: 100vh;
    width: 100%;
    background-color: #e8dcd8;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: 0.4s ease;
    z-index: 1050;
  }

  .navbar-nav.active {
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.5rem;
    padding: 1rem;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* ========== DESKTOP FORCE FIX ========== */

@media (min-width: 769px) {

  .navbar-nav {
    position: static;
    height: auto;
    width: auto;
    transform: none;
    flex-direction: row;
    justify-content: flex-end;
    background: none;
  }

  .hamburger {
    display: none;
  }

  body.menu-open {
    overflow: auto;
  }
}
