/* 시안 04 — 밝음 · 2열 피드 · 링크 카드
   섹션 순서를 바꿔 "자리와 비용"을 히어로 바로 다음에 둡니다.
   돈 이야기를 뒤로 미루지 않는 것이 이 시안의 성격입니다. */

/* 제목 글꼴은 layouts.css 의 --font-heading 이 정합니다. */

.hero__title,
.h2,
.card__title,
.money__num-title {
  font-family: var(--font-heading);
}

/* ── 공통 ─────────────────────────────────── */
.eyebrow {
  line-height: normal;
  font-weight: 700;
  color: var(--primary-dk);
  margin-bottom: 6px;
}

/* ── 1 헤더 ─────────────────────────────────── */
.hd {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hd__in {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 12px;
}

.hd__logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  line-height: normal;
  white-space: nowrap;
}

.hd__call { text-align: right; }

.hd__tel {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dk);
  font-variant-numeric: tabular-nums;
  line-height: normal;
}

.hd__hours { line-height: normal; }

.hd__btns { display: flex; gap: 8px; }
.hd__btns .btn { padding: 10px 18px; font-size: var(--fs-sm); }

@media (max-width: 768px) {
  .hd { position: static; }
}

/* ── 2 히어로 ───────────────────────────────── */
.hero { padding-block: 44px; }

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero__title {
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  letter-spacing: -0.02em;
}

.hero__lead { margin-top: 12px; color: var(--muted); }

.hero__btns { display: flex; gap: 10px; margin-top: 22px; }

@media (max-width: 1040px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

@media (max-width: 768px) {
  .hero__btns { flex-direction: column; }
}

/* ── 3 지금 상황 + 비용 ─────────────────────
   큰 숫자 세 개 바로 아래에 등급별 표를 붙입니다. */
.money__head { max-width: 900px; margin-bottom: 18px; }

.money__lead { margin-top: 10px; color: var(--muted); }

.now__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px var(--sp-card);
  text-align: center;
}

/* 대기 인원만 강조색으로 세웁니다 — 가장 먼저 궁금해하시는 숫자입니다. */
.now__item--wait { border-color: var(--accent); background: var(--accent-lt); }

.now__num {
  font-size: 48px;
  font-weight: 700;
  line-height: normal;
  color: var(--primary-dk);
  font-variant-numeric: tabular-nums;
}

.now__item--wait .now__num { color: var(--accent); }

.now__label {
  font-weight: 700;
  color: var(--heading);
  line-height: normal;
  margin-top: 2px;
}

.now__note { margin-top: 12px; line-height: normal; }

.cost {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.cost .table th:first-child,
.cost .table td:first-child { padding-inline-start: 20px; }

.cost .table th:last-child,
.cost .table td:last-child { padding-inline-end: 20px; }

.cost .table tbody tr:last-child th,
.cost .table tbody tr:last-child td { border-bottom: 0; }

.cost__sum {
  background: var(--table-sum);
  font-weight: 700;
  color: var(--primary-dk);
}

.cost__notes { margin-top: 10px; line-height: 1.7; }

/* ── 4 인사말 ───────────────────────────────── */
.greet { align-items: start; }

.greet__head .h2 { letter-spacing: -0.02em; }

.greet__sign { margin-top: 12px; line-height: normal; }

/* ── 섹션 머리 ──────────────────────────────── */
.sec__head { margin-bottom: 16px; }

/* ── 5 우리 센터 ────────────────────────────── */
.about { align-items: start; }

.lead-person {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.lead-person__photo { flex: 0 0 96px; }

.lead-person__name {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--heading);
  line-height: normal;
}

.lead-person__role { font-weight: 400; }
.lead-person__career { margin-top: 6px; line-height: 1.7; }

.about__note { margin-top: 10px; line-height: normal; }

/* ── 6 인력 배치 ────────────────────────────── */
.staff__law { line-height: normal; margin-top: 6px; }

.staff__ours {
  font-size: 34px;
  font-weight: 700;
  line-height: normal;
  color: var(--primary-dk);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.staff__tag {
  display: inline-block;
  vertical-align: middle;
  margin-inline-start: 8px;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--primary-lt);
  color: var(--primary-dk);
  font-weight: 700;
  line-height: normal;
}

.staff__note {
  line-height: 1.55;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.faces {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
  max-width: 500px;
  margin-top: 16px;
}

.staff__tenure {
  line-height: normal;
  margin-top: 14px;
  font-weight: 700;
  color: var(--heading);
}

@media (max-width: 768px) {
  .faces { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 300px; }
}

/* ── 7 하루 일과 ────────────────────────────
   2열 피드 문법에 맞춰 오전과 오후를 좌우로 나눕니다. */
.day .timeline__row { padding-block: 9px; }
.day .timeline__row:last-child { border-bottom: 0; }

/* ── 8 자주 묻는 걱정 ───────────────────────
   앞뒤 섹션과 다른 배경. 접지 않고 전부 펼쳐 둡니다. */
.worry { background: var(--accent-lt); }

/* ── 9 상담 절차 ────────────────────────────── */
.steps { align-items: start; }

.steps__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.steps__list > .steps__item:first-child { padding-top: 0; }
.steps__list > .steps__item:last-child { border-bottom: 0; padding-bottom: 0; }

.steps__no {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 30px;
  text-align: center;
}

.steps__desc { line-height: 1.55; margin-top: 4px; }

.papers { background: var(--primary-lt); border-color: transparent; }

.papers__list {
  margin-top: 8px;
  line-height: 1.8;
  color: var(--text);
}

.papers__list li { padding-inline-start: 14px; position: relative; }
.papers__list li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--primary-dk);
}

/* ── 10 유틸 4블록 ──────────────────────────
   이 시안에서 가장 눈에 띄는 자리입니다. 섹션째 짙게 깔고
   카드 전체를 누를 수 있게 만듭니다. */
.util__head .eyebrow { color: rgba(255, 255, 255, 0.72); }

.util__item {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 18px;
}

.util__item:hover { background: var(--accent-lt); }

.util__desc {
  line-height: 1.55;
  margin-top: 6px;
  color: var(--muted);
}

.util__go {
  margin-top: auto;
  padding-top: 12px;
  color: var(--primary-dk);
  font-weight: 700;
  line-height: normal;
}

/* ── 11 문의 ────────────────────────────────── */
.contact { align-items: start; }

.contact__tel {
  font-size: 42px;
  font-weight: 700;
  line-height: normal;
  color: var(--primary-dk);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.contact__hours { line-height: normal; margin-top: 6px; }
.contact__addr { line-height: normal; margin-top: 4px; }
.contact__btn { margin-top: 16px; }

.field { display: block; margin-top: 10px; }

.field__label {
  display: block;
  line-height: normal;
  color: var(--muted);
  margin-bottom: 4px;
}

.field__input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  line-height: normal;
}

.field__area { resize: vertical; }

.contact__submit { width: 100%; margin-top: 14px; }

/* ── 12 푸터 ────────────────────────────────── */
.ft {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.78);
  padding-block: 32px;
}

.ft__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.ft__logo {
  font-size: 17px;
  font-weight: 700;
  line-height: normal;
  color: #FFFFFF;
  font-family: var(--font-heading);
}

.ft__map {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-inline-start: auto;
  line-height: normal;
}

.ft__addr { margin-top: 14px; line-height: normal; }

.ft__legal {
  margin-top: 10px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
}

/* ═══ 테마 04 — 서체 · 사진 자리 · 대비 ════════════════════
   구조 수치(컨테이너 1320 / 제목 36 / 히어로 44 / 섹션 80)는
   tokens.css 의 .theme-04 에 있습니다. */

/* 제목은 layouts.css 가 정한 --font-heading(Sunflower)을 씁니다. */
.hero__title,
.h2,
.card__title,
.worry__q {
  font-family: var(--font-heading);
}

/* 숫자는 전부 Pretendard */
.hd__tel,
.now__num,
.staff__ours,
.contact__tel,
.timeline__time,
.table,
.num,
.cost__sum,
.steps__no {
  font-family: var(--font-body);
}

/* 사진 자리 — 채워 넣을 자리라는 것이 보이도록 점선으로 둡니다. */
.photo-slot,
.photo-slot--round {
  border-radius: 12px;
  background: var(--primary-lt);
  border: 2px dashed var(--primary);
  color: var(--primary-dk);
}

/* 대비 — 버튼과 링크는 진한 녹색(--primary-dk #347347)만 씁니다. */
.btn--primary { background: var(--primary-dk); }
.btn--accent { background: var(--accent-dk); }
.util__go { color: var(--primary-dk); }
.steps__no { background: var(--primary-dk); }
.now__item--wait .now__num { color: var(--accent-dk); }
.now__item--wait { border-color: var(--accent-dk); }

/* ── 인력 배치 카드를 2×2 로 ─────────────────────────
   한 줄에 넷을 늘어놓으면 칸이 좁아 법정 기준과 우리 센터가
   위아래로 눌립니다. 두 줄로 나눠 넓힌 뒤 좌우로 나란히 둡니다. */
.staff {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-2);
}

.staff__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "title title"
    "law   ours"
    "note  note";
  align-items: center;
  gap: 4px 24px;
  padding: 32px;
  text-align: left;
}

.staff__card .card__title { grid-area: title; }
.staff__law  { grid-area: law; margin-top: 0; }
.staff__ours { grid-area: ours; margin-top: 0; text-align: right; }
.staff__note { grid-area: note; margin-top: 10px; }

@media (max-width: 768px) {
  .staff { grid-template-columns: minmax(0, 1fr); }
  .staff__card { padding: 22px; }
}
