/* 에이치배관 — 하수구막힘 전문
   색: 깊은 물색, 배관 파랑, 신호 노랑, 배관 회색 */
:root {
  --deep: #0A3D62;
  --pipe: #1479B8;
  --signal: #FFC21A;
  --signal-dark: #E0A500;
  --pvc: #E6ECEF;
  --paper: #FBFCFC;
  --ink: #14212B;
  --soft: #4A5B68;
  --line: #CBD6DC;
  --warn: #B3261E;
  --wrap: 72rem;
  --gap: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding-bottom: 4.75rem;      /* 아래 전화 띠에 글이 가리지 않게 */
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--pipe); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--pipe); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip { position: absolute; left: -999px; top: 0; background: var(--deep); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; top: .5rem; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }

/* ---------- 머리 ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; padding-block: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 900; font-size: 1.3rem; letter-spacing: -0.03em;
  color: var(--deep); text-decoration: none; }
.brand svg { width: 2rem; height: 2rem; }
.menu { margin-left: auto; }
.menu ul { display: flex; gap: .25rem; }
.menu a { display: block; padding: .5rem .8rem; border-radius: .5rem; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--pvc); color: var(--deep); }

.call { display: inline-flex; align-items: center; gap: .6rem; background: var(--signal); color: var(--ink); font-weight: 800;
  text-decoration: none; border-radius: .75rem; padding: .6rem 1.1rem; border: 2px solid var(--ink); line-height: 1.3; }
.call:hover { background: var(--signal-dark); color: var(--ink); }
.call svg { width: 1.2em; height: 1.2em; flex: none; }
.call small { display: block; font-size: .8em; font-weight: 600; }
.call--big { font-size: 1.3rem; padding: .9rem 1.5rem; border-radius: 1rem; box-shadow: 0 4px 0 var(--ink); }
.call--big:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.call--talk { background: #fff; }

/* ---------- 현재 위치 ---------- */
.crumbs { padding-block: 1rem .25rem; font-size: .9rem; color: var(--soft); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .1rem .4rem; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--line); }
.crumbs a { color: var(--soft); }

/* ---------- 첫 화면 ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--gap); align-items: center; padding-block: 1.5rem 2rem; }
.hero h1 { font-size: clamp(2.4rem, 7.2vw, 4.4rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.045em; color: var(--deep); }
.hero h1 .where { display: block; font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-weight: 700; letter-spacing: -0.01em; color: var(--soft);
  margin-bottom: .5rem; }
.lead { margin-top: 1.25rem; font-size: 1.15rem; max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero figure img { border-radius: 1.25rem; border: 2px solid var(--deep); background: var(--pvc); width: 100%; }
figcaption { margin-top: .6rem; font-size: .9rem; color: var(--soft); }

/* 배관 띠: 페이지가 열릴 때 물이 한 번 지나간다 (막힌 관이 뚫리는 모습) */
.pipeline { position: relative; height: 1.5rem; border-radius: .75rem; background: linear-gradient(#F6F9FA, #D5DEE3 60%, #B9C6CE);
  border: 1px solid #AEBBC3; overflow: hidden; }
.pipeline::before { content: ""; position: absolute; inset: .28rem; border-radius: .5rem; background: #EDF2F4; }
.pipeline::after { content: ""; position: absolute; inset: .28rem; border-radius: .5rem;
  background: linear-gradient(90deg, var(--deep), var(--pipe) 60%, #6DB9E6); transform-origin: left center;
  animation: flow 1.8s .25s cubic-bezier(.2, .7, .2, 1) both; }
.pipeline i { position: absolute; top: -1px; bottom: -1px; width: .9rem; background: linear-gradient(#FFFFFF, #C5D0D7 55%, #9FAEB8);
  border-inline: 1px solid #94A3AD; z-index: 1; }
.pipeline i:nth-child(1) { left: 22%; }
.pipeline i:nth-child(2) { left: 71%; }
@keyframes flow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .pipeline::after { animation: none; } html { scroll-behavior: auto; } }

/* ---------- 본문 묶음: 왼쪽에 제목, 오른쪽에 내용 ---------- */
.block { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1rem var(--gap); padding-block: clamp(2rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--line); }
.block > h2 { font-size: 1.65rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.03em; color: var(--deep); align-self: start;
  position: sticky; top: 5.5rem; }
.block > div { max-width: 40em; }
.block p + p, .block p + ul, .block p + ol, .block ul + p, .block p + .rows { margin-top: 1rem; }
.more { margin-top: 1.25rem; font-weight: 600; }

.rows > div { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.rows > div:last-child { padding-bottom: 0; }
.rows h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.4; margin-bottom: .3rem; }
.rows--q h3::before { content: "Q. "; color: var(--pipe); font-weight: 800; }

.checks li, .donts li { position: relative; padding: .55rem 0 .55rem 2.1rem; border-top: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: .1rem; top: .95rem; width: 1.05rem; height: 1.05rem; border: 2px solid var(--deep);
  border-radius: .25rem; background: #fff; }
.donts li::before { content: "✕"; position: absolute; left: .15rem; top: .5rem; font-weight: 900; color: var(--warn); }

.steps { counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: .7rem 0 .7rem 3rem; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .75rem; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--deep); color: #fff; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.steps b { display: block; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin-top: 1.25rem; padding: 1rem 1.25rem;
  background: #fff; border: 1px solid var(--line); border-radius: .75rem; font-size: .98rem; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; font-weight: 600; }

.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .1rem 1rem; margin-top: .75rem; }
.links a { display: block; padding: .35rem 0; }
.links--big { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .75rem; }
.links--big a { padding: .9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: .75rem; font-weight: 700; text-decoration: none; }
.links--big a:hover { border-color: var(--deep); }
.links--big small { display: block; font-weight: 500; color: var(--soft); }
.block h3.sub { font-size: 1.05rem; font-weight: 700; margin-top: 1.5rem; }
.block figure { margin-block: 1.25rem; }
.block figure img { border: 1px solid var(--line); border-radius: .75rem; background: #fff; }

/* ---------- 마무리 전화 안내 ---------- */
.cta { margin-block: clamp(2rem, 5vw, 3.5rem); padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--deep); color: #fff; border-radius: 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.cta p { font-size: 1.35rem; font-weight: 800; line-height: 1.4; letter-spacing: -0.02em; max-width: 22em; }
.cta .call { border-color: #fff; box-shadow: none; }

/* ---------- 발 ---------- */
.site-footer { background: var(--pvc); padding-block: 2.5rem; font-size: .92rem; color: var(--soft); }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem var(--gap); }
.site-footer strong { color: var(--ink); font-size: 1.05rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .1rem 1rem; margin-top: .4rem; }
.site-footer .note { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; font-size: .85rem; }

/* 휴대폰에서 늘 보이는 전화 띠 */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .6rem var(--gap) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); display: flex; gap: .6rem; }
.callbar .call { flex: 1; justify-content: center; font-size: 1.1rem; padding-block: .8rem; }

@media (min-width: 60rem) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
}
@media (max-width: 59.99rem) {
  .site-header .call { display: none; }
  .menu { margin-left: 0; width: 100%; order: 3; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gap) * -1); padding-inline: var(--gap); width: calc(100% + var(--gap) * 2); }
  .menu::-webkit-scrollbar { display: none; }
  .site-header .wrap { padding-bottom: .3rem; }
  .hero { grid-template-columns: 1fr; padding-top: .75rem; }
  .block { grid-template-columns: 1fr; }
  .block > h2 { position: static; font-size: 1.5rem; }
  .cta p { font-size: 1.2rem; }
}
@media print { .site-header, .callbar, .cta { display: none; } body { padding: 0; } }

/* 관리자 화면에서 켜는 공지 띠 */
.notice-bar { background: var(--signal); color: var(--ink); font-weight: 700; }
.notice-bar p { padding-block: .7rem; }
.site-footer .biz p { margin: 0; }
