/* ── Header Base ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* ── Brand / Logo ── */
.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

/* ── Navigation ── */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1c1b;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #2d5a27;
  background: rgba(45, 90, 39, 0.08);
}

.nav-icon {
  font-size: 20px;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 20;
}

.dropdown-arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 18;
}

/* ── Dropdown Menus ── */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 8px;
  list-style: none;
  margin: 4px 0 0;
  z-index: 1001;
  animation: dropdownFadeIn 0.2s ease;
}

.dropdown-level-1 {
  /* first dropdown */
}

.dropdown-level-2 {
  top: -8px;
  left: 100%;
  margin-left: 4px;
}

.has-dropdown {
  position: relative;
}

.has-dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu .nav-link {
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.8125rem;
  border-radius: 8px;
  color: #444;
}

.dropdown-menu .nav-link:hover {
  color: #2d5a27;
  background: rgba(45, 90, 39, 0.08);
}

.dropdown-menu .has-dropdown > .nav-link .dropdown-arrow {
  margin-left: auto;
}

.dropdown-menu .has-dropdown:hover > .dropdown-menu {
  display: block;
}

/* ── Header Actions ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  background: #2d5a27;
  color: #fff;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-cta:hover {
  background: #1e3d1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(0, 0, 0, 0.05);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1c1b;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Overlay ── */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.overlay-visible {
  display: block;
  opacity: 1;
}

/* ── Animations ── */
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Body lock ── */
.nav-body-lock {
  overflow: hidden;
}

/* ── Push main content down ── */
body {
  padding-top: 72px;
}

/* ── Responsive (Mobile) ── */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: calc(100vh - 72px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .main-nav.nav-open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 0.9375rem;
    border-radius: 8px;
    justify-content: space-between;
  }

  .dropdown-menu {
    display: none;
    position: static;
    box-shadow: none;
    background: #f8f8f8;
    border-radius: 8px;
    margin: 2px 0;
    padding: 4px;
    animation: none;
    width: 100%;
  }

  .dropdown-level-2 {
    top: auto;
    left: auto;
    margin-left: 0;
  }

  .dropdown-open > .dropdown-menu {
    display: block;
  }

  .dropdown-open > .nav-link .dropdown-arrow {
    transform: rotate(90deg);
  }

  .header-actions {
    display: none;
  }

  .has-dropdown:hover > .dropdown-menu {
    display: none;
  }

  .dropdown-open.has-dropdown:hover > .dropdown-menu {
    display: block;
  }

  .nav-overlay.overlay-visible {
    display: block;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 16px;
    height: 64px;
  }

  .logo-img {
    height: 34px;
  }

  body {
    padding-top: 64px;
  }

  .main-nav {
    top: 64px;
    height: calc(100vh - 64px);
  }
}
