/* ===========================
   Global Base
   =========================== */

html,
body {
  margin: 0;
  padding: 0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
  color: #111111;
  background-color: #ffffff;
}

a {
  color: inherit;
}

/* 페이지 공통 레이아웃 컨테이너 */
.page-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 실제 컨텐츠 영역 (헤더 높이만큼 여백) */
.page-content {
  flex: 1;
  padding-top: 80px; /* 모바일에서는 아래 media query에서 72px로 바뀜 */
}

/* ===========================
   Global Header
   =========================== */

.global-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  display: flex;
  justify-content: center;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e6;
}

.global-header .header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}

.global-header .section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
}

/* 로고 영역 */

.global-header .logo {
  display: inline-flex;
  align-items: center;
  padding: 6px;
  text-decoration: none;
  cursor: pointer;
}

.global-header .logo-mark {
  width: 84px;
  height: 51px;
  background-image: url("../images/common/logo-boum.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* 데스크탑 내비게이션 */

.nav-desktop {
  margin-left: 56px;
}

.nav-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list .menu {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nav-list .menu:hover {
  background-color: #f5f5f5;
}

.menu-label {
  font-weight: 600;
  font-size: 17px;
  color: #424242;
  letter-spacing: -0.1px;
  white-space: nowrap;
}

/* 헤더 오른쪽 영역: 문의 버튼 + 햄버거 */

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px 9px;
  border-radius: 8px;
  background-color: #5895a6;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* 햄버거 버튼 (기본: 데스크탑에서 숨김) */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle img {
  width: 24px;
  height: 24px;
}

/* 처음에는 메뉴 아이콘만 보이게 */
.nav-toggle .icon-close {
  display: none;
}

/* 모바일/탭 메뉴 패널 */

.nav-mobile-panel {
  position: absolute;
  top: 80px; /* 헤더 바로 아래 */
  left: 0;
  right: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e6;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}

.nav-mobile {
  padding: 16px 24px 24px;
}

.nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile-link {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  color: #424242;
  text-decoration: none;
}

/* 헤더가 열린 상태 */

.global-header.is-open .nav-mobile-panel {
  max-height: 200px; /* 메뉴 높이에 맞춰서 적당히 */
  opacity: 1;
}

/* 열린 상태에서 X 아이콘 보이게 */

.global-header.is-open .nav-toggle .icon-menu {
  display: none;
}

.global-header.is-open .nav-toggle .icon-close {
  display: block;
}

/* ===========================
   Global Footer
   =========================== */

.global-footer {
  display: flex;
  justify-content: center;
  padding: 48px 0 68px;
  background-color: #293344;
  color: #e5e5e5;
}

.global-footer .footer {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
  gap: 24px;
  padding: 0 48px;
  box-sizing: border-box;
}

/* 로고 */

.global-footer .b-logo {
  width: 116px;
  height: auto;
}

/* 텍스트 영역 */

.global-footer .article {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.global-footer .article > .div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.global-footer .container {
  display: flex;
  align-items: center;
}

.global-footer .container .text-wrapper {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.4px;
  line-height: 22px;
}

/* 이용약관 / 개인정보처리방침 */

.global-footer .container-2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.global-footer .link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.global-footer .footer-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.4px;
  line-height: 22px;
  color: #e5e5e5;
}

.global-footer .link-2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.global-footer .vertical-divider {
  width: 1px;
  height: 16px;
  background-color: #e5e5e5;
}

.global-footer .footer-link-2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 22px;
  color: #e5e5e5;
  text-decoration: none;
}

/* copyright */

.global-footer .article-wrapper {
  display: flex;
  width: 100%;
}

.global-footer .container-wrapper {
  display: flex;
  width: 100%;
}

.global-footer .copyright-info-wrapper {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}

.global-footer .article-wrapper .text-wrapper {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.4px;
  line-height: 22px;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 1023px) {
  /* 태블릿/모바일: 데스크탑 메뉴 숨김, 햄버거 활성화 */
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .global-header .section {
    gap: 16px;
  }

  .global-footer .footer {
    padding: 0 24px;
  }
}

@media (max-width: 767px) {
  .global-header .header {
    padding: 0 16px;
    height: 80px;
  }

  .nav-mobile-panel {
    top: 72px;
  }

  .page-content {
    padding-top: 72px;
  }

  .global-footer {
    padding: 32px 0 40px;
  }

  .global-footer .footer {
    padding: 0 16px;
  }

  .global-footer .b-logo {
    width: 98px;
  }

  .global-footer .container .text-wrapper,
  .global-footer .article-wrapper .text-wrapper {
    font-size: 13px;
    line-height: 20px;
  }
}
