/* 탤런트링크 디자인 시스템 — design.md 토큰 기준 (시안 A안, 딥네이비 프리미엄) */
:root {
  --color-navy-900: #0B1A33;
  --color-navy-800: #0F2342;
  --color-navy-700: #162033;
  --color-navy-600: #1E344D;
  --color-link-600: #1E4A73;
  --color-link-500: #2F6FB2;
  --color-link-400: #4A86C5;
  --color-link-300: #7AB0E6;
  --color-link-50: #EAF2FB;
  --color-gold-500: #C8A96A;
  --color-white: #FFFFFF;
  --color-bg-50: #F8FAFC;
  --color-bg-100: #EEF2F7;
  --color-line-200: #E2E8F0;
  --color-line-300: #CBD5E1;
  --color-text-900: #111827;
  --color-text-700: #475569;
  --color-text-500: #64748B;
  --color-success: #16794A;
  --color-error: #B42318;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 3px rgba(15, 35, 66, .08);
  --shadow-raised: 0 8px 24px rgba(15, 35, 66, .12);
}

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

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

body {
  margin: 0;
  font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-900);
  background: var(--color-white);
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

h1 { font-size: 40px; line-height: 1.2; font-weight: 700; margin: 0 0 16px; }
h2 { font-size: 32px; line-height: 1.25; font-weight: 700; margin: 0 0 16px; }
h3 { font-size: 24px; line-height: 1.3; font-weight: 600; margin: 0 0 12px; }
h4 { font-size: 20px; line-height: 1.35; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-link-500); text-decoration: none; }
a:hover { color: var(--color-link-600); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-link-400);
  outline-offset: 2px;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--color-navy-800);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: top 150ms ease-out;
}
.skip-link:focus { top: 8px; color: var(--color-white); }

/* ---------- Overline · 섹션 헤드 ---------- */
.overline {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-link-600);
  margin: 0 0 12px;
}
.overline::before {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-gold-500);
  margin-bottom: 12px;
}
.section-head .lead { color: var(--color-text-700); }
.lead { font-size: 18px; line-height: 1.6; }

/* ---------- 헤더 ---------- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line-200);
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-link-500);
  white-space: nowrap;
  padding: 12px 0;
}
.logo span { color: var(--color-link-500); }
.logo:hover { color: var(--color-link-500); }
.site-nav { margin-left: auto; }
.gnb { display: flex; gap: 32px; }
.gnb a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-900);
  white-space: nowrap;
  line-height: 1.0;
}
.gnb a:hover { color: var(--color-link-500); }
.gnb a[aria-current="page"] { color: var(--color-link-500); font-weight: 600; }
.nav-toggle { display: none; }
.header-cta { flex-shrink: 0; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.0;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
.btn-primary { background: var(--color-link-500); color: var(--color-white); }
.btn-primary:hover { background: var(--color-link-600); color: var(--color-white); }
.btn-dark { background: var(--color-navy-800); color: var(--color-white); }
.btn-dark:hover { background: var(--color-navy-700); color: var(--color-white); }
.btn-secondary {
  background: transparent;
  border-color: var(--color-line-300);
  color: var(--color-text-900);
}
.btn-secondary:hover { border-color: var(--color-link-500); color: var(--color-link-500); }
.btn-sm { height: 40px; padding: 0 24px; }

/* ---------- 히어로 ---------- */
.hero { position: relative; background: var(--color-navy-800); color: var(--color-white); }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 26, 51, 0.55);
}
.hero-content { position: relative; padding-top: 96px; padding-bottom: 96px; }
.hero .overline { color: var(--color-link-300); }
.hero h1 { font-size: 48px; line-height: 1.15; max-width: 840px; }
.hero--page h1 { font-size: 40px; line-height: 1.2; }
.hero--page .hero-content { padding-top: 64px; padding-bottom: 64px; }
.hero .lead { color: var(--color-white); max-width: 720px; font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- 섹션 ---------- */
.section { padding-top: 96px; padding-bottom: 96px; }
.section--alt { background: var(--color-bg-50); }
.section-head { margin-bottom: 48px; max-width: 800px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--color-text-700); }

/* ---------- 그리드 · 카드 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--color-white);
  border: 1px solid var(--color-line-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.card h3 { font-size: 20px; line-height: 1.35; }
.card p { font-size: 14px; line-height: 1.6; color: var(--color-text-700); }
.card .card-link { font-size: 14px; font-weight: 600; }
.card .overline { margin-bottom: 8px; }

/* ---------- 수치 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat {
  background: var(--color-white);
  border: 1px solid var(--color-line-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.stat-value {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-gold-500);
  letter-spacing: -0.02em;
}
.stat-label { font-size: 14px; line-height: 1.6; color: var(--color-text-700); margin-top: 8px; }

/* ---------- 단계 (서치 프로세스 등) ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-line-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--color-link-500);
}
.steps h3 { font-size: 20px; margin-bottom: 4px; }
.steps p { font-size: 14px; color: var(--color-text-700); margin-bottom: 0; }

/* ---------- 인물 ---------- */
.person {
  background: var(--color-white);
  border: 1px solid var(--color-line-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.person-name { font-size: 24px; line-height: 1.3; font-weight: 700; margin: 0 0 4px; }
.person-role { font-size: 14px; line-height: 1.6; font-weight: 600; color: var(--color-link-600); margin: 0 0 16px; }
.person h4 { font-size: 16px; margin-top: 24px; }
.person ul { margin: 0; }
.person ul li {
  list-style: none;
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-700);
  margin-bottom: 8px;
}
.person ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-link-400);
  border-radius: 50%;
}

/* ---------- 섹터 · 서비스 목록 ---------- */
.sector-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sector {
  background: var(--color-white);
  border: 1px solid var(--color-line-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.sector h3 { font-size: 20px; }
.sector p { font-size: 14px; color: var(--color-text-700); margin-bottom: 0; }

/* ---------- 강조 박스 · 안내 ---------- */
.note-box {
  background: var(--color-link-50);
  border: 1px solid var(--color-line-200);
  border-radius: var(--radius-md);
  padding: 24px;
}
.note-box h3 { font-size: 20px; }
.note-box p { font-size: 14px; color: var(--color-text-700); }
.note-box p:last-child { margin-bottom: 0; }
.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.inline-cta p { margin: 0; font-size: 18px; line-height: 1.6; font-weight: 600; }

/* ---------- 최종 CTA ---------- */
.cta-band {
  background: var(--color-navy-800);
  color: var(--color-white);
  text-align: center;
  padding-top: 96px;
  padding-bottom: 96px;
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: var(--color-white); max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-band .btn { margin-top: 16px; }

/* ---------- 이미지 블록 ---------- */
.figure-block { border-radius: var(--radius-lg); overflow: hidden; }
.figure-block img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col .figure-block img { aspect-ratio: 4 / 3; }

/* ---------- 폼 ---------- */
.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-line-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.form-card h2 { font-size: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field label .required { color: var(--color-error); }
.field input,
.field select,
.field textarea {
  height: 48px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--color-text-900);
  background: var(--color-white);
  border: 1px solid var(--color-line-300);
  border-radius: var(--radius-sm);
}
.field textarea { height: auto; min-height: 160px; padding: 12px 16px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--color-link-500); outline: none; }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--color-error); }
.field .field-error { display: none; font-size: 14px; color: var(--color-error); margin-top: 8px; }
.field .field-error.is-visible { display: block; }
.field .field-hint { font-size: 14px; color: var(--color-text-500); margin-top: 8px; }
.check-field { flex-direction: row; align-items: flex-start; gap: 12px; }
.check-field input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--color-link-500); }
.check-field label { font-weight: 400; font-size: 14px; line-height: 1.6; margin-bottom: 0; }
.form-actions { margin-top: 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form-result { font-size: 14px; line-height: 1.6; margin-top: 16px; }
.form-result.is-success { color: var(--color-success); }
.form-result.is-error { color: var(--color-error); }
.turnstile-slot { margin-top: 24px; }

/* ---------- 법적 페이지 ---------- */
.legal-doc h2 { font-size: 24px; margin-top: 48px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 18px; margin-top: 32px; }
.legal-doc p, .legal-doc li { font-size: 14px; line-height: 1.6; color: var(--color-text-700); }
.legal-doc ol { padding-left: 20px; }
.legal-doc ol li { list-style: decimal; margin-bottom: 8px; }
.legal-doc ul { padding-left: 0; }
.legal-doc ul li {
  list-style: none;
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}
.legal-doc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--color-link-400);
  border-radius: 50%;
}

/* ---------- 푸터 ---------- */
.site-footer { background: var(--color-navy-900); color: var(--color-white); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-logo { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--color-link-300); white-space: nowrap; }
.footer-logo span { color: var(--color-link-300); }
.footer-tagline { font-size: 14px; line-height: 1.6; color: var(--color-line-300); margin-top: 16px; }
.footer-heading { font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--color-white); margin: 0 0 16px; }
.footer-nav a, .footer-contact a { display: block; font-size: 14px; line-height: 1.6; color: var(--color-line-300); padding: 4px 0; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--color-link-300); }
.footer-contact p { font-size: 14px; line-height: 1.6; color: var(--color-line-300); margin: 0 0 8px; }
.footer-social { font-size: 14px; line-height: 1.6; color: var(--color-line-300); }
.footer-bottom {
  border-top: 1px solid var(--color-navy-600);
  padding-top: 24px;
  padding-bottom: 24px;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; line-height: 1.5; color: var(--color-line-300); margin: 0; }
.footer-bottom a { color: var(--color-line-300); }
.footer-bottom a:hover { color: var(--color-link-300); }

/* ---------- 반응형 ---------- */
@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 767px) {
  .container { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
  .lead { font-size: 17px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .section-head { margin-bottom: 32px; }
  .site-header { height: 60px; }
  .header-inner { height: 60px; padding-left: 20px; padding-right: 20px; gap: 16px; }
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid var(--color-line-300);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-900);
    cursor: pointer;
  }
  .site-nav { margin-left: auto; position: relative; }
  .gnb {
    display: none;
    position: absolute;
    top: 56px;
    right: 0;
    min-width: 240px;
    flex-direction: column;
    gap: 0;
    background: var(--color-white);
    border: 1px solid var(--color-line-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised);
    padding: 8px;
  }
  .site-nav.is-open .gnb { display: flex; }
  .gnb a { padding: 12px 16px; }
  .hero h1 { font-size: 32px; }
  .hero--page h1 { font-size: 30px; }
  .hero-content { padding-top: 64px; padding-bottom: 64px; }
  .hero--page .hero-content { padding-top: 48px; padding-bottom: 48px; }
  .grid-2, .grid-3, .grid-4, .sector-list, .stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .card, .stat, .person, .sector, .form-card, .note-box { padding: 20px; }
  .steps li { grid-template-columns: 32px 1fr; padding: 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .cta-band { padding-top: 48px; padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
