/* ============================================================
   법률사무소 하얀 — hayan.jaeho.im
   디자인 시스템: design-refs/yk-lawfirm/ (yklawfirm.co.kr 분석 기반)
   토큰 정본 = law-firm-tokens.css · 컴포넌트 문법 = law-firm-components.css
   브랜드 축: --lf-navy-700(무게) / --lf-blue-400(액센트)
   ============================================================ */

:root {
  /* 브랜드 축 */
  --lf-navy-900: #081449;
  --lf-navy-700: #102169;
  --lf-blue-600: #2934CF;
  --lf-blue-400: #378FFF;
  /* 잉크 */
  --lf-ink-900: #1D1D1D;
  --lf-ink-600: #51575C;
  --lf-ink-400: #A6A8AB;
  /* 서피스 */
  --lf-bg: #FFFFFF;
  --lf-bg-blue: #EFF6FD;
  --lf-bg-gray: #F5F8F7;
  --lf-line: #E4E4E4;
  --lf-line-soft: #EDEDED;
  /* 포인트 */
  --lf-hot: #FF5847;
  --lf-btn-dark: #212529;
  /* 숫자 강조 빨강 (테마 무관 고정) — 밝은 배경: --lf-num / 어두운 배경: --lf-num-bright */
  --lf-num: #C8102E;
  --lf-num-bright: #FF5847;
  /* 타이포 — 본문·UI는 Pretendard 단일, 세리프(고운바탕)는 감성 문장 악센트 한정 */
  --lf-font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo",
             "Noto Sans KR", sans-serif;
  --lf-serif: "Gowun Batang", "Nanum Myeongjo", "AppleMyungjo", serif;
  --lf-h1-hero: clamp(32px, 4.6vw, 54px);
  --lf-h2: clamp(26px, 2.8vw, 40px);
  --lf-h3: clamp(20px, 2.1vw, 30px);
  --lf-h4: clamp(18px, 1.7vw, 24px);
  /* 레이아웃 */
  --lf-max: 1240px;
  --lf-gutter: clamp(20px, 3.5vw, 50px);
  --lf-sec-pad: clamp(64px, 9vw, 124px);
  /* 라운드/섀도/모션 */
  --lf-r-card: 14px;
  --lf-r-panel: 24px;
  --lf-r-pill: 999px;
  --lf-shadow-hover: 0 12px 32px rgba(8, 20, 73, .12);
  --lf-ease: cubic-bezier(.22, .61, .36, 1);
  /* 테마 파생 토큰 (그라데이션·오버레이·글로우) */
  --lf-grad-accent: #1d2b7a;        /* 공지바·page-hero 그라데이션 끝색 */
  --lf-grad-accent2: #1d3a9e;
  --lf-glow: rgba(55, 143, 255, .35);
  --lf-overlay-1: rgba(8, 20, 73, .34);
  --lf-overlay-2: rgba(8, 20, 73, .6);
}

/* ── 컬러 테마: 클라이언트 비교용 — 레이아웃·폰트 동일, 색 토큰만 전환 ──
   yk(디폴트 네이비/블루) | seal(인주 레드 — 구 하얀 테마 계승) | warm(브라운) */
html[data-theme="seal"] {
  --lf-navy-900: #3D110D;
  --lf-navy-700: #8C1C15;
  --lf-blue-600: #B3261E;
  --lf-blue-400: #D6473C;
  --lf-bg-blue: #FAF0EB;
  --lf-bg-gray: #F7F4ED;
  --lf-shadow-hover: 0 12px 32px rgba(61, 17, 13, .14);
  --lf-grad-accent: #6E1813;
  --lf-grad-accent2: #A02A1E;
  --lf-glow: rgba(214, 71, 60, .32);
  --lf-overlay-1: rgba(46, 12, 10, .38);
  --lf-overlay-2: rgba(46, 12, 10, .62);
}
html[data-theme="warm"] {
  --lf-navy-900: #2E2118;
  --lf-navy-700: #5B4332;
  --lf-blue-600: #7A5C40;
  --lf-blue-400: #C08A4F;
  --lf-bg-blue: #F6EFE6;
  --lf-bg-gray: #F8F4EE;
  --lf-hot: #C9572E;
  --lf-shadow-hover: 0 12px 32px rgba(46, 33, 24, .14);
  --lf-grad-accent: #4A3628;
  --lf-grad-accent2: #6B4E37;
  --lf-glow: rgba(192, 138, 79, .35);
  --lf-overlay-1: rgba(40, 28, 18, .4);
  --lf-overlay-2: rgba(40, 28, 18, .62);
}

/* ---------- 베이스 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--lf-font); color: var(--lf-ink-900);
  background: var(--lf-bg); font-size: 17px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--lf-max); margin: 0 auto; padding: 0 var(--lf-gutter); }
section { padding: var(--lf-sec-pad) 0; }
.band-blue { background: var(--lf-bg-blue); }
.band-gray { background: var(--lf-bg-gray); }
/* 콤마 포인트 — 섹션 타이틀·포토CTA 공용 (YK 시그니처) */
.comma { color: var(--lf-blue-400); font-weight: 800; }

/* 키보드 포커스 — 마우스 클릭에는 안 뜨고 탭 이동에만 */
:focus-visible { outline: 2px solid var(--lf-blue-400); outline-offset: 3px; }
.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 200;
  background: var(--lf-navy-700); color: #fff; font-weight: 700; font-size: 14px;
  padding: 11px 20px; border-radius: 10px; text-decoration: none;
  transition: top .2s var(--lf-ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 공지 바 ---------- */
.notice-bar {
  background: linear-gradient(90deg, var(--lf-navy-900), var(--lf-grad-accent));
  color: #fff; font-size: 14px;
}
.notice-bar .wrap {
  display: flex; align-items: center; gap: 12px; min-height: 44px;
  justify-content: center;
}
.notice-bar .n-tag {
  background: rgba(255,255,255,.16); border-radius: 6px; padding: 2px 10px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.notice-bar .n-dismiss {
  background: none; border: 0; color: inherit; opacity: .65; cursor: pointer;
  font-size: 13px; margin-left: 10px; padding: 4px; white-space: nowrap;
  font-family: inherit;
}
.notice-bar.hidden { display: none; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--lf-line-soft);
  transition: box-shadow .3s var(--lf-ease);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(8,20,73,.08); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 80px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 34px; width: auto; }
.gnb { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.gnb > li { position: relative; }
.gnb a {
  display: block; padding: 10px 18px; color: var(--lf-ink-900);
  text-decoration: none; font-weight: 500; font-size: 16px; border-radius: 8px;
}
.gnb > li > a:hover, .gnb > li.active > a { color: var(--lf-blue-600); }
.drop {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  background: #fff; border: 1px solid var(--lf-line-soft); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(8,20,73,.12); padding: 8px; min-width: 230px;
  opacity: 0; visibility: hidden; transition: all .25s var(--lf-ease);
}
.gnb > li:hover .drop, .gnb > li:focus-within .drop {
  opacity: 1; visibility: visible; transform: translate(-50%, 4px);
}
.drop a {
  font-size: 14.5px; font-weight: 500; padding: 10px 14px; border-radius: 8px;
  white-space: nowrap;
}
.drop a:hover { background: var(--lf-bg-blue); color: var(--lf-blue-600); }
.header-cta {
  background: var(--lf-btn-dark); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 10px;
  white-space: nowrap; transition: background .3s var(--lf-ease);
}
.header-cta:hover { background: var(--lf-navy-700); }
.nav-toggle { display: none; }

/* 모바일 메뉴 패널 */
.m-menu {
  display: none; position: fixed; inset: 0; top: 64px; z-index: 99;
  background: #fff; padding: 18px var(--lf-gutter) 40px; overflow-y: auto;
}
.m-menu.open { display: block; }
.m-menu .m-group { border-bottom: 1px solid var(--lf-line-soft); padding: 14px 0; }
.m-menu .m-label { font-size: 13px; font-weight: 700; color: var(--lf-ink-400);
  letter-spacing: .06em; margin-bottom: 4px; }
.m-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; text-decoration: none; font-size: 17px; font-weight: 600;
}
.m-menu a::after { content: "↗"; color: var(--lf-ink-400); font-size: 14px; }
/* 현재 페이지 활성 표시 (데스크탑 .gnb li.active 와 정합) */
.m-menu a.active { color: var(--lf-blue-600); font-weight: 700; }
.m-menu a.active::after { content: "●"; color: var(--lf-blue-400); font-size: 9px; }

/* ---------- 히어로 (풀블리드 비디오) ---------- */
.hero {
  position: relative; min-height: clamp(540px, 82vh, 840px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; color: #fff; background: var(--lf-navy-900); padding: 0;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--lf-overlay-1), var(--lf-overlay-2));
}
.hero-inner { position: relative; z-index: 1; padding: 80px var(--lf-gutter); max-width: 900px; }
.hero .eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: clamp(14px, 1.3vw, 16px); font-weight: 600; letter-spacing: .18em;
  opacity: .92; margin: 0 0 18px;
}
.hero .eyebrow::before, .hero .eyebrow::after {
  content: ""; width: 42px; height: 1px; background: rgba(255,255,255,.55); flex: none;
}
.hero h1 {
  font-size: var(--lf-h1-hero); font-weight: 800; line-height: 1.35;
  margin: 0 0 16px; letter-spacing: -.015em; text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}
.hero h1 .hl { color: var(--lf-blue-400); }
/* 스크롤 큐 — 얇은 세로선 안을 흐르는 점 (히어로 하단 중앙) */
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 1; width: 28px; height: 46px; display: block;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 0; width: 1.5px; height: 100%;
  margin-left: -0.75px; background: rgba(255,255,255,.25); overflow: hidden;
}
.scroll-cue span::after {
  content: ""; position: absolute; left: 0; top: -45%; width: 100%; height: 45%;
  background: #fff; animation: cue-drop 2.2s var(--lf-ease) infinite;
}
@keyframes cue-drop { 0% { top: -45%; } 65%, 100% { top: 110%; } }
.hero .hero-lead {
  font-size: clamp(17px, 1.9vw, 22px); font-weight: 500; opacity: .95; margin: 0 0 34px;
  letter-spacing: -.01em; text-shadow: 0 2px 16px rgba(0, 0, 0, .28);
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 숫자 강조 빨강 — 본문/프로즈용 인라인 */
.rn { color: var(--lf-num); font-weight: 800; }
.hero .rn, .notice-bar .rn { color: var(--lf-num-bright); }

/* ---------- 버튼 (pill + 화살표) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 600; font-size: 16px; border-radius: var(--lf-r-pill);
  padding: 15px 32px; background: var(--lf-navy-700); color: #fff;
  transition: background .3s var(--lf-ease), color .3s var(--lf-ease);
}
.btn::after { content: "→"; transition: transform .3s var(--lf-ease); }
.btn:hover { background: var(--lf-blue-600); }
.btn:hover::after { transform: translateX(4px); }
.btn.light { background: #fff; color: var(--lf-navy-700); }
.btn.light:hover { background: var(--lf-bg-blue); }
.btn.ghost {
  background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7);
}
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.ghost.ink { color: var(--lf-navy-700); box-shadow: inset 0 0 0 1.5px var(--lf-navy-700); }
.btn.ghost.ink:hover { background: var(--lf-navy-700); color: #fff; }
.sec-cta { text-align: center; margin-top: clamp(36px, 5vw, 56px); }

/* ---------- 통계 카운터 밴드 ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--lf-line-soft); scroll-margin-top: 80px; }
.stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(44px, 6vw, 72px);
  text-align: center;
}
.stats .stat + .stat { border-left: 1px solid var(--lf-line-soft); }
.stat .num {
  font-size: clamp(38px, 4.2vw, 60px); font-weight: 800; color: var(--lf-navy-700);
  line-height: 1.1; letter-spacing: -.02em;
}
.stat .num .count { color: var(--lf-num); }
.stat .num .ko { font-size: .42em; font-weight: 600; margin-left: 3px; }
.stat .label { margin-top: 10px; color: var(--lf-ink-600); font-size: 14.5px; line-height: 1.6; }

/* ---------- 섹션 타이틀 (아이브로우 + 콤마 + 하이라이트) ---------- */
.sec-head { text-align: center; margin-bottom: clamp(40px, 5.5vw, 64px); }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px;
  color: var(--lf-blue-400); font-size: 13px; font-weight: 700; letter-spacing: .22em;
}
.sec-eyebrow::before, .sec-eyebrow::after {
  content: ""; width: 22px; height: 1.5px; background: var(--lf-blue-400);
  opacity: .55; flex: none;
}
.sec-title {
  font-size: var(--lf-h2); font-weight: 700; line-height: 1.4; margin: 0;
  letter-spacing: -.015em;
}
.sec-title .hl { color: var(--lf-blue-400); }

/* ---------- 차별점 (diff) ---------- */
.diff-grid { display: grid; gap: 22px; }
.diff {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px);
  background: var(--lf-bg-gray); border-radius: var(--lf-r-panel);
  padding: clamp(26px, 3.6vw, 52px);
  border: 1px solid var(--lf-line-soft);
}
/* 번호 뱃지 — 인주 도장 모티프 (숫자 빨강 강조와 동일 토큰, 테마 무관 고정) */
.diff .no {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--lf-num); color: var(--lf-num);
  background: rgba(200, 16, 46, .04);
  border-radius: 9px; padding: 6px 13px;
  font-weight: 700; font-size: 13px; letter-spacing: .14em; margin-bottom: 16px;
}
.diff h3 { font-size: var(--lf-h4); font-weight: 700; line-height: 1.45; margin: 0 0 14px; }
.diff .quotes p {
  position: relative; padding-left: 17px;
  color: var(--lf-ink-600); font-size: 16px; margin: 0 0 10px;
}
.diff .quotes p::before {
  content: ""; position: absolute; left: 0; top: .8em; width: 9px; height: 1.5px;
  background: var(--lf-blue-400);
}
.bars { align-self: center; }
.bar-group { margin-bottom: 22px; }
.bar-group:last-child { margin-bottom: 0; }
.bar-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.bar-row {
  display: grid; grid-template-columns: 84px 1fr 86px; align-items: center;
  gap: 12px; margin-bottom: 8px; font-size: 14px;
}
.bar-row .who { color: var(--lf-ink-600); }
.bar-row .track {
  height: 10px; background: #fff; border-radius: 99px; overflow: hidden;
  border: 1px solid var(--lf-line-soft);
}
.bar-row .fill {
  display: block; height: 100%; width: var(--w, 50%); border-radius: 99px;
  background: var(--lf-ink-400); transform-origin: left;
}
/* 리빌 시 0→full 채움 모션 (JS 있을 때만 초기 0, 재진입마다 재생) */
html.js .bar-row .fill { transform: scaleX(0); transition: transform .9s var(--lf-ease); }
html.js .reveal.on .bar-row .fill { transform: scaleX(1); }
.bar-row.hayan .who { color: var(--lf-navy-700); font-weight: 700; }
.bar-row.hayan .fill { background: linear-gradient(90deg, var(--lf-navy-700), var(--lf-blue-400)); }
.bar-row .val { text-align: right; font-weight: 700; color: var(--lf-navy-700); }
.bar-row .val .ko { font-size: 12px; font-weight: 500; color: var(--lf-ink-600); margin-left: 2px; }

/* 차별점 04 — 사건 진행 프로세스 체인 (상담 → 종결) */
.process .p-cap {
  font-size: 13px; font-weight: 700; color: var(--lf-blue-600); margin-bottom: 14px;
  letter-spacing: -.01em;
}
.process .step {
  display: flex; align-items: center; gap: 14px; padding: 13px 2px;
  font-size: clamp(15px, 1.5vw, 17px); font-weight: 700; color: var(--lf-navy-700);
}
.process .step + .step { border-top: 1px dashed var(--lf-line); }
.process .step .ix {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--lf-navy-700); color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; letter-spacing: 0;
}

/* ---------- 업무분야 (네이비 카드 + 링크그리드) ---------- */
.practice-grid {
  display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(24px, 3vw, 44px);
  align-items: stretch;
}
.pr-card {
  position: relative; border-radius: var(--lf-r-panel); overflow: hidden;
  background: var(--lf-navy-700); color: #fff; min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(26px, 3vw, 44px); text-decoration: none;
}
.pr-card .bgimg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3;
  transition: transform .7s var(--lf-ease); z-index: 0;
}
.pr-card:hover .bgimg { transform: scale(1.05); }
/* 하단 스크림 — 카드 텍스트 가독 확보 (.bgimg 위·콘텐츠 아래) */
.pr-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, transparent 38%, var(--lf-overlay-2));
}
.pr-card > * { position: relative; z-index: 1; }
.pr-card h3 { font-size: var(--lf-h3); font-weight: 700; margin: 0 0 8px; }
.pr-card p { margin: 0; opacity: .88; font-size: 15.5px; }
.pr-card .go {
  position: absolute; right: 26px; top: 26px; width: 52px; height: 52px;
  border-radius: 50%; background: #fff; color: var(--lf-navy-700);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  transition: transform .3s var(--lf-ease);
}
.pr-card:hover .go { transform: scale(1.1); }
.linkgrid { display: grid; grid-template-columns: 1fr; align-content: center; }
.linkgrid a {
  display: flex; align-items: baseline; gap: 14px; padding: 20px 6px;
  border-bottom: 1px solid var(--lf-line); text-decoration: none;
  transition: padding .25s var(--lf-ease);
}
.linkgrid a:first-child { border-top: 1px solid var(--lf-line); }
.linkgrid .ix {
  color: var(--lf-blue-400); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; min-width: 22px; flex: none;
}
.linkgrid .t { font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; white-space: nowrap; }
.linkgrid .d { color: var(--lf-ink-600); font-size: 15px; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkgrid .arr { color: var(--lf-ink-400); font-size: 16px; transition: transform .25s var(--lf-ease); }
.linkgrid a:hover { padding-left: 14px; }
.linkgrid a:hover .t, .linkgrid a:hover .arr { color: var(--lf-blue-600); }
.linkgrid a:hover .arr { transform: translate(2px, -2px); }

/* ---------- 변호사 프로필 패널 ---------- */
.lawyer-panel {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0;
  background: var(--lf-bg-blue); border-radius: var(--lf-r-panel); overflow: hidden;
}
.lawyer-panel .photo { position: relative; min-height: 420px; }
.lawyer-panel .photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: top center;
}
.lawyer-panel .body { padding: clamp(28px, 4vw, 56px); align-self: center; }
.badge {
  display: inline-block; background: var(--lf-navy-700); color: #fff;
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 6px;
  margin-bottom: 16px;
}
.lawyer-panel .name { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; margin: 0 0 4px; }
.lawyer-panel .name .post { font-size: .6em; font-weight: 600; color: var(--lf-ink-600); margin-left: 8px; }
.lawyer-panel .greeting { color: var(--lf-ink-600); margin: 14px 0 6px; }
.lawyer-panel .closing {
  font-family: var(--lf-serif); font-weight: 700; color: var(--lf-navy-700);
  font-size: 19px; line-height: 1.7; margin: 14px 0 24px;
}
.lawyer-panel .closing em { font-style: normal; color: var(--lf-blue-400); }

/* ---------- 2-up 서비스 패널 ---------- */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel {
  position: relative; border-radius: var(--lf-r-panel);
  padding: clamp(28px, 3.4vw, 46px); min-height: 250px; display: block;
  text-decoration: none; overflow: hidden;
  transition: transform .3s var(--lf-ease), box-shadow .3s var(--lf-ease);
}
.panel:hover { transform: translateY(-4px); box-shadow: var(--lf-shadow-hover); }
.panel.p-blue { background: var(--lf-bg-blue); }
.panel.p-navy { background: var(--lf-navy-700); color: #fff; }
.panel h3 { font-size: var(--lf-h3); font-weight: 700; margin: 0 0 8px; }
.panel p { margin: 0; color: var(--lf-ink-600); max-width: 80%; }
.panel.p-navy p { color: rgba(255,255,255,.8); }
.panel .go {
  position: absolute; right: 26px; bottom: 26px; width: 54px; height: 54px;
  border-radius: 50%; background: var(--lf-navy-700); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  transition: transform .3s var(--lf-ease);
}
.panel:hover .go { transform: scale(1.1); }
.panel.p-navy .go { background: #fff; color: var(--lf-navy-700); }

/* ---------- 포토 CTA 밴드 ---------- */
.photo-cta {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  background: var(--lf-navy-900);
}
.photo-cta .bgimg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32;
}
.photo-cta .wrap { position: relative; }
.photo-cta h2 {
  font-family: var(--lf-serif); font-size: var(--lf-h2); font-weight: 700;
  line-height: 1.5; margin: 0 0 14px; letter-spacing: -.01em;
}
.photo-cta .sub { opacity: .85; max-width: 560px; margin: 0 auto 30px; }
.photo-cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.photo-cta .cta-tel { margin: 28px 0 0; font-size: 15px; opacity: .92; }
.photo-cta .cta-tel a {
  color: var(--lf-num-bright); font-size: 24px; font-weight: 800;
  letter-spacing: -.01em; text-decoration: none; margin-left: 10px; vertical-align: -2px;
}
.photo-cta .cta-tel a:hover { text-decoration: underline; }

/* ---------- 푸터 (다크 — 페이지 앵커) ---------- */
.site-footer {
  background: var(--lf-navy-900); border-top: 1px solid rgba(255,255,255,.1);
  padding: clamp(48px, 6vw, 80px) 0 calc(36px + env(safe-area-inset-bottom));
  font-size: 14.5px; color: rgba(255,255,255,.68);
}
.site-footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start;
}
.site-footer .f-brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.site-footer p { margin: 4px 0; }
.site-footer .rn { color: var(--lf-num-bright); }
.site-footer .f-label { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.42);
  letter-spacing: .08em; margin-bottom: 10px; }
.site-footer .links a {
  display: flex; justify-content: space-between; gap: 18px; padding: 7px 0;
  text-decoration: none; color: rgba(255,255,255,.85); font-weight: 500;
}
.site-footer .links a::after { content: "↗"; color: rgba(255,255,255,.35); }
.site-footer .links a:hover { color: #fff; }
.f-contact { text-align: right; }
.f-contact .f-cta-label { font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.42);
  font-weight: 700; margin-bottom: 6px; }
.f-contact .f-tel {
  display: inline-block; color: var(--lf-num-bright); font-size: 26px; font-weight: 800;
  letter-spacing: -.01em; line-height: 1.3; text-decoration: none;
}
.f-contact .f-tel:hover { text-decoration: underline; }
.f-contact .sns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.f-contact .sns a {
  width: 40px; height: 40px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; text-decoration: none;
  transition: transform .2s var(--lf-ease), filter .2s var(--lf-ease);
}
.f-contact .sns a:hover { transform: translateY(-2px); filter: brightness(1.06); }
.f-contact .sns a.kakao { background: #FEE500; }
.f-contact .sns a.naver, .f-contact .sns a.blog { background: #03C75A; }
.f-contact .sns .bi { width: 23px; height: 23px; display: block; }
.f-contact .sns a.naver .bi { width: 20px; height: 20px; }
.site-footer .disclaimer { margin-top: 34px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12); }
.site-footer .disclaimer .d-title { display: inline-block; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.22);
  border-radius: 5px; padding: 3px 10px; margin-bottom: 10px; }
.site-footer .disclaimer p { font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,.42);
  margin: 5px 0; max-width: 1000px; }
.site-footer .fine { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px; color: rgba(255,255,255,.42); line-height: 1.7; }

/* ---------- 플로팅 상담 위젯 (데스크탑) ---------- */
.float-widget {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 90;
  background: #fff; border-radius: 16px; border: 1px solid var(--lf-line-soft);
  box-shadow: 0 8px 28px rgba(8,20,73,.14); overflow: hidden; width: 88px;
  text-align: center; font-size: 12px;
  transition: opacity .3s var(--lf-ease), visibility .3s var(--lf-ease);
}
/* 푸터 진입 시 숨김 — 대표번호·SNS·면책공고 가림 방지 (site.js가 토글) */
.float-widget.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.float-widget > a {
  display: block; padding: 13px 6px; color: var(--lf-ink-900); text-decoration: none;
  border-bottom: 1px solid var(--lf-line-soft); line-height: 1.4;
}
.float-widget > a:last-child { border-bottom: 0; }
.float-widget > a:hover { background: var(--lf-bg-blue); }
.float-widget .f-book { background: var(--lf-blue-400); color: #fff; font-weight: 700; }
.float-widget .f-book:hover { background: var(--lf-blue-600); }
.ico { display: block; width: 21px; height: 21px; margin: 0 auto 4px; }

/* ---------- 하단 고정 상담 바 (모바일 dock) ---------- */
.dock { display: none; }

/* ---------- 서브페이지 ---------- */
.page-hero {
  position: relative; color: #fff; padding: clamp(64px, 8vw, 110px) 0;
  background: linear-gradient(120deg, var(--lf-navy-900) 0%, var(--lf-navy-700) 60%, var(--lf-grad-accent2) 100%);
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -140px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, var(--lf-glow), transparent 70%);
}
.page-hero::before {
  content: ""; position: absolute; left: -160px; bottom: -220px; width: 440px; height: 440px;
  border-radius: 50%; background: radial-gradient(circle, var(--lf-glow), transparent 70%);
  opacity: .45;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .crumb { font-size: 13px; opacity: .7; margin-bottom: 14px; }
.page-hero .crumb a { color: inherit; text-decoration: none; }
.page-hero h1 {
  font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; margin: 0; letter-spacing: -.015em;
  line-height: 1.3;
}
.page-hero .lead { max-width: 720px; margin: 18px 0 0; opacity: .88; font-size: clamp(15px, 1.4vw, 17px); }
.page-hero .addr-line { margin-top: 16px; font-size: 17px; font-weight: 600; opacity: .92; }
.content-sec { padding-top: clamp(48px, 6vw, 80px); }

/* 토픽 (업무분야 상세) */
.topic {
  display: grid; grid-template-columns: 280px 1fr; gap: clamp(20px, 3vw, 56px);
  padding: clamp(28px, 3.6vw, 48px) 0; border-top: 1px solid var(--lf-line);
}
.topic:last-of-type { border-bottom: 1px solid var(--lf-line); }
.t-head .no {
  color: var(--lf-blue-400); font-weight: 700; font-size: 14px; letter-spacing: .08em;
  display: block; margin-bottom: 8px;
}
.t-head h2 { font-size: var(--lf-h4); font-weight: 700; line-height: 1.45; margin: 0; }
.t-body p { color: var(--lf-ink-600); margin: 0 0 12px; }
.t-body .sub-item {
  background: var(--lf-bg-gray); border-radius: var(--lf-r-card);
  border-left: 3px solid var(--lf-blue-400);
  padding: 20px 24px; margin-bottom: 14px;
}
.t-body .sub-item h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; color: var(--lf-navy-700); }
.t-body .sub-item p { margin: 0 0 6px; font-size: 15.5px; }
/* 데스크탑: 좌측 토픽 헤드를 스크롤 따라 고정 — 긴 본문에서 맥락 유지 */
@media (min-width: 861px) {
  .t-head { position: sticky; top: 104px; align-self: start; }
}

/* 비용 카드 */
.fee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fee-card {
  background: #fff; border: 1px solid var(--lf-line); border-radius: var(--lf-r-card);
  padding: 28px;
  transition: transform .3s var(--lf-ease), box-shadow .3s var(--lf-ease);
}
.fee-card:hover { transform: translateY(-4px); box-shadow: var(--lf-shadow-hover); border-color: var(--lf-blue-400); }
.fee-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--lf-line-soft); }
.fee-card .price { font-size: 32px; font-weight: 800; color: var(--lf-navy-700); margin-bottom: 10px; }
.fee-card .price .ko { font-size: 15px; font-weight: 600; color: var(--lf-ink-600); margin-left: 2px; }
.fee-card p { color: var(--lf-ink-600); font-size: 14.5px; margin: 0 0 10px; }
.fee-card ul { margin: 0; padding-left: 18px; color: var(--lf-ink-600); font-size: 15px; }
.fee-card li { margin-bottom: 6px; }
.fee-note { color: var(--lf-ink-400); font-size: 13.5px; margin-top: 28px; text-align: center; }

/* 약력 */
.career-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.career {
  background: var(--lf-bg-gray); border-radius: var(--lf-r-panel); padding: clamp(24px, 3vw, 40px);
}
.career h3 {
  font-size: 15px; font-weight: 800; letter-spacing: .06em; color: var(--lf-blue-600);
  margin: 0 0 16px;
}
.career ul { margin: 0; padding-left: 18px; color: var(--lf-ink-600); }
.career li { margin-bottom: 8px; }

/* 인사말 (lawyer) */
.lawyer-sec .wrap {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.lawyer-photo img { border-radius: var(--lf-r-panel); width: 100%; }
.letter p { color: var(--lf-ink-600); margin: 0 0 14px; }
.letter .sign { font-family: var(--lf-serif); font-weight: 700; font-size: 21px;
  color: var(--lf-ink-900); margin-top: 26px;
  display: flex; align-items: center; gap: 16px; }
.letter .sign-ph {
  font-size: 11px; font-weight: 500; color: var(--lf-ink-400);
  border: 1px dashed var(--lf-line); border-radius: 8px; padding: 6px 12px; line-height: 1.5;
}

/* 오시는 길 */
.map-img { border-radius: var(--lf-r-panel); width: 100%; margin-bottom: 24px;
  border: 1px solid var(--lf-line-soft); }
.dir-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dir-card {
  background: var(--lf-bg-blue); border-radius: var(--lf-r-panel); padding: clamp(24px, 3vw, 40px);
}
.dir-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 12px; color: var(--lf-navy-700); }
.dir-card p, .dir-card li { color: var(--lf-ink-600); font-size: 15.5px; }
.dir-card p { margin: 0 0 8px; }
.dir-card ul { margin: 0; padding-left: 18px; }
.dir-card li { margin-bottom: 6px; }

/* ---------- 리빌 모션 (JS 있을 때만 초기 숨김 — noscript 폴백) ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--lf-ease), transform .7s var(--lf-ease); }
html.js .reveal.on { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .bar-row .fill { transform: none; transition: none; }
  .scroll-cue span::after { animation: none; }
  .pr-card:hover .bgimg { transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   모바일 (≤860px) — design.md §5 변환 규칙
   ============================================================ */
@media (max-width: 860px) {
  .gnb, .header-cta { display: none; }
  .site-header .wrap { height: 64px; }
  .logo-img { height: 28px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--lf-ink-900); display: block;
    transition: all .25s var(--lf-ease); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 모바일: 히어로 상단에선 메뉴바 숨김 → 스크롤 시 솔리드 바 슬라이드 인 (flow에서 빠져 히어로가 위로 참) */
  .site-header {
    position: fixed; left: 0; right: 0;
    transform: translateY(-110%);
    transition: transform .35s var(--lf-ease), box-shadow .3s var(--lf-ease);
  }
  .site-header.nav-shown { transform: translateY(0); }

  .notice-bar .wrap { justify-content: flex-start; font-size: 12.5px; gap: 8px; }
  .notice-bar .n-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
  .notice-bar .n-dismiss { margin-left: auto; font-size: 11.5px; }

  .hero { min-height: 76vh; text-align: left; }
  .hero-inner { width: 100%; padding: 64px var(--lf-gutter); }
  .hero .eyebrow { justify-content: flex-start; }
  .hero .eyebrow::after { display: none; }
  .hero-cta { justify-content: flex-start; }
  .btn { padding: 14px 26px; font-size: 15px; }

  /* 2열 접힘에선 세로 디바이더가 행마다 어긋남 — 제거 */
  .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .stats .stat + .stat { border-left: 0; }

  .diff { grid-template-columns: 1fr; }
  .practice-grid { grid-template-columns: 1fr; }
  .pr-card { min-height: 260px; }
  .lawyer-panel { grid-template-columns: 1fr; }
  .lawyer-panel .photo { min-height: 0; aspect-ratio: 4 / 3.4; }
  .panels { grid-template-columns: 1fr; }
  .topic { grid-template-columns: 1fr; gap: 16px; }
  .fee-grid { grid-template-columns: 1fr; }
  .career-cols { grid-template-columns: 1fr; }
  .dir-grid { grid-template-columns: 1fr; }
  .lawyer-sec .wrap { grid-template-columns: 1fr; }
  .lawyer-photo { max-width: 320px; }

  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .f-contact { text-align: left; }
  .f-contact .sns { justify-content: flex-start; }

  /* 플로팅 위젯 → 하단 dock */
  .float-widget { display: none; }
  .dock {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff;
    border-top: 1px solid var(--lf-line-soft);
    box-shadow: 0 -6px 24px rgba(8,20,73,.08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dock a {
    padding: 9px 0 11px; text-align: center; font-size: 12px; font-weight: 600;
    color: var(--lf-ink-900); text-decoration: none;
  }
  .dock a + a { border-left: 1px solid var(--lf-line-soft); }
  .dock .ico { width: 19px; height: 19px; margin-bottom: 3px; }
  .dock .d-book { color: var(--lf-navy-700); }
  body { padding-bottom: 62px; }
}

/* ============================================================
   승소사례 모음 (cases.html) — LawyerFit 공개 API를 사이트 테마로 렌더
   ============================================================ */
.cases-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 36px);
}
.cases-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.cases-chip {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 9px 16px; border-radius: var(--lf-r-pill);
  border: 1px solid var(--lf-line); background: #fff; color: var(--lf-ink-600);
  transition: background .2s var(--lf-ease), color .2s var(--lf-ease), border-color .2s var(--lf-ease);
}
.cases-chip:hover { border-color: var(--lf-navy-700); color: var(--lf-navy-700); }
.cases-chip.active { background: var(--lf-navy-700); border-color: var(--lf-navy-700); color: #fff; }
.cases-count { color: var(--lf-ink-400); font-size: 14px; font-weight: 600; white-space: nowrap; }

.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cases-state {
  min-height: 160px; display: flex; align-items: center; justify-content: center;
  color: var(--lf-ink-600); font-size: 15px; line-height: 1.7; text-align: center; padding: 40px 0;
}
.cases-state a { color: var(--lf-navy-700); font-weight: 700; }

.case-card {
  border: 1px solid var(--lf-line); border-radius: var(--lf-r-card);
  padding: clamp(20px, 2.4vw, 28px); background: #fff;
  transition: box-shadow .3s var(--lf-ease), border-color .3s var(--lf-ease), transform .3s var(--lf-ease);
}
html.js .case-card { animation: caseIn .6s var(--lf-ease) both; }
.case-card:hover { box-shadow: var(--lf-shadow-hover); border-color: transparent; transform: translateY(-2px); }
@keyframes caseIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.case-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.case-cat {
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--lf-navy-700);
  background: var(--lf-bg-blue); padding: 5px 11px; border-radius: var(--lf-r-pill);
}
.case-verdict {
  font-size: 12.5px; font-weight: 700; color: #fff;
  background: var(--lf-blue-400); padding: 5px 11px; border-radius: var(--lf-r-pill);
}
.case-title {
  font-size: var(--lf-h4); font-weight: 700; line-height: 1.45; margin: 0 0 10px;
  color: var(--lf-ink-900); letter-spacing: -.01em;
}
.case-summary { color: var(--lf-ink-600); font-size: 15.5px; line-height: 1.75; margin: 0; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; }
.case-tag { font-size: 12.5px; color: var(--lf-ink-400); font-weight: 500; }

.case-toggle {
  margin-top: 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  color: var(--lf-navy-700); background: none; border: none; padding: 0;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s var(--lf-ease);
}
.case-toggle::after { content: "＋"; font-weight: 700; }
.case-card.open .case-toggle::after { content: "－"; }
.case-toggle:hover { color: var(--lf-blue-600); }

.case-detail { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--lf-line-soft); }
.case-sec + .case-sec { margin-top: 14px; }
.case-sec h4 { font-size: 13px; font-weight: 700; color: var(--lf-navy-700); margin: 0 0 5px; }
.case-sec p { font-size: 14.5px; line-height: 1.8; color: var(--lf-ink-600); margin: 0; white-space: pre-line; }

.cases-note {
  margin: clamp(32px, 4vw, 48px) auto 0; max-width: 820px; text-align: center;
  font-size: 13px; line-height: 1.7; color: var(--lf-ink-400);
}

@media (prefers-reduced-motion: reduce) {
  html.js .case-card { animation: none; }
}
@media (max-width: 860px) {
  .cases-grid { grid-template-columns: 1fr; }
}
