/* 바닥코팅선택기준 — 다크 네이비 x 핑크레드, CSS 전용 결정 흐름도(flowchart) 레이아웃 */

:root {
  --primary: #1A1A2E;
  --accent: #E94560;
  --ink: #1A1A2E;
  --sub: #4d4d63;
  --line: #d9d9e6;
  --paper: #f4f4f9;
  --panel: #22223d;
  --radius: 4px;
}

* { box-sizing: border-box; }

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

h1, h2 {
  font-family: "Diphylleia", serif;
  font-weight: 400;
  color: var(--primary);
  letter-spacing: -0.01em;
}

a { color: inherit; }

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

.section-inner, .split-inner { max-width: 1100px; margin: 0 auto; }

/* ---------- 헤더 ---------- */
.site-header {
  background: var(--primary);
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  color: #fff;
  font-family: "Diphylleia", serif;
  font-size: 1.2rem;
  text-decoration: none;
}
.menu-toggle {
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle span { width: 20px; height: 2px; background: #fff; }

#primary-nav {
  display: none;
  flex-direction: column;
  width: 100%;
}
#primary-nav.is-open { display: flex; }
#primary-nav a {
  color: #fff;
  text-decoration: none;
  padding: 12px 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.96rem;
}
#primary-nav a:hover { color: var(--accent); }

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  #primary-nav {
    display: flex;
    flex-direction: row;
    width: auto;
    gap: 6px;
  }
  #primary-nav a { border-top: none; padding: 10px 14px; }
}

/* ---------- 버튼: 화살표 모양(clip-path) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 34px 0 26px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c72e4c; transform: translateX(2px); }
.btn-ghost { background: var(--primary); color: #fff; }
.btn-ghost:hover { background: #30304f; transform: translateX(2px); }

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

/* ---------- 히어로 ---------- */
.hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 20px 44px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  margin: 0 0 20px;
  line-height: 1.3;
}
.hero-sub {
  max-width: 42em;
  margin: 0 auto 28px;
  color: var(--sub);
  font-size: 1.02rem;
}
.hero .hero-cta { justify-content: center; }

/* ---------- 흐름도(flowchart) 섹션 ---------- */
.flow-section { padding: 40px 20px 20px; }
.flow-section h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0 0 14px;
  text-align: center;
}
.lead {
  max-width: 46em;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--sub);
}

.flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: 340px;
  margin: 0 auto;
}
.flow-step {
  border: 2px solid var(--primary);
  background: var(--paper);
  padding: 22px 20px;
  text-align: left;
  position: relative;
}
.flow-step.is-final {
  background: var(--primary);
  border-color: var(--primary);
}
.flow-step.is-final h3,
.flow-step.is-final p { color: #fff; }
.flow-num {
  display: inline-block;
  font-family: "Diphylleia", serif;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.flow-step h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--primary); }
.flow-step p { margin: 0; color: var(--sub); font-size: 0.95rem; }

/* 화살표: 세로 정렬(모바일) - 아래 방향 삼각형 */
.flow-arrow {
  align-self: center;
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 16px solid var(--accent);
  margin: 4px 0;
}

@media (min-width: 768px) {
  .flow {
    flex-direction: row;
    align-items: stretch;
    max-width: none;
  }
  .flow-step { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .flow-arrow {
    align-self: center;
    width: 0; height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 16px solid var(--accent);
    border-top-width: 12px;
    margin: 0 4px;
  }
}

/* ---------- 4가지 기준 상세 ---------- */
.criteria-section { padding: 48px 20px; background: var(--paper); }
.criteria-section h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  margin: 0 0 32px;
  text-align: center;
}
.criteria-list { display: flex; flex-direction: column; gap: 20px; }
.criteria-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  padding: 26px 22px 22px 60px;
}
.criteria-mark {
  position: absolute;
  left: 18px;
  top: 24px;
  font-family: "Diphylleia", serif;
  font-size: 1.3rem;
  color: var(--accent);
}
.criteria-card h3 { margin: 0 0 10px; font-size: 1.15rem; color: var(--primary); }
.criteria-card p { margin: 0; color: var(--sub); }
.criteria-card a { color: var(--accent); text-decoration: underline; font-weight: 600; }

/* ---------- 분할 섹션(이유 / 복합 조건) ---------- */
.reason-section, .complex-section { padding: 48px 20px; }
.complex-section { background: var(--primary); }
.split-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.split-inner.reverse { flex-direction: column-reverse; }
.split-text h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  margin: 0 0 16px;
}
.complex-section .split-text h2 { color: #fff; }
.split-text p { margin: 0 0 14px; color: var(--sub); }
.complex-section .split-text p { color: #cfcfe0; }
.split-text p:last-child { margin-bottom: 0; }
.split-text a { color: var(--accent); text-decoration: underline; font-weight: 600; }
.complex-section .split-text a { color: #ff8fa3; }

.split-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.tag {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-align: center;
  font-weight: 700;
}
.tag.alt { background: var(--accent); border-color: var(--accent); color: #fff; }

.warn-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: var(--accent);
  color: #fff;
  font-family: "Diphylleia", serif;
  font-size: 1.8rem;
  margin: 0 auto;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

@media (min-width: 768px) {
  .split-inner { flex-direction: row; align-items: flex-start; }
  .split-inner.reverse { flex-direction: row-reverse; }
  .split-inner .split-text { flex: 1.4; }
  .split-inner .split-visual { flex: 1; }
  .complex-section .split-inner .split-visual { flex: 0 0 120px; align-self: center; }
}

/* ---------- 전문가 상담 섹션 ---------- */
.expert-section { padding: 48px 20px; }
.expert-section .section-inner { max-width: 860px; }
.expert-section h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  margin: 0 0 20px;
  text-align: center;
}
.expert-section p { margin: 0 0 16px; color: var(--sub); }
.expert-section p:last-child { margin-bottom: 0; }
.expert-section a { color: var(--accent); text-decoration: underline; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-section { padding: 48px 20px; background: var(--paper); }
.faq-section h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  margin: 0 0 24px;
  text-align: center;
}
.accordion-item { border-bottom: 1px solid var(--line); background: #fff; }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 16px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.accordion-trigger::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.accordion-trigger[aria-expanded="true"]::after { content: "\2212"; }
.accordion-panel { padding: 0 16px 18px; }
.accordion-panel p { margin: 0; color: var(--sub); }

/* ---------- CTA ---------- */
.cta-section {
  padding: 52px 20px 60px;
  background: var(--primary);
  color: #fff;
  text-align: center;
}
.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  margin: 0 0 12px;
}
.cta-inner p { margin: 0 0 26px; color: #cfcfe0; }
.cta-inner .hero-cta { justify-content: center; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: #12121f;
  color: #b3b3c9;
  padding: 16px 20px;
}
.site-footer address {
  max-width: 1100px;
  margin: 0 auto 16px;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #8a8aa3;
}
.site-footer address a { color: #fff; text-decoration: none; }
/* ---------- 반응형 여백 확장 ---------- */
@media (min-width: 480px) and (max-width: 767px) {
  .flow { max-width: 420px; }
}
@media (min-width: 1024px) {
  .flow-section, .criteria-section, .reason-section, .complex-section, .expert-section, .faq-section, .cta-section {
    padding-left: 32px;
    padding-right: 32px;
  }
}
@media (min-width: 1280px) {
  .flow-section, .criteria-section, .reason-section, .complex-section, .expert-section, .faq-section, .cta-section {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* 현장 사진 */
.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); } }

/* 표 (비용/절차 요약 테이블) */
.table-section { padding: 48px 20px; }
.table-scroll { overflow-x: auto; margin: 20px 0; }
.table-scroll table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table-scroll th, .table-scroll td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; font-size: 0.95rem; vertical-align: top; }
.table-scroll thead th { background: var(--accent); color: var(--ink); font-weight: 700; }
.table-scroll tbody tr:nth-child(odd) { background: var(--paper); }

/* ---------- 관련 페이지 ---------- */
.related-section { padding: 48px 20px; background: var(--paper); }
.related-section h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  margin: 0 0 20px;
  text-align: center;
}
.related-section p { max-width: 74ch; margin: 0 auto 24px; text-align: center; color: var(--sub); }
.related-section p a { color: var(--accent); text-decoration: underline; font-weight: 600; }
.related-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.related-card {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  transition: background 0.15s ease, color 0.15s ease;
}
.related-card:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
