/* ==========================================================
   Summits · site.css
   기준: rawwave 최종본(2026-09-19) 실측값
   색은 :root 토큰만 바꾸면 전체가 바뀝니다. 브랜드 확정 전 임시값.
   ========================================================== */

@font-face {
  font-family: "Pretendard Variable";
  src: url("../fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 브랜드 · 임시값 (2026-09-15 컬러 스펙) */
  --brand: #1400FF;
  --brand-tint: #DBF3FF;
  --brand-hover: #1000CC;

  /* 텍스트 */
  --ink: #000000;
  --ink-2: #19213D;
  --lead: #001C2E;
  --muted: #446278;
  --caption: #757575;
  --slate: #475569;

  /* 면과 선 */
  --paper: #FFFFFF;
  --surface-2: #FAFAFA;
  --surface-3: #F7F7F7;
  --line: #EDEDED;
  --line-soft: rgba(15, 23, 42, 0.06);

  /* 그림자 */
  --shadow-card: 0 1px 1px rgba(5, 17, 45, 0.06), 0 8px 24px rgba(154, 196, 255, 0.10);
  --shadow-float: 0 1px 2px rgba(5, 17, 45, 0.05), 0 12px 32px rgba(5, 17, 45, 0.06);

  /* 레이아웃 */
  --container: 1360px;
  --gutter: 40px;
  --header-h: 72px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- 타이포 ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto; }
.section-title {
  font-size: 48px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
}
.section-sub {
  margin-top: 14px; font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--muted);
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 26px; border-radius: 999px;
  font-size: 18px; font-weight: 500; line-height: 1; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-outline { border: 1px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand-tint); }
.btn-ghost-light { border: 1px solid rgba(255,255,255,0.65); color: #fff; background: rgba(255,255,255,0.06); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); }
.btn-quiet { border: 1px solid var(--line); color: var(--lead); background: #fff; }
.btn-quiet:hover { border-color: var(--lead); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--ink);
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-over-hero { background: transparent; color: #fff; border-bottom-color: transparent; }
.site-header .bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.nav-list { display: flex; align-items: center; gap: 20px; }
.nav-list a { font-size: 16px; font-weight: 400; padding: 8px 0; position: relative; }
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; align-items: center; justify-content: center; }
.menu-toggle .bars { position: relative; width: 20px; height: 12px; }
.menu-toggle .bars span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s; }
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 10.5px; }
.menu-open .menu-toggle .bars span:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
.menu-open .menu-toggle .bars span:nth-child(2) { top: 5.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff; color: var(--ink);
  padding: 24px 20px 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.mobile-menu ul a { display: block; padding: 14px 0; font-size: 24px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { width: 100%; }
/* 메뉴가 열렸을 때는 히어로 위에서도 항상 흰 바탕·검은 글자 (rawwave 햄버거 사라짐 버그의 원인 차단) */
.menu-open .site-header { background: #fff; color: var(--ink); border-bottom-color: var(--line); }
body.menu-open { overflow: hidden; }


/* ---------- 푸터 (CTA 카드 안쪽) ---------- */
.site-footer { margin-top: 88px; padding-bottom: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.site-footer h2 { font-size: 16px; font-weight: 600; margin-bottom: 22px; }
.site-footer .info li { font-size: 16px; line-height: 1.2; margin-bottom: 12px; color: var(--ink); }
.site-footer .info a:hover { color: var(--brand); }
.site-footer .menu li { margin-bottom: 16px; }
.site-footer .menu a { color: var(--muted); font-size: 16px; }
.site-footer .menu a:hover { color: var(--brand); }
.site-footer .bottom { margin-top: 60px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 16px; color: var(--muted); }
.site-footer .bottom nav { display: flex; gap: 14px; }
.site-footer .bottom nav a:first-child { color: var(--ink); }
.site-footer .bottom nav a:hover { color: var(--brand); }

/* ---------- 검수 모드 (?review) ---------- */
.review-on [data-review] { outline: 2px dashed #F0A30A; outline-offset: 4px; }
.review-on :where([data-review]) { position: relative; }
.review-tag { position: absolute; left: 0; top: -14px; transform: translateY(-100%); z-index: 60; max-width: 340px; background: #FFE9A8; color: #5A3A00; font-size: 12px; font-weight: 600;
  line-height: 1.45; padding: 4px 8px; border-radius: 6px; letter-spacing: 0; text-align: left; white-space: normal; box-shadow: 0 2px 8px rgba(0,0,0,.08); pointer-events: none; }
.review-bar { position: fixed; left: 16px; bottom: 16px; z-index: 300; background: #1A1400; color: #FFE9A8; font-size: 13px; padding: 10px 14px; border-radius: 12px; }
.review-bar a { color: #fff; text-decoration: underline; margin-left: 4px; }

@media (max-width: 809px) { .review-tag { max-width: 240px; } }

/* ==========================================================
   반응형
   ========================================================== */
@media (max-width: 1100px) {
  :root { --gutter: 28px; }
  .section-title { font-size: 40px; }
}
@media (max-width: 809px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .nav-list { display: none; }
  .menu-toggle { display: inline-flex; }
  .logo { font-size: 24px; }
  .section-title { font-size: 32px; }
  .section-sub { font-size: 14.5px; }
  .btn { height: 50px; font-size: 16px; padding: 0 22px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 36px; }
  .site-footer .bottom { flex-direction: column; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
