/* =========================
   HEADER (DESKTOP)
========================= */

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  z-index: 100;
}

/* Desktop nav */
.nav-menu {
  display: flex;
}

.menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

/* Hamburger hidden on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* =========================
   MOBILE + TABLET
========================= */

@media (max-width: 1024px) {

  /* Show hamburger */
  .menu-toggle {
    display: block;
    z-index: 200;
  }

  /* Dropdown container */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    background: #ffffff;
    border-top: 1px solid #eee;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);

    overflow: hidden;
    max-height: 0;
    transition: max-height 0.45s ease;
  }

  /* Expanded state */
  .nav-menu.active {
    max-height: 420px;
  }

  /* Vertical list */
  .menu {
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
  }

  /* MENU ITEMS — INITIAL STATE */
  .menu li {
    opacity: 0;
    transform: translateX(32px);
    transition:
      opacity 0.4s ease,
      transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* MENU ITEMS — VISIBLE STATE */
  .nav-menu.active .menu li {
    opacity: 1;
    transform: translateX(0);
  }

  /* STAGGER (starts AFTER height transition) */
  .menu li:nth-child(1) { transition-delay: 0.45s; }
  .menu li:nth-child(2) { transition-delay: 0.52s; }
  .menu li:nth-child(3) { transition-delay: 0.59s; }
  .menu li:nth-child(4) { transition-delay: 0.66s; }
  .menu li:nth-child(5) { transition-delay: 0.73s; }
  .menu li:nth-child(6) { transition-delay: 0.80s; }

  /* Mobile link style */
  .menu a {
    font-size: 1.2rem;
    color: #111;
  }
}
