/* 정답홈클린 — Navy & Orange (PDF 컬러가이드 기준) */
:root {
  --navy: #0b132b;
  --navy-2: #131d3d;
  --navy-3: #1c2850;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --slate: #f8fafc;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --white: #fff;
  --radius: 16px;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  padding-bottom: 84px; /* 모바일 하단 고정바 */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.alt { background: var(--slate); }
.section.dark { background: var(--navy); color: var(--white); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--orange); margin-bottom: 10px;
}
.h2 { font-size: clamp(24px, 4.6vw, 36px); line-height: 1.3; font-weight: 800; letter-spacing: -0.025em; }
.lead { margin-top: 12px; color: var(--muted); font-size: 16px; max-width: 640px; }
.dark .lead { color: #b6c0dc; }
.section-head { margin-bottom: 32px; }

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(11,19,43,.96);
  backdrop-filter: blur(8px); color: var(--white);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.brand i { width: 10px; height: 10px; background: var(--orange); border-radius: 50%; display: inline-block; }
.nav { display: none; gap: 24px; font-size: 14px; color: #cbd5f0; }
.nav a:hover { color: var(--white); }
.header-actions { display: flex; gap: 8px; align-items: center; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-kakao { background: #fee500; color: #191919; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #fdba74; outline-offset: 2px; }

/* 히어로 */
.hero { background: var(--navy); color: var(--white); overflow: hidden; }
.hero .wrap { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 48px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--orange); border: 1px solid rgba(249,115,22,.5); padding: 6px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(30px, 7vw, 52px); line-height: 1.22; font-weight: 800; letter-spacing: -0.03em; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.sub { color: #c3cdea; font-size: 17px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-photo { border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); max-width: 420px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #98a5cb; font-size: 14px; }
.hero-meta span::before { content: "✓ "; color: var(--orange); font-weight: 800; }

/* 신뢰 띠 */
.strip { background: var(--navy-2); color: #dbe3fb; }
.strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 16px; padding-bottom: 16px; text-align: center; font-size: 13px; }
.strip b { display: block; color: var(--white); font-size: 15px; }

/* 카드 */
.grid { display: grid; gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.alt .card { background: var(--white); }
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 15px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; background: #fff1e6; color: var(--orange-dark);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; font-size: 18px;
}
.dark .card { background: var(--navy-2); border-color: rgba(255,255,255,.1); }
.dark .card p { color: #b6c0dc; }
.dark .icon { background: rgba(249,115,22,.15); }

/* 과정 */
.steps { display: grid; gap: 20px; counter-reset: s; }
.step { display: grid; gap: 14px; align-content: start; }
.step figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #e2e8f0; }
.step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.step figure.ph { aspect-ratio: 4 / 3; background: var(--navy); display: grid; place-items: center; }
.step figure.ph span { color: var(--orange); font-weight: 800; font-size: 22px; letter-spacing: .04em; }
.step .num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: var(--white);
  display: inline-grid; place-items: center; font-weight: 800; font-size: 14px; margin-bottom: 8px;
}
.step h3 { font-size: 18px; font-weight: 800; }
.step p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* 전후 */
.ba { display: grid; gap: 28px; }
.ba-item .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba-item figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; }
.ba-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tag {
  position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 800; padding: 4px 10px;
  border-radius: 999px; background: rgba(11,19,43,.85); color: var(--white);
}
.tag.after { background: var(--orange); }
.ba-item p { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* 갤러리 */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* 체크리스트 */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checks li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; margin-top: 2px;
}

/* 브릿지 */
.bridge {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: var(--white);
  border-radius: 24px; padding: 32px 24px; display: grid; gap: 20px; align-items: center;
}
.bridge h2 { font-size: clamp(22px, 4.4vw, 32px); line-height: 1.3; font-weight: 800; letter-spacing: -0.025em; }
.bridge p { color: #c3cdea; margin-top: 8px; }
.bridge .btn { justify-self: start; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; font-size: 16px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 22px; font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

/* 연락 / 푸터 */
.contact { background: var(--navy); color: var(--white); text-align: center; }
.contact .h2 { color: var(--white); }
.contact .lead { margin-left: auto; margin-right: auto; }
.contact .hero-cta { justify-content: center; }
.phone-big { font-size: clamp(26px, 6vw, 40px); font-weight: 800; color: var(--orange); margin-top: 18px; letter-spacing: -0.02em; }
.footer { background: #070d1f; color: #8591b3; font-size: 13px; padding: 32px 0 40px; line-height: 1.8; }
.footer b { color: #cbd5f0; }
.footer .biz { margin-top: 8px; }

/* 모바일 하단 고정바 */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white);
  border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; box-shadow: 0 -6px 20px rgba(11,19,43,.08);
}
.sticky-bar .btn { min-height: 48px; padding: 0 12px; font-size: 15px; }

/* 등장 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 태블릿 이상 */
@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .sticky-bar { display: none; }
  .nav { display: flex; }
  .section { padding: 96px 0; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; padding-top: 72px; padding-bottom: 80px; gap: 48px; }
  .hero-photo { justify-self: end; }
  .strip .wrap { font-size: 14px; }
  .grid.c3 { grid-template-columns: repeat(3, 1fr); }
  .grid.c2 { grid-template-columns: repeat(2, 1fr); }
  .grid.c4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .steps.s4 { grid-template-columns: repeat(4, 1fr); }
  .steps.s3 { grid-template-columns: repeat(3, 1fr); }
  .ba { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .bridge { grid-template-columns: 1fr auto; padding: 44px 48px; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
}
@media (max-width: 719px) {
  .two > * + * { margin-top: 24px; }
  .step { grid-template-columns: 112px 1fr; align-items: center; }
  .step img { aspect-ratio: 1 / 1; }
  .step figure.ph { aspect-ratio: 1 / 1; }
  .header-actions .btn-kakao { display: none; }
}

/* 어두운 배경 위 캡션 대비 */
.dark .ba-item p, .dark .gallery figcaption { color: #b6c0dc; }

/* 상담 영역(어두운 배경) 안내 문구 가독성 */
.contact .lead { color: #dbe3fb; font-size: 17px; }
.contact .lead, .contact .h2 { text-shadow: none; }
