/* 법무사사무소 위로 — 개인회생 · 파산 안내
   색은 세 가지(남색 · 흰색 · 금색)만 쓴다. */
:root {
  --navy: #0F2A4A;
  --navy-deep: #0A1E36;
  --gold: #C9A961;
  --gold-text: #8A6D2B;   /* 흰 바탕 위 글자용(대비 AA) */
  --ivory: #F7F4EE;
  --white: #FFFFFF;
  --text: #1F2933;
  --text-sub: #5B6673;
  --line: #E3DED3;
  --radius: 12px;
  --wrap: 1120px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding-bottom: 64px; /* 모바일 하단 연락 막대 자리 */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
h1, h2, h3 { line-height: 1.35; color: var(--navy); }
h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 800; margin: 0 0 16px; }
h2 { font-size: clamp(23px, 3.4vw, 30px); font-weight: 700; margin: 0 0 20px; }
h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; margin: 0 0 16px; }
li { margin-bottom: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* 입력 대기 자리 표시 — 공개 전에 모두 채운다 */
.todo { background: #FFF3C4; color: #6B4E00; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #b8964d; }
.btn-kakao { background: #FEE500; color: #191919; }
.btn-kakao:hover { background: #F2D900; }
.btn-line { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-white { border-color: #fff; color: #fff; background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 머리글 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { font-size: 20px; font-weight: 800; color: var(--navy); text-decoration: none; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.logo span { font-size: 13px; font-weight: 600; color: var(--gold-text); letter-spacing: .04em; }

.nav-toggle { width: 48px; height: 48px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after {
  position: absolute; left: 12px; width: 24px; height: 2px; background: var(--navy); content: "";
}
.nav-toggle .bar { top: 23px; }
.nav-toggle .bar::before { left: 0; top: -7px; }
.nav-toggle .bar::after { left: 0; top: 7px; }

.gnb { display: none; }
.gnb ul { list-style: none; margin: 0; padding: 0; }
.gnb a { text-decoration: none; color: var(--text); font-weight: 600; }
.gnb.open {
  display: block; position: absolute; left: 0; right: 0; top: var(--header-h);
  background: #fff; border-bottom: 1px solid var(--line);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 8px 16px 20px;
}
.gnb.open > ul > li { border-bottom: 1px solid var(--line); }
.gnb.open > ul > li > a { display: block; padding: 14px 0; font-size: 18px; color: var(--navy); }
.gnb.open li ul { padding: 0 0 12px 12px; }
.gnb.open li ul a { display: block; padding: 6px 0; color: var(--text-sub); font-weight: 500; }
.gnb-cta { display: flex; gap: 8px; margin-top: 16px; }
.gnb-cta .btn { flex: 1; }

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .gnb { display: flex; align-items: center; gap: 20px; }
  .gnb > ul { display: flex; gap: 2px; }
  .gnb > ul > li { position: relative; }
  .gnb > ul > li > a { display: block; padding: 22px 9px; font-size: 15px; white-space: nowrap; }
  .gnb > ul > li > a:hover, .gnb > ul > li > a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); }
  .gnb li ul {
    display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
    background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
    padding: 8px 0; box-shadow: 0 8px 24px rgba(15, 42, 74, .08);
  }
  .gnb li:hover > ul, .gnb li:focus-within > ul { display: block; }
  .gnb li ul a { display: block; padding: 8px 18px; font-size: 15px; font-weight: 500; }
  .gnb li ul a:hover { background: var(--ivory); }
  .gnb-cta { margin: 0; }
  .gnb-cta .btn { min-height: 42px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1479px) {
  .gnb-cta .btn-line { display: none; }
}

/* ---------- 홈 첫 화면 ---------- */
.hero {
  position: relative; color: #fff; background: var(--navy);
  padding: 72px 0 64px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.hero .wrap { position: relative; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 19px; max-width: 34em; color: #E8EDF3; margin-bottom: 28px; }
.hero .eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .06em; margin-bottom: 10px; }
.hero .btn-row .btn { min-width: 160px; }
@media (min-width: 768px) { .hero { padding: 120px 0 110px; } }

/* ---------- 구역 ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--ivory); }
.section-head { margin-bottom: 28px; }
.section-head p { color: var(--text-sub); }
.kicker { display: block; color: var(--gold-text); font-size: 14px; font-weight: 700; letter-spacing: .08em; margin-bottom: 6px; }

.cards { display: grid; gap: 16px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column;
}
.card h3 { margin-top: 0; }
.card p { color: var(--text-sub); flex: 1; }
.card .more { font-weight: 700; text-decoration: none; }
.card .more::after { content: " →"; }

/* 단계 그림 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 18px 64px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
}
.steps strong { display: block; color: var(--navy); }
.steps span { color: var(--text-sub); font-size: 15.5px; }
.steps .optional::before { background: #fff; color: var(--navy); border: 2px dashed var(--navy); }
@media (min-width: 900px) {
  .steps.row { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .steps.row li { padding: 64px 16px 18px; }
}

/* 서브 페이지 머리 */
.page-head { background: var(--navy); color: #fff; padding: 48px 0 40px; }
.page-head h1 { color: #fff; margin-bottom: 8px; }
.page-head p { color: #DCE3EC; margin: 0; max-width: 40em; }
.crumb { font-size: 14px; color: #B9C4D2; margin-bottom: 10px; }
.crumb a { color: #B9C4D2; }

.subnav { background: var(--ivory); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; }
.subnav li { margin: 0; flex: none; }
.subnav a { display: block; padding: 14px 14px; text-decoration: none; font-weight: 600; font-size: 15.5px; color: var(--text-sub); }
.subnav a:hover { color: var(--navy); }

.prose { max-width: 820px; }
.prose section + section { margin-top: 56px; }

.box { border-radius: var(--radius); padding: 20px 22px; margin: 20px 0; }
.box-summary { background: var(--ivory); border-left: 4px solid var(--gold); }
.box-note { background: #F3F6FA; border-left: 4px solid var(--navy); }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }

.source { font-size: 14px; color: var(--text-sub); }
.source a { color: var(--text-sub); }

/* 표 */
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--navy); color: #fff; font-weight: 700; }
tbody th { background: var(--ivory); color: var(--navy); width: 22%; font-weight: 700; white-space: nowrap; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg);
}

/* 자주 묻는 질문 */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-size: 24px; color: var(--gold-text); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 18px; color: var(--text); }

/* 상담 띠 */
.cta-band { background: var(--navy); color: #fff; padding: 48px 0; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #DCE3EC; }

/* 양식 */
.form { display: grid; gap: 20px; max-width: 640px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.field .req { color: #A33A2B; font-weight: 700; }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px;
  border: 1px solid #C9C3B6; border-radius: 10px; background: #fff; color: var(--text);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: 14px; color: var(--text-sub); margin-top: 4px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; color: var(--text);
  border: 1px solid #C9C3B6; border-radius: 999px; padding: 10px 16px; cursor: pointer;
}
.radios input { accent-color: var(--navy); width: 18px; height: 18px; }
.consent { background: var(--ivory); border-radius: var(--radius); padding: 18px 20px; }
.consent table { min-width: 0; font-size: 14.5px; background: #fff; }
.consent .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; margin-top: 12px; }
.consent .check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.form-msg.ok { background: #E8F3EC; color: #1E5B34; }
.form-msg.err { background: #FBECEA; color: #8A2A1E; }

/* 자가 점검 */
.quiz { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.quiz legend { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.quiz-result { margin-top: 8px; }
.quiz-result[hidden] { display: none; }

/* 바닥글 */
.site-footer { background: var(--navy-deep); color: #B9C4D2; font-size: 14.5px; padding: 40px 0 32px; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: #E2E8F0; text-decoration: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 16px !important; }
.foot-note { margin-top: 12px !important; color: #95A3B5; }
.copy { margin-top: 16px !important; color: #7E8DA1; }

/* 모바일 하단 연락 막대 */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 64px;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(15, 42, 74, .06);
}
.quickbar a { display: grid; place-items: center; font-weight: 700; text-decoration: none; color: var(--navy); }
.quickbar a.primary { background: var(--navy); color: #fff; }
.quickbar a.kakao { background: #FEE500; color: #191919; }
@media (min-width: 900px) { .quickbar { display: none; } }

.map-box { aspect-ratio: 16 / 9; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; color: var(--text-sub); text-align: center; padding: 16px; }
