/* rfc.jibsurimission.com — 반사경교체(임팩트) */

@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Pretendard:wght@400;500;600;700&display=swap');

:root {
  --primary: #26241f;
  --primary-2: #3a362c;
  --primary-dk: #17150f;
  --accent: #b5652c;
  --accent-dark: #8f4e20;
  --bg: #f7f3ec;
  --bg-soft: #efe8db;
  --bg-card: #ffffff;
  --border: #e0d6c2;
  --text-on-light: #211f1b;
  --text-on-dark: #ffffff;
  --text-muted: #6b6255;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(38,36,31,.10);
  --font-h: 'Gowun Batang', 'Noto Serif KR', serif;
  --font-b: 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, p, h1, h2, h3, h4, h5, h6, li, td, th, a, span, div, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}
body {
  margin: 0;
  font-family: var(--font-b);
  color: var(--text-on-light);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.35; margin: 0 0 .5em; color: var(--text-on-light); }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--accent-dark); background: rgba(181,101,44,.12); padding: 6px 16px;
  border-radius: var(--radius-pill); margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: var(--radius-pill); font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 19px 40px; font-size: 1.1rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: 0 10px 24px rgba(181,101,44,.35); }
  .btn-outline:hover { background: var(--primary); color: #fff; }
}

/* 헤더 */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: background .25s, box-shadow .25s, padding .25s;
}
.hdr.is-scrolled { background: rgba(247,243,236,.96); box-shadow: 0 2px 16px rgba(0,0,0,.08); padding: 12px 0; backdrop-filter: blur(6px); }
.hdr .container { display: flex; align-items: center; justify-content: space-between; }
.hdr-brand { display: flex; align-items: center; gap: 10px; line-height: 1.1; }
.hdr-brand .brand-logo { flex-shrink: 0; }
.hdr-brand .brand-text { display: flex; flex-direction: column; }
.hdr-brand .brand-name { font-family: var(--font-h); font-size: 1.4rem; font-weight: 700; color: var(--text-on-light); }
.hdr-brand .brand-kw { font-size: .72rem; letter-spacing: .18em; font-variant: small-caps; color: var(--accent-dark); margin-top: 4px; }
.hdr-nav { display: flex; align-items: center; gap: 28px; }
.hdr .btn { padding: 12px 26px; font-size: .92rem; }

@media (max-width: 768px) {
  .hdr-brand .brand-kw { display: none; }
}

/* 히어로 */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease; animation: hero-drift 18s ease-in-out infinite;
}
.hero-slide.active { opacity: 1; }
@keyframes hero-drift { 0%,100% { transform: scale(1.02) translateX(0); } 50% { transform: scale(1.08) translateX(-1%); } }
.hero-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(23,21,15,.86) 0%, rgba(23,21,15,.5) 45%, rgba(23,21,15,0) 100%);
}
.hero-content {
  position: relative; z-index: 2; padding: 0 24px 56px; width: 100%; max-width: 1160px; margin: 0 auto;
}
.hero-content .eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.hero-content h1 {
  color: #fff; font-size: clamp(2.75rem, 8vw, 5.2rem); font-weight: 700; line-height: 1.08;
  letter-spacing: -.01em; margin-bottom: 18px; text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.hero-content .lead {
  font-size: 1.08rem; color: rgba(255,255,255,.88); margin-bottom: 30px; max-width: 640px;
}
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-actions .btn-primary { padding: 15px 32px; font-size: .98rem; }
.hero-actions .link-cta { color: #fff; font-weight: 700; font-size: .96rem; text-decoration: underline; text-underline-offset: 4px; }

.hero-sm { min-height: 46vh; }
.hero-sm .hero-content h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* 모바일: 사진과 텍스트를 겹치지 않게 위/아래로 분리 */
@media (max-width: 768px) {
  .hero, .hero-sm { display: block; min-height: auto; }
  .hero-slides { position: relative; height: 42vh; }
  .hero-scrim { display: none; }
  .hero-content {
    position: static; background: var(--bg); padding: 36px 24px 44px; max-width: 100%;
  }
  .hero-content .eyebrow { background: rgba(181,101,44,.12); color: var(--accent-dark); }
  .hero-content h1 {
    color: var(--text-on-light); font-size: clamp(2.5rem, 11vw, 3.4rem); text-shadow: none;
  }
  .hero-content .lead { color: var(--text-muted); }
  .hero-actions .link-cta { color: var(--primary); }

  /* 세부페이지(hero-sm)는 홈 히어로보다 눈에 띄게 작고 컴팩트하게 */
  .hero-sm .hero-slides { height: 22vh; }
  .hero-sm .hero-content { padding: 24px 24px 28px; }
  .hero-sm .hero-content h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero-sm .hero-content .lead { font-size: .95rem; margin-bottom: 18px; }
  .hero-sm .eyebrow { margin-bottom: 8px; }
}

/* 카드 그리드 */
.dp-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dp-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.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; } }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); margin: 0; font-size: .96rem; }

/* 내부링크 카드(썸네일형) */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .link-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .link-grid { grid-template-columns: 1fr; } }
.link-card {
  display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-card);
  border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .2s;
}
.link-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.link-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.link-card .lc-body { padding: 18px 20px; }
.link-card .lc-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.link-card .lc-body span { font-size: .85rem; color: var(--text-muted); }
.link-card.cta-card { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--primary); color: #fff; padding: 32px 20px; aspect-ratio: auto; }
.link-card.cta-card h3 { color: #fff; }
.link-card.cta-card span { color: rgba(255,255,255,.75); }
@media (hover: hover) and (pointer: fine) {
  .link-card:hover { transform: translateY(-4px); }
}

/* Before/After */
.ba-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .ba-wrap { grid-template-columns: 1fr; } }
.ba-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ba-item img { aspect-ratio: 4/3; object-fit: cover; }
.ba-tag {
  position: absolute; top: 14px; left: 14px; background: var(--primary); color: #fff;
  font-size: .82rem; font-weight: 700; padding: 6px 16px; border-radius: var(--radius-pill);
}
.ba-item.after .ba-tag { background: var(--accent); }

/* 프로세스 5단계 */
.proc-list { display: flex; list-style: none; margin: 0; padding: 0; }
.proc-step { flex: 1; position: relative; padding: 0 12px; text-align: center; }
.proc-step:not(:last-child)::after {
  content: ''; position: absolute; top: 24px; left: 50%; width: 100%; height: 2px;
  background: var(--border); z-index: 0;
}
.proc-num {
  position: relative; z-index: 1; margin: 0 auto 14px; width: 48px; height: 48px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-weight: 700; font-family: var(--font-h);
}
.proc-step p { font-size: .92rem; color: var(--text-muted); }
.proc-step h4 { margin: 0 0 6px; font-size: 1rem; }
@media (max-width: 768px) {
  .proc-list { flex-direction: column; gap: 10px; }
  .proc-step { padding: 24px 0; }
  .proc-step::after { display: none; }
}

/* 뱃지 */
.card-badges { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 768px) { .card-badges { flex-direction: column; align-items: flex-start; gap: 6px; } }
.badge {
  font-size: .8rem; font-weight: 600; padding: 5px 14px; border-radius: var(--radius-pill);
  background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--border);
}

/* FAQ 아코디언 */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; padding: 22px 0;
  font-size: 1.05rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; color: var(--text-on-light); font-family: var(--font-b);
}
.faq-q .plus { font-size: 1.4rem; color: var(--accent); transition: transform .25s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding-bottom: 20px; color: var(--text-muted); }

/* 비교표 */
.tbl-wrap { border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--bg-card); table-layout: fixed; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: .95rem; }
th { background: var(--primary); color: #fff; font-family: var(--font-h); }
@media (max-width: 560px) { th, td { padding: 12px 10px; font-size: .85rem; } }

/* 체크리스트 */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.checklist li::before {
  content: ''; flex-shrink: 0; width: 22px; height: 12px; margin-top: 4px;
  border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

/* Scroll reveal — 섹션마다 다른 방식을 섞어 쓴다(동일 fade-in 반복 금지) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-side { opacity: 0; transform: translateX(-32px); transition: opacity .7s ease, transform .7s ease; }
.reveal-side.in { opacity: 1; transform: translateX(0); }

.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .6s ease, transform .6s ease; }
.reveal-scale.in { opacity: 1; transform: scale(1); }

.reveal-mask { position: relative; overflow: hidden; }
.reveal-mask::after {
  content: ''; position: absolute; inset: 0; background: var(--bg); z-index: 5;
  transform-origin: right; transition: transform .8s cubic-bezier(.65,0,.35,1);
}
.section-soft.reveal-mask::after { background: var(--bg-soft); }
.reveal-mask.in::after { transform: scaleX(0); }

.stagger.in > * { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.stagger > *:nth-child(1) { transition-delay: .05s; }
.stagger > *:nth-child(2) { transition-delay: .15s; }
.stagger > *:nth-child(3) { transition-delay: .25s; }
.stagger > *:nth-child(4) { transition-delay: .35s; }
.stagger > *:nth-child(5) { transition-delay: .45s; }
.stagger > *:nth-child(6) { transition-delay: .55s; }

.proc-list.stagger.in > * { opacity: 1; transform: translateY(0); }
.proc-list.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }

/* 카운터 */
.counter-wrap .num { font-family: var(--font-h); font-size: 2.4rem; font-weight: 700; color: var(--accent-dark); }
.counter-wrap .lbl { color: var(--text-muted); font-size: .92rem; margin-top: 6px; }

/* 푸터 */
footer.site-footer { background: var(--primary); color: rgba(255,255,255,.82); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
footer.site-footer h4 { color: #fff; font-family: var(--font-h); font-size: 1rem; margin-bottom: 16px; }
.footer-biz p { margin: 0 0 4px; font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.7); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: .92rem; color: rgba(255,255,255,.85); }
.footer-services { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-services a { font-size: .9rem; color: rgba(255,255,255,.85); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; font-size: .8rem; color: rgba(255,255,255,.55); }

/* 모바일 하단 CTA */
#mob-bar { display: none; }
#float-cta { display: none; }
@media (max-width: 768px) {
  body { padding-bottom: 64px; }
  #mob-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--primary); padding: 12px 20px; justify-content: center;
  }
  #mob-bar a { color: #fff; font-weight: 700; width: 100%; text-align: center; padding: 12px; border-radius: var(--radius-pill); background: var(--accent); }
}

/* AEO 카드 */
.answer-box {
  background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: var(--radius-sm);
  padding: 24px 28px; font-size: 1.05rem; margin-bottom: 8px;
}
.answer-box strong { color: var(--accent-dark); }
