@charset "UTF-8";
/* ============================================================
   NEWNEEK 클론 — 03-layout.css
   레이아웃: 전역 헤더(유틸바/로고바/GNB) + 전역 푸터
   GeneratePress 변환 시 매핑: docs/wordpress-mapping.md
   ============================================================ */

/* ---------- 유틸바 (데스크톱 전용) ---------- */
.util-bar {
  display: none;
  height: var(--header-util-h);
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-page);
}

.util-bar__inner {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.util-bar__group {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.util-bar__link {
  font-size: var(--fs-xs);
  color: var(--text-body);
}

.util-bar__link:hover {
  color: var(--color-primary);
}

/* ---------- 로고바 (데스크톱 전용) ---------- */
.logo-bar {
  display: none;
  height: var(--header-logo-h);
  padding-top: var(--sp-2);
  background: var(--bg-page);
}

.logo-bar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.logo-bar__logo {
  grid-column: 2;
}

.logo-bar__logo a {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  line-height: 1;
}

.logo-bar__actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-4);
}

/* ---------- GNB ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-page);
}

.header__nav-row {
  height: var(--header-h);
  width: 100%;
  background: var(--bg-page);
}

.header__inner {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

/* 모바일 헤더 블록 (로고 좌측 + 액션) */
.header__mobile {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-inline: var(--sp-4);
  width: 100%;
  justify-content: space-between;
}

.header__mobile-logo a {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  line-height: 1;
}

.header__mobile-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* 데스크톱 GNB 목록 */
.header__menu-wrap {
  display: none;
  width: 100%;
  align-items: center;
  color: var(--text-strong);
}

.header__menu {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  gap: var(--sp-3);
}

.header__menu-item {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.header__menu-link {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding-inline: var(--sp-2);
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: var(--fw-bold);
  text-align: center;
  transition: all 0.15s ease;
}

.header__menu-link:hover {
  color: var(--color-primary);
}

.header__menu-link.is-active {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
}

.header__badge {
  display: inline-block;
  margin-left: 2px;
  font-size: 9px;
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--text-inverse);
  background: var(--text-strong);
  padding: 2px 3px;
  border-radius: 2px;
  vertical-align: super;
}

.header__dot {
  position: relative;
}

.header__dot::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
}

.header__menu-btn {
  display: flex;
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-body);
}

.header__menu-btn:hover {
  background: var(--bg-subtle);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-strong);
}

/* 로그인 버튼 */
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding-inline: var(--sp-3);
  border-radius: var(--radius-md);
  background: var(--color-primary-100);
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn-login:hover {
  background: var(--color-primary-50);
}

/* ---------- 반응형 ---------- */
@media (min-width: 1024px) {
  .util-bar {
    display: flex;
  }

  .logo-bar {
    display: block;
  }

  .header__nav-row {
    height: var(--header-gnb-h);
    margin-top: var(--sp-1);
  }

  .header__mobile {
    display: none;
  }

  .header__menu-wrap {
    display: flex;
  }

  .header__menu-link {
    font-size: var(--fs-base);
    padding-inline: var(--sp-3);
  }
}

.footer {
  padding: 36px 0 56px;
  background: var(--bg-soft);
}

@media (min-width: 768px) {
  .footer {
    padding: 48px 0 64px;
  }
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .footer__inner {
    gap: var(--sp-6);
  }
}

.footer__logo a {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  line-height: 1;
}

.footer__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-10);
}

@media (min-width: 768px) {
  .footer__body {
    flex-direction: row;
  }
}

.footer__company {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__nav {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 768px) {
  .footer__nav {
    order: 0;
    flex-direction: row;
    gap: var(--sp-16);
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer__col-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--text-muted);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__col a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  white-space: nowrap;
}

.footer__col a:hover {
  color: var(--text-strong);
  text-decoration: underline;
}

.footer__company strong {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--text-muted);
}

.footer__company address {
  font-size: var(--fs-sm);
  line-height: 1.64;
  color: var(--text-muted);
  word-break: keep-all;
}
