/* 법무사 하은용 사무소 — 기본 스타일
   색·여백·글꼴 체계는 디자인 샘플(docs/design-reference/hansol-sample.html)을 따릅니다. */

:root {
  --navy: #102943;
  --navy-dark: #0b1d30;
  --navy-light: #173958;
  --footer: #081827;

  --text: #162231;
  --text-light: #6e7782;
  --text-muted: #9aa1a8;

  --line: #e5e9ed;
  --soft: #f6f8fa;
  --band: #f4f6f8;
  --white: #ffffff;

  --ok: #2f7d5b;
  --warn: #b2572a;

  --max-width: 1280px;
  --header-h: 76px;
  --bottom-bar-h: 0px;

  --serif: "Noto Serif KR", serif;
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  word-break: keep-all;          /* 한글 음절 단위 줄바꿈 방지 */
  overflow-wrap: anywhere;
  padding-bottom: var(--bottom-bar-h);
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--navy-light); outline-offset: 3px; }
.on-dark :focus-visible, .hero :focus-visible, .cases :focus-visible, footer :focus-visible { outline-color: #fff; }

.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: min(calc(100% - 48px), var(--max-width)); margin: 0 auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--navy); color: #fff; padding: 10px 16px; font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* ========== 사진 자리 (촬영 후 교체) ========== */
.photo-slot {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(16, 41, 67, 0.04) 0 12px, rgba(16, 41, 67, 0.07) 12px 24px),
    #e9edf1;
  border: 1px dashed #b8c1ca;
  color: #6e7782;
  font-size: 13px;
  text-align: center;
}
.photo-slot::before { content: attr(data-label); padding: 0 16px; }

/* ========== 헤더 ========== */
.header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10, 30, 50, 0.06);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-emblem { width: 44px; height: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-main { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: 1px; color: var(--navy); }
.logo-sub { margin-top: 7px; font-size: 10px; letter-spacing: 2px; color: #7b838b; }

.nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 500; }
.nav a { position: relative; padding: 28px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 18px;
  width: 0; height: 1px; background: var(--navy); transition: width 0.25s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.consult-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--navy); color: #fff; border: 0;
  min-width: 112px; height: 42px; padding: 0 20px;
  font-size: 13px; font-weight: 500; transition: background 0.25s;
}
.consult-btn:hover { background: var(--navy-light); }

.mobile-menu-button {
  display: none; border: 0; background: transparent;
  width: 44px; height: 44px; color: var(--navy);
}
.mobile-menu-button svg { width: 26px; height: 26px; }

/* 모바일 메뉴 패널 */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 999;
  background: #fff; padding: 12px 0 40px;
  overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.mobile-nav.open { transform: none; opacity: 1; visibility: visible; }
.mobile-nav a {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 17px; font-weight: 500;
}
.mobile-nav .consult-btn { width: 100%; height: 52px; margin-top: 24px; font-size: 15px; border-bottom: 0; }
.mobile-nav .mobile-nav-tel { display: block; margin-top: 18px; text-align: center; color: var(--text-light); font-size: 14px; border: 0; }

/* ========== 히어로 ========== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex; align-items: center;
  background: var(--navy-dark);
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.02); transition: transform 7s ease-out; }
.hero-slide.is-active img { transform: scale(1.07); }
.hero-dots { display: flex; gap: 8px; margin-top: 30px; }
.hero-dots button { width: 28px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,0.4); transition: background 0.3s, width 0.3s; }
.hero-dots button[aria-current="true"] { width: 44px; background: #fff; }
.hero-dots button:hover { background: rgba(255,255,255,0.75); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,24,39,0.88) 0%, rgba(8,24,39,0.7) 42%, rgba(8,24,39,0.15) 78%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { color: #fff; max-width: 660px; }
.hero-eyebrow { margin-bottom: 22px; font-size: 13px; letter-spacing: 3px; opacity: 0.82; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 5vw, 64px); line-height: 1.35; letter-spacing: -1.5px;
}
.hero-description { margin-top: 28px; font-size: 17px; line-height: 1.9; color: rgba(255,255,255,0.88); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.hero-points li {
  font-size: 13px; padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.35); color: rgba(255,255,255,0.9);
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn-primary, .btn-outline {
  min-width: 170px; height: 52px; padding: 0 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; transition: 0.25s; border: 0;
}
.btn-primary { background: var(--navy); color: #fff; }
.hero .btn-primary { background: #fff; color: var(--navy); font-weight: 600; }
.hero .btn-primary:hover { background: #e8edf2; }
.btn-primary:hover { background: #183b5f; }
.btn-outline { border: 1px solid rgba(255,255,255,0.55); color: #fff; background: rgba(255,255,255,0.05); }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* ========== 실시간 상담 진행 현황 ========== */
.status-band { background: var(--navy); color: #fff; padding: 44px 0; }
.status-inner { display: grid; grid-template-columns: 300px 1fr; align-items: center; gap: 48px; }
.status-title { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.status-sub { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,0.7); }
.status-cta { margin-top: 20px; height: 42px; padding: 0 18px; border: 1px solid rgba(255,255,255,0.5); background: transparent; color: #fff; font-size: 13px; }
.status-cta:hover { background: #fff; color: var(--navy); }
.status-board { border-top: 1px solid rgba(255,255,255,0.25); }
.status-row-head { height: 40px; font-size: 12px; color: rgba(255,255,255,0.55); border-bottom: 1px solid rgba(255,255,255,0.15); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd49a; box-shadow: 0 0 0 0 rgba(95,212,154,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(95,212,154,0); } 100% { box-shadow: 0 0 0 0 rgba(95,212,154,0); } }
.status-window { position: relative; height: calc(var(--status-rows, 5) * 48px); overflow: hidden; }
.status-track { list-style: none; }
.status-row {
  height: 48px; display: grid; align-items: center;
  grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 12px; padding: 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px; color: rgba(255,255,255,0.9);
}
.status-row .cat { font-weight: 500; }
.status-row .date, .status-row .name { color: rgba(255,255,255,0.7); }
.status-badge {
  justify-self: start; font-size: 12px; padding: 2px 10px;
  border: 1px solid rgba(255,255,255,0.35); color: #fff;
}
.status-badge.received { border-color: #7fb0e6; color: #b9d6f5; }
.status-badge.consulted { border-color: #6cc497; color: #a9e3c4; }
.status-badge.visit { border-color: #c9a3ef; color: #e0c9f7; }
.status-badge.reserved { border-color: #e9cf8c; color: #f3e2b4; }
.status-badge.applied, .status-badge.approved { border-color: #e9cf8c; color: #f3e2b4; }
.status-empty { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 40px; }
.status-note { flex-shrink: 0; font-size: 12px; color: rgba(255,255,255,0.55); }

/* ========== 공통 섹션 ========== */
.section { padding: 90px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 38px; }
.section-eyebrow { font-size: 13px; letter-spacing: 1px; font-weight: 500; color: var(--text-light); margin-bottom: 10px; }
.section-title { font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1.4; }
.section-desc { margin-top: 10px; color: var(--text-light); font-size: 15px; }
.section-more { font-size: 13px; color: #5d6670; white-space: nowrap; }
.section-more:hover { color: var(--navy); }

/* ========== 업무 분야 ========== */
.practice-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.practice-item {
  display: block; min-height: 190px; padding: 30px 16px; text-align: center;
  border-right: 1px solid var(--line); transition: 0.25s;
}
.practice-item:last-child { border-right: none; }
.practice-item:hover { background: var(--soft); transform: translateY(-2px); }
.practice-icon { width: 36px; height: 36px; margin: 0 auto 16px; color: var(--navy); }
.practice-item h3 { font-family: var(--serif); font-weight: 600; font-size: 17px; }
.practice-item p { margin-top: 9px; font-size: 13px; color: var(--text-light); line-height: 1.7; }
.practice-item.featured h3::after {
  content: "주력"; display: inline-block; margin-left: 6px; vertical-align: 2px;
  font-family: var(--sans); font-size: 10px; font-weight: 500; padding: 1px 6px;
  background: var(--navy); color: #fff;
}

/* ========== 이런 분들 ========== */
.who { background: var(--soft); }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.who-item { background: #fff; border: 1px solid var(--line); padding: 28px 24px; }
.who-num { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.who-item ul { list-style: none; margin-top: 14px; }
.who-item li { font-size: 14px; line-height: 1.8; color: #3b4652; padding-left: 14px; position: relative; }
.who-item li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 5px; height: 1px; background: var(--navy); }

/* ========== 대표 소개 ========== */
.about { background: #f5f7f9; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
.about-copy h2 { margin-bottom: 25px; font-family: var(--serif); font-size: 38px; line-height: 1.45; font-weight: 500; }
.about-copy p { max-width: 480px; font-size: 15px; line-height: 2; color: #606b75; }
.about-facts { list-style: none; border-top: 1px solid var(--line); }
.about-facts li { display: flex; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.about-facts strong { width: 88px; flex-shrink: 0; font-weight: 500; color: var(--navy); }

.text-button {
  display: inline-block; margin-top: 30px; padding: 12px 22px;
  border: 1px solid var(--navy); font-size: 13px; transition: 0.25s; background: transparent;
}
.text-button:hover { background: var(--navy); color: #fff; }

/* ========== 장점 탭 ========== */
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.tab {
  padding: 14px 26px; border: 0; background: transparent;
  font-size: 15px; font-weight: 500; color: var(--text-light);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.tab-panel[hidden] { display: none; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.benefit {
  padding: 26px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 15px; line-height: 1.7; min-height: 120px;
}
.benefit b { display: block; font-family: var(--serif); font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.benefit.caution { background: #fbf7f2; }
.benefit.caution b { color: var(--warn); }
.definition { margin-top: 28px; font-size: 14px; line-height: 1.9; color: #5d6670; }
.definition strong { color: var(--text); }
.disclaimer { margin-top: 14px; font-size: 12px; color: var(--text-muted); }

/* ========== 사례 ========== */
.cases { background: var(--navy-dark); color: #fff; }
.cases .section-desc, .cases .section-more, .cases .section-eyebrow { color: rgba(255,255,255,0.65); }
.cases .section-more:hover { color: #fff; }
.case-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.case-filter button {
  padding: 7px 14px; font-size: 13px; background: transparent; color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.25);
}
.case-filter button[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card {
  display: flex; flex-direction: column;
  background: #fff; color: var(--text); padding: 28px; min-height: 260px; transition: 0.25s;
}
.case-card:hover { transform: translateY(-6px); }
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.case-category { display: inline-block; padding: 4px 8px; background: #edf1f4; font-size: 11px; color: #58636c; }
.case-date { font-size: 11px; color: var(--text-muted); }
.case-card h3 { margin-top: 20px; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.5; }
.case-rate { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; }
.case-rate span { font-size: 13px; color: var(--text-light); }
.case-rate small { font-size: 11px; color: var(--text-muted); }
.case-rate strong { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--navy); letter-spacing: -1px; }
.case-money { margin-top: 6px; font-size: 13px; color: #707982; line-height: 1.7; }
.case-more { margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--navy); font-weight: 500; }
.case-note { margin-top: 22px; font-size: 12px; color: rgba(255,255,255,0.55); }

/* ========== 진행 방식 ========== */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.process-item { padding: 30px 22px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-item:last-child { border-right: 0; }
.process-num { font-family: var(--serif); font-size: 28px; color: var(--navy); line-height: 1; }
.process-item h3 { margin-top: 18px; font-size: 16px; font-weight: 500; line-height: 1.6; }
.process-item p { margin-top: 10px; font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* ========== 상담 띠 ========== */
.consult-section { padding: 55px 0; background: var(--band); }
.consult-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.consult-inner h2 { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.consult-inner p { margin-top: 7px; color: #69737d; font-size: 14px; }
.consult-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consult-actions .tel-btn {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px;
  border: 1px solid var(--navy); color: var(--navy); font-size: 13px; font-weight: 500;
}

/* ========== 오시는 길 ========== */
.location-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.info-list { list-style: none; border-top: 1px solid var(--line); }
.info-list li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.info-list strong { width: 88px; flex-shrink: 0; font-weight: 500; color: var(--navy); }
.info-list small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.location-photo img { width: 100%; height: auto; border: 1px solid var(--line); }
.location-photo figcaption strong { color: var(--navy); font-weight: 600; }
.location-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--text-light); }
.map-links { display: flex; gap: 8px; margin-top: 12px; }
.map-links a { font-size: 13px; padding: 8px 14px; border: 1px solid var(--line); }
.map-links a:hover { border-color: var(--navy); }

/* ========== 푸터 ========== */
footer { padding: 46px 0; background: var(--footer); color: rgba(255,255,255,0.7); }
.footer-inner { display: flex; justify-content: space-between; gap: 50px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 18px; }
.footer-logo img { width: 35px; height: auto; }
footer p { font-size: 12px; line-height: 1.9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; }
.footer-links a:hover { color: #fff; }
.footer-links .strong { color: #fff; font-weight: 500; }

/* ========== 모바일 하단 고정 바 ========== */
.bottom-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  height: 62px; padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(8, 24, 39, 0.08);
}
.bottom-bar-inner { display: grid; grid-template-columns: 1fr 1fr 1.3fr; height: 62px; }
.bottom-bar a, .bottom-bar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: transparent; font-size: 12px; font-weight: 500; color: var(--navy);
}
.bottom-bar svg { width: 20px; height: 20px; }
.bottom-bar .primary { background: var(--navy); color: #fff; font-size: 14px; flex-direction: row; gap: 8px; }

/* PC 우측 하단 상담 버튼 */
.floating-consult {
  position: fixed; right: 28px; bottom: 28px; z-index: 900;
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 22px; border: 0;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 24px rgba(8, 24, 39, 0.22);
}
.floating-consult:hover { background: var(--navy-light); }

/* ========== 상담 예약 창 ========== */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 1500; background: rgba(8, 24, 39, 0.55);
  opacity: 0; visibility: hidden; transition: 0.2s;
}
.sheet-backdrop.open { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; z-index: 1501; left: 50%; top: 50%;
  width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 48px);
  transform: translate(-50%, -46%); opacity: 0; visibility: hidden; transition: 0.22s;
  background: #fff; display: flex; flex-direction: column;
}
.sheet.open { transform: translate(-50%, -50%); opacity: 1; visibility: visible; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.sheet-close { border: 0; background: transparent; width: 36px; height: 36px; font-size: 22px; line-height: 1; color: var(--text-light); }
#consult-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sheet-body { padding: 20px 24px 8px; overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 24px 20px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); flex-shrink: 0; background: #fff; }
.sheet-foot .form-msg { margin: 0; min-height: 0; }
.sheet-foot .form-msg:empty { display: none; }
.sheet-foot .btn-primary { width: 100%; min-width: 0; }
.sheet-foot .btn-primary[disabled] { background: #9aa6b2; cursor: not-allowed; }

.field { margin-bottom: 20px; }
.field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field-label em { font-style: normal; color: var(--text-muted); font-weight: 400; font-size: 12px; margin-left: 4px; }
.input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid #cfd6dd; background: #fff; font-size: 15px;
}
.input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(16, 41, 67, 0.12); }
textarea.input { height: 110px; padding: 12px 14px; resize: vertical; }
.phone-row { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 14px; border: 1px solid #cfd6dd; background: #fff; font-size: 14px;
}
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[disabled] { opacity: 0.35; cursor: not-allowed; }
.channel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.channel-row .chip { height: 54px; font-weight: 500; }
.chip.talk[aria-pressed="true"] { background: #fee500; border-color: #fee500; color: #191919; }

.chips-2 { display: grid; grid-template-columns: 1fr 1fr; }
.chips-2 .chip { height: 50px; font-size: 15px; font-weight: 500; }

/* 달력 */
.calendar { border: 1px solid #cfd6dd; padding: 12px 12px 8px; transition: opacity 0.2s; }
.calendar.is-off { opacity: 0.4; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { font-size: 16px; font-weight: 600; }
.cal-nav { width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; font-size: 20px; line-height: 1; color: var(--navy); }
.cal-nav[disabled] { opacity: 0.3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow span { text-align: center; font-size: 12px; color: var(--text-light); padding: 4px 0; }
.cal-dow span:first-child { color: #c0392b; }
.cal-dow span:last-child { color: #2f5fa7; }
.cal-day {
  height: 40px; border: 0; background: transparent; font-size: 14px; color: var(--text);
  position: relative;
}
.cal-day:not([disabled]):hover { background: var(--soft); }
.cal-day[disabled] { color: #c3c9cf; cursor: not-allowed; }
.cal-day.sun:not([disabled]) { color: #c0392b; }
.cal-day.sat:not([disabled]) { color: #2f5fa7; }
.cal-day.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--navy); }
.cal-day[aria-pressed="true"] { background: var(--navy); color: #fff; font-weight: 600; }
.cal-day[aria-pressed="true"].today::after { background: #fff; }

.more-field { margin-bottom: 18px; }
.more-field summary { cursor: pointer; font-size: 14px; font-weight: 500; padding: 4px 0; }
.more-field summary em { font-style: normal; color: var(--text-muted); font-weight: 400; font-size: 12px; margin-left: 4px; }
.more-field textarea { margin-top: 8px; }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.time-grid .chip { padding: 9px 4px; text-align: center; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--navy); flex-shrink: 0; }
.check a { text-decoration: underline; color: var(--text-light); margin-left: 4px; font-size: 13px; }
.check small { display: block; color: var(--text-muted); font-size: 12px; }

.form-msg { min-height: 20px; font-size: 13px; color: var(--warn); margin: 4px 0 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.help { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.direct-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.direct-links a, .direct-links button {
  display: flex; align-items: center; justify-content: center; height: 44px;
  border: 1px solid var(--line); background: var(--soft); font-size: 13px;
}

.done { text-align: center; padding: 18px 0 6px; }
.done-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.done h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.done p { margin-top: 10px; color: var(--text-light); font-size: 14px; line-height: 1.8; }
.done .summary { margin-top: 16px; padding: 14px; background: var(--soft); font-size: 15px; color: var(--text); }

body.sheet-open { overflow: hidden; }

/* ========== 문서형 페이지 (사례 상세, 개인정보처리방침) ========== */
.page-hero { background: var(--navy-dark); color: #fff; padding: 64px 0 56px; }
.page-hero .crumb { font-size: 13px; color: rgba(255,255,255,0.6); }
.page-hero .crumb a:hover { color: #fff; }
.page-hero h1 { margin-top: 14px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.45; }
.page-hero p { margin-top: 12px; color: rgba(255,255,255,0.75); }
.doc { padding: 60px 0 90px; }
.doc-layout { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start; }
.doc-body h2 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 44px 0 16px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 17px; font-weight: 600; margin: 26px 0 10px; }
.doc-body p, .doc-body li { font-size: 15px; line-height: 1.95; color: #3b4652; }
.doc-body ul, .doc-body ol { padding-left: 20px; margin: 8px 0; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc-body th { background: var(--soft); font-weight: 500; }
.draft-note { padding: 14px 16px; background: #fbf7f2; border: 1px solid #efdcc6; color: #7a4a26; font-size: 13px; margin-bottom: 28px; }
.summary-box { border: 1px solid var(--line); }
.summary-box h2 { font-size: 15px; font-family: var(--sans); font-weight: 600; margin: 0; padding: 16px 20px; background: var(--navy); color: #fff; }
.summary-box dl { display: grid; grid-template-columns: 110px 1fr; }
.summary-box dt, .summary-box dd { padding: 11px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-box dt { color: var(--text-light); padding-right: 0; }
.summary-box dd { text-align: right; font-weight: 500; }
.summary-box dd.rate-row { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.summary-box .cta { padding: 18px 20px; }
.summary-box .cta .btn-primary { width: 100%; }
.evidence-slot { height: 280px; margin-top: 12px; }
.doc-body .lead { font-size: 17px; color: var(--text); }
.evidence { margin: 12px 0 0; }
.evidence img { width: 100%; max-width: 640px; height: auto; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(8, 24, 39, 0.08); }
.evidence figcaption { margin-top: 10px; font-size: 13px; color: var(--text-light); }
.doc-aside { position: sticky; top: calc(var(--header-h) + 20px); }

/* ========== 반응형 ========== */
/* 자주 묻는 질문 */
.faq-list { border-top: 1px solid var(--navy); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font-size: 16px; font-weight: 500; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: 'Q'; font-family: var(--serif); color: var(--navy); font-size: 18px; margin-right: 4px; }
.faq-item summary { justify-content: flex-start; }
.faq-item summary::after { content: '+'; margin-left: auto; font-size: 22px; font-weight: 300; color: var(--text-muted); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 4px 24px 28px; font-size: 15px; line-height: 1.9; color: #4b5561; }
.nav a { white-space: nowrap; }
.guide-link { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--navy); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.guide-link:hover { color: #183b5f; }
/* 업무별 안내 페이지 */
.guide-steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.guide-steps li { counter-increment: step; position: relative; padding: 10px 0 10px 44px; border-bottom: 1px dashed var(--line); }
.guide-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 10px; font-family: var(--serif); color: var(--navy); font-size: 17px; }
.guide-toc { margin: 0; padding: 14px 20px 14px 38px; font-size: 14px; line-height: 2; }
.guide-toc a:hover { color: var(--navy); text-decoration: underline; }
.guide-cases li span { color: var(--text-muted); font-size: 13px; margin-left: 6px; }
.guide-cases a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.doc-body a:not(.btn-primary) { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .nav { gap: 22px; font-size: 13px; }
}

@media (max-width: 1000px) {
  :root { --header-h: 64px; --bottom-bar-h: 62px; }
  .nav, .header .consult-btn { display: none; }
  .mobile-menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .bottom-bar { display: block; }
  .floating-consult { display: none; }

  .practice-grid { grid-template-columns: repeat(3, 1fr); }
  .practice-item:nth-child(3) { border-right: none; }
  .practice-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; gap: 45px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-item:nth-child(2n) { border-right: 0; }
  .process-item:last-child { border-right: 1px solid var(--line); }
  .location-layout { grid-template-columns: 1fr; gap: 36px; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-aside { position: static; order: -1; }
  .guide-layout .doc-aside { order: 0; }
  .status-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 650px) {
  .faq-item summary { padding: 18px 2px; font-size: 15px; }
  .faq-item p { padding-left: 24px; font-size: 14px; }
  .container { width: min(calc(100% - 32px), var(--max-width)); }
  .logo-main { font-size: 18px; }
  .logo-sub { font-size: 9px; letter-spacing: 1px; }
  .section { padding: 64px 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
  .section-title { font-size: 26px; }

  .hero { min-height: 600px; align-items: flex-end; padding-bottom: 56px; }
  .hero::after { background: linear-gradient(180deg, rgba(8,24,39,0.45) 0%, rgba(8,24,39,0.7) 40%, rgba(8,24,39,0.92) 100%); }
  .hero-slide img { object-position: 50% 30%; }
  .hero-dots { margin-top: 22px; }
  .logo-emblem { width: 36px; }
  .logo { gap: 9px; }
  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .hero-description { font-size: 15px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }

  .status-band { padding: 36px 0; }
  .status-title { font-size: 20px; }
  .status-cta { display: none; }
  .status-row { grid-template-columns: 1.3fr 0.9fr 0.8fr 1fr; gap: 8px; padding: 0 4px; font-size: 13px; height: 44px; }
  .status-window { height: calc(var(--status-rows, 5) * 44px); }
  .status-row-head { height: 36px; font-size: 11px; }

  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-item { border-bottom: 1px solid var(--line); min-height: 170px; }
  .practice-item:nth-child(3) { border-right: 1px solid var(--line); }
  .practice-item:nth-child(even) { border-right: none; }
  .who-grid, .case-grid, .benefit-grid, .process-grid { grid-template-columns: 1fr; }
  .process-item, .process-item:last-child { border-right: 0; }
  .about-copy h2 { font-size: 30px; }
  .tab { flex: 1; padding: 14px 8px; }
  .consult-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; gap: 24px; }

  .sheet {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%;
    max-height: 92vh; max-height: 92dvh; transform: translateY(100%); opacity: 1;
  }
  .sheet-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .sheet.open { transform: translateY(0); }
}

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