/* 바닥코팅색상 — 바이올렛/시안 컬러 스와치 팔레트 레이아웃, Cute Font 헤딩, 그라디언트 알약 버튼 */

:root {
  --primary: #7209B7;
  --primary-dark: #4B0680;
  --accent: #4CC9F0;
  --ink: #241033;
  --paper: #FBF7FE;
  --card-bg: #FFFFFF;
  --line: #E4D6F2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2 {
  font-family: "Cute Font", "Noto Sans KR", sans-serif;
  font-weight: 400;
  line-height: 1.3;
}

h3 { font-family: "Noto Sans KR", sans-serif; font-weight: 700; }

a { color: inherit; }
p { margin: 0 0 16px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section-inner { max-width: 1120px; margin: 0 auto; padding: 56px 20px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 2px solid var(--accent);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  color: var(--primary);
  font-family: "Cute Font", sans-serif;
  font-size: 1.5rem;
  text-decoration: none;
}

.menu-toggle {
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  background: var(--paper);
  border: 2px solid var(--primary);
  border-radius: 50%;
  cursor: pointer;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--primary); display: block; border-radius: 2px; }

#primary-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
#primary-nav.is-open { display: flex; }
#primary-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  #primary-nav {
    display: flex;
    flex-direction: row;
    width: auto;
    gap: 28px;
  }
  #primary-nav a { border-bottom: none; padding: 8px 0; }
}

/* ---------- 버튼: 알약형 + 그라디언트 테두리 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  border: 3px solid transparent;
}
.btn-primary {
  color: #fff;
  background:
    linear-gradient(var(--primary-dark), var(--primary-dark)) padding-box,
    linear-gradient(120deg, var(--accent), var(--primary), var(--accent)) border-box;
}
.btn-ghost {
  color: var(--primary);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, var(--accent), var(--primary), var(--accent)) border-box;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- 히어로: 스와치 팔레트 ---------- */
.hero {
  background: linear-gradient(160deg, #fff 0%, #F3E8FC 60%, #E4F8FE 100%);
  padding: 48px 0 40px;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 32px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--primary);
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 2.8rem;
  margin: 0 0 16px;
  color: var(--primary);
}
.hero-sub { font-size: 1.05rem; max-width: 58ch; color: #4A3A5A; }

.swatch-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.swatch {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(114, 9, 183, 0.15);
}

@media (min-width: 768px) {
  .hero { padding: 80px 0 64px; }
  .hero-inner { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .hero h1 { font-size: 3.6rem; }
  .swatch-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 본문 섹션 공통 ---------- */
.content-section { background: #fff; }
.content-section.alt { background: var(--paper); }
.content-section h2 { font-size: 1.9rem; color: var(--primary); margin: 0 0 18px; }
.lead { max-width: 72ch; color: #4A3A5A; }

/* ---------- 스와치 팔레트 + 텍스트 분할 섹션 ---------- */
.split { display: grid; gap: 28px; }
.palette-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-content: start;
}
.palette-chip {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(114, 9, 183, 0.08);
}
.chip-color {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  border-radius: 12px;
  margin-bottom: 10px;
}
.palette-chip span { font-size: 0.88rem; font-weight: 700; color: var(--ink); }

@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1.3fr; align-items: center; }
}

/* ---------- 이유 카드 (범용성 / 오염 관리) ---------- */
.reason-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 28px 0;
}
.reason-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(114, 9, 183, 0.08);
}
.reason-swatch {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin-bottom: 14px;
}
.reason-card h3 { font-size: 1.15rem; color: var(--primary-dark); margin: 0 0 10px; }
.reason-card p { margin: 0; font-size: 0.98rem; }

@media (min-width: 768px) {
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 구역 색상 스트립 ---------- */
.zone-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0;
  border-radius: 18px;
  overflow: hidden;
}
.zone-bar {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.zone-bar span {
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 6px 14px;
  border-radius: 999px;
}

@media (min-width: 768px) {
  .zone-strip { flex-direction: row; }
  .zone-bar { flex: 1; justify-content: center; }
}

/* ---------- 광택 정도 카드 (무광/반광/유광) ---------- */
.gloss-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 28px 0;
}
.gloss-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(114, 9, 183, 0.08);
}
.gloss-swatch {
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 14px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.gloss-swatch.is-matte { box-shadow: none; }
.gloss-swatch.is-semi { box-shadow: inset 0 -14px 24px rgba(0,0,0,0.12); }
.gloss-swatch.is-semi::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(255,255,255,0.35), transparent 45%);
}
.gloss-swatch.is-gloss { box-shadow: inset 0 -18px 30px rgba(0,0,0,0.22); }
.gloss-swatch.is-gloss::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.65) 48%, transparent 62%);
}
.gloss-card h3 { font-size: 1.1rem; color: var(--primary-dark); margin: 0 0 8px; }
.gloss-card p { margin: 0; font-size: 0.95rem; }

@media (min-width: 480px) {
  .gloss-grid { grid-template-columns: repeat(3, 1fr); }
}

.manage-note { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }
.manage-note a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.content-section > .section-inner > p a { color: var(--primary); font-weight: 700; text-decoration: underline; }

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, var(--accent) 130%);
  color: #fff;
  border-radius: 32px;
  max-width: 1120px;
  margin: 0 auto 56px;
}
.cta-inner { text-align: center; padding: 48px 24px; }
.cta-section h2 { font-size: 1.9rem; margin-bottom: 12px; color: #fff; }
.cta-section p { color: #F3E8FC; margin: 0 auto 8px; max-width: 52ch; }
.cta-section .hero-cta { justify-content: center; }
.cta-section .btn-ghost {
  color: #fff;
  background:
    linear-gradient(transparent, transparent) padding-box,
    linear-gradient(120deg, #fff, var(--accent)) border-box;
}

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--ink);
  color: #E3D6F0;
  padding: 16px 20px;
}
.site-footer address { max-width: 1120px; margin: 0 auto 16px; font-style: normal; font-size: 0.9rem; line-height: 1.5; }
.site-footer address a { color: var(--accent); text-decoration: none; }
@media (min-width: 1024px) {
  .hero h1 { font-size: 4rem; }
}

@media (min-width: 1280px) {
  .section-inner, .hero-inner { padding-left: 0; padding-right: 0; }
}

/* 현장 사진 */
.site-photo-section { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
.site-photo-section h2 { color: var(--primary); margin: 0 0 18px; }
.site-photo-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.site-photo-grid picture { display: block; aspect-ratio: 4/3; overflow: hidden; }
.site-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .site-photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 표 섹션 (AEO 비용/절차 표) ---------- */
.table-section { padding: 48px 20px; }
.table-section h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 0 0 16px; color: var(--primary); }
.table-section .lead { max-width: 68ch; margin: 0 0 24px; }
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius, 10px);
  background: #fff;
}
.table-scroll table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.94rem; }
.table-scroll thead th { background: var(--primary); color: #fff; font-weight: 600; text-align: left; padding: 14px 16px; }
.table-scroll tbody th { text-align: left; color: var(--primary); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-scroll tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table-scroll tbody tr:last-child th, .table-scroll tbody tr:last-child td { border-bottom: none; }

/* ---------- 관련 페이지 ---------- */
.related-section { background: var(--paper); }
.related-section h2 { font-size: 1.9rem; color: var(--primary); margin: 0 0 18px; }
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  color: var(--primary);
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.related-list a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
