/* ══════════════════════════════════════════════
   components.css  —  GNB + Footer (공통 컴포넌트)
   ══════════════════════════════════════════════ */

/* ── 토큰 (페이지 자체 스타일이 없을 경우 폴백) ── */
:root {
  --f: 'Pretendard', -apple-system, sans-serif;
  --t1: #111; --t2: #555; --t3: #999;
  --line: #e2e2e2; --bg: #f5f5f5; --white: #fff;
  --accent: #f8572a;
  --w: 1100px; --px: 40px;
}

/* ══════════════════════════════════════════════
   GNB
   ══════════════════════════════════════════════ */
.gnb {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  font-family: var(--f);
}

.gnb-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

/* 로고 */
.gnb-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--t1);
  text-decoration: none;
  letter-spacing: -.01em;
  flex-shrink: 0;
}

/* 우측 영역 */
.gnb-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 데스크탑 메뉴 */
.gnb-menu {
  display: flex;
  gap: 2px;
}
.gnb-menu a {
  font-size: 14px;
  color: var(--t2);
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.gnb-menu a:hover { color: var(--t1); }
.gnb-menu a.active {
  color: var(--accent);
  font-weight: 600;
}

/* 언어 토글 */
.lang-toggle {
  display: flex;
  gap: 2px;
  background: var(--bg);
  border-radius: 8px;
  padding: 3px;
  margin-left: 12px;
}
.lang-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  color: var(--t3);
  transition: all .15s;
  font-family: var(--f);
  letter-spacing: .02em;
}
.lang-btn.active {
  background: var(--white);
  color: var(--t1);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* 햄버거 (모바일) */
.gnb-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  margin-left: 4px;
}
.gnb-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--t1);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.gnb-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.gnb-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gnb-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 모바일 드로어 */
.gnb-drawer {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 8px 0 16px;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, padding .3s ease;
}
.gnb-drawer.open {
  max-height: 300px;
  padding: 8px 0 16px;
}
.gnb-drawer a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--t1);
  text-decoration: none;
  padding: 12px var(--px);
  transition: color .15s;
}
.gnb-drawer a:hover { color: var(--accent); }
.gnb-drawer a.active { color: var(--accent); font-weight: 600; }

/* ── GNB 다크 테마 ── */
.gnb--dark {
  background: #111;
}
.gnb--dark .gnb-logo { color: #fff; }
.gnb--dark .gnb-menu a { color: rgba(255,255,255,.6); }
.gnb--dark .gnb-menu a:hover { color: #fff; }
.gnb--dark .gnb-menu a.active { color: var(--accent); }
.gnb--dark .lang-toggle { background: rgba(255,255,255,.1); }
.gnb--dark .lang-btn { color: rgba(255,255,255,.45); }
.gnb--dark .lang-btn.active { background: rgba(255,255,255,.15); color: #fff; box-shadow: none; }
.gnb--dark .gnb-hamburger span { background: #fff; }
.gnb--dark .gnb-drawer { background: #111; }
.gnb--dark .gnb-drawer a { color: rgba(255,255,255,.8); }
.gnb--dark .gnb-drawer a:hover,
.gnb--dark .gnb-drawer a.active { color: var(--accent); }

/* ── 반응형 GNB ── */
@media (max-width: 768px) {
  :root { --px: 20px; }
  .gnb-menu  { display: none; }
  .lang-toggle { display: none; }
  .gnb-hamburger { display: flex; }
  .gnb-drawer { display: flex; }
}


/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  font-family: var(--f);
  background: var(--white);
  padding: 52px 0 36px;
}

.footer-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* 데스크탑: 4열 그리드 */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t1);
  margin-bottom: 14px;
}

.footer-col p,
.footer-col address {
  font-size: 13px;
  color: var(--t3);
  line-height: 1.8;
  font-style: normal;
}

.footer-col a {
  display: inline-block;
  font-size: 13px;
  color: var(--t3);
  text-decoration: none;
  line-height: 1.8;
  transition: color .15s;
}
.footer-col a:hover { color: var(--t1); }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

/* 하단 카피라이트 */
.footer-bottom {
  display: flex;
  align-items: center;
  padding-top: 24px;
}
.footer-copy {
  font-size: 12px;
  color: var(--t3);
}

/* ── 반응형 Footer (태블릿) ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 40px; }
}

/* ── 반응형 Footer ── */
@media (max-width: 600px) {
  .site-footer { padding: 40px 0 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; padding-bottom: 28px; }
}
