/* 바닥코팅하자원인 — 진단 리포트 레이아웃: 경고 스트립 카드 + 해저드 스트라이프 버튼 */

:root {
  --primary: #3E1F47;
  --accent: #FF9F1C;
  --ink: #241228;
  --sub: #5c4a63;
  --line: #ddd2e2;
  --paper: #f6f1f8;
  --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;
}

h1, h2 {
  font-family: "Gamja Flower", cursive;
  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: #fff;
  border-bottom: 3px solid var(--primary);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  color: var(--primary);
  font-family: "Gamja Flower", cursive;
  font-weight: 400;
  font-size: 1.4rem;
  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: var(--radius);
  cursor: pointer;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--primary); }

#primary-nav {
  display: none;
  flex-direction: column;
  width: 100%;
}
#primary-nav.is-open { display: flex; }
#primary-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 12px 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  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; }
}

/* ---------- 버튼: 해저드 스트라이프 액센트 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid var(--primary);
  cursor: pointer;
  position: relative;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 0 var(--accent);
}
.btn-primary:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent); }
.btn-ghost {
  background: repeating-linear-gradient(135deg, #fff, #fff 8px, var(--paper) 8px, var(--paper) 16px);
  color: var(--primary);
}
.btn-ghost:hover { background: var(--paper); }

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

/* ---------- 히어로 ---------- */
.hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 20px 44px;
  text-align: center;
  border-bottom: 4px solid var(--accent);
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 3.1rem);
  margin: 0 0 20px;
  line-height: 1.25;
}
.hero-sub {
  max-width: 42em;
  margin: 0 auto 28px;
  color: var(--sub);
  font-size: 1.02rem;
}
.hero .hero-cta { justify-content: center; }

/* ---------- 리포트 인트로 ---------- */
.report-intro { padding: 44px 20px 8px; }
.report-intro h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  margin: 0 0 16px;
  text-align: center;
}
.report-intro p {
  max-width: 50em;
  margin: 0 auto;
  color: var(--sub);
}

/* ---------- 하자 진단 카드 그리드 ---------- */
.defect-section { padding: 36px 20px 20px; }
.defect-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .defect-grid { grid-template-columns: repeat(2, 1fr); }
}

.defect-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 8px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 2px 10px rgba(62, 31, 71, 0.06);
}
.defect-card[data-severity="high"] { border-left-color: var(--primary); }

.defect-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.defect-code {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: 3px 10px;
  border-radius: 999px;
}
.defect-card[data-severity="high"] .defect-code { background: var(--accent); color: var(--ink); }
.defect-head h3 {
  margin: 0;
  font-size: 1.3rem;
  font-family: "Gamja Flower", cursive;
  color: var(--primary);
}
.defect-desc { margin: 0 0 16px; color: var(--sub); }

.defect-cause {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.cause-label {
  margin: 0 0 6px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--primary);
}
.defect-cause p:last-child { margin: 0; color: var(--ink); font-size: 0.96rem; }

/* ---------- 분할 섹션 ---------- */
.split-section {
  padding: 48px 20px;
  background: var(--paper);
}
.split-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.split-text h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0 0 16px;
}
.split-text p { margin: 0 0 14px; color: var(--sub); }
.split-text p:last-child { margin-bottom: 0; }
.split-text a { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); }

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

@media (min-width: 768px) {
  .split-inner { flex-direction: row; align-items: flex-start; }
  .split-inner .split-text { flex: 1.4; }
  .split-inner .split-visual { flex: 1; }
}

/* ---------- 체크리스트 섹션 ---------- */
.checklist-section { padding: 48px 20px; }
.checklist-section h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0 0 28px;
  text-align: center;
}
.prepare-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .prepare-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .prepare-grid { grid-template-columns: repeat(4, 1fr); }
}
.prepare-card {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--primary);
  border-radius: var(--radius);
  background: #fff;
}
.prepare-label {
  margin: 0 0 8px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 700;
}
.prepare-card h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--primary); font-family: "Gamja Flower", cursive; }
.prepare-card p { margin: 0; color: var(--sub); font-size: 0.94rem; }

.checklist-note {
  max-width: 50em;
  margin: 32px auto 0;
  text-align: center;
  color: var(--sub);
}
.checklist-note a { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); }

/* ---------- 관련 페이지 ---------- */
.related-section { padding: 48px 20px; background: var(--paper); border-top: 1px solid var(--line); }
.related-section h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0 0 24px;
  text-align: center;
}
.related-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 780px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.related-list li { margin: 0; }
.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.related-list a:hover { background: var(--primary); color: #fff; }

/* ---------- FAQ ---------- */
.faq-section { padding: 48px 20px; background: var(--paper); }
.faq-section h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0 0 24px;
  text-align: center;
}
.accordion-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 18px;
  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.3rem;
  font-weight: 700;
  flex-shrink: 0;
}
.accordion-trigger[aria-expanded="true"]::after { content: "\2212"; }
.accordion-panel { padding: 0 18px 18px; }
.accordion-panel p { margin: 0; color: var(--sub); }

/* ---------- CTA ---------- */
.cta-section {
  padding: 52px 20px 60px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  position: relative;
  border-top: 4px solid var(--accent);
}
.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0 0 12px;
}
.cta-inner p { margin: 0 0 26px; color: #e3d4ea; }
.cta-inner .hero-cta { justify-content: center; }
.cta-inner .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); box-shadow: 0 4px 0 #fff; }
.cta-inner .btn-primary:hover { box-shadow: 0 2px 0 #fff; }
.cta-inner .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.6); background: repeating-linear-gradient(135deg, transparent, transparent 8px, rgba(255,255,255,0.08) 8px, rgba(255,255,255,0.08) 16px); }
.cta-inner .btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------- 푸터 ---------- */
.site-footer {
  background: #241228;
  color: #c9b8cf;
  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: #9c88a3;
}
.site-footer address a { color: #fff; text-decoration: none; }
/* ---------- 반응형 여백 확장 ---------- */
@media (min-width: 1024px) {
  .report-intro, .defect-section, .split-section, .checklist-section, .faq-section, .cta-section {
    padding-left: 32px;
    padding-right: 32px;
  }
}
@media (min-width: 1280px) {
  .report-intro, .defect-section, .split-section, .checklist-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); } }

/* ---------- 표 섹션 (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; }
