/* 엠앤와이픽스 외벽대리석교체: 그래파이트 앤 테라코타 디자인 시스템
   - 화강암/대리석의 짙은 그레이(그래파이트)와 붉은 반점(테라코타 러스트)을 반영
   - 세면대대리석리폼(Roots) 참고문서의 레이아웃 패턴을 참고하되 색상은 신규 지정, 섹션 순서·라운드 값 베리에이션 적용
   - 라운드는 Roots보다 각지게(화강암의 절단면 느낌) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --color-primary: #1c1f22;
  --color-primary-2: #262a2e;
  --color-accent: #9c4221;
  --color-accent-hover: #b8532c;
  --color-accent-rgb: 156, 66, 33;

  --text-on-light: #1c1f22;
  --text-on-light-muted: #5c5650;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #cbc4b9;

  --color-bg: #ffffff;
  --color-bg-alt: #eae3d6;
  --color-border: #ded4c2;

  --radius: 6px;
  --radius-lg: 10px;
  --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; cursor: pointer; border: none; background: none; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 24px; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-primary); color: var(--text-on-dark); }
.sec-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--color-accent); margin: 0 0 10px;
}
.sec-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; letter-spacing: -0.3px; margin: 0 0 12px; }
.section-dark .sec-title { color: var(--text-on-dark); }
.sec-sub { font-size: .95rem; line-height: 1.7; color: var(--text-on-light-muted); margin: 0 0 40px; max-width: 640px; }
.section-dark .sec-sub { color: var(--text-on-dark-muted); }
p { font-size: .95rem; line-height: 1.8; }

/* 그리드 */
.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: 28px; 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; } }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: var(--radius); font-weight: 700; font-size: .92rem;
  border: 1px solid transparent; 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,.35); }
.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); }
  .card:hover { border-color: rgba(var(--color-accent-rgb), .5); transform: translateY(-4px); }
  .link-card:hover img { transform: scale(1.06); }
}
.btn:active { opacity: .85; }

/* 헤더 */
.hdr {
  position: sticky; top: 0; z-index: 50; height: 68px; background: var(--color-primary);
  border-bottom: 1px solid rgba(156,66,33,.22);
}
.hdr .container { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.hdr-logo { font-size: 1.15rem; font-weight: 700; letter-spacing: -.3px; color: #fff; }
.hdr-logo span { color: var(--color-accent); }
.hdr-nav { display: flex; gap: 22px; }
.hdr-nav a { color: var(--text-on-dark-muted); font-weight: 600; font-size: .9rem; }
@media (hover: hover) and (pointer: fine) { .hdr-nav a:hover { color: #fff; } }
.hdr-cta {
  background: var(--color-accent); color: #fff; font-weight: 700; font-size: .85rem;
  padding: 10px 22px; border-radius: 999px;
}
@media (hover: hover) and (pointer: fine) { .hdr-cta:hover { background: var(--color-accent-hover); } }
.hdr-burger { display: none; flex-direction: column; gap: 5px; width: 26px; }
.hdr-burger span { display: block; width: 100%; height: 2px; background: #fff; }
#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.open { max-height: 480px; }
#mob-nav a {
  display: block; padding: 16px 24px; color: var(--text-on-dark-muted); font-weight: 600;
  border-top: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 1024px) {
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-burger { display: flex; }
  body { padding-bottom: 64px; }
}
@media (min-width: 1025px) { #mob-nav { display: none; } }

/* 히어로 */
.hero {
  position: relative; min-height: min(86vh, 680px); display: flex; align-items: flex-end;
  background: var(--color-primary); overflow: hidden;
}
.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::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 68%;
  background: linear-gradient(to top, rgba(15,17,19,.92) 0%, rgba(15,17,19,.62) 40%, transparent 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 120px 24px 72px; max-width: var(--container-max); margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  letter-spacing: .3px; color: var(--color-accent); background: rgba(20,22,24,.55);
  border: 1px solid rgba(var(--color-accent-rgb), .5); margin-bottom: 20px;
  backdrop-filter: blur(2px);
}
.hero-h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 700; line-height: 1.2; letter-spacing: -1px;
  color: #fff; margin: 0 0 18px; max-width: 720px;
  text-shadow: 0 2px 16px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.6);
}
.hero-sub {
  color: rgba(255,255,255,.92); font-size: 1.05rem; line-height: 1.8; max-width: 480px; margin: 0 0 32px;
  text-shadow: 0 1px 8px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.6);
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* 카드 */
.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .25s ease, border-color .25s ease;
}
.card-icon {
  width: 46px; height: 46px; border-radius: var(--radius); background: rgba(var(--color-accent-rgb), .12);
  color: var(--color-accent); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 18px; font-weight: 700;
}
.card h3 { font-size: 1.05rem; margin: 0 0 8px; }
.card p { font-size: .88rem; color: var(--text-on-light-muted); margin: 0; }
.section-dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section-dark .card h3 { color: #fff; }
.section-dark .card p { color: var(--text-on-dark-muted); }

/* 내부링크 카드(썸네일) */
.link-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); background: #fff; }
.link-card figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; }
.link-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.link-card figcaption { padding: 16px 18px; }
.link-card figcaption .lc-cat { font-size: .72rem; color: var(--color-accent); font-weight: 700; }
.link-card figcaption h3 { font-size: .98rem; margin: 6px 0 4px; }
.link-card figcaption p { font-size: .82rem; color: var(--text-on-light-muted); margin: 0; }
.link-card.cta-card { background: var(--color-primary); display: flex; align-items: center; justify-content: center; text-align: center; }
.link-card.cta-card figure { display: none; }
.link-card.cta-card .cta-card-body { padding: 32px 20px; }
.link-card.cta-card h3 { color: #fff; font-size: 1.05rem; margin: 0 0 8px; }
.link-card.cta-card p { color: var(--text-on-dark-muted); font-size: .82rem; margin: 0 0 16px; }

/* 뱃지 */
.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; padding: 5px 14px; border-radius: var(--radius); font-size: .74rem; font-weight: 700;
  background: rgba(var(--color-accent-rgb), .1); color: var(--color-accent); border: 1px solid rgba(var(--color-accent-rgb), .25);
}

/* 프로세스/타임라인 */
.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: 700;
}
.proc-step h4 { font-size: .92rem; margin: 0 0 6px; }
.proc-step p { font-size: .8rem; color: var(--text-on-light-muted); margin: 0; }
@media (max-width: 768px) {
  .proc-list { flex-direction: column; gap: 10px; }
  .proc-step { padding: 24px 0; }
  .proc-step::after { display: none; }
}

/* Before/After */
.ba-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: var(--radius-lg); overflow: hidden; }
.ba-item { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.ba-item img { width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
  position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: var(--radius);
  font-size: .76rem; font-weight: 700; color: #fff; background: rgba(28,31,34,.72);
}
@media (max-width: 600px) { .ba-wrap { grid-template-columns: 1fr; } }

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

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

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

/* 통계(수치 아님, 배지형 강조 텍스트용) */
.stat-num { font-size: 1.6rem; font-weight: 700; color: var(--color-accent); }
.stat-label { font-size: .82rem; color: var(--text-on-light-muted); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; padding: 20px 4px;
  font-weight: 700; font-size: .95rem;
}
.faq-q::after { content: '+'; font-size: 1.3rem; 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; font-size: .88rem; color: var(--text-on-light-muted); }

/* CTA 밴드 */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--color-primary) center / cover no-repeat;
  border-radius: var(--radius-lg); padding: 72px 32px; text-align: center; color: #fff;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(15,17,19,.55) 0%, rgba(15,17,19,.72) 55%, rgba(15,17,19,.9) 100%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.cta-band p { color: rgba(255,255,255,.88); margin: 0 0 26px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* 모바일 스티키 바 / 플로팅 CTA */
#mob-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; 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; border-radius: var(--radius); font-weight: 700; font-size: .86rem; }
#mob-bar a.mb-call { background: var(--color-accent); color: #fff; }
#mob-bar a.mb-page { background: var(--color-bg-alt); color: var(--text-on-light); }
@media (max-width: 1024px) { #mob-bar { display: flex; } }

#float-cta {
  position: fixed; right: 24px; bottom: 28px; z-index: 55; 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);
}
@media (max-width: 1024px) { #float-cta { display: none; } }

/* 스크롤 리빌 — 컴포넌트 성격별로 다르게 등장 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.show { opacity: 1; transform: translateY(0); }

/* 카드/뱃지 그리드: 자식이 하나씩 순차적으로 튀어오르듯 등장 */
.stagger > * {
  opacity: 0; transform: translateY(22px) scale(.96);
  transition: opacity .5s cubic-bezier(.34,1.15,.64,1), transform .5s cubic-bezier(.34,1.15,.64,1);
  transition-delay: calc(var(--i, 0) * .09s);
}
.stagger.show > * { opacity: 1; transform: translateY(0) scale(1); }

/* 프로세스 타임라인: 좌→우로 순차 슬라이드 */
.proc-list.stagger > * { transform: translateX(-18px) scale(1); }
.proc-list.stagger.show > * { transform: translateX(0) scale(1); }

/* 세로 타임라인(가이드 진행절차): 살짝 옆에서 미끄러지듯 등장 */
.tl.stagger { opacity: 0; transition: opacity .3s ease; }
.tl.stagger.show { opacity: 1; }
.tl.stagger .tl-item {
  opacity: 0; transform: translateX(-16px);
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}
.tl.stagger.show .tl-item { opacity: 1; transform: translateX(0); }
.tl.stagger .tl-item:nth-child(1) { transition-delay: .0s; }
.tl.stagger .tl-item:nth-child(2) { transition-delay: .08s; }
.tl.stagger .tl-item:nth-child(3) { transition-delay: .16s; }
.tl.stagger .tl-item:nth-child(4) { transition-delay: .24s; }
.tl.stagger .tl-item:nth-child(5) { transition-delay: .32s; }
.tl.stagger .tl-item:nth-child(6) { transition-delay: .40s; }

/* 체크리스트: 왼쪽에서 하나씩 밀려나오듯 등장 */
.check-list.stagger { opacity: 1; }
.check-list.stagger > li {
  opacity: 0; transform: translateX(-14px);
  transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--i, 0) * .06s);
}
.check-list.stagger.show > li { opacity: 1; transform: translateX(0); }

/* 시공 전후 비교: 좌/우에서 마주보듯 등장 */
.ba-wrap.reveal { opacity: 1; transform: none; transition: none; }
.ba-wrap.reveal .ba-item {
  opacity: 0; transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.ba-wrap.reveal .ba-item:first-child { transform: translateX(-36px); }
.ba-wrap.reveal .ba-item:last-child { transform: translateX(36px); transition-delay: .12s; }
.ba-wrap.reveal.show .ba-item { opacity: 1; transform: translateX(0); }

/* 브레드크럼 */
.crumb { font-size: .8rem; color: var(--text-on-light-muted); margin-bottom: 18px; }
.crumb a { color: var(--color-accent); font-weight: 600; }

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

/* 상담 페이지 */
.contact-hero { padding-top: 120px; }
.contact-btns { max-width: 420px; margin: 0 auto; }

.phone-display { margin: 8px 0 36px; }
.phone-display-label { display: block; font-family: inherit; font-size: .82rem; font-weight: 700; letter-spacing: .3px; color: var(--color-accent); margin-bottom: 8px; }
.phone-display-number {
  display: inline-block; font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -1px;
  color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1;
}
@media (hover: hover) and (pointer: fine) { .phone-display-number:hover { color: var(--color-accent); } }

.contact-cards { max-width: 560px; margin: 0 auto; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 32px 20px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}
.contact-card-icon {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(var(--color-accent-rgb), .16); color: var(--color-accent);
}
.contact-card-icon svg { width: 28px; height: 28px; }
.contact-card h3 { color: #fff; font-size: 1.1rem; margin: 4px 0 0; }
.contact-card p { color: var(--text-on-dark-muted); font-size: .86rem; margin: 0; }
.contact-card-call { border-color: rgba(var(--color-accent-rgb), .5); background: rgba(var(--color-accent-rgb), .1); }
@media (hover: hover) and (pointer: fine) {
  .contact-card-call:hover { background: rgba(var(--color-accent-rgb), .16); }
  .contact-card-sms:hover { background: rgba(255,255,255,.07); }
}

/* 문제상황 진단 카드 */
.diag-card { display: flex; gap: 16px; align-items: flex-start; }
.diag-card .diag-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(var(--color-accent-rgb), .12);
  color: var(--color-accent); display: flex; align-items: center; justify-content: center;
}
.diag-card .diag-icon svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero-inner { padding: 96px 20px 48px; }
}

/* 의미단위 줄바꿈 */
.br-mobile { display: none; }
.br-desktop { display: inline; }
@media (max-width: 768px) {
  .br-mobile { display: inline; }
  .br-desktop { display: none; }
}

/* 접근성: 모션 최소화 선호 시 애니메이션 사실상 정지(최종 상태는 유지) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
