/* ── 변수 ── */
:root {
  --primary:   #1B3A6B;
  --secondary: #2C7BE5;
  --accent:    #F0A500;
  --bg:        #F4F7FB;
  --surface:   #FFFFFF;
  --text:      #1A2332;
  --muted:     #64748B;
  --border:    #E2E8F0;
  --dp-radius: 12px;
  --shadow:    0 4px 20px rgba(27,58,107,.10);
  --shadow-lg: 0 8px 40px rgba(27,58,107,.16);
}

/* ── 리셋 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── 그리드 클래스 ── */
.dp-g2   { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dp-g3   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dp-stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; align-items: center; }
@media (max-width: 768px) { .dp-g2, .dp-g3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .dp-stat3 { grid-template-columns: 1fr; gap: 16px; } }

/* ── 공통 컨테이너 ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── 타이포그래피 ── */
.section-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); margin-bottom: 10px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--primary); margin-bottom: 16px; line-height: 1.3; }
.section-sub   { font-size: 1rem; color: var(--muted); max-width: 560px; }
.text-center   { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--dp-radius); font-size: .95rem; font-weight: 700; transition: all .2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #d4920a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240,165,0,.35); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ── 헤더 ── */
.hdr { position: sticky; top: 0; z-index: 900; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.hdr-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.hdr-logo { font-size: 1.3rem; font-weight: 900; color: var(--primary); }
.hdr-logo span { color: var(--secondary); }
.hdr-nav { display: flex; gap: 28px; }
.hdr-nav a { font-size: .9rem; font-weight: 600; color: var(--muted); transition: color .15s; }
.hdr-nav a:hover { color: var(--primary); }
.hdr-cta { display: flex; align-items: center; gap: 12px; }
.hdr-phone { font-size: .9rem; font-weight: 700; color: var(--primary); }
.btn-hdr { padding: 9px 20px; font-size: .85rem; background: var(--accent); color: #fff; border-radius: 8px; font-weight: 700; transition: background .2s; }
.btn-hdr:hover { background: #d4920a; }
.ham { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.ham span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: all .25s; }
.ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 모바일 nav */
#mob-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); z-index: 899; padding: 20px; }
#mob-nav a { display: block; padding: 12px 0; font-size: 1rem; font-weight: 600; color: var(--primary); border-bottom: 1px solid var(--border); }
#mob-nav a:last-child { border-bottom: none; }

/* ── 히어로 ── */
.hero { position: relative; background: var(--primary); color: #fff; padding: 100px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1B3A6B 0%, #0D1F3C 60%, #112d5c 100%); animation: hero-drift 12s ease-in-out infinite alternate; }
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.04) translateX(12px); } }
.hero-overlay { position: absolute; inset: 0; background: url('/assets/images/file_69e594b0e10201.30435170.webp') center/cover no-repeat; opacity: .18; }
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-kicker { display: inline-block; background: rgba(44,123,229,.25); border: 1px solid rgba(44,123,229,.5); color: #7eb8ff; font-size: .75rem; font-weight: 700; letter-spacing: .1em; padding: 4px 14px; border-radius: 20px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,.8); margin-bottom: 36px; line-height: 1.7; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { margin-top: 56px; display: flex; gap: 40px; }
.hero-stat-num { font-size: 2rem; font-weight: 900; color: var(--accent); }
.hero-stat-label { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ── 카드 ── */
.card { background: var(--surface); border-radius: var(--dp-radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 20px 22px; }
.card-kicker { font-size: .72rem; font-weight: 700; color: var(--secondary); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.card-desc { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ── 서비스 그리드 ── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1024px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .svc-grid { grid-template-columns: 1fr; } }

/* ── 프로세스 ── */
.proc-list { display: flex; gap: 0; }
.proc-step { flex: 1; text-align: center; padding: 32px 16px; position: relative; }
.proc-step + .proc-step::before { content: ''; position: absolute; top: 48px; left: -1px; width: 2px; height: 32px; background: var(--border); display: none; }
.proc-num { width: 56px; height: 56px; border-radius: 50%; background: var(--secondary); color: #fff; font-size: 1.3rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; position: relative; }
.proc-num::after { content: '→'; position: absolute; right: -32px; top: 50%; transform: translateY(-50%); color: var(--border); font-size: 1.2rem; }
.proc-step:last-child .proc-num::after { display: none; }
.proc-title { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.proc-desc  { font-size: .82rem; color: var(--muted); }

/* ── FAQ ── */
.faq-item { border: 1px solid var(--border); border-radius: var(--dp-radius); margin-bottom: 10px; overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; font-weight: 700; font-size: .95rem; cursor: pointer; background: var(--surface); transition: background .15s; }
.faq-q:hover { background: var(--bg); }
.faq-icon { font-size: 1.2rem; color: var(--secondary); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 22px 18px; font-size: .9rem; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--border); padding-top: 14px; }
.faq-item.open .faq-a { max-height: 400px; }

/* ── Before/After 슬라이더 ── */
.ba-wrap { position: relative; overflow: hidden; border-radius: var(--dp-radius); user-select: none; cursor: ew-resize; }
.ba-after, .ba-before { width: 100%; height: 340px; object-fit: cover; display: block; }
.ba-before-wrap { position: absolute; inset: 0; overflow: hidden; }
.ba-before-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-divider { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; cursor: ew-resize; z-index: 10; }
.ba-handle { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--primary); font-weight: 900; }
.ba-label { position: absolute; top: 14px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.ba-label-before { left: 14px; }
.ba-label-after  { right: 14px; }

/* ── CTA 배너 ── */
.cta-banner { background: linear-gradient(135deg, var(--primary) 0%, #0d2548 100%); color: #fff; border-radius: var(--dp-radius); padding: 56px 48px; text-align: center; }
.cta-banner h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; margin-bottom: 12px; }
.cta-banner p { font-size: 1rem; color: rgba(255,255,255,.75); margin-bottom: 32px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── 통계 카드 ── */
.stat-card { padding: 36px 24px; text-align: center; background: var(--surface); border-radius: var(--dp-radius); box-shadow: var(--shadow); }
.stat-num { font-size: 2.4rem; font-weight: 900; color: var(--secondary); }
.stat-unit { font-size: 1rem; }
.stat-label { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* ── 지역 태그 ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 6px 16px; border-radius: 20px; background: #EFF4FF; color: var(--primary); font-size: .85rem; font-weight: 600; transition: background .15s; }
.tag:hover { background: var(--secondary); color: #fff; }

/* ── 테이블 ── */
.info-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.info-table th, .info-table td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; }
.info-table th { background: var(--bg); font-weight: 700; color: var(--primary); width: 30%; }

/* ── 체크리스트 ── */
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: .92rem; }
.check-list li::before { content: '✓'; color: var(--secondary); font-weight: 900; flex-shrink: 0; margin-top: 2px; }

/* ── 아이콘 박스 ── */
.icon-box { padding: 28px; background: var(--surface); border-radius: var(--dp-radius); box-shadow: var(--shadow); transition: transform .2s; }
.icon-box:hover { transform: translateY(-4px); }
.icon-box-icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--secondary), #1B3A6B); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; }
.icon-box-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.icon-box-desc  { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ── 타임라인 ── */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 32px; }
.tl-dot { position: absolute; left: -32px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--secondary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--secondary); }
.tl-title { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.tl-desc  { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ── 푸터 ── */
footer { background: #0D1F3C; color: rgba(255,255,255,.7); padding: 56px 0 32px; }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.ftr-logo { font-size: 1.3rem; font-weight: 900; color: #fff; margin-bottom: 12px; }
.ftr-desc { font-size: .85rem; line-height: 1.7; }
.ftr-title { font-size: .82rem; font-weight: 700; color: #fff; letter-spacing: .05em; margin-bottom: 14px; text-transform: uppercase; }
.ftr-links { display: flex; flex-direction: column; gap: 8px; }
.ftr-links a { font-size: .85rem; transition: color .15s; }
.ftr-links a:hover { color: #fff; }
.ftr-biz { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; display: flex; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.45); }
.ftr-biz span { display: flex; gap: 4px; }
.ftr-copy { margin-top: 16px; font-size: .75rem; color: rgba(255,255,255,.3); }
@media (max-width: 768px) { .ftr-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ── 모바일 스티키 바 ── */
#mob-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary); z-index: 950; padding: 12px 16px; gap: 10px; }
#mob-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-radius: 8px; font-size: .9rem; font-weight: 700; }
.mob-tel { background: var(--accent); color: #fff; }
.mob-sms { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }

/* ── 플로팅 CTA ── */
#float-cta { position: fixed; bottom: 36px; right: 28px; z-index: 800; display: flex; flex-direction: column; gap: 10px; }
#float-cta a { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: var(--shadow-lg); transition: transform .2s; }
#float-cta a:hover { transform: scale(1.1); }

/* ── Reveal 애니메이션 ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.stagger .reveal:nth-child(1) { transition-delay: .05s; }
.stagger .reveal:nth-child(2) { transition-delay: .15s; }
.stagger .reveal:nth-child(3) { transition-delay: .25s; }
.stagger .reveal:nth-child(4) { transition-delay: .35s; }
.stagger .reveal:nth-child(5) { transition-delay: .45s; }

/* ── 카운터 ── */
.counter { display: inline-block; }

/* ── 배지 ── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700; }
.badge-blue { background: #EFF4FF; color: var(--secondary); }
.badge-amber { background: #FFF8E7; color: #B07800; }

/* ── 브레드크럼 ── */
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--secondary); }
.breadcrumb span + span::before { content: ' › '; }

/* ── 인포 배너 ── */
.info-banner { background: #EFF4FF; border-left: 4px solid var(--secondary); border-radius: 0 var(--dp-radius) var(--dp-radius) 0; padding: 16px 20px; font-size: .9rem; color: var(--primary); line-height: 1.6; }

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .section { padding: 60px 0; }
  .proc-list { flex-direction: column; }
}
@media (max-width: 768px) {
  .hdr-nav, .hdr-phone { display: none; }
  .ham { display: flex; }
  #mob-bar { display: flex; }
  #float-cta { display: none; }
  body { padding-bottom: 70px; }
  .hero { padding: 72px 0 56px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .cta-banner { padding: 36px 24px; }
  .proc-step { padding: 24px 0; }
  .proc-num::after { display: none; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .dp-g2, .dp-g3 { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
}
