/* 엠앤와이픽스 — 브랜드허브 디자인 시스템
   컬러 컨셉: 잉크 그래파이트 + 하이드로 틸 + 와인. 오렌지/네이비/베이지 조합 회피.
   타이포: Pretendard 산세리프 단일 패밀리(웨이트로 위계 구성).
   40-60대 사용성 우선: 큰 글자·큰 버튼·높은 대비·차분한 모션. */

@font-face {
  font-family: 'Pretendard';
  font-weight: 400 800;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/pretendard@1.3.9/dist/web/variable/woff2/PretendardVariable.woff2') format('woff2-variations');
}

:root {
  --ink: #14181a;
  --ink-soft: #303837;
  --paper: #f7f8f8;
  --paper-sunken: #f0f2f2;
  --paper-line: rgba(20, 24, 26, 0.14);
  --teal: #12a296;
  --teal-deep: #0b6b62;
  --wine: #7a2748;
  --muted: #4d5654;
  --on-ink: #f5f7f7;
  --radius: 0;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --wrap: 1160px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-sans); line-height: 1.35; margin: 0; letter-spacing: -0.01em; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }
p { margin: 0; font-weight: 400; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── 스크롤 진행 바 ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  z-index: 200; transition: transform 0.08s linear;
}

/* ── 헤더 ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(245, 247, 247, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--paper-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; flex-wrap: wrap; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 16px; font-weight: 500; flex-wrap: wrap; }
.nav-links a:not(.btn) { position: relative; padding: 6px 0; }
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--teal);
  transition: right 0.25s ease;
}
.nav-links a:not(.btn):hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius); font-weight: 600; font-size: 16px;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn-lg { padding: 18px 30px; font-size: 18px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(11,107,98,0.55); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--paper-line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-on-ink { background: transparent; color: var(--on-ink); border-color: rgba(245,247,247,0.4); }
.btn-ghost-on-ink:hover { border-color: var(--on-ink); }

/* ── 히어로 (텍스트 + 사진 2단, 높은 대비) ── */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-content { max-width: 620px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); color: var(--ink); }
.hero-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; position: relative; box-shadow: 0 20px 44px -24px rgba(20,24,26,0.35); }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(155deg, rgba(18,162,150,0.14), rgba(20,24,26,0.12)); mix-blend-mode: multiply; pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.96) contrast(1.03); }

/* ── 페이지 헤드 (사진 없는 서브페이지 — 예: 상담 페이지) ── */
.page-head { padding: 56px 0 24px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); }

.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; color: var(--teal-deep); text-transform: uppercase; margin-bottom: 16px; }
.tagline { font-weight: 500; font-size: clamp(18px, 2vw, 22px); color: var(--ink-soft); margin-top: 16px; }
.lede {
  margin-top: 22px; font-size: 17.5px; font-weight: 400; color: var(--ink-soft); max-width: 58ch;
}
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* ── 섹션 공통 ── */
.section { padding: 88px 0; }
.section-sunken { background: var(--paper-sunken); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16.5px; }

/* ── 통계 넘버 밴드 ── */
.stat-row { display: flex; flex-wrap: wrap; gap: 40px; padding: 8px 0 16px; }
.stat-item { flex: 1 1 33%; min-width: 140px; }
.stat-num { font-weight: 700; font-size: clamp(38px, 5.5vw, 56px); color: var(--ink); line-height: 1; }
.stat-label { margin-top: 10px; font-size: 15px; color: var(--muted); font-weight: 500; }

/* ── 답변 표 ── */
.answer-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 16px; }
.answer-table tr { border-bottom: 1px solid var(--paper-line); }
.answer-table th, .answer-table td { padding: 18px 8px; text-align: left; }
.answer-table th { font-weight: 600; width: 26%; color: var(--muted); }
.answer-table td { padding-left: 20px; }

/* ── 서비스 카테고리 카드 ── */
.category-list { display: flex; flex-direction: column; gap: 4px; }
.category-row {
  display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start;
  padding: 40px 0; border-top: 1px solid var(--paper-line);
}
.category-row:last-child { border-bottom: 1px solid var(--paper-line); }
.category-media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; position: relative; }
.category-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(155deg, rgba(18,162,150,0.14), rgba(20,24,26,0.12)); mix-blend-mode: multiply; pointer-events: none; }
.category-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.96) contrast(1.03); transition: transform 0.5s ease; }
.category-row:hover .category-media img { transform: scale(1.04); }
.category-num { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 8px; letter-spacing: 0.03em; }
.category-body h3 { font-size: 23px; margin-bottom: 10px; font-weight: 700; }
.category-body > p { color: var(--muted); margin-bottom: 20px; font-size: 16.5px; }
.site-chip-list { display: flex; flex-wrap: wrap; gap: 12px; }
.site-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 18px; border: 1px solid var(--paper-line); border-radius: var(--radius); font-size: 15.5px; font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.site-chip:hover { border-color: var(--teal); background: rgba(18,162,150,0.06); color: var(--teal-deep); }
.site-chip .arrow { color: var(--muted); }
.site-chip:hover .arrow { color: var(--teal); }

/* ── 절차 타임라인 (상담 페이지) ── */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 8px; }
.timeline::before {
  content: ''; position: absolute; top: 26px; left: 6%; right: 6%; height: 1px; background: var(--paper-line);
}
.timeline-step { position: relative; }
.timeline-step .t-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; background: var(--paper);
  border: 2px solid var(--paper-line); font-weight: 700; font-size: 20px;
  color: var(--ink); position: relative; z-index: 1; margin-bottom: 18px;
}
.timeline-step h3 { font-size: 17.5px; margin-bottom: 6px; font-weight: 700; }
.timeline-step p { color: var(--muted); font-size: 15px; }

/* ── FAQ (native details) ── */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 4px; font-weight: 600; font-size: 17.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { font-size: 24px; color: var(--teal-deep); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 4px 24px; color: var(--ink-soft); max-width: 68ch; font-size: 16px; }

/* ── CTA 밴드 ── */
.cta-band {
  background: var(--ink); color: var(--on-ink);
  padding: 56px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.cta-band h2 { color: var(--on-ink); font-size: clamp(22px, 3vw, 30px); }
.cta-band p { color: rgba(245,247,247,0.78); font-size: 16.5px; }

/* ── 인라인 CTA (섹션 하단 짧은 상담 유도) ── */
.inline-cta {
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--paper-line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.inline-cta p { font-size: 17px; font-weight: 600; }

/* ── 푸터 ── */
.site-footer { background: var(--ink); color: rgba(245,247,247,0.72); padding: 52px 0 26px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(245,247,247,0.16); }
.footer-grid h4 { color: var(--on-ink); font-size: 14px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--on-ink); }
.footer-brand .brand { color: var(--on-ink); }
.footer-brand p { margin-top: 12px; max-width: 32ch; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }

/* ── 모바일 고정 상담 바 ── */
.mobile-cta-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  padding: 12px 16px; background: rgba(245,247,247,0.98); border-top: 1px solid var(--paper-line);
  box-shadow: 0 -8px 24px -16px rgba(20,24,26,0.3);
}
.mobile-cta-bar .btn { width: 100%; padding: 16px; font-size: 17px; }

/* ── 스크롤 트리거 애니메이션 (차분하게) ── */
.reveal { opacity: 0; transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-up { transform: translateY(14px); }
.reveal-left { transform: translateX(-14px); }
.reveal-right { transform: translateX(14px); }
.reveal-scale { transform: scale(0.98); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── 반응형 ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; aspect-ratio: 16/9; }
  .category-row { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .timeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .site-header .wrap { justify-content: center; text-align: center; }
  .header-actions { display: none; }
  .nav-links { justify-content: center; width: 100%; }
  .hero { padding-bottom: 48px; }
  .hero-cta { justify-content: flex-start; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 20px; }
  .stat-row { gap: 24px; }
  .stat-item { flex: 1 1 100%; }
  .category-body h3 { font-size: 21px; }
  .answer-table th { width: 40%; }
  .answer-table th, .answer-table td { padding: 12px 8px; font-size: 15px; }
  body { padding-bottom: 76px; }
  .mobile-cta-bar { display: block; }
}
