/* ============================================================
   Roots 붙박이장교체시공 — Forest Green Design System
   Colors: #1E3A2F(dark) / #F5F8F5(bg) / #5C9E6E(accent)
   Font: Pretendard Variable
============================================================ */

/* ============================================================
   0. 디자인 토큰
============================================================ */
:root {
  /* Primary — 딥 포레스트 그린 */
  --dp-primary:      #1E3A2F;
  --dp-primary-2:    #2E5942;
  --dp-primary-3:    #12281E;

  /* Accent — 세이지 그린 */
  --dp-accent:       #5C9E6E;
  --dp-accent-soft:  #7EB893;
  --dp-accent-pale:  #EBF4EE;

  /* Background */
  --dp-bg:           #FFFFFF;
  --dp-bg-soft:      #F5F8F5;
  --dp-bg-warm:      #F2F7F3;

  /* Border */
  --dp-border:       #D4E5DA;
  --dp-border-soft:  rgba(92,158,110,0.12);

  /* Text */
  --dp-text:         #14251C;
  --dp-text-sub:     #2A4635;
  --dp-text-muted:   #6B8C78;

  /* Typography */
  --dp-font-body:    "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;

  /* Type scale */
  --dp-fs-display: clamp(2.2rem, 6vw, 4.8rem);
  --dp-fs-h1:      clamp(1.8rem, 4vw, 3rem);
  --dp-fs-h2:      clamp(1.4rem, 3vw, 2.2rem);
  --dp-fs-h3:      clamp(1.05rem, 1.8vw, 1.3rem);
  --dp-fs-lede:    clamp(0.95rem, 1.5vw, 1.1rem);

  /* Layout */
  --dp-max-w:      1280px;
  --dp-max-w-text: 800px;
  --dp-gutter:     clamp(16px, 4vw, 32px);
  --dp-sec-pad:    clamp(64px, 10vw, 120px);

  /* Misc */
  --dp-radius:     4px;
  --dp-radius-md:  8px;
  --dp-radius-lg:  16px;
  --dp-shadow-sm:  0 2px 8px rgba(30,58,47,.06);
  --dp-shadow-md:  0 8px 28px rgba(30,58,47,.10);
  --dp-shadow-lg:  0 24px 56px rgba(30,58,47,.14);
  --dp-ease:       cubic-bezier(.22, 1, .36, 1);
  --dp-trans:      0.3s;
}

/* ============================================================
   1. word-break 전역 (REQUIRED — 한글 줄바꿈)
============================================================ */
body, p, h1, h2, h3, h4, h5, h6, li, td, th, a, span, div, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ============================================================
   2. 리셋 & 베이스
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--dp-font-body);
  color: var(--dp-text);
  background: var(--dp-bg);
  line-height: 1.85;
  font-weight: 400;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 가로 스크롤 방지 — 이미지 max-width 명시 */
img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: color var(--dp-trans) var(--dp-ease); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ============================================================
   3. 스크롤 progress bar
============================================================ */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--dp-accent), var(--dp-accent-soft));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   4. 레이아웃 유틸리티
============================================================ */
.dp-container {
  width: 100%;
  max-width: var(--dp-max-w);
  margin-inline: auto;
  padding-inline: var(--dp-gutter);
}

.dp-section         { padding-block: var(--dp-sec-pad); }
.dp-section--soft   { background: var(--dp-bg-soft); padding-block: var(--dp-sec-pad); }
.dp-section--warm   { background: var(--dp-bg-warm); padding-block: var(--dp-sec-pad); }
.dp-section--dark   { background: var(--dp-primary-3); color: #fff; }
.dp-section--accent { background: var(--dp-accent-pale); }
.dp-section--tight  { padding-block: calc(var(--dp-sec-pad) * 0.55); }

/* ============================================================
   5. 그리드 클래스 (인라인 금지 — 여기서만 정의)
============================================================ */
.dp-g2  { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dp-g3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dp-g4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dp-g2-3 { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; align-items: center; }
.dp-stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; align-items: center; }

@media (max-width: 1024px) {
  .dp-g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .dp-g2, .dp-g3, .dp-g4, .dp-g2-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dp-stat3 { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   6. 헤더
============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dp-border);
  transition: box-shadow var(--dp-trans);
}
.site-header.scrolled { box-shadow: var(--dp-shadow-md); }

.hdr-inner {
  max-width: var(--dp-max-w);
  margin-inline: auto;
  padding-inline: var(--dp-gutter);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.hdr-logo {
  display: flex; flex-direction: column; gap: 0; text-decoration: none; flex-shrink: 0;
}
.hdr-logo__brand {
  font-size: 1.25rem; font-weight: 800; color: var(--dp-primary); letter-spacing: -.02em; line-height: 1.2;
}
.hdr-logo__sub {
  font-size: 0.6rem; color: var(--dp-accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
}

.hdr-nav { display: flex; gap: 0; flex: 1; }
.hdr-nav a {
  padding: 0 14px; font-size: 0.88rem; font-weight: 500; color: var(--dp-text-sub);
  height: 64px; display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.hdr-nav a:hover, .hdr-nav a.active { color: var(--dp-accent); border-bottom-color: var(--dp-accent); }

.hdr-cta {
  margin-left: auto; padding: 9px 22px;
  background: var(--dp-accent); color: #fff;
  border-radius: var(--dp-radius); font-size: 0.88rem; font-weight: 700;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.hdr-cta:hover { background: var(--dp-primary); transform: translateY(-1px); }

.hdr-hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  margin-left: auto;
}
.hdr-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--dp-text);
  border-radius: 2px; transition: transform .25s, opacity .25s;
}
.hdr-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr-hamburger.open span:nth-child(2) { opacity: 0; }
.hdr-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mob-nav {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 999; overflow-y: auto;
  padding: 16px var(--dp-gutter) 120px;
  transform: translateX(100%); transition: transform .3s var(--dp-ease);
}
#mob-nav.open { transform: translateX(0); }
#mob-nav a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--dp-border);
  font-size: 1rem; font-weight: 600; color: var(--dp-text);
}
#mob-nav a:hover { color: var(--dp-accent); }
.mob-nav-cta {
  display: block; margin-top: 20px; padding: 16px;
  background: var(--dp-accent); color: #fff !important;
  border-radius: var(--dp-radius-md); text-align: center; font-size: 1rem; font-weight: 700;
}

/* body padding for fixed header */
body { padding-top: 64px; }

/* ============================================================
   7. 히어로
============================================================ */
.hero {
  position: relative; min-height: 60vh;
  display: flex; align-items: center;
  overflow: hidden; background: #111;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: var(--hero-bg-url);
  background-size: cover; background-position: center;
  opacity: 0.72;
}
.hero__content {
  position: relative; z-index: 2;
  max-width: var(--dp-max-w); margin-inline: auto; padding-inline: var(--dp-gutter);
  padding-block: 80px;
}
.hero__eyebrow {
  display: inline-block; margin-bottom: 20px;
  padding: 5px 14px; border: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.85); font-size: 0.78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; border-radius: 2px;
}
.hero__title {
  font-size: var(--dp-fs-display);
  font-weight: 800; color: #fff; line-height: 1.18;
  margin-bottom: 20px; letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
.hero__title em { color: var(--dp-accent-soft); font-style: normal; }
.hero__desc {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.88);
  max-width: 600px; margin-bottom: 36px; line-height: 1.75;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px;
}
.hero-trust__item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: rgba(255,255,255,.88); font-weight: 600;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.hero-trust__item::before {
  content: "✓"; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--dp-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 900;
}
.btn-hero-primary {
  padding: 16px 32px; background: var(--dp-accent); color: #fff;
  border-radius: var(--dp-radius); font-weight: 700; font-size: 1rem;
  transition: background .2s, transform .15s;
}
.btn-hero-primary:hover { background: var(--dp-accent-soft); transform: translateY(-2px); }
.btn-hero-outline {
  padding: 16px 32px; border: 2px solid rgba(255,255,255,.5); color: #fff;
  border-radius: var(--dp-radius); font-weight: 600; font-size: 1rem;
  transition: border-color .2s, background .2s;
}
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ============================================================
   8. 섹션 헤더
============================================================ */
.sec-hdr { text-align: center; margin-bottom: 64px; }
.sec-hdr--left { text-align: left; }
.sec-eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dp-accent); padding: 3px 0;
  border-bottom: 2px solid var(--dp-accent);
}
.sec-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--dp-text);
  line-height: 1.25; letter-spacing: -.03em;
}
.sec-title em { color: var(--dp-accent); font-style: normal; }
.sec-desc { margin-top: 16px; color: var(--dp-text-muted); font-size: 1.05rem; line-height: 1.8; max-width: 640px; margin-inline: auto; }

.feature-item {
  padding: 40px 36px;
  background: var(--dp-bg-soft);
  border-radius: var(--dp-radius-md);
  border-top: 3px solid var(--dp-accent);
}
.feature-item__num {
  font-size: 0.72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dp-accent); margin-bottom: 20px;
}
.feature-item__title {
  font-size: 1.25rem; font-weight: 800; color: var(--dp-text);
  margin-bottom: 12px; line-height: 1.3; letter-spacing: -.02em;
}
.feature-item__desc { font-size: 0.92rem; color: var(--dp-text-muted); line-height: 1.8; }

/* ============================================================
   9. 카드 컴포넌트
============================================================ */
.card {
  background: #fff;
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md);
  overflow: hidden;
  transition: box-shadow .3s var(--dp-ease);
}
.card:hover { box-shadow: var(--dp-shadow-md); }
.card__img { width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; display: block; }
.card__body { padding: 22px 20px; }
.card__tag {
  display: inline-block; margin-bottom: 8px;
  padding: 3px 10px; background: var(--dp-accent-pale);
  color: var(--dp-accent); font-size: 0.72rem; font-weight: 700;
  border-radius: 2px; letter-spacing: .04em;
}
.card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--dp-text); }
.card__desc { font-size: 0.88rem; color: var(--dp-text-muted); line-height: 1.7; }
.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-size: 0.85rem; font-weight: 700;
  color: var(--dp-accent);
}
.card__link::after { content: "→"; transition: transform .2s; }
.card:hover .card__link::after { transform: translateX(4px); }

/* ============================================================
   10. Before/After 레이아웃
============================================================ */
.ba-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  border-radius: var(--dp-radius-md); overflow: hidden;
}
.ba-item { position: relative; }
.ba-item img { width: 100%; height: 420px; object-fit: cover; }
.ba-label {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: .08em;
  border-radius: 2px;
}
.ba-label--before { background: rgba(30,58,47,.75); color: #fff; }
.ba-label--after  { background: var(--dp-accent); color: #fff; }

.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.portfolio-grid .ba-item img { height: 200px; }
.ba-caption {
  margin-top: 8px; text-align: center;
  font-size: 0.82rem; font-weight: 700; color: var(--dp-text-sub);
}
.ba-caption a { color: var(--dp-accent); }

.trust-badges {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: 28px;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; padding: 6px 16px;
  font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,.9);
}
.trust-badge::before { content: "✓"; color: var(--dp-accent-soft); font-weight: 900; }

@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .ba-wrap { grid-template-columns: 1fr; }
  .ba-item img { height: 280px; }
}

/* ============================================================
   11. 프로세스/타임라인
============================================================ */
.proc-list { display: flex; gap: 0; }
.proc-step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 40px 24px; position: relative;
}
.proc-step:not(:last-child)::after {
  content: "";
  position: absolute; top: 52px; right: -1px;
  width: 2px; height: 24px; background: var(--dp-accent-soft);
}
.proc-num {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--dp-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; margin-bottom: 20px;
  flex-shrink: 0;
}
.proc-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.proc-desc { font-size: 0.88rem; color: var(--dp-text-muted); line-height: 1.75; }

@media (max-width: 768px) {
  .proc-list { flex-direction: column; gap: 0; }
  .proc-step { flex-direction: row; text-align: left; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--dp-border); }
  .proc-step:not(:last-child)::after { display: none; }
  .proc-num { flex-shrink: 0; }
}

/* ============================================================
   12. FAQ 아코디언
============================================================ */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--dp-border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 4px; text-align: left;
  font-size: 0.97rem; font-weight: 700; color: var(--dp-text);
  background: none; gap: 16px;
}
.faq-q::after {
  content: "+"; flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--dp-border); border-radius: 50%;
  font-size: 1.1rem; color: var(--dp-accent);
  transition: transform .25s, background .2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); background: var(--dp-accent); color: #fff; border-color: var(--dp-accent); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--dp-ease), padding .35s;
  font-size: 0.9rem; color: var(--dp-text-muted); line-height: 1.8;
  padding: 0 4px;
}
.faq-item.open .faq-a { max-height: 600px; padding-bottom: 20px; }

/* ============================================================
   13. CTA 밴드
============================================================ */
.cta-band {
  background: var(--dp-primary); color: #fff;
  padding-block: clamp(52px, 8vw, 88px);
  text-align: center;
}
.cta-band__title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800; margin-bottom: 12px; line-height: 1.3;
}
.cta-band__desc { color: rgba(255,255,255,.75); font-size: 1rem; margin-bottom: 32px; }
.btn-cta-main {
  display: inline-block; padding: 17px 40px;
  background: var(--dp-accent); color: #fff;
  border-radius: var(--dp-radius); font-weight: 800; font-size: 1.05rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(92,158,110,.4);
}
.btn-cta-main:hover { background: var(--dp-accent-soft); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(92,158,110,.5); }
.page-hero .btn-cta-main { padding: 10px 24px; font-size: 0.88rem; align-self: flex-start; }

/* ============================================================
   14. 통계 바
============================================================ */
.stat-item { padding: 32px 20px; }
.stat-num { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; color: var(--dp-accent); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.88rem; color: var(--dp-text-muted); font-weight: 600; }

/* ============================================================
   15. 표 (overflow 래퍼 필수)
============================================================ */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--dp-radius-md); }
.dp-table { width: 100%; border: 1px solid var(--dp-border); }
.dp-table th { background: var(--dp-bg-soft); padding: 13px 16px; font-size: 0.85rem; font-weight: 700; text-align: left; border-bottom: 1px solid var(--dp-border); }
.dp-table td { padding: 13px 16px; font-size: 0.88rem; border-bottom: 1px solid var(--dp-border); vertical-align: top; }
.dp-table tr:last-child td { border-bottom: none; }
.dp-table tr:hover td { background: var(--dp-bg-soft); }

/* ============================================================
   16. 체크리스트
============================================================ */
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; max-width: 800px; margin-inline: auto; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; line-height: 1.6; }
.check-list li::before {
  content: "✓"; flex-shrink: 0; width: 22px; height: 22px;
  background: var(--dp-accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; margin-top: 2px;
}
@media (max-width: 600px) { .check-list { grid-template-columns: 1fr; } }

/* ============================================================
   17. 리뷰/별점 카드
============================================================ */
.review-card {
  background: #fff; border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md); padding: 24px 22px;
}
.review-stars { color: var(--dp-accent); font-size: 1rem; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { font-size: 0.9rem; color: var(--dp-text); line-height: 1.8; margin-bottom: 14px; }
.review-meta { font-size: 0.78rem; color: var(--dp-text-muted); font-weight: 600; }
.review-meta span { color: var(--dp-accent); }

/* ============================================================
   18. Reveal 애니메이션
============================================================ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s var(--dp-ease), transform .65s var(--dp-ease);
}
.reveal.visible { opacity: 1; transform: none; }

.stagger > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s var(--dp-ease), transform .55s var(--dp-ease);
}
.stagger.visible > * { opacity: 1; transform: none; }
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: .08s; }
.stagger > *:nth-child(3) { transition-delay: .16s; }
.stagger > *:nth-child(4) { transition-delay: .24s; }
.stagger > *:nth-child(5) { transition-delay: .32s; }

/* ============================================================
   19. 푸터
============================================================ */
.site-footer {
  background: var(--dp-primary-3); color: rgba(255,255,255,.7);
  padding-block: clamp(52px, 8vw, 88px) 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-size: 1.4rem; font-weight: 900; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--dp-accent); }
.footer-desc { font-size: 0.82rem; line-height: 1.9; }
.footer-biz { font-size: 0.78rem; margin-top: 14px; color: rgba(255,255,255,.45); line-height: 2; }
.footer-nav-title { font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { font-size: 0.85rem; transition: color .2s; }
.footer-nav a:hover { color: var(--dp-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; font-size: 0.78rem; text-align: center; color: rgba(255,255,255,.35); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   20. 모바일 하단 스티키 바
============================================================ */
#mob-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: #fff; border-top: 1px solid var(--dp-border);
  padding: 10px var(--dp-gutter) max(10px, env(safe-area-inset-bottom));
}
#mob-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px;
  background: var(--dp-accent); color: #fff;
  border-radius: var(--dp-radius-md); font-weight: 800; font-size: 1rem;
}

/* float CTA (desktop) */
#float-cta {
  position: fixed; bottom: 32px; right: 28px; z-index: 800;
  background: var(--dp-accent); color: #fff;
  border-radius: 50px; padding: 13px 22px;
  font-weight: 800; font-size: 0.9rem;
  box-shadow: var(--dp-shadow-md);
  transition: transform .2s, box-shadow .2s;
}
#float-cta:hover { transform: translateY(-3px) scale(1.04); box-shadow: var(--dp-shadow-lg); }

/* ============================================================
   21. 반응형 브레이크포인트
============================================================ */
@media (max-width: 768px) {
  body { padding-bottom: 72px; }
  #mob-bar { display: block; }
  #float-cta { display: none; }
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-hamburger { display: flex; }
  #mob-nav { display: block; }
  .hero { min-height: 52vh; }
  .sec-hdr { margin-bottom: 36px; }
  .ba-item img { height: 220px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn-hero-primary, .btn-hero-outline { text-align: center; }
  .ba-item img { height: 200px; }
}

/* ============================================================
   22. 내부 페이지 히어로 — 좌: 텍스트 패널 / 우: 사진 슬라이드 (오버레이 없음)
============================================================ */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--dp-primary-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  align-items: stretch;
}

/* 좌측 텍스트 패널 */
.page-hero .dp-container {
  position: relative; z-index: 3;
  grid-column: 1; grid-row: 1;
  max-width: none;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(52px, 8vw, 88px);
}

/* 우측 사진 — 오버레이 없이 원본 그대로 */
.page-hero__bg {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; width: 50%; height: 100%;  /* replaced element는 width 명시 필요 */
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  transition: opacity 1.4s ease-in-out;
  z-index: 1;
}
.page-hero__bg.active { opacity: 1; z-index: 2; }

/* Ken Burns 5종 */
@keyframes kb1 { from { transform: scale(1)    translate(0,0);    } to { transform: scale(1.08) translate(-1.5%,-1%); } }
@keyframes kb2 { from { transform: scale(1.08) translate(-2%,0);  } to { transform: scale(1)    translate(0,-1.5%);   } }
@keyframes kb3 { from { transform: scale(1)    translate(2%,-1%); } to { transform: scale(1.07) translate(-1%,1.5%);  } }
@keyframes kb4 { from { transform: scale(1.06) translate(0,2%);   } to { transform: scale(1)    translate(-1.5%,0);   } }
@keyframes kb5 { from { transform: scale(1)    translate(-1%,2%); } to { transform: scale(1.08) translate(1.5%,-1%);  } }
.page-hero__bg.kb-1 { animation: kb1 7s ease-out forwards; }
.page-hero__bg.kb-2 { animation: kb2 7s ease-out forwards; }
.page-hero__bg.kb-3 { animation: kb3 7s ease-out forwards; }
.page-hero__bg.kb-4 { animation: kb4 7s ease-out forwards; }
.page-hero__bg.kb-5 { animation: kb5 7s ease-out forwards; }

/* 텍스트 — 오버레이 없으므로 text-shadow 불필요 */
.page-hero__eyebrow {
  display: inline-block; margin-bottom: 14px;
  padding: 4px 12px; border: 1px solid rgba(255,255,255,.2);
  color: var(--dp-accent-soft); font-size: 0.72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; border-radius: 2px;
}
.page-hero__h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 16px;
}
.page-hero__desc {
  color: rgba(255,255,255,.72); font-size: 1rem; max-width: 480px;
  line-height: 1.75; margin-bottom: 28px;
}

/* 히어로 내 breadcrumb */
.breadcrumb { font-size: 0.78rem; color: rgba(255,255,255,.45); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,.55); }
.breadcrumb a:hover { color: var(--dp-accent-soft); }
.breadcrumb span::before { content: " › "; }

/* 모바일: 사진 위 / 텍스트 아래 (오버레이 없이 완전 분리) */
@media (max-width: 768px) {
  .page-hero {
    grid-template-columns: 1fr;
    padding-top: 260px;
    min-height: 0;
  }
  .page-hero .dp-container {
    max-width: 100%;
    padding-block: 28px 32px;
  }
  .page-hero__bg {
    inset: 0 0 auto 0;
    width: 100%; height: 260px;
  }
}

/* ============================================================
   23. 가이드 페이지 특화
============================================================ */
.guide-toc {
  background: var(--dp-bg-soft); border-left: 3px solid var(--dp-accent);
  padding: 24px 28px; border-radius: 0 var(--dp-radius-md) var(--dp-radius-md) 0;
  margin-bottom: 40px;
}
.guide-toc__title { font-size: 0.8rem; font-weight: 700; color: var(--dp-accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.guide-toc ol { counter-reset: toc; padding-left: 0; }
.guide-toc li { counter-increment: toc; display: flex; gap: 8px; font-size: 0.88rem; margin-bottom: 6px; }
.guide-toc li::before { content: counter(toc, decimal-leading-zero); color: var(--dp-accent); font-weight: 700; flex-shrink: 0; }
.guide-toc a { color: var(--dp-text-sub); }
.guide-toc a:hover { color: var(--dp-accent); }

.guide-section { margin-bottom: 60px; }
.guide-section h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--dp-accent-pale); }
.guide-section h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 12px; color: var(--dp-primary-2); }
.guide-section p { margin-bottom: 16px; line-height: 1.9; }
.guide-section ul, .guide-section ol { margin-bottom: 16px; padding-left: 20px; }
.guide-section li { margin-bottom: 6px; font-size: 0.92rem; }

/* timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--dp-accent-pale); }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
  content: ""; position: absolute; left: -28px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--dp-accent); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--dp-accent);
}
.timeline-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.timeline-item p { font-size: 0.88rem; color: var(--dp-text-muted); }
.timeline-item__body { }

/* info card */
.info-card {
  background: var(--dp-accent-pale); border-radius: var(--dp-radius-md);
  padding: 24px 26px; border-left: 4px solid var(--dp-accent); margin-block: 24px;
}
.info-card p { margin: 0; font-size: 0.92rem; }

/* ============================================================
   24. 공지/태그
============================================================ */
.tag {
  display: inline-block; padding: 3px 10px;
  background: var(--dp-accent-pale); color: var(--dp-accent);
  font-size: 0.72rem; font-weight: 700; border-radius: 2px; letter-spacing: .04em;
}

/* ============================================================
   25. 빵가루 (breadcrumb) — 내부 페이지 헤더 아래
============================================================ */
.inner-breadcrumb {
  background: var(--dp-bg-soft); border-bottom: 1px solid var(--dp-border);
  padding: 10px 0;
}
.inner-breadcrumb ol {
  max-width: var(--dp-max-w);
  margin-inline: auto;
  padding-inline: var(--dp-gutter);
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--dp-text-muted);
}
.inner-breadcrumb li + li::before {
  content: "›"; margin-right: 2px; color: var(--dp-text-muted);
}
.inner-breadcrumb a { color: var(--dp-text-muted); }
.inner-breadcrumb a:hover { color: var(--dp-accent); }
.inner-breadcrumb [aria-current="page"] { color: var(--dp-text); font-weight: 600; }

/* service/guide 페이지: <ol class="inner-breadcrumb"> 히어로 내부 패턴 */
ol.inner-breadcrumb {
  display: flex; gap: 4px; align-items: center; flex-wrap: wrap;
  font-size: 0.78rem;
  background: none; border: none; padding: 0; margin-bottom: 12px;
}

/* ============================================================
   26. 지역 페이지 특화
============================================================ */
.area-landmark {
  background: var(--dp-bg-warm); border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-md); padding: 20px 22px;
}
.area-landmark h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.area-landmark ul { display: flex; flex-wrap: wrap; gap: 8px; }
.area-landmark li {
  padding: 5px 13px; background: #fff; border: 1px solid var(--dp-border);
  border-radius: 20px; font-size: 0.82rem; color: var(--dp-text-sub);
}

/* ============================================================
   27. 사이트맵 페이지
============================================================ */
.sitemap-section { margin-bottom: 48px; }
.sitemap-section h2 { font-size: 1.1rem; font-weight: 800; border-bottom: 2px solid var(--dp-accent); padding-bottom: 8px; margin-bottom: 16px; }
.sitemap-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sitemap-links a {
  padding: 7px 14px; background: var(--dp-bg-soft); border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius); font-size: 0.85rem; color: var(--dp-text-sub);
  transition: border-color .2s, color .2s;
}
.sitemap-links a:hover { border-color: var(--dp-accent); color: var(--dp-accent); }

/* ============================================================
   28. 404 페이지
============================================================ */
.error-section { min-height: 60vh; display: flex; align-items: center; padding-block: 80px; }
.error-code { font-size: clamp(6rem, 18vw, 12rem); font-weight: 900; color: var(--dp-accent-pale); line-height: 1; }
.error-title { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800; margin-block: 16px; }
.error-desc { color: var(--dp-text-muted); margin-bottom: 32px; }
.error-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }

/* ============================================================
   29. 버튼 유틸리티
============================================================ */
.btn-primary {
  display: inline-block; padding: 13px 28px;
  background: var(--dp-accent); color: #fff;
  border-radius: var(--dp-radius); font-weight: 700; font-size: 0.95rem;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--dp-primary); transform: translateY(-1px); }

.btn-outline {
  display: inline-block; padding: 12px 26px;
  border: 2px solid var(--dp-accent); color: var(--dp-accent);
  border-radius: var(--dp-radius); font-weight: 700; font-size: 0.95rem;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--dp-accent); color: #fff; }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
