/* ═══ template7/header.css ════════════════════════
 * CSS 변수, 리셋, 투명 다크헤더(.site-header*)
 * 클린 내비게이션: 투명 → 스크롤 시 solid dark
 * 오렌지(#f07030) 액센트 + 네이비(#00093e) 포인트
 * ═══════════════════════════════════════════════ */

/* ─── CSS 변수 ────────────────────────────────── */

:root {
  --cyan:          #428A7F;
  --orange:        #f07030;
  --orange-mid:    #f78e1e;
  --orange-pale:   rgba(240, 112, 48, 0.12);
  --navy:          #00093e;
  --navy-mid:      #0031b5;
  --navy-pale:     #f5f7ff;
  --ink:           #444444;
  --ink-sub:       #5c5c5c;
  --ink-faint:     #888888;
  --bg:            #ffffff;
  --bg-off:        #f8f8f8;
  --card-bg:       #ffffff;
  --border:        #e0e0e0;
  --border-light:  #eeeeee;
  --dark-surface:  #111111;
  --dark-surface-2:#1a1a1a;
  --dark-card:     #242424;
  --header-h:      80px;
  --max-w:         1200px;
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --font:          "Pretendard Variable", "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
  --ease:          0.3s ease;
}

/* ─── 리셋 ────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  /* 투명 헤더: body에 padding-top 없음 — 배너가 헤더 아래 시작 */
  padding-top: 0;
  visibility: hidden;
}

body.is-loaded { visibility: visible; }
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }
address { font-style: normal; }

/* ─── 헤더 기반 ───────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0);
  border-bottom: none;
  transition: background var(--ease), box-shadow var(--ease);
}

/* 스크롤 시 solid dark */
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.97);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

/* ─── 헤더 내부 레이아웃 ──────────────────────── */

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

/* ─── 브랜드 ──────────────────────────────────── */

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #ffffff;
}

.site-header__logo {
  width: 150px;
  height: auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  border-radius: var(--radius-sm);
}

.site-header__brand-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: 0px;
}

/* ─── 볼륨 선택 드롭다운 ─────────────────────── */

.vol-selector {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  width: fit-content;
  padding: 5px 26px 5px 10px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: -0.2px;
  user-select: none;
  transition: border-color var(--ease), background var(--ease);
}

/* 초기 로드 전까지 숨김 (wz-vollist.js가 데이터 받은 후 제거) */
.vol-selector.is-hidden { display: none; }

/* 드롭다운 화살표 */
.vol-selector::after {
  content: '▼';
  font-size: 7px;
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.vol-selector.is-open::after {
  transform: translateY(-50%) rotate(180deg);
}

.vol-selector:hover { border-color: var(--orange); }
.vol-selector:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* 드롭다운 목록 */
.vol-selector__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: rgba(10, 10, 10, 0.96);
  color: #ffffff;
  min-width: max(100%, 160px);
  border-radius: var(--radius-sm);
  max-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, visibility 0.25s ease, max-height 0.3s ease, transform 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 300;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vol-selector.is-open .vol-selector__list {
  max-height: 280px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.vol-selector__list li {
  padding: 0;
  width: 100%;
}

.vol-selector__list li a {
  display: block;
  padding: 9px 14px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--ease), color var(--ease);
  letter-spacing: -0.2px;
}

.vol-selector__list li:last-child a { border-bottom: none; }

.vol-selector__list li a:hover,
.vol-selector__list li[aria-selected="true"] a {
  background: rgba(240, 112, 48, 0.15);
  color: var(--orange);
}

/* ─── 데스크탑 내비게이션 ─────────────────────── */

.site-header__nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  height: 100%;
}

.site-header__nav-list {
  display: flex;
  height: 100%;
  gap: 0;
}

.site-header__nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

/* 메뉴 폰트 크기 */
.site-header__nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  letter-spacing: 0px;
  position: relative;
  transition: color var(--ease);
}

/* 하단 오렌지 인디케이터 */
.site-header__nav-link::after {
/*  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--ease);
*/
}

.site-header__nav-item:hover > .site-header__nav-link,
.site-header__nav-item.is-active > .site-header__nav-link {
  color: #ffffff;
}

.site-header__nav-item:hover > .site-header__nav-link::after,
.site-header__nav-item.is-active > .site-header__nav-link::after {
  transform: scaleX(1);
}

/* ─── 드롭다운 ────────────────────────────────── */

.site-header__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(10, 10, 10, 0.97);
  border-top: 3px solid var(--orange);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  z-index: 100;
  overflow: hidden;
}

.site-header__nav-item.has-dropdown:hover .site-header__dropdown { display: block; }

.site-header__dropdown-link {
  display: block;
  padding: 11px 18px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), padding-left var(--ease);
}

.site-header__dropdown-link:last-child { border-bottom: none; }
.site-header__dropdown-link:hover {
  background: rgba(240, 112, 48, 0.15);
  color: var(--orange);
  padding-left: 24px;
}
.site-header__dropdown-link.is-active { color: var(--orange); font-weight: 600; }

/* ─── 우측 액션 ───────────────────────────────── */

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.site-header__pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--orange);
  color: #ffffff;
  border: 2px solid var(--orange);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.site-header__pdf-btn:hover {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

/* ─── 햄버거 버튼 (모바일) ───────────────────── */

.site-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--ease);
}

.site-header__hamburger:hover { border-color: var(--orange); }

.site-header__hamburger span {
  display: block;
  width: 16px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

.site-header__hamburger.is-open { border-color: var(--orange); }
.site-header__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__hamburger.is-open span:nth-child(2) { opacity: 0; }
.site-header__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── 모바일 드로어 (우측 슬라이드인) ─────────── */

.site-header__mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: var(--dark-surface);
  z-index: 190;
  /* 패널 자체는 스크롤하지 않음 — 내부 nav 가 flex:1 + overflow-y:auto */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-left: none;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.site-header__mobile-menu.is-hidden {
  transform: translateX(100%);
  /* display:none 대신 transform으로 슬라이드 애니메이션 */
  pointer-events: none;
}

.site-header__mobile-nav { padding: 72px 0 32px; }

.site-header__mobile-nav-item { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

.site-header__mobile-nav-link {
  display: block;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0px;
  color: rgba(255, 255, 255, 0.82);
  transition: background var(--ease), color var(--ease);
}

.site-header__mobile-nav-link:hover  { background: rgba(240, 112, 48, 0.12); color: #ffffff; }
.site-header__mobile-nav-link.is-active { color: var(--orange); }

.site-header__mobile-dropdown { background: rgba(255, 255, 255, 0.04); }

.site-header__mobile-dropdown-link {
  display: block;
  padding: 11px 28px 11px 44px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  transition: color var(--ease), background var(--ease);
}

.site-header__mobile-dropdown-link:hover  { color: #ffffff; background: rgba(240, 112, 48, 0.08); }
.site-header__mobile-dropdown-link.is-active { color: var(--orange); font-weight: 600; }

/* ─── 반응형 ───────────────────────────────────── */

@media (max-width: 1024px) {
  .site-header__nav       { display: none; }
  .site-header__hamburger { display: flex; }
  .site-header__inner     { padding: 0 20px; gap: 16px; }
}

@media (max-width: 768px) {
  .site-header__brand-name { font-size: 13px; }
  .vol-selector {display:none;}
}

/* ─── [PATCH 2026-04-29] 햄버거/모바일 메뉴 동작 보강 ─── */

.site-header__hamburger {
  transition: border-color var(--ease), transform 0.35s ease;
}
.site-header__hamburger.is-open {
  border-color: var(--orange);
  transform: rotate(180deg);
}

.site-header__mobile-menu {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.site-header__mobile-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 72px 0 32px;
}

/* 모바일 오버레이 (배경 dim) */
.site-header__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 180;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.site-header__overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* 모바일 닫기(X) — 우측 상단 고정, 흰색 X */
.site-header__mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--ease), transform var(--ease);
  z-index: 10;
}
.site-header__mobile-close:hover {
  color: var(--orange);
  transform: rotate(90deg);
}
.site-header__mobile-close svg { width: 24px; height: 24px; }

/* has-children 토글 아이콘(▶) + 펼침 */
.site-header__mobile-nav-item.has-children > .site-header__mobile-nav-link::before {
  content: '▶';
  display: inline-block;
  font-size: 10px;
  margin-right: 8px;
  transition: transform 0.25s ease;
  color: rgba(255, 255, 255, 0.5);
}
.site-header__mobile-nav-item.has-children.is-open > .site-header__mobile-nav-link::before {
  transform: rotate(90deg);
  color: var(--orange);
}
.site-header__mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.site-header__mobile-nav-item.has-children.is-open .site-header__mobile-dropdown {
  max-height: 600px;
}
/* ─── [/PATCH] ─── */