/*
  tokens.css — 업소용싱크대제작 (sinkmake.korhomecrafty.com) 디자인 토큰
  웜그레이 + 차콜 + 스테인리스 실버 톤에 에메랄드그린 포인트(단일 컬러 체계). 전 페이지가 이 파일을 참조한다.
  색상·폰트·간격은 페이지에서 재정의하지 않는다(페이지 전용 CSS는 새 클래스만 추가).
*/

@font-face{
  font-family: "Pretendard Variable";
  src: url("/assets/fonts/PretendardVariable.woff2") format("woff2-variations"),
       url("/assets/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root{
  /* 면 — 웜그레이 계열 */
  --paper: #FFFFFF;
  --card: #FFFFFF;
  --mist: #FAFAF9;        /* Warm Gray 50 — 카드/테이블 배경용 중립톤 */
  --tint: #ECFDF5;        /* 라이트 민트 틴트 — 섹션 배경 구분(색감 강화용) */
  --line: #E7E5E4;
  --line-2: #D6D3D1;

  /* 글자 */
  --ink: #292524;         /* Warm Charcoal — 본문/제목 */
  --ink-2: #57534E;
  --ink-3: #78716C;
  --white: #FFFFFF;

  /* 주색 — Charcoal(딥) */
  --navy: #1C1917;
  --navy-soft: #292524;

  /* 강조 — Emerald Green (차콜 + 에메랄드그린 2톤 체계) */
  --accent: #059669;
  --accent-deep: #047857;
  --accent-soft: #D1FAE5;
  /* 과거 앰버 포인트 명칭 — 하위 호환을 위해 동일 에메랄드 값으로 매핑(단일 포인트 컬러 체계) */
  --amber: var(--accent);
  --amber-deep: var(--accent-deep);
  --amber-soft: var(--accent-soft);

  --sh-1: 0 1px 2px rgba(28,25,23,.05);
  --sh-2: 0 4px 6px -1px rgba(28,25,23,.06);
  --sh-3: 0 10px 30px -12px rgba(28,25,23,.2);

  --r: 10px;
  --r-lg: 14px;
  --r-chip: 999px;

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
}
@media (min-width: 1024px){ body{ font-size: 17px; } }

h1, h2, h3, h4{
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}
h1{ font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; font-size: clamp(28px, 6vw, 44px); }
h2{ font-size: clamp(22px, 4.4vw, 32px); }
h3{ font-size: clamp(18px, 2.6vw, 22px); }
h4{ font-size: 17px; }

p{ margin: 0 0 16px; }
p:last-child{ margin-bottom: 0; }
@media (min-width: 1024px){ p{ margin-bottom: 18px; } }

.lead{ font-size: clamp(16px, 2.2vw, 19px); line-height: 1.7; color: var(--ink-2); }
.caption{ font-size: 14px; color: var(--ink-3); }

.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .08em;
}
.eyebrow::before{ content:""; width: 20px; height: 2px; background: var(--amber); flex: none; }

strong{ font-weight: 700; }
a{ color: var(--accent); }

table{ border-collapse: collapse; width: 100%; }

/* ===== 레이아웃 ===== */
.container{ max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px){ .container{ padding-inline: 32px; } }

.section{ padding-block: 56px; border-top: 1px solid var(--line); }
@media (min-width: 768px){ .section{ padding-block: 88px; } }
.section--mist{ background: var(--tint); }
.section--navy{ background: var(--navy); color: var(--white); border-top-color: transparent; }
.section--navy h2, .section--navy h3{ color: var(--white); }

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--sh-1);
}
@media (min-width: 768px){ .card{ padding: 28px; } }

.grid{ display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px){ .grid--2{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){
  .grid--3{ grid-template-columns: repeat(3, 1fr); }
  .grid--4{ grid-template-columns: repeat(4, 1fr); }
}

/* ===== 버튼 ===== */
a, button{ font-family: inherit; }
.btn-primary{
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: var(--r);
  background: var(--accent); color: var(--white); font-weight: 700; font-size: 16px;
  border: 1px solid var(--accent); box-shadow: var(--sh-1); text-decoration: none; cursor: pointer;
}
.btn-primary:hover{ background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost{
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: var(--r);
  background: var(--white); color: var(--navy); font-weight: 700; font-size: 16px;
  border: 1.5px solid var(--line-2); text-decoration: none; cursor: pointer;
}
.btn-ghost:hover{ border-color: var(--amber); color: var(--amber-deep); }
.btn-secondary{
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: var(--r);
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--white); border: none; box-shadow: var(--sh-1);
}
.btn-secondary:hover{ background: var(--accent-deep); }

:where(a, button, summary):focus-visible{ outline: 3px solid var(--amber); outline-offset: 2px; border-radius: var(--r); }

/* ===== 이미지 카드(1:1) ===== */
.thumb{ position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 1/1; background: var(--mist); }
.thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== 전후사진 (드래그 비교 슬라이더) ===== */
.ba-slider{
  position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 1/1;
  background: var(--mist); touch-action: pan-y; user-select: none; --pos: 50%;
}
.ba-slider__img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-slider__before-wrap{
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-slider__divider{
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: var(--white); box-shadow: 0 0 0 1px rgba(28,25,23,.15); pointer-events: none; z-index: 2;
}
.ba-slider__divider::after{
  content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: var(--white); box-shadow: var(--sh-3);
  display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--ink); font-weight: 700;
}
.ba-slider__tag{
  position: absolute; top: 10px; z-index: 3;
  padding: 4px 12px; border-radius: var(--r-chip); font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: var(--white); background: rgba(28,25,23,.72); backdrop-filter: blur(2px); pointer-events: none;
}
.ba-slider__tag--before{ left: 10px; }
.ba-slider__tag--after{ right: 10px; background: var(--accent); }
.ba-slider__range{
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 4;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
}
.ba-slider__range::-webkit-slider-thumb{ -webkit-appearance: none; width: 100%; height: 100%; }
.ba-slider__range::-moz-range-thumb{ width: 100%; height: 100%; border: none; background: transparent; }
.ba-slider__range::-moz-range-track{ width: 100%; height: 100%; background: transparent; border: none; }
.ba-caption{ margin-top: 10px; font-size: 14px; color: var(--ink-2); text-align: center; }

/* ===== 표/체크리스트 ===== */
.tbl-wrap{ overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.tbl{ min-width: 480px; width: 100%; }
.tbl caption{ text-align: left; padding: 12px 16px; font-weight: 700; background: var(--mist); border-bottom: 1px solid var(--line); }
.tbl th, .tbl td{ padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.tbl thead th{ background: var(--navy); color: var(--white); font-weight: 700; white-space: nowrap; }
.tbl tbody tr:last-child td{ border-bottom: none; }
.tbl tbody tr:nth-child(even){ background: var(--mist); }

@media (max-width: 640px){
  .tbl{ min-width: 0; }
  .tbl caption{ padding: 8px 8px; font-size: 12.5px; }
  .tbl th, .tbl td{ padding: 6px 6px; font-size: 11px; line-height: 1.4; }
  .tbl thead th{ white-space: normal; }
}

.checklist{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li{ display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.checklist li::before{ content: "✓"; flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--amber-soft); color: var(--amber); font-weight: 800; font-size: 13px; }

/* ===== FAQ ===== */
.faq-item{ border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
.faq-item summary{
  list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: "+"; font-size: 20px; color: var(--accent); flex: none; }
.faq-item[open] summary::after{ content: "−"; }
.faq-item[open] summary{ border-bottom: 1px solid var(--line); }
.faq-a{ padding: 14px 18px 18px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }

/* ===== 브레드크럼 ===== */
.breadcrumb{ font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.breadcrumb a{ color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover{ color: var(--amber-deep); }
.breadcrumb .sep{ margin: 0 6px; }

/* ===== 배지/칩 ===== */
.badge{ display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--r-chip); background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; font-size: 13px; }
.badge .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.chip{ display: inline-flex; padding: 6px 14px; border-radius: var(--r-chip); background: var(--mist); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.chip:hover{ border-color: var(--amber); color: var(--amber-deep); }

.dateline{ font-size: 13px; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
