/* 보도블럭보수업체(임팩트) — 차콜 앤 오커 디자인 시스템
   - Charcoal(#23262b)/Ochre(#b5762c) — 아스팔트 어두운 톤 + 줄눈 모래·시공 안전색 반영
   - Roots(세면대대리석) 스톤그레이 시스템의 베리에이션: 단일 그레이 톤 대신 차콜+오커 대비 배색,
     히어로는 46/54 분할 대신 풀블리드 슬라이드쇼 + 불투명 카드, radius를 살짝 더 각지게(8/14)
   - 보조 배경: 웜 베이지 대신 쿨 슬레이트미스트(#e9edf1)로 변경 — 오커 액센트와 대비되는 차가운 톤
   - 폰트: Pretendard (Gmarket Sans에서 변경 — 더 깔끔하고 가독성 높은 톤으로) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --color-primary: #23262b;
  --color-primary-2: #2f333a;
  --color-accent: #b5762c;
  --color-accent-hover: #c98a3f;
  --color-accent-rgb: 181, 118, 44;

  --text-on-light: #23262b;
  --text-on-light-muted: #5f6368;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #c9ccd1;

  --color-bg: #ffffff;
  --color-bg-alt: #e9edf1;
  --color-border: #dbe1e6;

  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --container-max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-on-light);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
body, p, h1, h2, h3, h4, h5, h6, li, td, th, a, span, div, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-body); margin: 0; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 24px; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-primary); color: var(--text-on-dark); }
.section-dark .sec-sub { color: var(--text-on-dark-muted); }

.sec-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -0.3px; margin: 0 0 12px; }
.sec-sub { font-size: .95rem; color: var(--text-on-light-muted); line-height: 1.7; margin: 0 0 40px; max-width: 640px; }
.sec-head { max-width: 720px; }
.sec-head.center { margin: 0 auto 8px; text-align: center; }
.sec-head.center .sec-sub { margin-left: auto; margin-right: auto; }

p { font-size: .95rem; line-height: 1.8; color: var(--text-on-light-muted); }

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

/* ── 헤더 ── */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--color-primary); height: 68px; border-bottom: 1px solid rgba(var(--color-accent-rgb), .25); }
.hdr .container { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr-logo { color: #fff; font-weight: 800; font-size: 1.1rem; letter-spacing: -.3px; white-space: nowrap; }
.hdr-logo span { color: var(--color-accent); }
.hdr-nav { display: flex; gap: 22px; flex: 1; justify-content: center; }
.hdr-nav a { color: var(--text-on-dark-muted); font-weight: 600; font-size: .88rem; }
.hdr-nav a.active { color: var(--color-accent); }
.hdr-cta { background: var(--color-accent); color: #fff; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.hdr-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.hdr-burger span { width: 22px; height: 2px; background: #fff; display: block; }
#mob-nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--color-primary); max-height: 0; overflow: hidden; transition: max-height .3s ease; z-index: 49; }
#mob-nav a { display: block; padding: 14px 24px; color: var(--text-on-dark-muted); font-weight: 600; border-top: 1px solid rgba(255,255,255,.08); }
#mob-nav.open { max-height: 600px; overflow-y: auto; }

/* ── 히어로(메인) : 풀블리드 슬라이드쇼 + 불투명 텍스트 카드(전면 틴트 없음) ── */
.hero { position: relative; min-height: min(78vh, 640px); overflow: hidden; background: var(--color-primary); display: flex; align-items: flex-end; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.active { opacity: 1; animation: hero-drift 14s ease-in-out infinite; }
@keyframes hero-drift {
  0%, 100% { transform: scale(1.02) translateY(0); }
  50% { transform: scale(1.06) translateY(-1%); }
}
.hero-card {
  position: relative; z-index: 2; margin: 0 0 48px 24px;
  background: var(--color-primary); border-left: 4px solid var(--color-accent);
  padding: 32px clamp(24px, 4vw, 44px); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  max-width: 560px; box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.hero-badge { display: inline-block; background: rgba(var(--color-accent-rgb), .18); color: var(--color-accent); border: 1px solid rgba(var(--color-accent-rgb), .4); padding: 5px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .3px; margin-bottom: 16px; }
.hero-h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; line-height: 1.2; letter-spacing: -.7px; color: #fff; margin: 0 0 16px; }
.hero-sub { font-size: 1rem; line-height: 1.8; color: rgba(255,255,255,.82); max-width: 460px; margin: 0 0 26px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 768px) {
  .hero { min-height: 72vh; align-items: flex-end; }
  .hero-card { margin: 0 0 28px 16px; padding: 24px 22px; max-width: calc(100% - 32px); }
}

/* ── 상세페이지 상단 배너(히어로) : 사진 규칙 적용 대상 ── */
.page-hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; background: var(--color-primary); background-size: cover; background-position: center; overflow: hidden; }
.page-hero-card { position: relative; z-index: 2; margin: 0 0 32px; background: var(--color-primary); border-left: 4px solid var(--color-accent); padding: 22px 28px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; max-width: 640px; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.page-hero-card .crumb { font-size: .78rem; color: var(--text-on-dark-muted); margin-bottom: 8px; }
.page-hero-card h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.5px; }

/* AEO/가이드 페이지 상단(사진 없음, 단색) */
.guide-hero { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2)); padding: 64px 24px 52px; }
.guide-hero .container { max-width: 840px; }
.guide-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; }
.guide-hero p { color: var(--text-on-dark-muted); font-size: 1rem; }

/* ── 카드 ── */
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 26px; transition: transform .25s ease, border-color .25s ease; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(var(--color-accent-rgb), .14); color: var(--color-accent); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 16px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: rgba(var(--color-accent-rgb), .5); transform: translateY(-4px); }
}
.card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.card p { font-size: .87rem; margin: 0; }

/* 썸네일 카드형 내부링크 (세부 페이지 전용) */
.link-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); background: #fff; display: block; }
.link-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-bg-alt); }
.link-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
@media (hover: hover) and (pointer: fine) {
  .link-card:hover img { transform: scale(1.06); }
}
.link-card figcaption { padding: 16px 18px; }
.link-card figcaption .cat { font-size: .72rem; font-weight: 700; color: var(--color-accent); text-transform: uppercase; letter-spacing: .5px; }
.link-card figcaption h4 { font-size: .98rem; margin: 6px 0 0; }
.link-card.cta-card { background: var(--color-primary); display: flex; align-items: center; justify-content: center; text-align: center; min-height: 100%; }
.link-card.cta-card .cta-inner { padding: 32px 20px; }
.link-card.cta-card h4 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.link-card.cta-card .btn { margin-top: 4px; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius); font-weight: 700; font-size: .92rem; border: 1px solid transparent; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-dark { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--color-accent-hover); }
  .btn-outline-light:hover { border-color: var(--color-accent); color: var(--color-accent); }
  .btn-outline-dark:hover { border-color: var(--color-accent); color: var(--color-accent); }
}
.btn:active { opacity: .85; }

#float-cta { position: fixed; right: 24px; bottom: 28px; z-index: 40; background: var(--color-accent); color: #fff; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: .88rem; box-shadow: 0 8px 20px rgba(var(--color-accent-rgb), .4); }
#mob-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.08); padding: 10px 14px; gap: 10px; }
#mob-bar a { flex: 1; text-align: center; padding: 12px 8px; border-radius: var(--radius); font-weight: 700; font-size: .85rem; }
#mob-bar a.primary { background: var(--color-accent); color: #fff; }
#mob-bar a.secondary { background: var(--color-bg-alt); color: var(--text-on-light); }

@media (max-width: 1024px) {
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-burger { display: flex; }
  #float-cta { display: none; }
  #mob-bar { display: flex; }
  body { padding-bottom: 64px; }
}

/* ── 뱃지 ── */
.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 { display: inline-block; background: rgba(var(--color-accent-rgb), .12); color: var(--color-accent); padding: 5px 14px; border-radius: 6px; font-size: .74rem; font-weight: 700; }
.badge.on-dark { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }

/* ── 프로세스/타임라인 (연결선은 .proc-step 자체 기준 — 배지 아님) ── */
.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(--color-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(--color-accent); color: #fff; font-weight: 800; }
.proc-step h4 { font-size: .92rem; margin-bottom: 4px; }
.proc-step p { font-size: .8rem; margin: 0; }
@media (max-width: 768px) {
  .proc-list { flex-direction: column; gap: 10px; }
  .proc-step { padding: 24px 0; }
  .proc-step::after { display: none; }
}

/* ── 비교표 / 스크롤 래퍼 ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--color-border); font-size: .88rem; text-align: left; }
th { background: var(--color-bg-alt); font-weight: 700; }
td.good { color: #1a7a4c; font-weight: 700; }
td.bad { color: #b0393f; font-weight: 700; }

/* ── 체크리스트 ── */
.check-list li { padding: 12px 0 12px 30px; border-bottom: 1px dashed var(--color-border); position: relative; font-size: .92rem; color: var(--text-on-light); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--color-accent); font-weight: 800; }

/* ── 세로 타임라인(가이드용) ── */
.tl { position: relative; padding-left: 28px; }
.tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--color-border); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before { content: ''; position: absolute; left: -28px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-accent); }
.tl-item h4 { font-size: .95rem; margin-bottom: 4px; }
.tl-item p { font-size: .86rem; margin: 0; }

/* ── 통계 ── */
.stat-num { font-size: 2rem; font-weight: 800; color: var(--color-accent); display: block; }
.stat-label { font-size: .82rem; color: var(--text-on-light-muted); }

/* ── Before/After ── */
/* 시공 전후 — 큰 사진 1장씩 세로 2줄 배치(좌우 2열 아님), 사진마다 설명 캡션 */
.ba-wrap { display: flex; flex-direction: column; gap: 28px; }
.ba-item { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); background: #fff; }
.ba-photo { position: relative; aspect-ratio: 4 / 3; }
.ba-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-tag { position: absolute; top: 16px; left: 16px; background: rgba(35,38,43,.8); color: #fff; padding: 6px 16px; border-radius: 6px; font-size: .85rem; font-weight: 700; }
.ba-desc { margin: 0; padding: 18px 22px; font-size: .95rem; color: var(--text-on-light); line-height: 1.75; }

/* 메인 페이지 "시공 전후 비교" 3열 미리보기용 — 작게, 좌우 2열 */
.case-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: var(--radius-lg); overflow: hidden; }
.case-preview .ba-item { position: relative; aspect-ratio: 4 / 3; border-radius: 0; border: 0; }
.case-preview .ba-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-preview .ba-tag { position: absolute; top: 10px; left: 10px; padding: 4px 12px; font-size: .74rem; }

/* ── 인용/후기형 블록(일반적 화법, 가짜 후기 수치 없음) ── */
.quote-block { border-left: 4px solid var(--color-accent); background: var(--color-bg-alt); padding: 26px 30px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; max-width: 760px; }
.quote-block .quote-mark { display: block; font-size: 2.2rem; color: var(--color-accent); font-weight: 800; line-height: 1; margin-bottom: 10px; }
.quote-block p { margin: 0; font-size: 1.02rem; line-height: 1.85; color: var(--text-on-light); }
.quote-block .quote-role { display: block; margin-top: 14px; font-size: .82rem; color: var(--text-on-light-muted); font-weight: 700; }

/* ── FAQ ── */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 4px; font-size: .95rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--text-on-light); }
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--color-accent); transition: transform .25s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 4px 20px; margin: 0; }

/* ── CTA 밴드 ── */
.cta-band { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2)); border-radius: var(--radius-lg); padding: 52px 32px; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 12px; }
.cta-band p { color: var(--text-on-dark-muted); margin-bottom: 24px; }

/* ── 푸터 ── */
.ftr { background: var(--color-primary); color: var(--text-on-dark-muted); padding: 60px 24px 26px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ftr h4 { color: var(--color-accent); font-size: .76rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.ftr p, .ftr a, .ftr li { font-size: .82rem; line-height: 1.9; }
.ftr li { margin-bottom: 4px; }
@media (hover: hover) and (pointer: fine) { .ftr a:hover { color: var(--color-accent); } }
.ftr-bottom { max-width: var(--container-max); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .74rem; text-align: center; color: #8a8f96; }
@media (max-width: 768px) { .ftr-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ── 스크롤 리빌 ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.show { opacity: 1; transform: translateY(0); }
.stagger.show > * { transition-delay: calc(var(--i, 0) * .08s); }
.no-scroll-x { overflow-x: hidden; }

/* ── 상담 페이지 전용 ── */
.contact-hero { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2)); padding: 64px 24px 48px; text-align: center; }
.contact-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.contact-hero p { color: var(--text-on-dark-muted); max-width: 560px; margin: 0 auto; }
.contact-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px; margin: -40px auto 0; max-width: 640px; position: relative; z-index: 2; box-shadow: 0 20px 40px rgba(0,0,0,.12); text-align: center; }
.phone-display { border-left: 3px solid var(--color-accent); background: var(--color-bg-alt); padding: 18px 24px; border-radius: var(--radius); font-size: 1.6rem; font-weight: 800; letter-spacing: .5px; margin-bottom: 20px; }
.contact-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .contact-btns { grid-template-columns: 1fr; } }

/* ── 404 ── */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.error-page .code { font-size: 4rem; font-weight: 800; color: var(--color-accent); }
