/* ============================================================
   다올 포렌식 — 사례 페이지 공용 스타일
   메인(index.html)과 동일한 디자인 토큰 사용
   사용처: /cases/index.html, /cases/[사례]/index.html
   ============================================================ */
:root {
  --white: #FFFFFF;
  --warm-gray: #F6F5F2;
  --dark: #15171C;
  --ink: #1D2128;
  --text: #3D4250;
  --text-soft: #6E7380;
  --white-text: #F5F4F1;
  --white-dim: rgba(245, 244, 241, 0.72);
  --gold: #B5985C;
  --gold-deep: #8F7641;
  --gold-pale: #F6F0E3;
  --line: #E7E5E0;
  --line-dark: rgba(245, 244, 241, 0.12);
  --radius: 5px;
  --shadow: 0 2px 24px rgba(29, 33, 40, 0.06);
  --serif: 'Noto Serif KR', serif;
  --sans: 'Noto Sans KR', sans-serif;
  --en: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
  --container: 1120px;
  --article: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.article-container { width: 100%; max-width: var(--article); margin: 0 auto; padding: 0 24px; }

/* ============ 버튼 (메인과 동일) ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 16px 40px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-black { background: var(--ink); color: var(--white); }
.btn-black:hover { background: #000; transform: translateY(-2px); }
.btn-ghost { border-color: #C9C7C1; color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink); }

/* ============ 헤더 (메인과 동일, 다크 고정) ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(21, 23, 28, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.header-logo img { height: 34px; width: auto; }
.gnb { display: none; }
.header-cta { display: none; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
  width: 48px; height: 48px;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle span:nth-child(1) { width: 24px; }
.menu-toggle span:nth-child(2) { width: 17px; }
.menu-toggle.active span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { width: 24px; transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 78px; left: 0; right: 0;
  z-index: 99;
  background: var(--dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 16px 24px 32px;
}
.mobile-menu a {
  display: block;
  padding: 16px 4px;
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--white-text);
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu a.menu-phone {
  font-family: var(--en);
  font-weight: 700;
  color: var(--gold);
  border-bottom: none;
}

/* ============ 사례 목록 페이지 ============ */
.cases-hero {
  background: var(--dark);
  padding: 170px 0 80px;
  text-align: center;
}
.cases-hero-eyebrow {
  font-family: var(--en);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.cases-hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.8rem, 5.5vw, 2.9rem);
  line-height: 1.45;
  color: var(--white-text);
}
.cases-hero-sub {
  margin-top: 20px;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  color: var(--white-dim);
}

.cases-list { background: var(--warm-gray); padding: clamp(56px, 9vw, 100px) 0; }
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(29, 33, 40, 0.1);
}
.case-card-img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}
.case-card-body { padding: 32px 30px 34px; display: flex; flex-direction: column; flex-grow: 1; }
.case-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-deep);
  background: var(--gold-pale);
  border-radius: 99px;
  margin-bottom: 16px;
}
.case-card-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 12px;
}
.case-card-desc {
  font-size: 0.94rem;
  color: var(--text-soft);
  flex-grow: 1;
}
.case-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-deep);
}
.case-card-more::after { content: "→"; transition: transform 0.2s ease; }
.case-card:hover .case-card-more::after { transform: translateX(4px); }

/* ============ 사례 상세 (아티클) ============ */
.article-head {
  background: var(--warm-gray);
  padding: 150px 0 56px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 32px;
}
.breadcrumb a { transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb .sep {
  width: 16px;
  height: 1px;
  background: var(--gold);
  opacity: 0.65;
}
.breadcrumb span:last-child:not(.sep) {
  color: var(--gold-deep);
  font-weight: 700;
}
.article-tags { display: flex; gap: 8px; margin-bottom: 20px; }
.article-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.6rem, 4.6vw, 2.5rem);
  line-height: 1.5;
  color: var(--ink);
}
.article-meta {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.article-meta strong { font-weight: 500; color: var(--text); }

.article-cover {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.article-cover-inner {
  aspect-ratio: 21 / 9;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  margin-top: -28px;
  box-shadow: var(--shadow);
}

/* 3줄 요약 박스 */
.article-summary {
  margin: clamp(40px, 6vw, 56px) auto 0;
  background: var(--gold-pale);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 40px) clamp(24px, 4vw, 40px);
}
.article-summary dl { display: grid; gap: 26px; }
.article-summary dl > div {
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}
.article-summary dt {
  font-family: var(--en);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.article-summary dd {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink);
}

/* 본문 */
.article-body { padding: clamp(48px, 8vw, 80px) 0 0; }
.article-body h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.4vw, 1.6rem);
  font-weight: 900;
  color: var(--ink);
  margin: clamp(40px, 7vw, 64px) 0 20px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h2::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}
.article-body p {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--text);
  margin-bottom: 18px;
}
.article-body ul { margin: 0 0 18px; display: grid; gap: 10px; }
.article-body ul li {
  position: relative;
  padding-left: 24px;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--text);
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 13px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* 팁 박스 */
.article-tip {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--warm-gray);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
}
.article-tip strong { font-weight: 700; color: var(--ink); }

/* 이런 분들께 도움이 됩니다 */
.article-fit {
  margin-top: clamp(48px, 8vw, 72px);
  background: var(--warm-gray);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 44px);
}
.article-fit-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 24px;
}
.article-fit ul { display: grid; gap: 14px; }
.article-fit li {
  position: relative;
  padding-left: 30px;
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text);
}
.article-fit li::before {
  content: "";
  position: absolute;
  left: 2px; top: 10px;
  width: 11px; height: 6px;
  border-left: 2.5px solid var(--gold-deep);
  border-bottom: 2.5px solid var(--gold-deep);
  transform: rotate(-45deg);
}

/* CTA — .article-body 내부에 있어도 색상이 덮이지 않도록 우선순위 보정 */
.article-body .article-cta-title,
.article-cta-title {
  display: block;
  margin: 0;
  color: var(--white-text);
}
.article-body .article-cta-title::before { display: none; }
.article-body .article-cta-sub,
.article-cta-sub {
  color: var(--white-dim);
  margin-bottom: 0;
}

/* CTA */
.article-cta {
  margin-top: clamp(56px, 9vw, 88px);
  text-align: center;
  padding: clamp(48px, 8vw, 72px) 24px;
  background: var(--dark);
  border-radius: var(--radius);
}
.article-cta-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 900;
  line-height: 1.5;
  color: var(--white-text);
}
.article-cta-sub {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--white-dim);
}
.article-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}
.article-cta-actions .btn { width: min(100%, 320px); }
.article-cta .btn-white { background: var(--white); color: var(--ink); }
.article-cta .btn-white:hover { background: var(--gold-pale); }
.article-cta .btn-ghost-dark {
  border-color: rgba(245, 244, 241, 0.4);
  color: var(--white-text);
  background: rgba(255, 255, 255, 0.04);
}
.article-cta .btn-ghost-dark:hover { border-color: var(--white-text); }

/* 동의 고지 */
.article-consent {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--text-soft);
  text-align: center;
}

/* 다른 사례 */
.article-others {
  padding: clamp(56px, 9vw, 88px) 0;
}
.article-others-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 28px;
  text-align: center;
}
.article-others .cases-grid { max-width: 760px; margin: 0 auto; }
.article-others-back {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* ============ Footer (메인과 동일) ============ */
.site-footer {
  background: var(--dark);
  padding: clamp(56px, 9vw, 88px) 0 48px;
}
.footer-inner { display: flex; flex-direction: column; gap: 36px; }
.footer-logo img { height: 32px; width: auto; }
.footer-info {
  font-size: 0.9rem;
  line-height: 2.1;
  color: var(--white-dim);
}
.footer-info strong { font-weight: 500; color: var(--white-text); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--en);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(245, 244, 241, 0.4);
}

.footer-credit {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-credit:hover { color: rgba(245, 244, 241, 0.75); }

/* ============ 상담 모달 (메인과 동일) ============ */
.contact-cta-pc { display: none !important; }
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 23, 28, 0.6);
  backdrop-filter: blur(4px);
  padding: 24px;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: 8px;
  padding: 52px 40px 44px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-soft);
  cursor: pointer;
}
.modal-close:hover { color: var(--ink); }
.modal-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.modal-eyebrow::before, .modal-eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
}
.modal-title { font-family: var(--serif); font-size: 1.55rem; font-weight: 900; color: var(--ink); }
.modal-sub { margin-top: 12px; font-size: 0.93rem; color: var(--text-soft); }
.modal-rows { margin-top: 36px; border-top: 1px solid var(--line); }
.modal-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.modal-label { width: 60px; flex-shrink: 0; font-size: 0.88rem; color: var(--text-soft); }
.modal-value { flex-grow: 1; font-size: 0.97rem; font-weight: 700; color: var(--ink); word-break: break-all; }
.modal-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold-deep);
  background: var(--gold-pale);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}
.modal-copy:hover { background: #EDE2CB; }

/* ============ 모바일 플로팅 전화 ============ */
.float-call {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  background: var(--ink);
  color: var(--gold);
  border-radius: 50%;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
}
.float-call:active { transform: scale(0.93); }

/* ============ 데스크탑 (768px+) ============ */
@media (min-width: 768px) {
  .gnb { display: flex; align-items: center; gap: 40px; }
  .gnb a {
    font-size: 0.94rem;
    font-weight: 400;
    color: var(--white-text);
    letter-spacing: 0.02em;
    opacity: 0.88;
    transition: opacity 0.2s ease, color 0.2s ease;
  }
  .gnb a:hover { opacity: 1; color: var(--gold); }
  .gnb a.active { opacity: 1; color: var(--gold); }

  .header-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
    background: var(--white);
    border-radius: var(--radius);
    transition: background 0.2s ease;
  }
  .header-cta:hover { background: var(--gold-pale); }

  .menu-toggle, .mobile-menu { display: none !important; }
  .header-logo img { height: 38px; }

  .cases-grid { grid-template-columns: 1fr 1fr; }

  .article-summary dl { grid-template-columns: repeat(3, 1fr); gap: 0 44px; }

  .article-cta-actions { flex-direction: row; justify-content: center; gap: 16px; }
  .article-cta-actions .btn { width: auto; min-width: 240px; }

  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }

  .float-call { display: none; }

  /* PC: 전화 링크 숨기고 모달 버튼 표시 */
  .contact-cta-pc { display: inline-flex !important; }
  .contact-cta-mobile { display: none !important; }
}
