header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  /* background: #ffffffba; */
  /* border-radius: 0 0 15px 15px; */
  /* backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px); */

  nav {
    width: 100%;
    margin: 0 auto;
    max-width: 1280px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;

    a {
      text-decoration: none;
      cursor: pointer;

      img {
        height: 75px;
        width: auto;
        transition: ease-in-out 0.3s;
      }

      &:hover img {
        opacity: 0.8;
        transition: ease-in-out 0.3s;
      }
    }
    ul {
      list-style: none;
      display: flex;
      gap: 20px;

      li a {
        text-decoration: none;
        color: #000;
        font-weight: 600;
        font-size: 16px;
        transition: color 0.3s;
        font-family: 'Work Sans', sans-serif;
        font-family: 'Arial', sans-serif;
        font-weight: 600;

        &:hover {
          color: #6fbe4f;
        }
      }

      .current_page_item {
        a {
          color: #6fbe4f;
        }
      }
    }
  }
}

/* ─── Hamburger mygtukas (paslėptas desktop) ─── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;

  span {
    display: block;
    width: 26px;
    height: 2px;
    background: #222;
    border-radius: 2px;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
    transform-origin: center;
  }
}

/* Animacija į X */
.menu-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile drawer ─── */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100dvh;
  background: #fff;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 80px 24px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;

  .mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;

    li a {
      display: block;
      padding: 12px 8px;
      text-decoration: none;
      color: #222;
      font-family: 'Arial', sans-serif;
      font-weight: 600;
      font-size: 17px;
      border-bottom: 1px solid #f0f0f0;
      transition:
        color 0.2s,
        padding-left 0.2s;

      &:hover {
        color: #6fbe4f;
        padding-left: 14px;
      }
    }

    .current_page_item a {
      color: #6fbe4f;
    }
  }
}

.mobile-drawer__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  padding: 4px 8px;
  transition: color 0.2s;

  &:hover {
    color: #000;
  }
}

/* Atidarytos būsenos stiliai */
.menu-open .mobile-drawer {
  transform: translateX(0);
}

/* ─── Overlay ─── */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  header nav {
    padding: 10px 20px;

    .nav-menu {
      display: none;
    }
  }

  .hamburger {
    display: flex;
  }

  .menu-overlay {
    display: block;
    pointer-events: none;
  }
}
