/* ==========================================================================
   SIC 서울통역센터 — 공용 스타일
   The Matrix Group 재구현본의 토큰·컴포넌트를 그대로 계승했습니다.
   페이지가 여러 장이 되면서 인라인 <style>을 이 파일로 뺐습니다.
   외부 의존성은 여전히 0 (로컬 파일만 참조).
   ========================================================================== */

/* ============ 웹폰트 (자체 호스팅) ============ */
@font-face {
  font-family: "YES24 Gothic";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/yes24gothic-400.woff2") format("woff2");
}
@font-face {
  font-family: "YES24 Gothic";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/yes24gothic-500.woff2") format("woff2");
}
@font-face {
  font-family: "YES24 Gothic";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/yes24gothic-700.woff2") format("woff2");
}
@font-face {
  font-family: "YES24 Gothic";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/yes24gothic-800.woff2") format("woff2");
}

/* ============ 토큰 (원본 사이트 실측값) ============ */
:root {
  --bg:          #f8f8f9;
  --surface:     #eaedf0;
  --surface-brd: #c4c4c3;
  --divider:     #e1e5e6;
  --radius:      6px;

  --text:    #333333;
  --heading: #30383a;
  --label:   #454f51;
  --link:    #223b66;

  /* 밝은 톤을 주 브랜드 색으로 사용 — 헤더·버튼·활성 상태 등 '면'에 쓴다.
     흰 글씨 대비 4.82:1 (AA 통과). */
  --brand:      #1079ac;
  --brand-deep: #004376;
  --footer-bg:  #1079ac;

  /* 밝은 배경 위 강조 '글씨'용. --brand를 그대로 쓰면 #f8f8f9 위에서
     4.48:1로 AA에 미달하므로 진한 톤을 따로 둔다 (6.28:1). */
  --brand-ink:  #006195;

  /* 유동 여백: 320px→16px, 375px→17px, 430px→19px, 최대 24px */
  --gutter: clamp(16px, 4.5vw, 24px);

  --section-gap: clamp(28px, 8vw, 44px);
  --card-pad:    clamp(16px, 5vw, 24px);
}

/* ============ 전역 리셋 ============ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "YES24 Gothic", Arial, Helvetica, sans-serif;
  font-size: 16px;            /* 본문 16px 미만 금지 */
  line-height: 1.55;
  word-break: keep-all;       /* 한글 단어 중간에서 끊기지 않게 */
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

p, li, dd, h1, h2, h3 { overflow-wrap: break-word; }

a { color: var(--link); }

/* 포커스는 항상 보이게 — outline:0 금지 */
:focus-visible {
  outline: 3px solid var(--brand-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============ 컨테이너 ============ */
.container {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right));
}
/* 카드가 여러 장 들어가는 페이지는 조금 넓게 */
.container.wide { max-width: 900px; }

/* ============ Skip link ============ */
.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 200;
  background: var(--brand-deep);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* ============ 헤더 ============ */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand);          /* 푸터와 같은 밝은 톤 */
  border-bottom: 3px solid var(--brand-deep);
  color: #fff;
}
header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding-block: 8px;
}
header .logo {
  min-width: 0;
  max-width: 78%;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

/* 워드마크 + 기존 뱃지 락업.
   모바일은 뱃지가 아래, 600px 이상에서는 오른쪽으로 간다. */
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}
@media (min-width: 600px) {
  .brand-lockup {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
}

.brand-mark {
  height: 30px;
  width: auto;
  max-width: 100%;
}
.brand-badge { flex: 0 0 auto; }
.brand-badge img {
  height: 20px;
  width: auto;
}
@media (min-width: 600px) {
  .brand-mark  { height: 38px; }
  /* 데스크톱 헤더에서는 뱃지를 빼고 워드마크만 쓴다.
     모바일 헤더(워드마크 아래)와 푸터에는 그대로 남는다.
     아래쪽 .sic-logo-3d{display:block}과 특이도가 같아 덮이므로 header를 붙인다. */
  header .brand-badge { display: none; }
}

/* ============ 로고 진입 모션 ============ */
/* 접속 시 1회, 세로축 기준 오른쪽으로 한 바퀴 + 오버슈트("또잉").
   앞뒷면 두 장을 겹쳐 양면으로 만든다. */
@keyframes sic-logo-spin {
  0%   { transform: rotateY(0deg); }
  55%  { transform: rotateY(382deg); }
  75%  { transform: rotateY(347deg); }
  89%  { transform: rotateY(367deg); }
  100% { transform: rotateY(360deg); }
}

.sic-logo-3d { perspective: 900px; display: block; }

.sic-logo-3d__inner {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  animation: sic-logo-spin 1400ms cubic-bezier(.34, 1.2, .5, 1) 250ms 1 both;
}

.sic-logo-3d__face { backface-visibility: hidden; }

.sic-logo-3d__face--back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}

.hamburger {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
}
.hamburger:hover { background: rgba(255,255,255,.22); }
.hamburger svg { width: 22px; height: 22px; }
.no-js .hamburger { display: none; }

/* ============ 주 내비게이션 ============ */
/* JS 없을 때 기본값: 일반 흐름에 세로로 펼쳐져 그대로 사용 가능 */
.primary-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--surface-brd);
}
.primary-nav ul {
  list-style: none;
  margin: 0; padding: 8px 0;
  display: flex; flex-direction: column;
}
.primary-nav li { padding-inline: max(var(--gutter), env(safe-area-inset-left)); }
.primary-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--link);
  border-radius: 7px;
  overflow-wrap: break-word;
}
.primary-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}
.primary-nav a:hover { background: var(--surface); }
.primary-nav a[aria-current="page"]:hover { background: var(--brand-deep); }

/* JS 모드: 오프캔버스 드로어 */
.js .primary-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(84vw, 320px);
  z-index: 160;
  border-bottom: 0;
  border-left: 1px solid var(--surface-brd);
  box-shadow: -8px 0 24px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
  padding-block: 8px;
  padding-inline-end: env(safe-area-inset-right);
}
.js .primary-nav.open { transform: translateX(0); }

.drawer-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px max(var(--gutter), 12px);
  min-height: 60px;
  border-bottom: 1px solid var(--divider);
}
.js .drawer-head { display: flex; }
.drawer-head .title { font-weight: bold; color: var(--heading); }
.drawer-close {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--surface-brd);
  border-radius: var(--radius); color: var(--heading); cursor: pointer;
}
.drawer-close svg { width: 20px; height: 20px; }

.drawer-cta {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px max(var(--gutter), 12px) 4px;
  border-top: 1px solid var(--divider);
  margin-top: 8px;
}
.js .drawer-cta { display: flex; }

.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 150;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.overlay.show { opacity: 1; visibility: visible; }

/* ============ 상단 3색 띠 ============ */
/* 높이 26px 고정 — 모바일·데스크톱 동일. 흰 seam 1px 헤어라인. */
.hero {
  width: 100%;
  height: 26px;
  display: flex;
  gap: 1px;
  background: #fff;
  overflow: hidden;
}
.hero .panel {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.hero .p1 { background: linear-gradient(160deg, #3b3f8f 0%, #23245f 100%); }
.hero .p2 { background: linear-gradient(160deg, #2f7d3a 0%, #1c5226 100%); }
.hero .p3 { background: linear-gradient(160deg, #1a7aa8 0%, #0a5478 100%); }
.hero .panel .cap {
  padding: 2px 6px;
  font-size: clamp(9px, 2.4vw, 13px);
  line-height: 1.1;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
  overflow-wrap: break-word;
}

/* ============ 섹션 ============ */
main { display: block; }
section { padding-block: var(--section-gap); }
section + section { padding-top: 0; }

h1 {
  font-size: clamp(24px, 6.8vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--heading);
  margin: 0 0 .5em;
}
h2 {
  font-size: clamp(19px, 5.2vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--heading);
  margin: 0 0 .6em;
}
h3 {
  font-size: 17px;
  font-weight: bold;
  color: var(--label);
  margin: 0 0 .4em;
}
p { margin: 0 0 1em; }
.lead { margin-bottom: 1em; }

/* 시설/현장 이미지 블록 */
.facility {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.1em;
}
.facility img { width: 100%; }

/* ============ CTA 버튼 ============ */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.2em;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: break-word;   /* 긴 라벨은 줄바꿈. nowrap 금지 */
  line-height: 1.25;
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--brand);
}
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-secondary {
  background: #fff;
  color: var(--brand-deep);
  border: 2px solid var(--brand);
}
.btn-secondary:hover { background: var(--surface); }

@media (min-width: 600px) {
  .cta-group { flex-direction: row; }
  .cta-group .btn { flex: 1 1 0; }
}

/* ============ 카드 ============ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  border-radius: var(--radius);
  padding: var(--card-pad);
}
.card .svc-name {
  font-size: 16px;
  font-weight: bold;
  color: var(--link);
  margin: 0 0 .4em;
}
.card p { margin: 0; }
.card p + .tags { margin-top: .7em; }

/* 카드 안 태그 */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  border: 1px solid var(--surface-brd);
  background: var(--bg);
  border-radius: 7px;
  padding: 2px 8px;
  font-size: 14px;
  color: var(--label);
}

/* 카드 안 단계 표기 */
.step-no {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: var(--brand-ink);
  margin-bottom: .2em;
}
.card .step-icon { width: 56px; height: 56px; margin: 0 auto .6em; }

/* ============ 지표 ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}
@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
}
.stat dt { font-size: 14px; font-weight: bold; color: var(--brand-ink); }
.stat dd {
  margin: 4px 0 2px;
  font-size: 24px; font-weight: bold;
  letter-spacing: -0.5px;
  color: var(--heading);
}
.stat p { margin: 0; font-size: 14px; }

/* ============ 배지 ============ */
.badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: stretch;
}
@media (min-width: 600px) {
  .badges { grid-template-columns: repeat(4, 1fr); }
}
.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--label);
  text-align: center;
  font-size: 13px;
  line-height: 1.25;
}
.badge:hover { background: #fff; }
.badge .ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--brand-ink);
}
.badge .ico svg { width: 100%; height: 100%; }

/* ============ 고객사 로고 ============ */
.logo-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--surface-brd);
  border: 1px solid var(--surface-brd);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 480px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .logo-grid { grid-template-columns: repeat(5, 1fr); } }
.logo-grid li {
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  padding: 14px 10px;
  min-height: 64px;
}
.logo-grid img { height: 26px; width: auto; max-width: 100%; object-fit: contain; }

/* ============ 통역사 일러스트 ============ */
.people { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 1em; }
.people .faces { display: flex; gap: 6px; flex: 0 0 auto; }
.people img {
  width: 52px; height: 52px;
  border: 1px solid var(--surface-brd);
  border-radius: var(--radius);
  background: var(--surface);
}
.people p { margin: 0; font-size: 15px; }

/* ============ FAQ ============ */
.faq { border: 1px solid var(--surface-brd); border-radius: var(--radius); background: var(--surface); }
.faq details { border-bottom: 1px dashed var(--divider); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px;
  padding: 10px var(--card-pad);
  font-size: 16px; font-weight: bold;
  color: var(--label);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--brand-ink); flex: 0 0 auto; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--brand-ink); }
.faq .answer { padding: 0 var(--card-pad) 14px; }
.faq .answer p { margin: 0; }

/* ============ 글(블로그) ============ */
.article-meta { font-size: 15px; color: var(--label); margin: 0 0 1em; }
.article-body h2 { margin-top: 1.6em; }
.article-body ul { margin: 0 0 1em; padding-left: 1.1em; }
.article-body li { margin-bottom: .4em; }
.article-body blockquote {
  margin: 1.4em 0;
  padding: var(--card-pad);
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  border-radius: var(--radius);
  font-weight: bold;
  color: var(--label);
}
.article-body blockquote p { margin: 0; }
.excerpt {
  margin: 0 0 1.4em;
  padding-left: 12px;
  border-left: 3px solid var(--brand-ink);
  color: var(--label);
}

/* 글 목록 */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 600px) { .post-list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.post-list .cat { display: block; font-size: 14px; font-weight: bold; color: var(--brand-ink); margin-bottom: .2em; }
.post-list h3 { margin-bottom: .4em; }
.post-list h3 a { color: var(--link); text-decoration: underline; }
.post-list h3 a:hover { color: var(--brand-ink); }
.post-list time { font-size: 14px; color: var(--label); }

/* 강조 박스 (반전면) */
.cta-panel {
  background: var(--brand-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--card-pad);
  text-align: center;
}
.cta-panel h2 { color: #fff; }
.cta-panel p { color: #fff; opacity: .92; }
.cta-panel .btn-secondary { background: #fff; }

/* ============ 푸터 ============ */
footer.site {
  background: var(--footer-bg);
  color: #fff;
  margin-top: var(--section-gap);
}
footer .container { padding-block: var(--section-gap); }
footer h2 { color: #fff; }
footer .f-logo { height: 34px; width: auto; margin-bottom: 12px; }
footer nav ul {
  list-style: none; margin: 0 0 1.2em; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 2px;
}
@media (min-width: 600px) {
  footer nav ul { grid-template-columns: 1fr 1fr; }
}
footer nav a {
  display: flex; align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.28);
}
footer nav a:hover { text-decoration: underline; }
footer .contact { font-size: 15px; line-height: 1.6; }
footer .contact a { color: #fff; }
footer .copyright {
  margin-top: 1.2em;
  font-size: 14px;
  color: #fff;
  opacity: .92;
}

/* ============ 모션 축소 ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ============ 태블릿 2컬럼 ============ */
@media (min-width: 768px) {
  .intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .intro-grid .facility { margin-bottom: 0; }
}
