/* ═══════════════════════════════════════
   HEADER (GNB) — header.css
   BHC식 상단 네비게이션 — 화이트 / sticky
   · 구성: [로고] ---- [메뉴 7개] ---- [우측 영역(비움)]
   · PC 가로 메뉴 / 모바일 햄버거 토글
   · index.html 전용 (기존 nav.css 는 법적 페이지가 계속 사용 — 미수정)
═══════════════════════════════════════ */

.gnb {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #eee;
}
.gnb__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 9%;
  max-width: 1280px;
  margin: 0 auto;
}

/* 로고 */
.gnb__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.gnb__logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* 메뉴 (중앙) */
.gnb__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 auto; /* 로고 ---- 메뉴(가운데) ---- 우측 */
}
.gnb__link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition:
    color var(--transition),
    border-color var(--transition);
}
.gnb__link:hover,
.gnb__link.is-active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

/* 우측 영역 — 비워둠 (전화번호 등 별도 지시 전까지 추가 금지) */
.gnb__right {
  flex-shrink: 0;
}

/* 햄버거 토글 (모바일 전용) */
.gnb__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}
.gnb__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.gnb__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.gnb__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.gnb__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══ 모바일 (900px) — 햄버거 ══ */
@media (max-width: 900px) {
  .gnb__inner {
    padding: 0 5%;
    gap: 12px;
  }
  .gnb__toggle {
    display: flex;
  }
  .gnb__menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--white);
    border-bottom: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .gnb__menu.is-open {
    max-height: 80vh;
  }
  .gnb__link {
    padding: 14px 5%;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
  }
  .gnb__link:hover,
  .gnb__link.is-active {
    border-bottom-color: #f0f0f0;
    background: #fafafa;
  }
  .gnb__right {
    display: none;
  }
}
