/* sink-replacement-price.css — 서비스상세 #1. hue=8, HEADER:H1 / HERO:E3 / CTA:C5 / FOOTER:F7 */

@font-face{
  font-family: "Black Han Sans Sink";
  src: url("/assets/fonts/black-han-sans-sink-price.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root{
  --h: 8;
  --brand:      hsl(var(--h) 62% 42%);
  --brand-deep: hsl(var(--h) 66% 28%);
  --brand-soft: hsl(var(--h) 70% 95%);
  --ink:        hsl(var(--h) 18% 14%);
  --ink-soft:   hsl(var(--h) 10% 38%);
  --line:       hsl(var(--h) 20% 88%);
  --bg:         hsl(var(--h) 30% 98.5%);
  --surface:    #ffffff;
  --r: 6px;
}

*, *::before, *::after{ box-sizing: border-box; }
*{ min-width: 0; }
html, body{ max-width: 100%; overflow-x: hidden; }
img, video, svg, table, pre{ max-width: 100%; }
img{ height: auto; display: block; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Pretendard Variable", Pretendard, sans-serif;
  -webkit-text-size-adjust: 100%;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.78;
}
a{ color: inherit; }
:focus-visible{ outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce){ *{ animation: none !important; transition: none !important; } }

.wrap{
  width: 100%;
  max-width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: clamp(14px, 4.2vw, 28px);
}

h1{ font-family: "Black Han Sans Sink", -apple-system, "Apple SD Gothic Neo", sans-serif; font-weight: 400; font-size: clamp(26px, 6.8vw, 46px); line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
h2{ font-family: "Black Han Sans Sink", -apple-system, "Apple SD Gothic Neo", sans-serif; font-weight: 400; font-size: clamp(19px, 4.6vw, 30px); line-height: 1.4; margin: 0 0 10px; }
h3{ font-family: inherit; font-weight: 700; font-size: clamp(16px, 3.9vw, 21px); margin: 0 0 6px; }
p, li{ font-size: clamp(15px, 3.9vw, 17px); line-height: 1.78; }
.small{ font-size: clamp(12px, 3.2vw, 13.5px); }
p{ margin: 0 0 14px; max-width: 68ch; }
.answer{ font-weight: 600; color: var(--ink); }

/* ===== HEADER (H1: 좌측 워드마크 + 우측 인라인 텍스트 내비, 1행, 하단 1px 라인) ===== */
.site-head{
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-head .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(56px, 8vw, 64px);
  gap: 14px;
}
.site-head__mark{ font-weight: 800; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); flex: none; }
.site-head__nav{ display: flex; gap: 4px; overflow-x: auto; }
.site-head__nav a{
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 10px;
  font-size: clamp(13px, 3.4vw, 15px); font-weight: 600;
  color: var(--ink-soft); text-decoration: none; white-space: nowrap;
  border-radius: var(--r);
}
.site-head__nav a:hover, .site-head__nav a:active{ color: var(--brand); background: var(--brand-soft); }

/* ===== HERO (E3: 텍스트 온리 + 초대형 타이포) ===== */
.hero{
  padding-block: clamp(40px, 9dvh, 88px) clamp(28px, 6dvh, 56px);
  text-align: center;
}
.hero .eyebrow{
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--brand);
}
.hero p.lead{
  margin: 18px auto 0; max-width: 56ch;
  color: var(--ink-soft); font-size: clamp(15px, 4vw, 18px);
}

/* ===== 전/후 사진 밴드: 4세트, 2줄, 세트 내부 전/후 좌우 ===== */
.ba-band{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 2.4vw, 20px);
  margin-block: clamp(24px, 5vw, 40px);
}
.ba-set{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.ba-set figure{ position: relative; margin: 0; border-radius: var(--r); overflow: hidden; }
.ba-set img{ width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba-set figcaption{
  position: absolute; left: 8px; bottom: 8px;
  padding: 3px 9px; border-radius: 999px;
  background: hsl(var(--h) 40% 10% / .62); color: #fff;
  font-size: 12px; font-weight: 600;
}

/* ===== 본문 단락: 이미지 먼저, 글 나중 ===== */
.para{ display: flex; flex-direction: column; gap: 16px; padding-block: clamp(20px, 4vw, 32px); border-top: 1px solid var(--line); }
.para-visual{ margin: 0; border-radius: var(--r); overflow: hidden; }
.para-visual img{ width: 100%; aspect-ratio: 16/10; object-fit: cover; }
@media (min-width: 768px){
  .para{ flex-direction: row; align-items: center; gap: 32px; }
  .para-visual{ flex: 0 0 42%; }
  .para-body{ flex: 1 1 auto; min-width: 0; }
}

/* ===== 텍스트 심화: 표 + 체크리스트 ===== */
.deep{ padding-block: clamp(24px, 5vw, 40px); border-top: 1px solid var(--line); }
.table-wrap{ overflow-x: auto; margin-block: 16px; }
table{ width: 100%; border-collapse: collapse; min-width: 480px; }
th, td{ text-align: left; padding: 12px 10px; border-top: 1px solid var(--line); font-size: 15px; }
thead th{ border-top: none; font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; }
.checklist{ list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li{ display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.checklist li svg{ flex: none; margin-top: 3px; color: var(--brand); }
.note{ font-size: 13.5px; color: var(--ink-soft); margin-top: 16px; }

/* ===== CTA (C5: 아웃라인 버튼 2개, 배경 없음) ===== */
.cta{ padding-block: clamp(32px, 6vw, 56px); text-align: center; }
.cta h2{ margin-bottom: 8px; }
.cta p{ margin: 0 auto 22px; color: var(--ink-soft); }
.btn-row{ display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0 22px;
  border: 1.5px solid var(--brand); border-radius: var(--r);
  color: var(--brand); font-weight: 700; font-size: 15px;
  text-decoration: none; background: transparent;
}
.btn:hover, .btn:active{ background: var(--brand-soft); }
.btn--solid{ background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--solid:hover, .btn--solid:active{ background: var(--brand-deep); border-color: var(--brand-deep); }

/* ===== FAQ ===== */
.faq{ padding-block: clamp(24px, 5vw, 40px); border-top: 1px solid var(--line); }
.faq-item{ border-bottom: 1px solid var(--line); padding-block: 14px; }
.faq-item summary{ cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; }
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: "+"; flex: none; font-weight: 400; color: var(--brand); }
.faq-item[open] summary::after{ content: "−"; }
.faq-item p{ margin: 8px 0 0; color: var(--ink-soft); }

/* ===== 캐러셀 링크 카드 ===== */
.rel{ padding-block: clamp(24px, 5vw, 40px); border-top: 1px solid var(--line); }
.rel-track{
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  max-width: 100%; min-width: 0;
  padding-bottom: 6px;
}
.rel-card{
  flex: 0 0 clamp(220px, 72vw, 300px);
  scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; text-decoration: none; color: var(--ink);
  min-height: 44px;
}
.rel-card h3{ font-size: 16px; margin-bottom: 6px; color: var(--brand-deep); }
.rel-card p{ font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.rel-nav{ display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.rel-nav button{
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font-size: 16px;
}

/* ===== FOOTER (F7: 상하 이중 라인 + 자간 넓은 소형 텍스트) ===== */
.site-foot{ border-top: 1px double var(--line); border-bottom: 1px double var(--line); background: var(--surface); }
.biz{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 4px 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  font-size: clamp(11px, 3vw, 12.5px);
  line-height: 1.45; letter-spacing: .02em; word-break: keep-all;
}
.biz span{ white-space: nowrap; }
.biz .sep{ opacity: .45; }
.biz .addr{ white-space: normal; }
