/* ===========================================================
   화장실타일교체 — 상생집수리
   화이트 + 블랙 + 레드 에디토리얼 디자인
   =========================================================== */

:root {
  --white: #ffffff;
  --bg-soft: #f5f5f5;
  --bg-soft-2: #f2f3f5;
  --ink: #111111;
  --ink-soft: #55585f;
  --red: #e61e45;
  --red-dark: #c8123a;
  --navy: #0f1620;
  --navy-soft: #1b2530;
  --line: #d9dde3;
  --wrap: 1280px;
  --sans: "SUIT Variable", "SUIT", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(17,17,17,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--red); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--red); }

.section-label {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--ink-soft);
  text-transform: uppercase;
}

/* ── 버튼 ───────────────────────────────────────── */
.btn-call {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; background: var(--red); color: #fff; font-weight: 700;
  padding: 15px 28px; border-radius: 2px; transition: transform .15s ease, background .15s ease;
  font-size: 16px;
}
.btn-call:hover { background: var(--red-dark); }
.btn-call:hover .icon { transform: translateX(3px); }
.btn-call-header { padding: 10px 20px; font-size: 14px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); padding: 14px 26px; font-weight: 700; border-radius: 2px;
}
.icon { width: 20px; height: 20px; flex: none; transition: transform .15s ease; }

/* ── 헤더 ───────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60; background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  width: 22px; height: 22px; gap: 2px;
}
.brand-mark span { background: var(--navy); }
.brand-mark span:nth-child(1) { background: var(--red); }
.brand-mark span:nth-child(4) { background: var(--red); }
.brand-name { font-size: 19px; font-weight: 800; }
.main-nav { display: flex; gap: 32px; font-weight: 700; font-size: 15px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.hamburger {
  display: none; background: none; border: none; padding: 6px; color: var(--ink);
}

.mobile-nav {
  position: fixed; top: 0; right: -100%; width: min(320px, 84vw); height: 100%;
  background: #fff; z-index: 90; transition: right .25s ease;
  box-shadow: -8px 0 24px rgba(0,0,0,.08);
  display: flex; flex-direction: column;
}
.mobile-nav.is-open { right: 0; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.mobile-nav-close { background: none; border: none; color: var(--ink); }
.mobile-nav nav { display: flex; flex-direction: column; padding: 24px; gap: 22px; font-weight: 700; font-size: 17px; }
.mobile-nav-backdrop {
  position: fixed; inset: 0; background: rgba(15,22,32,.5); z-index: 80;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.mobile-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  padding: 56px 0 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr auto;
  gap: 40px;
  align-items: stretch;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-bottom: 56px; }
.hero-copy h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.08;
}
.hero-copy .lead { font-size: 17px; color: var(--ink-soft); max-width: 42ch; }
.hero-copy .btn-call { align-self: flex-start; }

.hero-photo {
  position: relative;
  align-self: stretch;
  min-height: 420px;
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-photo-caption {
  position: absolute; left: 20px; bottom: 20px; background: rgba(15,22,32,.82);
  color: #fff; padding: 10px 16px; font-size: 13px; font-weight: 700; letter-spacing: .02em;
}

.service-index {
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--line); padding-left: 28px; min-width: 220px;
}
.service-index-item {
  display: flex; align-items: baseline; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--line); color: var(--ink-soft);
}
.service-index-item:last-child { border-bottom: none; }
.si-num { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.si-title { font-size: 15px; font-weight: 700; white-space: nowrap; }
.service-index-item:hover,
.service-index-item.is-active { color: var(--ink); }
.service-index-item.is-active .si-num { color: var(--red); }
.scroll-down {
  margin-top: 20px; font-size: 12px; font-weight: 700; letter-spacing: .18em;
  color: var(--ink-soft); writing-mode: vertical-rl;
}

/* ── 아이콘 요약 ─────────────────────────────────── */
.summary-strip { padding: 40px 0 60px; border-bottom: 1px solid var(--line); }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.summary-item { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid var(--line); }
.summary-item .icon { width: 26px; height: 26px; color: var(--red); }
.summary-item h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.summary-item p { font-size: 14px; color: var(--ink-soft); }

/* ── 다크 스트립 ─────────────────────────────────── */
.dark-strip { background: var(--navy); color: #fff; padding: 52px 0; }
.dark-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.dark-strip-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 0 28px;
  border-left: 1px solid rgba(255,255,255,.14);
}
.dark-strip-item:first-child { border-left: none; padding-left: 0; }
.dark-strip-item .icon { color: var(--red); width: 28px; height: 28px; }
.dark-strip-item h3 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.dark-strip-item p { color: rgba(255,255,255,.72); font-size: 14px; }

/* ── 서비스 상세 블록 ────────────────────────────── */
.services { padding: 80px 0; }
.service-block { padding: 64px 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: none; }
.service-block-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.service-block.is-reverse .service-block-inner { direction: rtl; }
.service-block.is-reverse .service-text,
.service-block.is-reverse .service-photos { direction: ltr; }

.service-num { font-size: 15px; font-weight: 800; color: var(--red); letter-spacing: .05em; }
.service-text h2 { font-size: clamp(28px, 3vw, 38px); margin: 10px 0 16px; }
.service-text .desc { font-size: 16px; color: var(--ink-soft); margin-bottom: 22px; }
.checkpoints { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.checkpoint-item { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.checkpoint-item .icon { width: 18px; height: 18px; color: var(--red); margin-top: 2px; }
.service-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.service-more:hover .icon { transform: translateX(4px); }

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ba-item { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.ba-item img { width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
  position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 800;
  letter-spacing: .1em; padding: 6px 12px; background: var(--ink); color: #fff;
}
.ba-item.is-after .ba-tag { background: var(--red); }

/* ── 다크 CTA ────────────────────────────────────── */
.mid-cta { background: var(--navy); color: #fff; padding: 90px 0; position: relative; overflow: hidden; }
.mid-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.mid-cta-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.mid-cta h2 { font-size: clamp(30px, 4vw, 46px); color: #fff; line-height: 1.25; margin-bottom: 20px; }
.mid-cta p { color: rgba(255,255,255,.7); font-size: 16px; margin-bottom: 28px; max-width: 42ch; }
.mid-cta-list { display: flex; flex-direction: column; }
.mid-cta-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.16); color: #fff; font-weight: 700;
}
.mid-cta-list a:hover { color: var(--red); }
.mid-cta-photo { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.mid-cta-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── PROCESS ─────────────────────────────────────── */
.process { padding: 90px 0; }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 10px; }
.process-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.process-step { padding-top: 20px; border-top: 3px solid var(--ink); }
.process-step .num { font-size: 26px; font-weight: 800; color: var(--red); display: block; margin-bottom: 10px; }
.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--ink-soft); }

/* ── OTHER SERVICES (NSEO 상세용) ─────────────────── */
.section-soft { background: var(--bg-soft); padding: 80px 0; }
.other-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.other-card { position: relative; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.other-card img { display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.other-num { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; }
.other-title { display: block; padding: 14px; font-weight: 700; font-size: 15px; }

/* ── 지역 페이지 하단 서비스 캐러셀 (수동, 한 칸씩 이동) ─── */
.carousel { display: flex; align-items: center; gap: 14px; }
.carousel-track {
  flex: 1; display: flex; gap: 18px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
  position: relative; flex: 0 0 260px; background: #fff; border: 1px solid var(--line);
  overflow: hidden; scroll-snap-align: start;
}
.carousel-card img { display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.carousel-arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.carousel-arrow:hover { background: var(--ink); color: #fff; }
.carousel-arrow .icon { width: 18px; height: 18px; }
.carousel-prev .icon { transform: rotate(180deg); }

/* ── FAQ ─────────────────────────────────────────── */
.faq { padding: 90px 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 17px; gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: inherit; font-weight: inherit; }
.faq-item summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--red); flex: none;
}
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding-top: 14px; max-width: 74ch; }
.faq-a p { color: var(--ink-soft); font-size: 15px; }

/* ── FINAL CTA ───────────────────────────────────── */
.final-cta { background: var(--red); color: #fff; padding: 90px 0; text-align: center; }
.final-cta h2 { font-size: clamp(28px, 4vw, 44px); color: #fff; margin-bottom: 16px; }
.final-cta p { color: rgba(255,255,255,.9); font-size: 16px; margin-bottom: 32px; }
.final-cta .btn-call { background: #fff; color: var(--red); }
.final-cta .btn-call:hover { background: var(--navy); color: #fff; }

/* ── 페이지 히어로 (NSEO 상세) ───────────────────── */
.page-hero { padding: 48px 0 0; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { font-weight: 700; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 16px; }
.page-hero .lead { font-size: 17px; color: var(--ink-soft); max-width: 68ch; margin-bottom: 24px; }
.point-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.point-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 10px 16px; font-size: 14px; font-weight: 700; }
.point-item .icon { width: 18px; height: 18px; color: var(--red); }

.detail-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 auto 56px; max-width: 760px; }
.detail-photos .ba-item { aspect-ratio: 3/4; }

.article { padding-bottom: 80px; }
.article-section { padding: 34px 0; border-top: 1px solid var(--line); }
.article-section h2 { font-size: 24px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.article-section h2 .icon { color: var(--red); }
.article-section p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 14px; }
.article-section ul.bullet { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.article-section ul.bullet li { display: flex; gap: 10px; font-size: 15px; }
.article-section ul.bullet li::before { content: ""; width: 6px; height: 6px; background: var(--red); margin-top: 8px; flex: none; }

table.cost-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
table.cost-table caption { text-align: left; font-weight: 700; margin-bottom: 10px; color: var(--ink-soft); font-size: 13px; }
table.cost-table th, table.cost-table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
table.cost-table thead th { background: var(--bg-soft); font-weight: 800; }

.faq-note { margin-top: 12px; padding: 16px; border: 1px dashed var(--line); font-size: 13.5px; color: var(--ink-soft); }

/* ── 404 ─────────────────────────────────────────── */
.error-page { padding: 100px 0; text-align: center; }
.error-page h1 { font-size: 40px; margin-bottom: 14px; }
.error-page p { color: var(--ink-soft); margin-bottom: 30px; }

/* ── 푸터 ────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 64px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-col .brand-name { color: #fff; font-size: 18px; display: block; margin-bottom: 12px; }
.footer-col p { font-size: 14px; line-height: 1.7; }
.footer-heading { display: block; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .08em; margin-bottom: 14px; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col ul a:hover { color: #fff; }
.biz-info { gap: 8px; font-size: 13px; color: rgba(255,255,255,.7); }
.footer-bottom { padding-top: 20px; font-size: 13px; }

/* ── 플로팅 전화 버튼 ────────────────────────────── */
.float-call {
  position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px;
  background: var(--red); color: #fff; border-radius: 50%; display: none;
  align-items: center; justify-content: center; z-index: 50; box-shadow: 0 6px 18px rgba(230,30,69,.35);
}
.float-call .icon { width: 24px; height: 24px; }

/* ── 스크롤 리빌 ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===========================================================
   반응형
   =========================================================== */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .service-index { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; flex-direction: row; flex-wrap: wrap; }
  .service-index-item { border-bottom: none; padding: 8px 14px 8px 0; }
  .scroll-down { display: none; }
  .hero-photo { min-height: 320px; }
  .dark-strip-grid { grid-template-columns: 1fr; gap: 24px; }
  .dark-strip-item { border-left: none; padding-left: 0; }
  .mid-cta-inner { grid-template-columns: 1fr; }
  .other-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hamburger { display: inline-flex; }
  .summary-grid { grid-template-columns: 1fr; }
  .service-block-inner { grid-template-columns: 1fr; gap: 28px; }
  .service-block.is-reverse .service-block-inner { direction: ltr; }
  .service-block.is-reverse .service-photos { order: -1; }
  .process-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .header-inner { height: 64px; }
  .brand-name { font-size: 16px; }
  .hero { padding-top: 32px; }
  .hero-copy { padding-bottom: 36px; gap: 18px; }
  .hero-copy .btn-call { width: 100%; }
  .ba-grid, .detail-photos { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 1fr; }
  .other-grid { grid-template-columns: 1fr 1fr; }
  .carousel-card { flex-basis: 200px; }
  .carousel-arrow { width: 36px; height: 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .float-call { display: flex; }
  .mid-cta, .final-cta, .services, .process, .faq, .section-soft { padding: 56px 0; }
  .point-row { gap: 10px; }
}

@media (max-width: 400px) {
  .other-grid { grid-template-columns: 1fr; }
}
