header {
  width: 100%;
  max-height: 80px;
  background: var(--navy);
  position: relative;
  position: sticky;
  top: 0;
  z-index: 100;
}
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}
header nav h2 {
  color: var(--white);
  font-weight: 300;
  font-size: 1.5rem;
}
header nav ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000000bf;
  overflow: hidden;
  width: 100%;
  height: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  align-items: center;
  list-style: none;
  transition: 0.5s;
}
header nav ul.display {
  height: 100px;
  padding: 10px;
}
header nav li {
  font-size: 1.25rem;
}
header nav a {
  text-decoration: none;
  color: #fff;
}
.hamburger-menu {
  width: 40px;
  height: 30px;
  position: relative;
}

.hamburger-menu span {
  display: block;
  width: 40px;
  height: 4px;
  background: #fff;
  position: absolute;
  transition: 0.5s;
  &:nth-child(1) {
    top: 0;
  }
  &:nth-child(2) {
    opacity: 100;
    top: 50%;
    transform: translateY(-50%);
  }
  &:nth-child(3) {
    bottom: 0;
  }
}
.hamburger-menu.cross span {
  &:nth-child(1) {
    top: 50%;
    rotate: 45deg;
    transform: translateY(-55%);
  }

  &:nth-child(2) {
    opacity: 0;
  }

  &:nth-child(3) {
    bottom: 50%;
    rotate: -45deg;
    transform: translateY(50%);
  }
}
@media screen and (min-width: 700px) {
  header nav {
    padding: 10px 20px;
  }
  header nav h2 {
    font-size: 2.25rem;
  }
  header nav ul,
  header nav ul.display {
    position: static;
    width: auto;
    height: auto;
    background: none;
    flex-direction: row;
    gap: 65px;
  }
  .hamburger-menu {
    display: none;
  }
}
@media screen and (min-width: 1200px) {
  header nav {
    justify-content: center;
    gap: 560px;
  }
}
