/* 박진수 변호사 홈페이지 */
:root {
  --navy: #13203a;
  --navy-2: #1c2d4f;
  --gold: #978569;
  --gold-2: #b9a582;
  --ivory: #f7f4ee;
  --paper: #ffffff;
  --ink: #1d2230;
  --muted: #5d6474;
  --line: #e4ded3;
  --radius: 14px;
  --serif: "Noto Serif KR", serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.pc { display: none; }
@media (min-width: 900px) { .pc { display: inline; } }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #85745a; }
.btn-line { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-kakao { background: #fee500; color: #191919; }
.btn-kakao:hover { background: #f2d900; }
.btn-line-dark { border-color: var(--navy); color: var(--navy); }
.btn-line-dark:hover { background: var(--navy); color: #fff; }

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19,32,58,.96);
  backdrop-filter: blur(8px);
  color: #fff;
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--serif); font-size: 18px; letter-spacing: .02em; }
.brand-text small { font-size: 12px; color: var(--gold-2); }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { opacity: .85; transition: opacity .2s, color .2s; }
.nav a:hover { opacity: 1; color: var(--gold-2); }
.header-cta { padding: 9px 16px; font-size: 14px; }
.nav-toggle { display: none; }
.gw-link {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.3); color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: .08em;
  transition: border-color .2s, background .2s;
}
.gw-link:hover { border-color: var(--gold-2); background: rgba(255,255,255,.08); }
.nav a { white-space: nowrap; }

@media (min-width: 981px) and (max-width: 1180px) {
  .header-inner { gap: 16px; }
  .nav { gap: 14px; font-size: 14px; }
}

@media (max-width: 980px) {
  .header-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--navy);
    padding: 8px 20px 20px; display: none;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 16px; }
}

/* 메인 */
.hero {
  background:
    radial-gradient(1200px 500px at 85% 20%, rgba(151,133,105,.28), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.25fr .75fr; align-items: center;
  gap: 48px; padding-top: 84px; padding-bottom: 96px;
}
.eyebrow { color: var(--gold-2); font-weight: 600; letter-spacing: .04em; margin: 0 0 18px; font-size: 15px; }
.hero h1 { font-family: var(--serif); font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; letter-spacing: -.01em; }
.hero h1 .name { color: var(--gold-2); }
.lead { margin: 22px 0 28px; font-size: 17px; color: rgba(255,255,255,.82); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.badges li {
  font-size: 14px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
}
.badges b { color: var(--gold-2); margin-right: 6px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { margin: 0; position: relative; justify-self: center; width: 100%; max-width: 340px; }
.hero-photo::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 1px solid var(--gold); border-radius: 18px;
}
.hero-photo img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%;
  border-radius: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.hero-photo figcaption {
  position: relative; margin-top: 18px; text-align: center;
  display: flex; flex-direction: column;
}
.hero-photo figcaption strong { font-family: var(--serif); font-size: 22px; letter-spacing: .3em; }
.hero-photo figcaption span { font-size: 13px; color: rgba(255,255,255,.65); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .hero-photo { order: -1; max-width: 230px; }
  .hero-text { text-align: center; }
  .badges, .hero-cta { justify-content: center; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* 강점 */
.strengths { background: var(--ivory); border-bottom: 1px solid var(--line); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.strengths .grid-4 { padding-top: 52px; padding-bottom: 52px; }
.strength .num { font-family: var(--serif); color: var(--gold); font-size: 15px; font-weight: 700; }
.strength h3 { font-size: 18px; margin: 6px 0 8px; color: var(--navy); }
.strength p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

/* 섹션 공통 */
.section { padding: 96px 0; }
.section-tint { background: var(--ivory); }
.section-dark { background: var(--navy); color: #fff; }
.section-head { text-align: center; margin-bottom: 48px; }
.kicker { margin: 0 0 6px; color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .2em; }
.section-head h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 38px); color: var(--navy); }
.section-dark .section-head h2 { color: #fff; }
.section-head .sub { margin: 12px 0 0; color: var(--muted); }
.section-dark .section-head .sub { color: rgba(255,255,255,.7); }
.more { text-align: center; margin: 36px 0 0; }
.more a { color: var(--gold); font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.section-dark .more a { color: var(--gold-2); }
.note { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 0; }
@media (max-width: 560px) { .section { padding: 68px 0; } .section-head { margin-bottom: 34px; } }

/* 변호사 소개 */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.about-photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%;
  border-radius: var(--radius); margin-bottom: 30px;
}
.greeting h3 { font-family: var(--serif); font-size: 26px; color: var(--navy); margin-bottom: 22px; }
.greeting p { color: #3b4252; margin: 0 0 14px; }
.greeting .sign { margin-top: 26px; text-align: right; color: var(--muted); }
.greeting .sign b { font-family: var(--serif); font-size: 22px; color: var(--navy); margin-left: 6px; letter-spacing: .15em; }
.career { display: grid; gap: 18px; }
.career-block { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.career-block h4 { color: var(--navy); font-size: 17px; margin-bottom: 12px; padding-left: 12px; border-left: 3px solid var(--gold); }
.career-block li { position: relative; padding-left: 14px; font-size: 15px; color: #3b4252; margin: 4px 0; }
.career-block li::before { content: ""; position: absolute; left: 0; top: .78em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.career-block li.hl { color: var(--navy); font-weight: 600; }
.tag-groups { display: grid; gap: 14px; }
.tg-title { margin: 0 0 4px; font-weight: 700; font-size: 14px; color: var(--gold); }
.past summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.past[open] summary { margin-bottom: 12px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 36px; } }

/* 업무분야 */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(19,32,58,.08); border-color: var(--gold-2); }
.card h3 { font-family: var(--serif); color: var(--navy); font-size: 22px; }
.card > p { color: var(--muted); font-size: 15px; margin: 8px 0 16px; }
.card li { font-size: 15px; padding: 7px 0; border-top: 1px dashed var(--line); }

/* 성공사례 */
.feature-case {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; border-radius: 20px; padding: 40px 44px; margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.feature-case::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px;
  background: url("../img/daebeom-tiger.png") center / contain no-repeat; opacity: .08;
}
.fc-body { position: relative; max-width: 760px; }
.fc-label { color: var(--gold-2); font-weight: 700; font-size: 14px; margin: 0 0 8px; }
.feature-case h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 14px; }
.feature-case p { color: rgba(255,255,255,.82); margin: 0; }
.fc-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.fc-links a { color: var(--gold-2); font-weight: 600; }
.case {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.case:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(19,32,58,.08); border-color: var(--gold-2); }
.case-tag { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .04em; }
.case strong { color: var(--navy); font-size: 17px; line-height: 1.45; }
.case p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .feature-case { padding: 30px 24px; } }

/* 방송·영상 */
.tv {
  display: flex; gap: 28px; align-items: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 30px 34px; margin-bottom: 40px;
}
.tv-badge {
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold);
  font-weight: 800; font-size: 26px; letter-spacing: .05em;
}
.tv h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.tv p { margin: 0 0 12px; color: rgba(255,255,255,.78); }
.tv a { color: var(--gold-2); font-weight: 600; }
@media (max-width: 640px) { .tv { flex-direction: column; text-align: center; padding: 28px 22px; } .tv-badge { width: 76px; height: 76px; font-size: 20px; } }

.video-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.tab {
  font: inherit; font-size: 15px; cursor: pointer; padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff;
  transition: background .2s, border-color .2s, color .2s;
}
.tab:hover { border-color: var(--gold-2); }
.tab.is-active { background: var(--gold); border-color: var(--gold); }
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.video {
  font: inherit; text-align: left; color: #fff; cursor: pointer;
  background: none; border: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.video[hidden] { display: none; }
.video .thumb {
  position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden;
  background: var(--navy-2);
}
.video .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.video:hover .thumb img { transform: scale(1.05); }
.video .thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%; background: rgba(19,32,58,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 24px no-repeat;
  border: 1px solid rgba(255,255,255,.5);
}
.video .vt { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.9); }
@media (max-width: 980px) { .videos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .videos { grid-template-columns: repeat(2, 1fr); gap: 14px; } .video .vt { font-size: 14px; } }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,10,20,.82); }
.modal-box { position: relative; width: min(420px, 100%); }
.modal-frame { aspect-ratio: 9 / 16; max-height: 82vh; margin: 0 auto; background: #000; border-radius: 12px; overflow: hidden; }
.modal-frame iframe { width: 100%; height: 100%; border: 0; }
.modal-close {
  position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}

/* 법률칼럼 */
.column {
  display: flex; flex-direction: column; gap: 10px; min-height: 140px;
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--paper); transition: border-color .2s, box-shadow .2s;
}
.column:hover { border-color: var(--gold-2); box-shadow: 0 14px 32px rgba(19,32,58,.08); }
.col-tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: #fff; background: var(--navy); padding: 3px 10px; border-radius: 999px; }
.column strong { font-size: 17px; color: var(--navy); line-height: 1.5; }

/* 상담 유도 */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; overflow: hidden;
}
.cta-inner { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: end; padding-top: 56px; }
.cta-inner img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0; border-radius: 18px 18px 0 0; }
.cta-text { padding-bottom: 64px; }
.cta-text h2 { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 36px); margin: 4px 0 14px; }
.cta-text > p:not(.kicker) { color: rgba(255,255,255,.8); margin: 0 0 26px; }
.cta-text .kicker { color: var(--gold-2); }
@media (max-width: 760px) {
  .cta-inner { grid-template-columns: 1fr; gap: 0; padding-top: 56px; text-align: center; }
  .cta-inner img { order: 2; max-width: 240px; margin: 0 auto; }
  .cta-text { padding-bottom: 36px; }
  .cta-text .hero-cta { justify-content: center; }
  .cta-text .hero-cta .btn { flex: 1 1 100%; }
}

/* 상담·오시는 길 */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; counter-reset: step; }
.steps li {
  counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; font-size: 13px; color: var(--muted); line-height: 1.5;
}
.steps li::before { content: "STEP " counter(step); display: block; color: var(--gold); font-weight: 800; font-size: 12px; letter-spacing: .08em; }
.steps b { display: block; color: var(--navy); font-size: 16px; margin: 2px 0 4px; }
.info { display: grid; grid-template-columns: 88px 1fr; gap: 10px 14px; margin: 0 0 22px; }
.info dt { font-weight: 700; color: var(--navy); }
.info dd { margin: 0; color: #3b4252; }
.info a { border-bottom: 1px solid var(--line); }
.ways { display: grid; gap: 6px; padding: 18px 20px; background: var(--paper); border-radius: 12px; border: 1px solid var(--line); margin-bottom: 22px; font-size: 15px; }
.ways b { display: inline-block; min-width: 64px; color: var(--gold); }
.contact-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.map { display: flex; flex-direction: column; gap: 10px; }
.map iframe { flex: 1; width: 100%; min-height: 380px; border: 0; border-radius: var(--radius); background: var(--line); }
.map-links { display: flex; gap: 10px; }
.map-links a { flex: 1; text-align: center; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 14px; color: var(--navy); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } .info { grid-template-columns: 72px 1fr; } .map iframe { min-height: 300px; } }

/* 푸터 */
.site-footer { background: #0d1628; color: rgba(255,255,255,.62); font-size: 14px; padding: 48px 0 40px; }
.footer-inner p { margin: 4px 0; }
.footer-inner b { color: #fff; }
.footer-logo { width: 140px; height: auto; margin-bottom: 18px; opacity: .9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0 10px; }
.footer-links a { color: var(--gold-2); }
.copy { font-size: 13px; opacity: .7; }

/* 모바일 하단 고정 버튼 */
.mobile-bar { display: none; }
@media (max-width: 768px) {
  body { padding-bottom: 62px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--navy); box-shadow: 0 -6px 20px rgba(0,0,0,.18);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { padding: 18px 6px; text-align: center; color: #fff; font-weight: 700; font-size: 15px; border-left: 1px solid rgba(255,255,255,.1); }
  .mobile-bar a:first-child { background: var(--gold); border-left: 0; }
  .mobile-bar a.kakao { background: #fee500; color: #191919; border-left: 0; }
}

/* 스크롤 등장 효과 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
