
nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;

}

nav .logo {
  color: #fff;
  font-size: 22px;

}

nav ul {
    padding-top: 10px;
  --padding: 20px;
  --font-size: 12px;
letter-spacing: 4px;
  list-style: none;
  display: flex;
  align-items: center;
  font-size: var(--font-size);
  overflow-y: hidden;
  transition: 1s cubic-bezier(.68,-0.55,.27,1.55);
}

nav ul li {
  padding: var(--padding);
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  position: relative;
}

nav ul li a::after {
  content: "";
  width: 0%;
  height: 1px;
  border-radius: 0px;
  background: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav .menu {
  width: 22px;
  height: 16px;
  cursor: pointer;
  display: none;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  margin: 20px;
}

nav .menu span {
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: #ffffff;
  transition: 0.3s ease;
  transform-origin: left;
}

nav .menu.active span {
  background: #ffffff;
}

nav .menu.active span:nth-child(1) {
  transform: rotate(40deg);
}

nav .menu span:nth-child(3) {
  transform-origin: left;
}

nav .menu.active span:nth-child(3) {
  transform: rotate(-40deg);
}

nav .menu.active span:nth-child(2) {
  transform: scale(0);
}


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

  nav ul {
    --height: 0px;

    flex-direction: column;
    background: #899054;
    position: absolute;
    width: 100%;
    margin-top:0px;
    left: 0;
    top: -20px;
    height: var(--height);
    transition: 1s cubic-bezier(.68,-0.55,.27,1.55);

  }

  .mobile__spacer {min-height:50px;}

  nav ul.active {
    --height: calc(
      (((var(--padding) * 2) + (var(--font-size) * 1.5))) * var(--childenNumber)
    );
    transition: 1s ease;

  }

  nav ul li {
    width: 100%;
    text-align: center;
  }
  nav ul li a {
    width: 100%;
    text-transform: capitalize;
  }
}