/* =========================================
   법률사무소 장원 — 형사전문 · 최종 스타일
   v2.1 — PC/태블릿/모바일 정밀 튜닝
   ========================================= */

:root {
  --red:        #b40000;
  --red-b:      #d40000;
  --red-l:      #ff4444;
  --dark:       #0d0d0d;
  --dark2:      #111111;
  --dark3:      #181818;
  --dark4:      #222222;
  --gray:       #888;
  --gray2:      #555;
  --gray3:      #333;
  --light:      #f7f7f7;
  --light2:     #efefef;
  --white:      #ffffff;
  --serif:      'Noto Serif KR', Georgia, serif;
  --sans:       'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --ease:       0.3s ease;
  --ease-slow:  0.6s ease;
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body { font-family:var(--sans); background:var(--white); color:var(--dark); line-height:1.65; overflow-x:hidden; }
a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }
ul { list-style:none; }
button { background:none; border:none; cursor:pointer; font-family:inherit; }

.container { max-width:1200px; margin:0 auto; padding:0 28px; }
.br-mo { display:none; }

/* ═══════════════════════════════════════
   ① 긴급 바
═══════════════════════════════════════ */
.emergency-bar {
  background: var(--red);
  color:#fff;
  padding:9px 0;
  position:relative;
  z-index:1001;
}
.eb-inner {
  max-width:1200px;
  margin:0 auto;
  padding:0 28px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  font-size:13px;
}
.eb-live {
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:700;
  letter-spacing:1px;
  font-size:11px;
  opacity:.85;
  white-space:nowrap;
  flex-shrink:0;
}
.eb-dot {
  width:7px; height:7px;
  background:#fff;
  border-radius:50%;
  animation:blink 1s ease-in-out infinite;
  flex-shrink:0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

.eb-msg { opacity:.9; flex:1; text-align:center; }

.eb-call {
  background:rgba(255,255,255,.2);
  padding:4px 14px;
  border-radius:20px;
  font-weight:700;
  white-space:nowrap;
  transition:var(--ease);
  flex-shrink:0;
}
.eb-call:hover { background:rgba(255,255,255,.35); }

/* ═══════════════════════════════════════
   ② 헤더
═══════════════════════════════════════ */
.site-header {
  position:sticky;
  top:0;
  z-index:990;
  background:rgba(10,10,10,.96);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,.06);
  transition:box-shadow var(--ease);
}
.site-header.scrolled { box-shadow:0 2px 24px rgba(0,0,0,.6); }

.header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:70px;
  gap:16px;
}

/* 로고 */
.logo {
  display:flex;
  align-items:baseline;
  gap:7px;
  flex-shrink:0;
}
.logo-ko   { color:rgba(255,255,255,.4); font-size:11px; letter-spacing:2px; }
.logo-name { font-family:var(--serif); font-size:22px; font-weight:900; color:#fff; letter-spacing:5px; }
.logo-badge{
  background:var(--red);
  color:#fff;
  font-size:10px;
  font-weight:700;
  padding:2px 8px;
  border-radius:3px;
  letter-spacing:1px;
}

/* 네비 */
.main-nav { display:flex; align-items:center; gap:24px; flex:1; justify-content:center; }
.nav-link {
  color:rgba(255,255,255,.65);
  font-size:13px;
  font-weight:500;
  letter-spacing:.3px;
  transition:color var(--ease);
  position:relative;
  padding-bottom:2px;
  white-space:nowrap;
}
.nav-link::after {
  content:'';
  position:absolute;
  bottom:-2px; left:0;
  width:0; height:2px;
  background:var(--red);
  transition:width var(--ease);
}
.nav-link:hover,
.nav-link.active { color:#fff; }
.nav-link:hover::after,
.nav-link.active::after { width:100%; }

/* 헤더 CTA */
.header-cta { display:flex; align-items:center; gap:8px; flex-shrink:0; }

.btn-kakao {
  display:inline-flex; align-items:center; gap:6px;
  background:#FEE500; color:#3C1E1E;
  padding:8px 14px; border-radius:4px;
  font-size:12.5px; font-weight:700;
  white-space:nowrap; transition:var(--ease);
}
.btn-kakao:hover { background:#FFD700; transform:translateY(-1px); }

.btn-call {
  display:inline-flex; align-items:center; gap:6px;
  background:var(--red); color:#fff;
  padding:8px 14px; border-radius:4px;
  font-size:12.5px; font-weight:700;
  white-space:nowrap; transition:var(--ease);
}
.btn-call:hover { background:var(--red-b); transform:translateY(-1px); }

/* 햄버거 */
.hamburger { display:none; flex-direction:column; gap:5px; padding:8px; }
.hamburger span { display:block; width:23px; height:2px; background:#fff; border-radius:2px; transition:var(--ease); }

/* ═══════════════════════════════════════
   모바일 메뉴
═══════════════════════════════════════ */
.mobile-menu {
  position:fixed; top:0; right:-100%;
  width:300px; height:100%;
  background:var(--dark2);
  z-index:1100;
  padding:72px 28px 36px;
  transition:right .4s cubic-bezier(.4,0,.2,1);
  display:flex; flex-direction:column; gap:28px;
  overflow-y:auto;
}
.mobile-menu.open { right:0; }

.mobile-close {
  position:absolute; top:18px; right:18px;
  color:rgba(255,255,255,.55); font-size:19px; padding:8px;
}
.mobile-logo {
  font-family:var(--serif);
  font-size:17px; font-weight:900;
  color:#fff; letter-spacing:3px;
  border-bottom:1px solid rgba(255,255,255,.08);
  padding-bottom:20px;
}
.mobile-menu nav { display:flex; flex-direction:column; }
.mobile-menu nav a {
  display:flex; align-items:center; gap:12px;
  color:rgba(255,255,255,.75);
  font-size:15px; font-weight:500;
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,.05);
  transition:var(--ease);
}
.mobile-menu nav a i { color:var(--red); width:16px; text-align:center; }
.mobile-menu nav a:hover { color:#fff; padding-left:6px; }

.mobile-cta { display:flex; flex-direction:column; gap:10px; }
.btn-kakao-full, .btn-call-full {
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:14px; border-radius:6px; font-size:14px; font-weight:700;
}
.btn-kakao-full { background:#FEE500; color:#3C1E1E; }
.btn-call-full  { background:var(--red); color:#fff; }

.mobile-menu-overlay {
  position:fixed; inset:0;
  background:rgba(0,0,0,.7);
  z-index:1050;
  opacity:0; pointer-events:none;
  transition:opacity .3s;
}
.mobile-menu-overlay.show { opacity:1; pointer-events:all; }

/* ═══════════════════════════════════════
   ③ 히어로
═══════════════════════════════════════ */
.hero {
  position:relative;
  min-height:100vh;
  display:flex; align-items:center;
  overflow:hidden;
}
.hero-bg { position:absolute; inset:0; z-index:0; }
.hero-slide {
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:0;
  transition:opacity 1.8s ease;
  animation:heroZoom 14s ease-in-out infinite alternate;
}
.hero-slide.active { opacity:1; }
@keyframes heroZoom { from{transform:scale(1.06)} to{transform:scale(1)} }

.hero-overlay {
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(130deg,rgba(0,0,0,.90) 0%,rgba(30,0,0,.78) 55%,rgba(0,0,0,.68) 100%);
}
.hero-noise {
  position:absolute; inset:0; z-index:2;
  pointer-events:none; opacity:.4;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.hero-content {
  position:relative; z-index:5;
  padding:140px 28px 100px;
  width:100%;
  max-width:820px;
}

.hero-eyebrow {
  display:inline-flex; align-items:center; gap:10px;
  background:rgba(180,0,0,.18);
  border:1px solid rgba(180,0,0,.45);
  color:#ff9999;
  font-size:11px; letter-spacing:3px;
  padding:7px 20px; border-radius:30px;
  margin-bottom:36px;
}
.badge-dot {
  width:7px; height:7px; border-radius:50%;
  background:var(--red-l);
  animation:blink 1s ease-in-out infinite;
  flex-shrink:0;
}

.hero-title { margin-bottom:28px; }
.ht-sub {
  display:block;
  font-size:clamp(13px,2vw,17px);
  color:rgba(255,255,255,.5);
  font-weight:300; letter-spacing:4px;
  margin-bottom:14px;
}
.ht-main {
  display:block;
  font-family:var(--serif);
  font-size:clamp(34px,5.8vw,64px);
  font-weight:900; color:#fff;
  line-height:1.2; letter-spacing:-.5px;
  word-break:keep-all;
}
.ht-main em {
  color:var(--red-l); font-style:normal; position:relative;
}
.ht-main em::after {
  content:'';
  position:absolute; bottom:-3px; left:0;
  width:100%; height:3px;
  background:var(--red); border-radius:2px;
}

.hero-desc {
  font-size:clamp(14px,1.8vw,17px);
  color:rgba(255,255,255,.75);
  line-height:1.9; margin-bottom:44px;
  word-break:keep-all;
}
.hero-desc strong { color:#fff; font-weight:700; }

/* 히어로 통계 */
.hero-stats {
  display:flex; align-items:stretch;
  margin-bottom:44px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius:8px;
  overflow:hidden;
  width:fit-content;
  max-width:100%;
}
.stat {
  text-align:center;
  padding:22px 32px;
  flex:1;
  min-width:0;
}
.stat-row {
  display:flex; align-items:baseline; gap:2px;
  line-height:1; justify-content:center;
}
.stat-num {
  font-family:var(--serif);
  font-size:clamp(28px,4vw,48px);
  font-weight:900; color:#fff;
}
.stat-unit { font-size:clamp(13px,1.6vw,17px); color:var(--red-l); font-weight:700; }
.stat-label {
  display:block; font-size:11px;
  color:rgba(255,255,255,.4);
  letter-spacing:.5px; margin-top:6px;
  white-space:nowrap;
}
.stat-divider {
  width:1px;
  background:rgba(255,255,255,.12); flex-shrink:0;
  align-self:stretch;
}

/* CTA 버튼 쌍 */
.hero-cta { display:flex; gap:14px; flex-wrap:wrap; }
.cta-kakao, .cta-phone {
  display:inline-flex; align-items:center; gap:14px;
  padding:18px 28px; border-radius:6px;
  transition:transform var(--ease), box-shadow var(--ease);
  min-width:220px;
}
.cta-kakao i, .cta-phone i { font-size:22px; flex-shrink:0; }
.cta-kakao span, .cta-phone span { display:flex; flex-direction:column; gap:3px; }
.cta-kakao strong, .cta-phone strong { font-size:15px; font-weight:700; }
.cta-kakao small,  .cta-phone small  { font-size:11px; opacity:.8; }

.cta-kakao { background:#FEE500; color:#3C1E1E; }
.cta-kakao:hover { transform:translateY(-3px); box-shadow:0 10px 30px rgba(254,229,0,.4); }

.cta-phone { background:var(--red); color:#fff; border:1px solid rgba(255,255,255,.1); }
.cta-phone:hover { background:var(--red-b); transform:translateY(-3px); box-shadow:0 10px 30px rgba(180,0,0,.5); }

.cta-kakao.full, .cta-phone.full { width:100%; min-width:unset; }

/* 스크롤 힌트 */
.scroll-hint {
  position:absolute; bottom:30px; left:50%;
  transform:translateX(-50%); z-index:5;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color:rgba(255,255,255,.28); font-size:10px; letter-spacing:3px;
}
.scroll-line {
  width:1px; height:48px;
  background:linear-gradient(to bottom,rgba(255,255,255,.3),transparent);
  animation:scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100%{opacity:1;transform:scaleY(1)}
  50%{opacity:.4;transform:scaleY(.6)}
}

/* ═══════════════════════════════════════
   ④ 롤링 띠
═══════════════════════════════════════ */
.urgent-strip {
  background:var(--dark3);
  border-top:2px solid var(--red);
  border-bottom:2px solid var(--red);
  overflow:hidden; padding:13px 0;
}
.strip-track {
  display:flex; gap:56px; white-space:nowrap;
  animation:marquee 22s linear infinite;
}
.strip-track span { color:rgba(255,255,255,.55); font-size:13px; letter-spacing:.8px; flex-shrink:0; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ═══════════════════════════════════════
   공통 섹션 요소
═══════════════════════════════════════ */
.section-label {
  font-size:11px; letter-spacing:4px;
  color:var(--red); font-weight:700;
  text-transform:uppercase; margin-bottom:12px;
  display:block;
}
.section-label.light { color:rgba(255,255,255,.38); }

.section-title {
  font-family:var(--serif);
  font-size:clamp(24px,3.5vw,40px);
  font-weight:900; line-height:1.3;
  color:var(--dark); margin-bottom:14px;
  word-break:keep-all;
}
.section-title.light { color:#fff; }
.title-accent { color:var(--red); }

.section-sub {
  font-size:15px; color:var(--gray);
  line-height:1.85; margin-bottom:52px;
  word-break:keep-all;
}
.section-sub.light { color:rgba(255,255,255,.45); }

.section-header.centered { text-align:center; }
.section-header.centered .section-sub { margin-left:auto; margin-right:auto; }
.section-header.centered .red-divider { margin:0 auto; }

.red-divider { width:48px; height:3px; background:var(--red); margin-bottom:28px; }

/* ═══════════════════════════════════════
   ⑤ 변호사 소개
═══════════════════════════════════════ */
.about { padding:110px 0; background:var(--white); }
.about-grid {
  display:grid;
  grid-template-columns:1fr 1.6fr;
  gap:64px; align-items:start;
}

.about-img-wrap { display:flex; flex-direction:column; gap:18px; }
.about-img-frame {
  position:relative; border-radius:4px;
  overflow:hidden; aspect-ratio:3/4;
}
.about-img { width:100%; height:100%; object-fit:cover; filter:grayscale(15%); transition:filter .5s; }
.about-img-frame:hover .about-img { filter:grayscale(0%); }
.about-img-badge {
  position:absolute; bottom:20px; left:20px;
  background:var(--red); color:#fff;
  display:flex; align-items:center; gap:8px;
  padding:10px 18px; border-radius:4px;
  font-size:13px; font-weight:700;
}

.about-career-list {
  display:grid; grid-template-columns:1fr 1fr; gap:8px;
}
.career-item {
  display:flex; align-items:center; gap:8px;
  background:var(--light); padding:10px 14px;
  border-radius:4px; font-size:13px; font-weight:500;
}
.career-item i { color:var(--red); font-size:11px; flex-shrink:0; }

.about-text { display:flex; flex-direction:column; }

.about-desc {
  font-size:15px; color:var(--gray2);
  line-height:2; margin-bottom:28px;
  word-break:keep-all;
}
.about-desc strong { color:var(--dark); font-weight:700; }
.quote-em {
  display:block;
  font-family:var(--serif);
  font-size:16px; color:var(--dark);
  font-style:normal; font-weight:700;
  border-left:3px solid var(--red);
  padding-left:16px; line-height:1.8;
  margin-top:4px;
  word-break:keep-all;
}

/* 미니 수치 */
.about-mini-stats {
  display:flex; gap:0;
  border:1px solid rgba(0,0,0,.07);
  border-radius:6px; overflow:hidden;
  margin-bottom:28px;
}
.mini-stat {
  flex:1; text-align:center;
  padding:20px 12px;
  border-right:1px solid rgba(0,0,0,.07);
}
.mini-stat:last-child { border-right:none; }
.ms-num {
  display:block;
  font-family:var(--serif);
  font-size:28px; font-weight:900;
  color:var(--dark); line-height:1;
}
.ms-unit { font-size:14px; color:var(--red); font-weight:700; }
.ms-label { display:block; font-size:11px; color:var(--gray); margin-top:6px; letter-spacing:.5px; }

.about-contact { display:flex; gap:12px; flex-wrap:wrap; }
.btn-primary {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--red); color:#fff;
  padding:13px 24px; border-radius:4px;
  font-size:14px; font-weight:700; transition:var(--ease);
  white-space:nowrap;
}
.btn-primary:hover { background:var(--red-b); transform:translateY(-2px); }
.btn-secondary {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--dark); color:#fff;
  padding:13px 24px; border-radius:4px;
  font-size:14px; font-weight:700; transition:var(--ease);
  white-space:nowrap;
}
.btn-secondary:hover { background:var(--dark4); transform:translateY(-2px); }

/* ═══════════════════════════════════════
   ⑥ 비밀상담 "이런 분께" 섹션
═══════════════════════════════════════ */
.confide {
  padding:110px 0;
  position:relative; overflow:hidden;
}
.confide-bg {
  position:absolute; inset:0; z-index:0;
  background:linear-gradient(150deg,#0d0d0d 0%,#1c0000 55%,#0d0d0d 100%);
}
.confide .container { position:relative; z-index:1; }

.confide-inner {
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:72px; align-items:start;
}

.confide-text { display:flex; flex-direction:column; }

.confide-desc {
  font-size:15px; color:rgba(255,255,255,.6);
  line-height:2; margin-bottom:36px;
  word-break:keep-all;
}
.confide-desc strong { color:#fff; font-weight:700; }

.confide-cta {
  display:inline-flex; align-items:center; gap:10px;
  background:#FEE500; color:#3C1E1E;
  padding:15px 28px; border-radius:4px;
  font-size:15px; font-weight:700;
  transition:var(--ease);
  align-self:flex-start;
  white-space:nowrap;
}
.confide-cta:hover { background:#FFD700; transform:translateY(-2px); box-shadow:0 8px 28px rgba(254,229,0,.4); }

/* confide 제목 */
.confide-title {
  font-size:clamp(22px, 2.8vw, 36px);
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.4;
  white-space: normal;
  margin-bottom:14px;
}
.confide-title .title-accent {
  display: block;
  margin-top: 6px;
}

.confide-cards {
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
}
.confide-card {
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-left:3px solid var(--red);
  padding:20px 18px;
  border-radius:4px;
  transition:var(--ease);
}
.confide-card:hover {
  background:rgba(255,255,255,.07);
  transform:translateY(-3px);
}
.confide-card i {
  font-size:20px; color:var(--red-l);
  margin-bottom:10px; display:block;
}
.confide-card strong {
  display:block; font-size:13.5px; color:#fff;
  font-weight:700; margin-bottom:6px; line-height:1.4;
  word-break:keep-all;
}
.confide-card p { font-size:12px; color:rgba(255,255,255,.45); line-height:1.7; word-break:keep-all; }

/* ═══════════════════════════════════════
   ⑦ 선택 이유
═══════════════════════════════════════ */
.why { padding:110px 0; background:var(--light); }

.why-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:18px; margin-bottom:52px;
}
.why-card {
  background:var(--white);
  border:1px solid rgba(0,0,0,.06);
  border-radius:6px;
  padding:36px 26px;
  transition:var(--ease);
  position:relative; overflow:hidden;
}
.why-card::after {
  content:'';
  position:absolute; top:0; left:0;
  width:100%; height:3px;
  background:var(--red);
  transform:scaleX(0); transform-origin:left;
  transition:transform .3s ease;
}
.why-card:hover { transform:translateY(-5px); box-shadow:0 14px 40px rgba(0,0,0,.1); }
.why-card:hover::after { transform:scaleX(1); }

.why-num {
  font-family:var(--serif);
  font-size:44px; font-weight:900;
  color:rgba(180,0,0,.08);
  line-height:1;
  margin-bottom:-8px;
}
.why-icon {
  width:50px; height:50px;
  background:rgba(180,0,0,.07);
  border:1px solid rgba(180,0,0,.15);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
}
.why-icon i { color:var(--red); font-size:19px; }
.why-card h3 {
  font-family:var(--serif); font-size:16.5px; font-weight:700;
  color:var(--dark); margin-bottom:10px;
}
.why-card p { font-size:13.5px; color:var(--gray2); line-height:1.85; word-break:keep-all; }

/* WHY CTA 박스 */
.why-cta {
  background:var(--dark);
  border-radius:6px; padding:36px 40px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  flex-wrap:wrap;
}
.why-cta-text { flex:1; min-width:0; }
.why-cta-text strong {
  display:block; font-size:18px; color:#fff; font-weight:700; margin-bottom:7px;
  word-break:keep-all;
}
.why-cta-text span { font-size:14px; color:rgba(255,255,255,.45); word-break:keep-all; }
.why-cta-btns { display:flex; gap:12px; flex-shrink:0; flex-wrap:wrap; }

.btn-kakao-lg {
  display:inline-flex; align-items:center; gap:8px;
  background:#FEE500; color:#3C1E1E;
  padding:13px 22px; border-radius:4px;
  font-size:14px; font-weight:700; white-space:nowrap; transition:var(--ease);
}
.btn-kakao-lg:hover { background:#FFD700; transform:translateY(-2px); }

.btn-call-lg {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--red); color:#fff;
  padding:13px 22px; border-radius:4px;
  font-size:14px; font-weight:700; white-space:nowrap; transition:var(--ease);
}
.btn-call-lg:hover { background:var(--red-b); transform:translateY(-2px); }

/* ═══════════════════════════════════════
   ⑧ 형사 사례
═══════════════════════════════════════ */
.cases { padding:110px 0; background:var(--white); }

.cases-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:20px; margin-bottom:28px;
}
.case-card {
  background:var(--light);
  border-radius:6px; padding:28px 24px;
  border-top:3px solid transparent;
  transition:var(--ease);
  display:flex; flex-direction:column;
}
.case-card:hover {
  transform:translateY(-5px);
  box-shadow:0 14px 40px rgba(0,0,0,.09);
  border-top-color:var(--red);
  background:#fff;
}
.case-icon {
  width:46px; height:46px;
  background:rgba(180,0,0,.07); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:14px; flex-shrink:0;
}
.case-icon i { color:var(--red); font-size:18px; }

.case-tag {
  font-size:10.5px; color:var(--red);
  font-weight:700; letter-spacing:1px;
  text-transform:uppercase; margin-bottom:8px;
}
.case-card h3 {
  font-family:var(--serif); font-size:16px; font-weight:700;
  color:var(--dark); line-height:1.45; margin-bottom:12px;
  word-break:keep-all;
}
.case-result { margin-bottom:12px; }
.result-badge {
  display:inline-block; font-size:11px; font-weight:700;
  padding:4px 12px; border-radius:20px; letter-spacing:.8px;
}
.result-badge.win     { background:#e8f5e9; color:#2e7d32; }
.result-badge.dismiss { background:#e3f2fd; color:#1565c0; }
.result-badge.suspend { background:#fff3e0; color:#e65100; }

.case-card p {
  font-size:13px; color:var(--gray); line-height:1.85;
  flex:1; margin-bottom:18px; word-break:keep-all;
}
.case-footer {
  display:flex; align-items:center; justify-content:space-between;
  padding-top:14px; border-top:1px solid rgba(0,0,0,.06);
  font-size:12px; color:var(--gray); gap:8px;
}
.case-result-tag {
  background:var(--dark); color:#fff;
  padding:3px 10px; border-radius:3px;
  font-size:10.5px; font-weight:600;
  white-space:nowrap;
}

.cases-note {
  display:flex; align-items:flex-start; gap:8px;
  font-size:12px; color:var(--gray);
  background:var(--light); padding:12px 18px;
  border-radius:4px; line-height:1.65;
  word-break:keep-all;
}
.cases-note i { margin-top:2px; flex-shrink:0; }

/* ═══════════════════════════════════════
   ⑨ 상담 유도 배너
═══════════════════════════════════════ */
.consult-banner {
  background:linear-gradient(135deg,var(--dark) 0%,#1e0000 100%);
  padding:52px 0;
  border-top:2px solid var(--red);
  border-bottom:2px solid var(--red);
}
.banner-inner {
  display:flex; align-items:center; justify-content:space-between; gap:32px;
  flex-wrap:wrap;
}
.banner-text { flex:1; min-width:0; }
.banner-text strong {
  display:block; font-size:clamp(16px,2.2vw,21px);
  color:#fff; font-weight:700; margin-bottom:8px;
  word-break:keep-all;
}
.banner-text span { font-size:14px; color:rgba(255,255,255,.5); word-break:keep-all; }
.banner-btns { display:flex; gap:12px; flex-shrink:0; flex-wrap:wrap; }

.btn-kakao-banner, .btn-call-banner {
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 22px; border-radius:4px;
  font-size:14px; font-weight:700; white-space:nowrap; transition:var(--ease);
}
.btn-kakao-banner { background:#FEE500; color:#3C1E1E; }
.btn-kakao-banner:hover { background:#FFD700; transform:translateY(-2px); }
.btn-call-banner  { background:var(--red); color:#fff; }
.btn-call-banner:hover  { background:var(--red-b); transform:translateY(-2px); }

/* ═══════════════════════════════════════
   ⑩ 후기
═══════════════════════════════════════ */
.reviews { padding:110px 0; background:var(--light); }

.reviews-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
}
.review-card {
  background:var(--white);
  border-radius:6px; padding:30px 24px;
  border-bottom:3px solid transparent;
  transition:var(--ease);
  position:relative;
  display:flex; flex-direction:column;
}
.review-card:hover {
  transform:translateY(-4px);
  box-shadow:0 12px 36px rgba(0,0,0,.09);
  border-bottom-color:var(--red);
}
.review-stars { display:flex; gap:3px; margin-bottom:14px; }
.review-stars i { color:#FFB800; font-size:13px; }

.review-text {
  font-size:13.5px; color:var(--gray2);
  line-height:1.95; margin-bottom:22px;
  position:relative; padding-top:12px;
  flex:1; word-break:keep-all;
}
.review-text::before {
  content:'"';
  position:absolute; top:-8px; left:-2px;
  font-size:54px;
  color:rgba(180,0,0,.08);
  font-family:Georgia,serif; line-height:1;
}

.review-author {
  display:flex; align-items:center; gap:12px;
  padding-top:16px; border-top:1px solid rgba(0,0,0,.06);
  margin-top:auto;
}
.author-avatar {
  width:40px; height:40px; border-radius:50%;
  background:var(--red); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:700; flex-shrink:0;
}
.review-author strong { display:block; font-size:14px; color:var(--dark); }
.review-author span   { font-size:12px; color:var(--gray); }

/* ═══════════════════════════════════════
   ⑪ 블로그
═══════════════════════════════════════ */
.blog-section { background:var(--dark3); padding:44px 0; }
.blog-inner {
  display:flex; align-items:center;
  justify-content:space-between; gap:24px;
}
.blog-text { display:flex; align-items:center; gap:18px; min-width:0; }
.blog-icon  { font-size:30px; color:#03c75a; flex-shrink:0; }
.blog-text strong { display:block; color:#fff; font-size:15px; font-weight:700; margin-bottom:4px; word-break:keep-all; }
.blog-text span   { color:rgba(255,255,255,.38); font-size:13px; word-break:keep-all; }

.btn-blog {
  display:inline-flex; align-items:center; gap:8px;
  background:#03c75a; color:#fff;
  padding:12px 22px; border-radius:4px;
  font-size:14px; font-weight:700; white-space:nowrap; transition:var(--ease);
  flex-shrink:0;
}
.btn-blog:hover { background:#02b350; transform:translateY(-2px); }

/* ═══════════════════════════════════════
   ⑫ 오시는 길
═══════════════════════════════════════ */
.contact { padding:110px 0; background:var(--white); }
.contact-grid {
  display:grid; grid-template-columns:1.1fr 1fr; gap:48px; align-items:start;
}

/* ═══════════════════════════════════════
   지도 — 커스텀 미니맵 디자인
═══════════════════════════════════════ */
.map-wrap {
  border-radius:8px; overflow:hidden;
  height:560px;
  background:#111827;
  display:flex; flex-direction:column;
  position:relative;
  box-shadow:0 8px 32px rgba(0,0,0,.2);
}

/* 비주얼 지도 영역 */
.map-visual {
  flex:1; position:relative; overflow:hidden;
  background:linear-gradient(160deg,#0f1923 0%,#1a2535 50%,#0d1520 100%);
}
.map-grid {
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size:40px 40px;
}
.map-roads {
  position:absolute; inset:0;
  width:100%; height:100%;
}

/* 마커 핀 */
.map-marker {
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-70%);
  display:flex; flex-direction:column; align-items:center;
  z-index:5;
}
.marker-pin {
  width:48px; height:48px;
  background:var(--red);
  border-radius:50% 50% 50% 0;
  transform:rotate(-45deg);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 20px rgba(180,0,0,.6);
  animation:markerBounce 2s ease-in-out infinite;
  flex-shrink:0;
}
.marker-pin i {
  transform:rotate(45deg);
  color:#fff; font-size:18px;
}
@keyframes markerBounce {
  0%,100%{transform:rotate(-45deg) translateY(0)}
  50%{transform:rotate(-45deg) translateY(-6px)}
}
.marker-label {
  background:rgba(0,0,0,.85);
  color:#fff;
  font-size:12px; font-weight:700;
  padding:5px 12px; border-radius:20px;
  white-space:nowrap;
  margin-top:10px;
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(4px);
}
.marker-pulse {
  position:absolute;
  top:24px; left:50%;
  transform:translateX(-50%);
  width:80px; height:80px;
  border-radius:50%;
  background:rgba(180,0,0,.15);
  border:1px solid rgba(180,0,0,.3);
  animation:pulseRing 2s ease-out infinite;
  z-index:-1;
}
@keyframes pulseRing {
  0%{transform:translateX(-50%) scale(0.5); opacity:.8}
  100%{transform:translateX(-50%) scale(2); opacity:0}
}

/* 지하철 안내 오버레이 */
.map-overlay-info {
  position:absolute;
  bottom:16px; left:16px;
  background:rgba(0,0,0,.75);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.1);
  border-radius:8px;
  padding:10px 14px;
  display:flex; align-items:center; gap:10px;
  z-index:5;
}
.moi-icon {
  width:32px; height:32px; border-radius:50%;
  background:rgba(0,120,255,.3);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.moi-icon i { color:#60a5fa; font-size:13px; }
.map-overlay-info strong {
  display:block; color:#fff; font-size:12px; font-weight:700; margin-bottom:2px;
}
.map-overlay-info span { font-size:11px; color:rgba(255,255,255,.45); }

/* 지도 버튼 행 */
.map-btn-row {
  display:flex; gap:0;
  border-top:1px solid rgba(255,255,255,.06);
  flex-shrink:0;
}
.map-btn {
  flex:1;
  display:flex; align-items:center; justify-content:center; gap:7px;
  padding:14px 8px;
  font-size:13px; font-weight:700;
  transition:var(--ease);
  border-right:1px solid rgba(255,255,255,.06);
  cursor:pointer;
}
.map-btn:last-child { border-right:none; }
.map-btn span { white-space:nowrap; }
.kakao-btn { background:#2a2000; color:#FEE500; }
.kakao-btn:hover { background:#3a2e00; }
.naver-btn { background:#001a0d; color:#03c75a; }
.naver-btn:hover { background:#002b14; }
.google-btn { background:#0a1628; color:#7baaf7; }
.google-btn:hover { background:#122040; }

.contact-info { display:flex; flex-direction:column; }
.info-block {
  display:flex; align-items:flex-start; gap:16px;
  padding:20px 0; border-bottom:1px solid rgba(0,0,0,.06);
}
.info-block:first-child { padding-top:0; }
.info-icon {
  width:38px; height:38px; flex-shrink:0;
  background:rgba(180,0,0,.07); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin-top:2px;
}
.info-icon i { color:var(--red); font-size:14px; }
.info-block strong {
  display:block; font-size:11px; font-weight:700;
  letter-spacing:1.5px; color:var(--red);
  text-transform:uppercase; margin-bottom:6px;
}
.info-block p { font-size:14px; color:var(--gray2); line-height:1.9; word-break:keep-all; }
.info-block a { color:var(--dark); font-weight:600; transition:var(--ease); }
.info-block a:hover { color:var(--red); }

.contact-cta-wrap {
  display:flex; flex-direction:column; gap:12px; padding-top:24px;
}

/* ═══════════════════════════════════════
   ⑬ 푸터
═══════════════════════════════════════ */
.footer { background:var(--dark); padding:72px 0 0; }
.footer-grid {
  display:grid; grid-template-columns:2fr 1fr 1fr 1.2fr;
  gap:40px; padding-bottom:52px;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.footer-logo {
  font-family:var(--serif); font-size:21px; font-weight:900;
  color:#fff; letter-spacing:3px; margin-bottom:6px;
}
.footer-tagline {
  font-size:12px; color:var(--red-l); letter-spacing:1px;
  margin-bottom:14px; font-weight:600;
}
.footer-desc {
  font-size:13px; color:rgba(255,255,255,.35);
  line-height:1.9; margin-bottom:20px; word-break:keep-all;
}
.footer-sns { display:flex; gap:10px; }
.footer-sns a {
  width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.06);
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.45); font-size:14px;
  transition:var(--ease);
}
.footer-sns a:hover { background:var(--red); color:#fff; }

.footer h4 {
  font-size:11px; font-weight:700;
  color:rgba(255,255,255,.4); letter-spacing:2.5px;
  text-transform:uppercase; margin-bottom:16px;
}
.footer p { font-size:13px; color:rgba(255,255,255,.3); line-height:1.9; margin-bottom:3px; word-break:keep-all; }

.footer-kakao, .footer-phone {
  display:flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius:4px;
  font-size:13px; font-weight:600;
  margin-bottom:8px; transition:var(--ease);
}
.footer-kakao { background:#FEE500; color:#3C1E1E; }
.footer-phone  { background:var(--red); color:#fff; }
.footer-kakao:hover, .footer-phone:hover { transform:translateY(-2px); }

.footer-bottom { padding:22px 0; text-align:center; }
.footer-bottom p { font-size:12px; color:rgba(255,255,255,.2); line-height:1.7; }
.footer-disc { margin-top:4px; font-size:11px !important; word-break:keep-all; }

/* ═══════════════════════════════════════
   플로팅 버튼
═══════════════════════════════════════ */
.floating-btns {
  position:fixed; right:24px; bottom:80px; z-index:900;
  display:flex; flex-direction:column; gap:10px;
  opacity:0; transform:translateY(20px);
  transition:all .4s ease;
  pointer-events:none;
}
.floating-btns.visible { opacity:1; transform:translateY(0); pointer-events:all; }

.float-btn {
  display:flex; align-items:center; gap:8px;
  padding:12px 20px; border-radius:50px;
  font-size:13px; font-weight:700;
  box-shadow:0 4px 20px rgba(0,0,0,.3);
  transition:var(--ease); white-space:nowrap;
}
.float-btn.kakao { background:#FEE500; color:#3C1E1E; }
.float-btn.call  { background:var(--red); color:#fff; }
.float-btn:hover { transform:translateY(-3px) scale(1.04); box-shadow:0 8px 28px rgba(0,0,0,.35); }
.float-btn i { font-size:16px; }

.scroll-top {
  position:fixed; right:24px; bottom:24px; z-index:900;
  width:44px; height:44px; border-radius:50%;
  background:rgba(30,30,30,.9); color:rgba(255,255,255,.55);
  display:flex; align-items:center; justify-content:center;
  font-size:14px;
  box-shadow:0 4px 18px rgba(0,0,0,.3);
  opacity:0; transform:translateY(20px);
  transition:all .4s ease;
}
.scroll-top.visible { opacity:1; transform:translateY(0); }
.scroll-top:hover { background:var(--red); color:#fff; }

/* ═══════════════════════════════════════
   스크롤 Reveal
═══════════════════════════════════════ */
.reveal {
  opacity:0; transform:translateY(36px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.revealed { opacity:1; transform:translateY(0); }

/* ═══════════════════════════════════════
   애니메이션
═══════════════════════════════════════ */
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideLeft { from{opacity:0;transform:translateX(-28px)} to{opacity:1;transform:translateX(0)} }

/* ═══════════════════════════════════════
   반응형 — 1200px 이하 (넓은 태블릿/중간 PC)
═══════════════════════════════════════ */
@media (max-width:1200px) {
  .header-inner { gap:12px; }
  .main-nav { gap:18px; }
  .nav-link { font-size:12.5px; }
}

/* ═══════════════════════════════════════
   반응형 — 1024px 이하 (태블릿 가로)
═══════════════════════════════════════ */
@media (max-width:1024px) {
  .why-grid   { grid-template-columns:repeat(2,1fr); }
  .cases-grid { grid-template-columns:repeat(2,1fr); }
  .reviews-grid { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1.5fr 1fr 1fr; gap:28px; }
  /* 3열이므로 마지막 열은 전체 폭 */
  .footer-quick { grid-column:1 / -1; display:flex; flex-direction:row; align-items:center; gap:12px; flex-wrap:wrap; }
  .footer-quick h4 { width:100%; margin-bottom:8px; }
  .footer-kakao, .footer-phone { margin-bottom:0; }
}

/* ═══════════════════════════════════════
   반응형 — 960px 이하 (태블릿 세로)
═══════════════════════════════════════ */
@media (max-width:960px) {
  /* 변호사 소개: 1컬럼 */
  .about-grid {
    grid-template-columns:1fr;
    gap:36px;
  }
  .about-img-frame {
    aspect-ratio:16/9;
    max-height:380px;
  }
  .about-career-list { grid-template-columns:repeat(4,1fr); }

  /* 비밀상담: 1컬럼 */
  .confide-inner {
    grid-template-columns:1fr;
    gap:44px;
  }
  .confide-cards { grid-template-columns:repeat(3,1fr); }
  .confide-title { font-size:clamp(22px,4vw,34px); }

  /* 연락처: 1컬럼 */
  .contact-grid { grid-template-columns:1fr; gap:36px; }
  .map-wrap { height:420px; }

  /* 배너 세로 정렬 */
  .banner-inner { flex-direction:column; text-align:center; }
  .banner-btns { justify-content:center; }

  /* 선택이유 CTA */
  .why-cta { flex-direction:column; align-items:flex-start; gap:20px; }
  .why-cta-btns { flex-direction:row; flex-wrap:wrap; }

  /* 블로그 */
  .blog-inner { flex-direction:column; text-align:center; }
  .blog-text { flex-direction:column; align-items:center; text-align:center; gap:10px; }

  /* 푸터 */
  .footer-grid { grid-template-columns:1fr 1fr; gap:28px; }
  .footer-quick { grid-column:1 / -1; display:flex; flex-direction:row; align-items:center; gap:12px; flex-wrap:wrap; }
  .footer-quick h4 { width:100%; margin-bottom:4px; }
  .footer-kakao, .footer-phone { margin-bottom:0; }
}

/* ═══════════════════════════════════════
   반응형 — 768px 이하 (모바일 큰 화면)
═══════════════════════════════════════ */
@media (max-width:768px) {
  /* 헤더: 햄버거 모드 */
  .main-nav, .header-cta { display:none; }
  .hamburger { display:flex; }
  .br-mo { display:block; }

  /* 히어로 */
  .hero-content { padding:120px 20px 80px; }
  .hero-eyebrow { font-size:10px; padding:6px 14px; letter-spacing:2px; }
  .hero-stats {
    width:100%;
    border-radius:6px;
  }
  .stat { padding:16px 10px; }
  .hero-cta { flex-direction:column; gap:10px; }
  .cta-kakao, .cta-phone { width:100%; min-width:unset; justify-content:center; }

  /* 그리드 1컬럼 */
  .why-grid, .cases-grid, .reviews-grid { grid-template-columns:1fr; }
  .confide-cards { grid-template-columns:1fr 1fr; }
  .about-career-list { grid-template-columns:1fr 1fr; }

  /* 선택이유 CTA */
  .why-cta { padding:28px 24px; gap:16px; }
  .why-cta-btns { flex-direction:column; width:100%; }
  .btn-kakao-lg, .btn-call-lg { width:100%; justify-content:center; }

  /* 배너 */
  .banner-btns { flex-direction:column; width:100%; }
  .btn-kakao-banner, .btn-call-banner { width:100%; justify-content:center; }

  /* 블로그 */
  .btn-blog { width:100%; justify-content:center; }

  /* 푸터 */
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .footer-quick { flex-direction:column; align-items:stretch; }
  .footer-kakao, .footer-phone { justify-content:center; }

  /* 플로팅 버튼 */
  .float-btn span { display:none; }
  .float-btn {
    width:54px; height:54px;
    border-radius:50%; padding:0;
    justify-content:center;
  }
  .floating-btns { right:16px; bottom:72px; gap:10px; }
  .scroll-top { right:16px; bottom:14px; }

  /* 긴급 바 */
  .eb-live { display:none; }
  .eb-msg { font-size:12px; }

  /* 지도 */
  .map-wrap { height:340px; }
}

/* ═══════════════════════════════════════
   반응형 — 560px 이하 (모바일 중간)
═══════════════════════════════════════ */
@media (max-width:560px) {
  .about-career-list { grid-template-columns:1fr 1fr; }
  .confide-cards { grid-template-columns:1fr; }

  /* 변호사 소개 미니 수치: 세로 */
  .about-mini-stats {
    flex-direction:column;
    border-radius:6px; overflow:hidden;
  }
  .mini-stat {
    border-right:none;
    border-bottom:1px solid rgba(0,0,0,.07);
    padding:16px 12px;
  }
  .mini-stat:last-child { border-bottom:none; }

  /* about 버튼: 세로 */
  .about-contact { flex-direction:column; }
  .btn-primary, .btn-secondary { width:100%; justify-content:center; }
}

/* ═══════════════════════════════════════
   반응형 — 480px 이하 (모바일 작은 화면)
═══════════════════════════════════════ */
@media (max-width:480px) {
  .container { padding:0 16px; }

  /* 섹션 패딩 */
  .about, .confide, .why, .cases, .reviews, .contact { padding:72px 0; }

  /* 히어로 */
  .hero-content { padding:108px 16px 72px; }
  .hero-eyebrow { display:none; }

  /* 히어로 통계: 3열 그리드 */
  .hero-stats {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    width:100%;
  }
  .stat-divider { display:none; }
  .stat { padding:14px 6px; }
  .stat-num { font-size:26px; }
  .stat-unit { font-size:12px; }
  .stat-label { font-size:10px; }

  /* 섹션 타이틀 */
  .section-title { font-size:22px; }
  .confide-title { font-size:20px; }

  /* why-cta */
  .why-cta { padding:22px 16px; }
  .why-cta-text strong { font-size:16px; }
  .why-cta-text span { font-size:13px; }

  /* 배너 */
  .consult-banner { padding:36px 0; }

  /* 지도 */
  .map-wrap { height:280px; }
  .map-btn { padding:12px 6px; font-size:12px; }
  .map-overlay-info { padding:8px 10px; }
  .moi-icon { width:28px; height:28px; }
  .map-overlay-info strong { font-size:11px; }
  .map-overlay-info span { font-size:10px; }

  /* 후기 카드 */
  .review-card { padding:24px 18px; }

  /* 블로그 */
  .blog-section { padding:32px 0; }

  /* 푸터 */
  .footer { padding:52px 0 0; }
  .footer-grid { gap:22px; }

  /* 플로팅 */
  .float-btn { width:50px; height:50px; }
  .floating-btns { right:12px; bottom:64px; }
  .scroll-top { right:12px; bottom:10px; width:40px; height:40px; }
}
