/* ==========================================================
   layout.css - 공통 레이아웃 (컨테이너, 섹션, 서브 비주얼)
   ========================================================== */
body {
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: 1.6;
  word-break: keep-all; /* 한글 단어 중간 줄바꿈 방지 */
  color: var(--color-text);
  background: var(--color-bg);
}

main { padding-top: var(--header-height); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 섹션 */
.section { padding: 100px 0; }
.section--gray { background: var(--color-bg-gray); }
.section__eyebrow {
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  color: var(--color-primary);
}
.section__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 12px;
}
.section__desc {
  text-align: center;
  color: var(--color-text-sub);
  margin-bottom: 48px;
}

/* 서브 페이지 상단 비주얼 (메인 비주얼과 같은 배경 톤) */
.page-visual {
  position: relative;
  padding: 112px 0 96px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary-dark) 60%, var(--color-primary) 140%);
  color: #fff;
  text-align: center;
}
.page-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 75%);
}
.page-visual .container { position: relative; }
.page-visual__eyebrow {
  margin-bottom: 12px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #8cc2ff;
}
.page-visual__title { font-size: var(--fs-xxl); font-weight: 800; letter-spacing: -0.02em; }
.page-visual__desc { margin-top: 12px; opacity: 0.75; }

/* 스크롤 등장 애니메이션 (common.js) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .page-visual { padding: 72px 0 56px; }
  .page-visual__title { font-size: var(--fs-xl); }
}
