/* Navigation */
.nav {
  position: relative;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .nav-container {
    gap: 0.5rem;
  }
}

.nav-logo {
  text-decoration: none;
  margin-right: 3rem;
}

@media (max-width: 850px) {
  .nav-logo {
    margin-right: 1rem;
  }
}

.nav-logo-img {
  width: 200px;
  height: 85px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-logo-img {
    width: 125px;
    height: 50px;
    margin: 16px 0;
  }
}

/* Hamburger Menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 10;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--cream);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.is-active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 3.5px);
}

.nav-hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.is-active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -3.5px);
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  background-color: var(--denim-dark);
  z-index: 2;
}

@media (max-width: 768px) {
  .nav-right {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--denim-dark);
    flex-direction: column;
    padding: 0;
    gap: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-right.is-active {
    max-height: 500px;
    opacity: 1;
    padding: 0.5rem;
    z-index: 10;
  }

  .nav-right .button {
    width: 100%;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    width: 100%;
  }
}

.nav-link {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--header-font);
  font-weight: var(--bold-weight);
  font-size: 1rem;
  letter-spacing: 0.075em;
  padding: 0.33rem 0.5rem;
  transition: background-color 0.3s;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link[aria-current="page"] {
  background-color: var(--denim-medium);
  cursor: default;
}

.nav-link:hover {
  color: var(--cream);
}

.nav-link:hover:not([aria-current="page"]) {
  background-color: var(--denim-light);
}

@media (max-width: 768px) {
  .nav-link {
    height: 48px;
    width: 100%;
    font-size: 18px;
    padding: 0.33rem 0;
  }
}