/* 올배관 랜딩 — 공통 스타일시트 (홈파기 index / 누수 leak 공용)
   토큰만 고치면 두 페이지가 함께 바뀝니다. 하드코딩 색상 추가 금지. */


:root {
  /* 브랜드 레드 */
  --p900: #5a0d12;
  --p700: #a11419;
  --p600: #c81e1e;
  --p100: #fbe0e0;
  --p50:  #fdf3f3;
  /* 전환(폼) 네이비 */
  --cta:   #14315c;
  --cta-d: #0e2444;
  --navy:  #0d2039;
  /* 중립 */
  --g600: #46566b;
  --g300: #d8e2ea;
  --g50:  #f6f9fb;
  /* 형태 */
  --r-card: 14px;
  --r-block: 24px;
  --page: 560px;      /* 본문 최대 폭 */
  --pad: 16px;        /* 좌우 여백 */
  --font: "Pretendard Variable", Pretendard, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font-family: var(--font);
  font-weight: 500;
  padding-bottom: 92px;            /* 하단 플로팅 바 높이 */
  -webkit-text-size-adjust: 100%;
}

/* 한글 단어 잘림 방지 — 모든 텍스트 요소 */
p, li, h1, h2, h3, h4, span, strong, a, label, figcaption, button {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

img { max-width: 100%; }

a { color: var(--cta); text-decoration: none; }
a:hover { color: var(--cta-d); }

*:focus-visible { outline: 2px solid var(--p600); outline-offset: 2px; }

.wrap { max-width: var(--page); margin: 0 auto; background: #fff; }

/* ─── CTA 버튼 ──────────────────────────────────────────────
   [data-cta]           기본 네이비 (폼 전환)
   [data-cta="line"]    아웃라인
   [data-cta="light"]   짙은 배경 위 화이트
   [data-cta="tel"]     전화 — 브랜드 레드
   [data-cta="tel-sm"]  헤더용 소형 전화 버튼            */
[data-cta] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--cta-d), 0 10px 20px rgba(13, 32, 57, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
[data-cta]:hover {
  background: var(--cta-d); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--cta-d), 0 14px 26px rgba(13, 32, 57, 0.28);
}
[data-cta]:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cta-d); }
[data-cta] > * { position: relative; z-index: 1; }
[data-cta] svg { flex: none; }

[data-cta="sm"] { width: auto; min-height: 40px; padding: 0 14px; gap: 6px; font-size: 14px; box-shadow: 0 3px 0 var(--cta-d); }

[data-cta="line"] { background: #fff; color: var(--cta); border: 2px solid var(--cta); box-shadow: 0 4px 0 var(--g300); }
[data-cta="line"]:hover { background: var(--g50); color: var(--cta); }

[data-cta="light"] { background: #fff; color: var(--p700); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
[data-cta="light"]:hover { background: #fff; color: var(--p700); }

[data-cta="tel"] { background: var(--p600); box-shadow: 0 4px 0 var(--p900), 0 10px 20px rgba(161, 20, 25, 0.24); }
[data-cta="tel"]:hover { background: var(--p700); color: #fff; box-shadow: 0 6px 0 var(--p900), 0 14px 26px rgba(161, 20, 25, 0.3); }
[data-cta="tel"]:active { box-shadow: 0 1px 0 var(--p900); }

[data-cta="tel-sm"] { width: auto; min-height: 40px; padding: 0 14px; gap: 6px; font-size: 14px; background: var(--p600); box-shadow: 0 3px 0 var(--p900); }
[data-cta="tel-sm"]:hover { background: var(--p700); color: #fff; }
[data-cta="tel-sm"]:active { box-shadow: 0 1px 0 var(--p900); }

/* 광택 스윕 */
[data-cta]::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 45%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: cta-shine 2.8s cubic-bezier(0.35, 0, 0.2, 1) infinite;
}
[data-cta="line"]::after { background: linear-gradient(100deg, transparent, rgba(20, 49, 92, 0.16), transparent); }
[data-cta="light"]::after { background: linear-gradient(100deg, transparent, rgba(161, 20, 25, 0.18), transparent); }
[data-cta="sm"]::after, [data-cta="tel-sm"]::after { animation-duration: 3.4s; }
[data-cta]:hover::after { animation-duration: 1.1s; }
@keyframes cta-shine { 0% { left: -60%; } 55% { left: 130%; } 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
  [data-cta] { transition: none; }
  [data-cta]::after { animation: none; opacity: 0; }
}

/* ─── 헤더 / 페이지 전환 탭 (둘 다 sticky) ─── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--pad);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--g300);
}
.site-head img { display: block; height: 26px; width: auto; }

.tabs {
  position: sticky; top: 47px; z-index: 49;
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--g300);
}
.tabs > * {
  padding: 14px 8px; text-align: center;
  font-size: 14.5px; font-weight: 700; color: var(--g600);
  border-bottom: 3px solid transparent;
}
.tabs > [aria-current="page"] { font-weight: 800; color: var(--p700); border-bottom-color: var(--p600); }

/* ─── 섹션 공통 ─── */
.sec { padding: 26px var(--pad) 30px; scroll-margin-top: 92px; }
.sec--tight { padding-top: 18px; padding-bottom: 22px; }
.sec--top { padding-top: 6px; }
.sec--tinted { background: var(--p50); padding-top: 24px; padding-bottom: 28px; }

.kicker { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--p600); }
.kicker--light { color: var(--p100); }

h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.03em; }
.h1 { margin-top: 12px; font-size: clamp(27px, 7.4vw, 33px); line-height: 1.24; letter-spacing: -0.035em; }
.h2 { margin-top: 10px; font-size: 24px; line-height: 1.3; }
.h3 { font-size: 17px; letter-spacing: -0.025em; }
.lead { margin: 11px 0 0; font-size: 15.5px; line-height: 1.72; font-weight: 500; color: var(--g600); }
.body { margin: 10px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--g600); }
.note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--g600); }
.mark { font-weight: 800; color: var(--navy); box-shadow: inset 0 -0.45em 0 var(--p100); }

.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }

/* 배지 / 칩 */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px;
  border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--p700);
  border: 1.5px solid var(--p600);
}
.badge--fill { background: var(--p100); border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px;
  background: var(--g50); border: 1px solid var(--g300); border-radius: 999px;
  font-size: 13px; font-weight: 700;
}

/* 히어로 이미지 — 캡션은 이미지 위에 겹쳐 스크롤 절약 */
.hero-fig { margin: 16px 0 0; position: relative; border-radius: var(--r-card); overflow: hidden; }
.hero-fig img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-fig figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 11px;
  background: linear-gradient(to top, rgba(13, 32, 57, 0.82), transparent);
  color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.45;
}

/* 강점 3줄 */
.facts { list-style: none; margin: 14px 0 0; padding: 14px 16px; display: grid; gap: 10px; background: var(--g50); border-radius: var(--r-card); }
.facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.facts li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 2px; background: var(--p600); }

/* 자가진단 체크 카드 (홈파기) */
.checks { display: grid; gap: 8px; margin-top: 16px; }
.check {
  display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  padding: 15px 16px 17px; border-radius: var(--r-card);
  border: 1.5px solid var(--g300); background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.check[aria-pressed="true"] { border-color: var(--p600); background: var(--p50); }
.check-row { display: flex; gap: 11px; align-items: flex-start; }
.check-box {
  flex: none; width: 22px; height: 22px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--g300); border-radius: 7px; background: #fff;
}
.check[aria-pressed="true"] .check-box { border: 0; background: var(--p600); }
.check-box i { display: block; width: 9px; height: 9px; border-radius: 2px; background: #fff; opacity: 0; }
.check[aria-pressed="true"] .check-box i { opacity: 1; }
.check-t { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.4; letter-spacing: -0.02em; }
.check-b { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.6; font-weight: 500; color: var(--g600); }

.verdict { margin-top: 16px; padding: 18px 18px 20px; background: var(--navy); border-radius: var(--r-block); color: #fff; }
.verdict-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.verdict-label { font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--p100); }
.verdict-count { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; font-feature-settings: "tnum" 1; }
.verdict-count span { font-size: 16px; font-weight: 800; color: rgba(255, 255, 255, 0.6); }
.verdict p { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.8); }

/* 증상 사진 카드 (누수) */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr)); gap: 10px; margin-top: 18px; }
.pcard { border: 1px solid var(--g300); border-radius: var(--r-card); overflow: hidden; background: #fff; }
.pcard-media { position: relative; display: block; }
.pcard-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pcard-num {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px;
  background: var(--p600); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800;
}
.pcard-body { padding: 12px 12px 14px; }
.pcard-body h3 { font-size: 14.5px; font-weight: 800; line-height: 1.4; letter-spacing: -0.02em; }
.pcard-body p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--g600); }
/* 아직 사진이 없는 자리 — 실사진 확보 후 <img>로 교체 */
.photo-todo {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  padding: 12px; text-align: center;
  background: repeating-linear-gradient(45deg, var(--g50), var(--g50) 10px, #fff 10px, #fff 20px);
  border-bottom: 1px solid var(--g300);
  font-size: 12px; font-weight: 700; color: var(--g600);
}

/* 짙은 레드 설득 블록 (탭 + 범위 바) */
.block-dark { margin: 0 var(--pad); padding: 26px 20px 28px; background: var(--p900); border-radius: var(--r-block); color: #fff; scroll-margin-top: 92px; }
.block-dark .h2 { color: #fff; }
.block-dark .body { color: rgba(255, 255, 255, 0.78); }
.block-dark .note { color: rgba(255, 255, 255, 0.6); }
.block-dark .h3 { margin-top: 16px; font-size: 18px; color: #fff; }
.block-fig { margin: 18px 0 0; }
.block-fig img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-card); }

.seg { display: grid; gap: 6px; margin-top: 20px; padding: 5px; background: rgba(255, 255, 255, 0.1); border-radius: 999px; }
.seg--2 { grid-template-columns: 1fr 1fr; }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg button {
  font: inherit; font-size: 13.5px; font-weight: 800; letter-spacing: -0.02em;
  min-height: 38px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, 0.72);
  transition: background 0.15s ease, color 0.15s ease;
}
.seg button[aria-pressed="true"] { background: #fff; color: var(--p900); }

.bars { margin-top: 18px; display: grid; gap: 14px; }
.bar-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bar-name { font-size: 13.5px; font-weight: 700; color: rgba(255, 255, 255, 0.86); }
.bar-level { font-size: 13.5px; font-weight: 800; color: #fff; }
.bar-track { margin-top: 8px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--p600), #f2705f); width: 0; transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }

.points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.86); }
.points li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 2px; background: var(--p600); }

/* 단계 리스트 (프로세스 / 인테리어 흐름) */
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; padding: 16px 0; border-top: 1px solid var(--g300); }
.steps b { font-size: 15px; font-weight: 900; color: var(--p600); font-feature-settings: "tnum" 1; }
.steps h3 { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.steps p { margin: 7px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--g600); }

/* 시공 사례 (가로형) */
.works-row { display: grid; gap: 14px; margin-top: 18px; }
.work-row { margin: 0; display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 14px; align-items: center; }
.work-row img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); }
.work-row h3 { font-size: 15.5px; font-weight: 800; letter-spacing: -0.02em; }
.work-row p { margin: 7px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--g600); }

/* 갤러리 (홈파기 — 클릭 확대) */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr)); gap: 10px; margin-top: 18px; }
.gallery button {
  display: block; width: 100%; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
  border: 1px solid var(--g300); border-radius: var(--r-card); overflow: hidden; background: #fff;
}
.gallery-cap { display: block; padding: 11px 12px 13px; font-size: 14px; font-weight: 800; line-height: 1.45; letter-spacing: -0.02em; }

.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(13, 32, 57, 0.92); cursor: zoom-out;
}
.lightbox[data-open="true"] { display: flex; animation: rise 0.2s ease both; }
.lightbox figure { margin: 0; max-width: var(--page); width: 100%; }
.lightbox img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: var(--r-card); }
.lightbox figcaption { margin-top: 14px; display: flex; align-items: baseline; gap: 10px; color: #fff; font-size: 14.5px; font-weight: 700; }
.lightbox figcaption b { font-size: 12px; font-weight: 800; color: var(--p100); font-feature-settings: "tnum" 1; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 강점 카드 */
.grid-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; margin-top: 16px; }
.reason { padding: 16px 14px 18px; background: #fff; border: 1px solid var(--p100); border-radius: var(--r-card); }
.reason i { display: block; width: 22px; height: 4px; border-radius: 999px; background: var(--p600); }
.reason h3 { margin-top: 12px; font-size: 15.5px; font-weight: 800; letter-spacing: -0.02em; }
.reason p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--g600); }

/* 서비스 카드 */
.services { display: grid; gap: 10px; margin-top: 16px; }
.service { padding: 16px 16px 18px; border: 1px solid var(--g300); border-radius: var(--r-card); }
.service--lead { border: 1.5px solid var(--p600); }
.service--lead h3 { color: var(--p700); }
.service p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--g600); }
.sub-label { margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: var(--g600); }

/* 교차 안내 블록 */
.cross { margin: 0 var(--pad) 26px; padding: 20px; background: var(--g50); border-radius: var(--r-block); }
.cross p { margin: 9px 0 14px; font-size: 14px; line-height: 1.65; color: var(--g600); }

/* 폼 */
.form-sec { padding: 26px var(--pad) 32px; background: var(--navy); scroll-margin-top: 92px; }
.form-sec .h2 { color: #fff; }
.form-sec .body { color: rgba(255, 255, 255, 0.75); margin-bottom: 18px; }
form.consult { padding: 18px 16px 20px; background: #fff; border-radius: var(--r-block); display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; font-weight: 800; }
.field .opt { font-weight: 600; color: var(--g600); }
.req { color: var(--p600); }
.input {
  width: 100%; min-height: 50px; padding: 0 14px;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--navy);
  background: #fff; border: 1.5px solid var(--g300); border-radius: 12px;
}
.input:focus { border-color: var(--cta); }
.err { display: none; font-size: 12.5px; line-height: 1.4; font-weight: 700; color: var(--p700); }
form.consult.is-touched :invalid ~ .err, .err[data-show="true"] { display: block; }
.picks { display: grid; gap: 8px; }
.pick {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 14px;
  font: inherit; font-size: 15px; font-weight: 700; text-align: left; color: var(--navy);
  background: #fff; border: 1.5px solid var(--g300); border-radius: 12px; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pick i { flex: none; width: 18px; height: 18px; border-radius: 999px; border: 2px solid var(--g300); }
.pick[aria-pressed="true"] { border-color: var(--cta); background: #eef3fa; }
.pick[aria-pressed="true"] i { border: 5px solid var(--cta); }
.agree { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--cta); }
.agree span { font-size: 13px; line-height: 1.6; color: var(--g600); }
.done { padding: 22px 18px 24px; background: #fff; border-radius: var(--r-block); animation: rise 0.3s ease both; }
.done i { display: block; width: 26px; height: 5px; border-radius: 999px; background: var(--p600); }
.done h3 { margin-top: 14px; font-size: 19px; font-weight: 900; letter-spacing: -0.025em; }
.done p { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: var(--g600); }
[hidden] { display: none !important; }

/* 푸터 */
.site-foot { padding: 24px var(--pad) 30px; background: var(--g50); }
.foot-card { padding: 18px 16px 20px; background: #fff; border: 1px solid var(--g300); border-radius: var(--r-block); }
.foot-card img { display: block; height: 24px; width: auto; }
.foot-card .role { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--navy); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 700; }
.foot-links a { color: var(--g600); }
.foot-links a[aria-current="page"] { color: var(--p700); }
.foot-links span { color: var(--g300); }
.legal { margin: 14px 0 0; font-size: 12px; line-height: 1.8; color: var(--g600); }

/* 하단 플로팅 바 — 좌: 폼 / 우: 전화 */
.floating {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px var(--pad) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--g300);
}
.floating > div { max-width: var(--page); margin: 0 auto; display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; }

/* 태블릿 이상 — 가로 폭이 남을 때만 다열로 */
@media (min-width: 640px) {
  :root { --pad: 20px; }
  .work-row { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); }
}

/* 구·시도 허브의 하위 지역 링크. 동 페이지에는 나오지 않는다(이탈 링크 금지).
   크롤러가 하위 페이지로 들어가는 통로이자, 방문자가 자기 동네를 고르는 자리다. */
.area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.area-links a {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--g300);
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.area-links a:hover {
  border-color: var(--p600);
  color: var(--p700);
}
