header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1002;
  background-color: #5e8c31e3;
}

.headerContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin-inline: auto;
}

.headerLogo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: clamp(1.25rem, 1rem + 1vw, 2rem);
  color: #fbfbfb;
  font-weight: 700;
}

.headerLogo img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.headerNav ul {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.headerNav a {
  color: #fbfbfb;
  font-size: clamp(0.875rem, 0.8rem + 0.375vw, 1.125rem);
  font-weight: 500;
  padding: 0.5rem 0;
  &:last-of-type {
    padding: 0.5rem 1rem;
  }
}

.headerNav li:not(:last-child) a {
  position: relative;
}

.headerNav li:not(:last-child) a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #a4d65b;
  transition: width 0.3s ease;
}

.headerNav li:not(:last-child) a:hover::after {
  width: 100%;
}

.contactBtn {
  background-color: #f6b93b;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contactBtn:hover {
  background-color: #ffa41c;
}

.menuButton {
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1003;
  display: none;
}

.menuButton span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fbfbfb;
  transition: all 0.3s ease;
}

.menuButton.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.menuButton.active span:nth-child(2) {
  opacity: 0;
}

.menuButton.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

.mobileMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: oklch(0.985 0 0 / 0.9);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.mobileMenu.active {
  transform: translateX(0);
}

.mobileMenu nav {
  text-align: center;
}

.mobileMenu ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobileMenu a {
  font-size: clamp(1.25rem, 1rem + 1vw, 2rem);
  font-weight: 500;
  padding: 0.5rem 1rem;
  display: block;
}

body.menuOpen {
  overflow: hidden;
}

@media (width < 768px) {
  .mobileMenu {
    display: flex;
    z-index: 1000;
  }

  .headerNav {
    display: none;
  }

  .menuButton {
    display: flex;
  }
}
