/* 욕조구멍 보수 · 범브로빌드 - minimal theme / 차콜 palette */
:root {
  --bg: #F5F6FA;
  --sub: #ECEDF2;
  --text: #1E2329;
  --muted: #718093;
  --primary: #2F3640;
  --accent: #E84118;
  --accent-dark: #C23616;
  --accent-soft: #FBE4DE;
  --border: #DADFE6;
  --radius: 0px;
  --sp-sm: 12px;
  --sp-md: 24px;
  --sp-lg: 48px;
  --sp-xl: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.68;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 720px; }
.prose p a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--sp-md); font-size: 15px; }
.prose table th, .prose table td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose table th { background: var(--sub); font-weight: 700; }
.prose table ul { margin: 0; padding-left: 18px; }
.prose ul { margin: 0 0 var(--sp-sm); padding-left: 20px; color: var(--text); }
.prose ul li { margin-bottom: 4px; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin: 0 0 var(--sp-sm); }
h1 { font-size: clamp(28px, 4.4vw, 42px); }
h2 { font-size: clamp(25px, 3.6vw, 36px); }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 var(--sp-sm); color: var(--text); }
.section-lead { color: var(--muted); font-size: 16px; max-width: 620px; margin-bottom: var(--sp-md); }

.kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-sm);
  font-weight: 600;
}

.service-en-tag {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: -4px 0 6px;
}

section { padding: var(--sp-xl) 0; }
.section-flush { padding-top: var(--sp-lg); padding-bottom: var(--sp-lg); }
.section-tight { padding: var(--sp-lg) 0; }
.bg-sub { background: var(--sub); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1.2; }
.logo-brand-name { font-weight: 700; font-size: 16px; color: var(--primary); }
.logo-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; background: none; border: 1px solid var(--border); width: 40px; height: 40px; font-size: 20px; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; border-bottom: 1px solid var(--border); background: var(--bg); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 24px; border-top: 1px solid var(--border); font-size: 15px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: opacity .15s ease;
}
.btn:hover { opacity: .82; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); opacity: 1; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.header-cta { padding: 10px 20px; font-size: 14px; }

/* hero (슬라이더) */
.hero-slider { position: relative; height: 78vh; min-height: 480px; max-height: 760px; overflow: hidden; }
.hero-slider__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
}
.hero-slider__slide.is-active { opacity: 1; }
.hero-slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider__shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background: linear-gradient(to top, rgba(10,11,13,.58), rgba(10,11,13,0));
  pointer-events: none;
}
.hero-slider__content {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-lg) 0 var(--sp-xl);
  color: #fff; text-align: left; z-index: 2;
}
.hero-slider__content .kicker { color: #D8D9DC; }
.hero-slider__title {
  font-size: clamp(32px, 5.6vw, 54px); font-weight: 800; margin: 0 0 14px;
  text-shadow: 0 2px 10px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.5);
}
.hero-slider__lead { color: #EDEDEF; max-width: 560px; font-size: 16px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero-slider__cta { margin-top: var(--sp-md); }
.hero-slider__dots { position: absolute; right: 24px; bottom: 24px; z-index: 3; display: flex; gap: 8px; }
.hero-slider__dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0; }
.hero-slider__dot.is-active { background: #fff; }

.hero-sub { padding: var(--sp-lg) 0 var(--sp-md); }
.badge {
  display: inline-block; font-size: 12px; letter-spacing: .06em; color: var(--accent-dark);
  border: 1px solid var(--accent); background: var(--accent-soft); padding: 4px 10px; margin-bottom: var(--sp-sm);
}

/* grids: PC 3열 / 모바일 2열 고정 (auto-fit 금지) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-1col-m { }

.card {
  display: block; border: 1px solid var(--border); overflow: hidden;
  background: var(--bg); transition: border-color .15s ease;
}
a.card:hover { border-color: var(--accent); }
.card img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.card-body { padding: 18px; }
.card-body h3 { margin-bottom: 6px; font-size: 17px; }
.card-body p { color: var(--muted); font-size: 14px; margin: 0; }

/* SERVICE 섹션: 가로형 리스트 카드 */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service-grid .card { display: flex; align-items: center; }
.service-grid .card img { width: 200px; height: 200px; flex: 0 0 200px; aspect-ratio: 1/1; }
.service-grid .card-body { padding: 14px 16px; }
.service-grid .card-body h3 { font-size: 16px; }
.service-grid .card-body p { font-size: 13px; }

/* 갤러리(단일사진, 사진 전용 카드) */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery-item { position: relative; overflow: hidden; cursor: zoom-in; border: 1px solid var(--border); }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  background: linear-gradient(to top, rgba(10,11,13,.78), rgba(10,11,13,.15) 80%, transparent);
  color: #fff; font-size: 13px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 전후사진(Before/After) */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border: 1px solid var(--border); overflow: hidden; }
.ba-item { position: relative; cursor: zoom-in; }
.ba-item img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; display: block; transition: transform .3s ease; }
.ba-item:hover img { transform: scale(1.04); }
.ba-tag {
  position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 999px; color: #fff;
}
.ba-tag--before { background: rgba(20,25,35,.72); }
.ba-tag--after { background: var(--accent); }

.lightbox {
  position: fixed; inset: 0; background: rgba(10,11,13,.92); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; }

/* 진행 과정 (step list) */
.step-list { display: flex; flex-direction: column; gap: 0; margin-top: var(--sp-md); }
.step-row { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border); }
.step-row:first-child { border-top: none; }
.step-row__num { font-size: 14px; color: var(--muted); font-weight: 700; min-width: 28px; }
.step-row__title { margin-bottom: 4px; }
.step-row__desc { color: var(--muted); font-size: 15px; margin: 0; }

/* faq */
.faq-list { margin-top: var(--sp-md); }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; padding: 18px 4px; font-size: 16px; font-weight: 600;
  text-align: left; cursor: pointer; color: var(--text); font-family: inherit;
}
.faq-q .mark { color: var(--muted); font-weight: 400; font-size: 20px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .2s ease; }
.faq-a p { padding: 0 4px 18px; color: var(--muted); }
.faq-item.open .faq-a { max-height: 240px; }
.faq-item.open .mark { transform: rotate(45deg); }

/* cta section */
.cta-section { background: var(--primary); color: #fff; text-align: center; }
.cta-section h2 { color: #fff; }
.cta-section p { color: #C7C8CB; margin-bottom: var(--sp-md); }
.cta-section .btn-row { justify-content: center; }

/* footer */
.site-footer { background: var(--sub); border-top: 1px solid var(--border); padding: var(--sp-lg) 0 var(--sp-md); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }
.footer-grid h4 { font-size: 13px; color: var(--muted); letter-spacing: .05em; margin-bottom: 12px; }
.footer-grid a { display: block; padding: 4px 0; font-size: 14px; }
.footer-brand { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.meta-note { color: var(--muted); font-size: 13px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: var(--sp-lg); padding-top: var(--sp-md); }
.footer-bottom p { color: var(--muted); font-size: 12px; margin: 0; }

/* floating */
.floating { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab {
  border-radius: 999px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; box-shadow: 0 6px 20px rgba(20,20,22,.22); border: none; cursor: pointer;
}
.fab-top { background: #fff; color: var(--text); border: 1px solid var(--border); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.fab-top.show { opacity: 1; pointer-events: auto; }

/* 2단 core 섹션 */
.core-2col { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-xl); align-items: center; }
.core-2col__media { position: relative; }
.core-2col__img { overflow: hidden; border: 1px solid var(--border); }
.core-2col__img img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.core-2col__badge { position: absolute; left: -18px; bottom: -18px; background: var(--primary); color: #fff; padding: 16px 20px; }
.core-2col__badge-en { font-size: 14px; font-weight: 700; margin: 0; }
.core-2col__badge-sub { font-size: 12px; color: #C7C8CB; margin: 2px 0 0; }

/* utility */
.consult-phone-label { color: var(--muted); font-size: 13px; margin-top: var(--sp-md); }
.consult-phone { font-size: 26px; font-weight: 700; color: var(--primary); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-md); }
  .core-2col { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .core-2col__badge { left: 0; bottom: -14px; }
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .header-cta { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-1col-m.grid-3 { grid-template-columns: 1fr; }
  section { padding: var(--sp-lg) 0; }
  .hero-slider { height: 60vh; min-height: 380px; }
  .hero-slider__content { padding: var(--sp-md) 0 var(--sp-lg); }
  .gallery-caption { font-size: 11.5px; padding: 8px 10px; }
  .ba-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid .card img { width: 130px; height: 130px; flex: 0 0 130px; }
  .prose table { font-size: 13px; }
  .prose table th, .prose table td { padding: 7px 8px; }
}
