/* 바닥코팅보수 — 손상 진단 컨셉의 2단 비교(부분 보수 vs 전면 재시공) 레이아웃 */

:root {
  --primary: #6A040F;
  --primary-dark: #4B0209;
  --accent: #FFBA08;
  --ink: #2A1A1D;
  --line: #E4D6D0;
  --paper: #FBF1E7;
}

* { 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: "Gaegu", "Noto Sans KR", sans-serif;
  font-weight: 700;
}

a { color: inherit; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 8px; }

.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 { border-bottom: 3px solid var(--primary); background: #fff; }
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  color: var(--primary);
  font-family: "Gaegu", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
}
.menu-toggle {
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  background: #fff;
  border: 2px dashed var(--primary);
  border-radius: 12px;
  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.95rem;
}
#primary-nav a:hover { color: var(--primary); }

@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: 10px 26px;
  border-radius: 999px;
  border: 3px dashed var(--ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- 히어로 ---------- */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 52px 20px 60px;
  text-align: left;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}
.hero h1 { font-size: 2.4rem; margin: 0 0 16px; color: #fff; }
.hero-sub { font-size: 1.05rem; max-width: 62ch; color: #F6E4D6; margin: 0; }

@media (min-width: 768px) {
  .hero { padding: 84px 20px 90px; }
  .hero h1 { font-size: 3.1rem; }
}

/* ---------- 진단 섹션: 2단 비교 카드 ---------- */
.diagnosis-section { background: var(--paper); }
.diagnosis-section h2, .procedure-section h2, .honesty-section h2, .delay-section h2, .faq-section h2, .cta-section h2 {
  font-size: 1.7rem;
  color: var(--primary-dark);
  margin: 0 0 12px;
}
.lead { max-width: 68ch; color: #5A4147; margin: 0 0 32px; }

.diagnosis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.diagnosis-card {
  padding: 26px 24px;
  border-radius: 18px;
  position: relative;
}
.diagnosis-card.partial {
  background: #fff;
  border: 3px dashed var(--primary);
}
.diagnosis-card.full {
  background: var(--primary-dark);
  color: #F6E4D6;
  border: 3px dashed var(--accent);
}
.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.diagnosis-card.partial .card-tag { background: var(--paper); color: var(--primary-dark); border: 1px solid var(--primary); }
.diagnosis-card.full .card-tag { background: var(--accent); color: var(--primary-dark); }
.diagnosis-card h3 { font-size: 1.2rem; margin: 0 0 12px; }
.diagnosis-card.partial h3 { color: var(--primary-dark); }
.diagnosis-card.full h3 { color: #fff; }
.diagnosis-card ul { margin: 0 0 14px; font-size: 0.98rem; }
.diagnosis-card p:last-child { margin: 0; font-size: 0.96rem; }

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

/* ---------- 절차 섹션 ---------- */
.procedure-section { background: #fff; border-top: 1px solid var(--line); }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step-list li { display: flex; gap: 16px; margin: 0; }
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px dashed var(--primary);
  color: var(--primary-dark);
  font-family: "Gaegu", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h3 { font-size: 1.08rem; color: var(--primary-dark); margin: 0 0 6px; }
.step-body p { margin: 0; font-size: 0.98rem; }

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

/* ---------- 색상 매칭 안내 / 지연 위험 ---------- */
.honesty-section { background: var(--paper); border-top: 1px solid var(--line); }
.delay-section { background: #fff; border-top: 1px solid var(--line); }
.honesty-section p, .delay-section p { max-width: 74ch; margin: 0 0 16px; }
.honesty-section p:last-child, .delay-section p:last-child { margin-bottom: 0; }
.link-note a { color: var(--primary); font-weight: 700; text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-section { background: var(--paper); border-top: 1px solid var(--line); }
.accordion-item { border: 2px dashed var(--primary); border-radius: 14px; background: #fff; margin-bottom: 14px; overflow: hidden; }
.accordion-item h3 { margin: 0; }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: "Gaegu", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-dark);
  padding: 16px 20px;
  min-height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.accordion-trigger::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  -webkit-text-stroke: 1px var(--primary-dark);
  flex-shrink: 0;
}
.accordion-trigger[aria-expanded="true"]::after { content: "\2212"; }
.accordion-panel { padding: 0 20px 18px; }
.accordion-panel p { margin: 0; font-size: 0.98rem; }

/* ---------- CTA ---------- */
.cta-section { background: var(--primary-dark); color: #fff; }
.cta-inner { text-align: center; }
.cta-section h2 { color: #fff; }
.cta-section p { color: #F6E4D6; margin: 0 auto 8px; max-width: 52ch; }
.cta-section .hero-cta { justify-content: center; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--ink); color: #E9D9D0; padding: 44px 20px 28px; }
.footer-nav { max-width: 1120px; margin: 0 auto 24px; display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-nav a {
  color: #E9D9D0;
  text-decoration: none;
  font-size: 0.92rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-nav a:hover { color: var(--accent); }
.site-footer address { max-width: 1120px; margin: 0 auto 16px; font-style: normal; font-size: 0.9rem; line-height: 1.8; }
.site-footer address a { color: var(--accent); text-decoration: none; }
.site-footer p { max-width: 1120px; margin: 0 auto; font-size: 0.82rem; color: #B79E96; }

@media (min-width: 480px) {
  .step-num { width: 48px; height: 48px; }
}

@media (min-width: 1280px) {
  .section-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); } }
