/* 헤더 — templates/header.html 대응. 원본: sticky 흰 배경, 80px(모바일 64px) */

.site-header {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-100);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(12, 19, 48, 0.06); }

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h-m);
}

.header__logo { display: flex; align-items: center; gap: 8px; }
.header__logo-mark { width: 24px; height: 24px; }
.header__logo-text {
  font-size: 20px; font-weight: 800; letter-spacing: 0.02em; color: var(--color-ink);
}

.header__nav { display: none; align-items: center; gap: 28px; }
.header__menu-link {
  font-size: 15px; font-weight: 600; color: var(--color-ink);
  transition: color 0.2s ease;
}
.header__menu-link:hover, .header__menu-link.is-active { color: var(--color-primary-500); }

/* 모바일 햄버거 */
.header__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
  background: none; border: 0;
}
.header__toggle-bar {
  display: block; width: 100%; height: 2px;
  background: var(--color-ink); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.header__toggle.is-open .header__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle.is-open .header__toggle-bar:nth-child(2) { opacity: 0; }
.header__toggle.is-open .header__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 모바일 드로어 */
.header__drawer { border-top: 1px solid var(--color-gray-100); background: var(--color-white); }
.header__drawer-nav {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-6) var(--container-pad) var(--sp-8);
}
.header__drawer-link { font-size: 16px; font-weight: 600; color: var(--color-ink); padding: var(--sp-2) 0; }

@media (min-width: 768px) {
  .header__inner { height: var(--header-h); }
  .header__nav { display: flex; }
  .header__toggle, .header__drawer { display: none; }
}
