.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 16px;
  font-family: 'Lato', sans-serif;
}

.nav-logo {
  grid-column: 2;
  max-width: 185px;
}

.nav-mobile {
  justify-self: right;
  align-self: center;
}

.nav-menu {
  display: flex;
  justify-items: center;
  align-content: center;
}

.nav-menu img {
  width: 30px;
  height: 30px;
}

.nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9;
}

.nav-drawer {
  padding: 12px 16px;
  position: fixed;
  top: 0;
  right: 0;
  left: 40%;
  bottom: 0;
  background-color: #132f3e;
  z-index: 10;
}

.nav-drawer-close {
  display: flex;
  justify-content: end;
  margin-top: 8px;
}

.nav-drawer-close img {
  width: 30px;
  height: 30px;
}

.nav-drawer ul {
  list-style: none;
  margin-top: 20px;
}

.nav-drawer ul li {
  margin-bottom: 20px;
}

.nav-drawer ul a {
  text-decoration: none;
  color: white;
  font-size: 20px;
  font-weight: 100;
  display: block;
}

.nav-drawer ul p.light {
  font-size: 14px;
  line-height: 18px;
  opacity: 50%;
  margin-top: 40px;
  color: white;
}

.nav-drawer ul a.space {
  margin-top: 60px;
}

.nav-contact {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.nav-contact a {
  padding: 10px;
}

.nav-contact a svg {
  width: 20px;
  height: 20px;
  color: white;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 20px;
  list-style: none;
  position: relative;
}

.nav-desktop a {
  font-size: 18px;
  font-weight: 100;
  text-decoration: none;
  color: black;
  padding: 12px 20px;
}

.nav-desktop a:hover {
  transition: all 0.3s ease-in-out;
  color: #d78521;
}

.nav-desktop-more {
  list-style: none;
  background-color: white;
  position: absolute;
  bottom: -90px;
  right: -118px;
  z-index: 1;
}

.nav-desktop-more-opened {
  display: grid;
}

.nav-desktop-more-closed {
  display: none;
}

.nav-desktop-more a {
  background-color: white;
  display: block;
}

.nav-desktop-more a:hover {
  background-color: #d78521;
  transition: all 0.3s ease-in-out;
  color: white;
}

.nav-desktop-projects {
  list-style: none;
  background-color: white;
  position: absolute;
  bottom: -314px;
  right: 328px;
  z-index: 3;
}

.nav-desktop-projects-opened {
  display: grid;
}

.nav-desktop-projects-closed {
  display: none;
}

.nav-desktop-projects a {
  background-color: white;
  display: block;
}

.nav-desktop-projects a:hover {
  background-color: #d78521;
  transition: all 0.3s ease-in-out;
  color: white;
}

.nav-social {
  display: none;
  align-items: center;
  gap: 16px;
}

.social-icon {
  padding: 4px;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.menu-closed {
  transition: all 0.3s ease-in-out;
  transform: translateX(100%);
}

.menu-opened {
  transition: all 0.3s ease-in-out;
  transform: translateX(0%);
}

.overlay-closed {
  transform: translateX(100%);
}

.overlay-opened {
  transform: translateX(0%);
}

@media (min-width: 540px) {
  .nav {
    padding: 24px 60px;
  }
}

@media (min-width: 990px) {
  .nav {
    display: flex;
    justify-content: space-between;
  }

  .nav-mobile {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .nav-social {
    display: flex;
  }
}

@media (min-width: 1320px) {
  .nav {
    max-width: 1200px;
    padding: 24px 0;
    margin: 0 auto;
  }
}
