/* ==========================================================
   header.css : 공통 헤더 (PC 가로 메뉴 / 모바일 햄버거)
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.site-header__logo { display: flex; align-items: center; height: 100%; }
.site-header__logo img { height: 26px; width: auto; }

/* 햄버거 버튼 */
.nav-toggle { position: relative; width: 44px; height: 44px; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 2px;
  background: var(--c-dark); transition: var(--ease);
}
.nav-toggle::before { top: 15px; }
.nav-toggle span { top: 21px; }
.nav-toggle::after { top: 27px; }
.nav-toggle.is-open::before { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open::after { top: 21px; transform: rotate(-45deg); }
.nav-toggle.is-open span { opacity: 0; }

/* 모바일 메뉴 패널 */
.gnb {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  padding: 12px var(--gutter) 40px;
  background: var(--c-bg);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--ease), visibility var(--ease);
}
.gnb.is-open { transform: translateX(0); visibility: visible; }
.gnb__list > li { border-bottom: 1px solid var(--c-line); }
.gnb__link {
  display: flex; align-items: center; min-height: 58px;
  font-size: 17px; font-weight: 700;
}
.gnb__link.is-active { color: var(--c-point); }
.gnb__list > li.is-cta { margin-top: 24px; border: 0; }
.gnb__list > li.is-cta .gnb__link {
  justify-content: center; min-height: 52px; border-radius: var(--radius-pill);
  background: var(--c-dark); color: var(--c-white); font-size: 16px;
}
.gnb__list > li.is-cta .gnb__link.is-active { background: var(--c-point); color: var(--c-white); }

/* PC */
@media (min-width: 1024px) {
  .site-header__logo img { height: 28px; }
  .nav-toggle { display: none; }
  .gnb {
    position: static; padding: 0; background: none; overflow: visible;
    transform: none; visibility: visible;
  }
  .gnb__list { display: flex; align-items: center; gap: 28px; }
  .gnb__list > li { border: 0; }
  .gnb__link { min-height: 0; font-size: 14px; font-weight: 600; color: var(--c-text-sub); transition: color var(--ease); }
  .gnb__link:hover, .gnb__link.is-active { color: var(--c-point); }
  .gnb__list > li.is-cta { margin: 0 0 0 4px; }
  .gnb__list > li.is-cta .gnb__link {
    min-height: 38px; padding: 0 18px; font-size: 13px; color: var(--c-white);
  }
  .gnb__list > li.is-cta .gnb__link:hover { background: var(--c-point); color: var(--c-white); }
}
