/* =============================================
   Header — Premium
   ============================================= */
.header {
  background: rgba(58, 90, 58, 0.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: "Plus Jakarta Sans", "Zen Maru Gothic", system-ui, sans-serif;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 14px;
}

.header-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease;
}

.header-logo a:hover .header-logo-img {
  border-color: rgba(255, 255, 255, 0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-main {
  color: white;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Navigation */
.header-nav {
  display: flex;
  gap: 8px;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.header-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hamburger span {
  width: 22px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   Header Responsive
   ============================================= */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 20px;
    height: 72px;
  }

  .header-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .logo-main {
    font-size: 15px;
  }

  .logo-sub {
    font-size: 10px;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(42, 74, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 0 20px;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.3s ease,
      padding 0.35s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .header-nav.active {
    max-height: 420px;
    opacity: 1;
    padding: 16px 20px 20px;
    gap: 2px;
  }

  .header-nav a {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    transform: translateY(-8px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .header-nav.active a {
    transform: translateY(0);
    opacity: 1;
  }

  .header-nav.active a:nth-child(1) { transition-delay: 0.04s; }
  .header-nav.active a:nth-child(2) { transition-delay: 0.08s; }
  .header-nav.active a:nth-child(3) { transition-delay: 0.12s; }
  .header-nav.active a:nth-child(4) { transition-delay: 0.16s; }
  .header-nav.active a:nth-child(5) { transition-delay: 0.20s; }
  .header-nav.active a:nth-child(6) { transition-delay: 0.24s; }

  .header-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    padding-left: 20px;
  }
}
