/**
 * common-layout.base.css — 페이지 뼈대(모바일 우선: 전역 기본, .container, 헤더, 푸터)
 *
 * 로드 순서: root.css → ui-classes.css → 본 파일 → common-layout.pc.css (768px+) → 페이지 전용 CSS
 *
 * 공통 “컴포넌트형” UI 블록이 생기면 common-ui.css 로 분리해 두는 것을 권장합니다.
 */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 16px;
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  z-index: 1000;
  border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 481px) {
  .container { padding: 0 24px; }
}

/* ----- 헤더 (카카오 스타일: 심플, 고정) — 모바일 기본 ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: background .2s, box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.06); }

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--kakao-black);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 28px;
}
.header-nav a {
  color: var(--dark);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.header-nav a:hover { color: var(--navy); }
.header-nav .btn-cta {
  padding: 10px 20px;
  background: var(--kakao-black);
  color: var(--yellow) !important;
  border-radius: 24px;
  font-weight: 600;
}
.header-nav .btn-cta:hover {
  background: var(--navy);
}

.header-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 20px 16px 24px;
  border-bottom: 1px solid var(--light);
  gap: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.header-nav.is-open a {
  padding: 14px 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--light);
  min-height: 48px;
  display: flex;
  align-items: center;
}
.header-nav.is-open a:last-child { border-bottom: none; }
.header-nav.is-open .btn-cta { margin-top: 8px; text-align: center; justify-content: center; }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--kakao-black);
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

.footer {
  background: var(--kakao-black);
  color: rgba(255,255,255,.8);
  font-size: 0.875rem;
}
