@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
}

body {
  overflow-x: hidden;
}

.main {
  min-height: 160vh;
  width: 100%;
  background-color: rgb(241, 233, 222);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding: 40px 80px;
}

.logo {
  font-size: 30px;
  font-weight: 700;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  letter-spacing: 3px;
  color: rgb(34, 34, 34);
  cursor: pointer;
  transition: all 0.3s;
}

i {
  transition: all 0.3s;
}

.logo:hover i {
  transform: scale(1.2);
  color: dodgerblue;
}

.button {
  color: white;
  position: relative;
  background-color: rgb(113, 106, 93);
  text-decoration: none;
  padding: 10px 25px;
  text-align: center;
}

a .icon {
  visibility: hidden;
  transition: all 0.3s;
  transform: translate(-20%);
}

a:hover .icon {
  visibility: visible;
  transform: translate(20%);
}

.nav-items {
  display: flex;
  gap: 20px;
  font-size: 17px;
  list-style: none;
}

.nav-items a {
  text-decoration: none;
  color: rgb(34, 34, 34);
  transition: all 0.3s;
}

.nav-items a:hover {
  color: rgb(92, 85, 76);
}

.icon-menu {
  --gap: 5px;
  --height-bar: 2.5px;
  --pos-y-bar-one: 0;
  --pos-y-bar-three: 0;
  --scale-bar: 1;
  --rotate-bar-one: 0;
  --rotate-bar-three: 0;
  width: 25px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  cursor: pointer;
  position: relative;
  display: none;
}

.bar {
  position: relative;
  height: var(--height-bar);
  width: 100%;
  border-radius: 0.5rem;
  background-color: #1f1e1e;
}

.bar--1 {
  top: var(--pos-y-bar-one);
  transform: rotate(var(--rotate-bar-one));
  transition: top 200ms 100ms, transform 100ms;
}

.bar--2 {
  transform: scaleX(var(--scale-bar));
  transition: transform 150ms 100ms;
}

.bar--3 {
  bottom: var(--pos-y-bar-three);
  transform: rotate(var(--rotate-bar-three));
  transition: bottom 200ms 100ms, transform 100ms;
}

.check-icon:checked + .icon-menu > .bar--1 {
  transition: top 200ms, transform 200ms 100ms;
}

.check-icon:checked + .icon-menu > .bar--3 {
  transition: bottom 200ms, transform 200ms 100ms;
}

.check-icon:checked + .icon-menu {
  --pos-y-bar-one: calc(var(--gap) + var(--height-bar));
  --pos-y-bar-three: calc(var(--gap) + var(--height-bar));
  --scale-bar: 0;
  --rotate-bar-one: 45deg;
  --rotate-bar-three: -45deg;
}
/* FIN ICON-MENU */

@media (max-width: 1000px) {
  .icon-menu {
    display: inline-flex;
    z-index: 9999;
  }
  .nav-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background-color: #e8d7bb;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    transform: translateY(-100%);
    transition: all 0.3s ease-in-out;
  }

  .navbar {
    padding: 30px 40px;
  }

  .active {
    transform: translateY(0%);
  }
}
