/* 바닥코팅항균 — 클리니컬 미니멀 레이아웃: 다크 틸 + 코랄, 넉넉한 여백과 헤어라인 구분선 */

:root {
  --primary: #073B4C;
  --accent: #EF476F;
  --ink: #0d2b35;
  --sub: #4d6672;
  --line: #d9e3e6;
  --paper: #f5f9fa;
  --radius: 8px;
}

* { 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.75;
  -webkit-font-smoothing: antialiased;
}

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

h3 { font-family: inherit; font-weight: 700; color: var(--primary); }

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: 1080px; margin: 0 auto; }

.hairline {
  border: none;
  border-top: 1px solid var(--line);
  max-width: 1080px;
  margin: 0 auto;
}

/* ---------- 헤더 ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  color: var(--primary);
  font-family: "Single Day", cursive;
  font-weight: 400;
  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: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle span { width: 20px; height: 1.5px; 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: 8px;
  }
  #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: 600;
  font-size: 0.98rem;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { border: 1.5px solid var(--accent); color: var(--accent); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { border: 1.5px solid var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

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

/* ---------- 히어로 ---------- */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 76px 20px 56px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.3rem, 7vw, 3.2rem);
  margin: 0 0 22px;
  line-height: 1.25;
}
.hero-sub {
  max-width: 44em;
  margin: 0 auto 32px;
  color: var(--sub);
  font-size: 1.04rem;
}
.hero .hero-cta { justify-content: center; }

/* ---------- 공간 리스트: 큰 번호 + 헤어라인 ---------- */
.space-section { padding: 60px 20px 20px; }
.space-section h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  margin: 0 0 16px;
  text-align: center;
}
.lead {
  max-width: 48em;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--sub);
}

.space-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.space-list li {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.space-list li:last-child { border-bottom: 1px solid var(--line); }
.space-num {
  flex: 0 0 auto;
  font-family: "Single Day", cursive;
  font-size: 1.7rem;
  color: var(--accent);
  min-width: 52px;
}
.space-text h3 { margin: 0 0 8px; font-size: 1.14rem; }
.space-text p { margin: 0; color: var(--sub); }

/* ---------- 비교 테이블 ---------- */
.compare-section { padding: 56px 20px; background: var(--paper); }
.compare-section h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0 0 16px;
  text-align: center;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.94rem;
}
thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
}
tbody th {
  text-align: left;
  color: var(--primary);
  font-weight: 600;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
tbody td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--sub);
}
.table-note {
  max-width: 48em;
  margin: 22px auto 0;
  text-align: center;
  color: var(--sub);
  font-size: 0.92rem;
}
.table-note a { color: var(--primary); text-decoration: underline; }

/* ---------- 항균 첨가제 섹션 ---------- */
.additive-section { padding: 60px 20px; }
.split-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
.split-text h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0 0 18px;
}
.split-text p { margin: 0 0 16px; color: var(--sub); }
.split-text p:last-child { margin-bottom: 0; }

.additive-visual { width: 100%; display: flex; justify-content: center; }
.additive-box {
  width: 220px;
  padding: 32px 24px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  text-align: center;
}
.additive-plus {
  display: block;
  font-family: "Single Day", cursive;
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.additive-box p { margin: 0; color: var(--primary); font-weight: 600; font-size: 0.96rem; }

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

/* ---------- 고려사항 체크리스트 ---------- */
.consider-section { padding: 60px 20px; background: var(--paper); }
.consider-section h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0 0 16px;
  text-align: center;
}
.consider-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.consider-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 22px 52px;
  position: relative;
}
.consider-list li::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 24px;
  width: 16px; height: 16px;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
}
.consider-list h3 { margin: 0 0 8px; font-size: 1.05rem; }
.consider-list p { margin: 0; color: var(--sub); font-size: 0.96rem; }
.consider-list a { color: var(--primary); text-decoration: underline; }
.consider-note {
  max-width: 48em;
  margin: 0 auto;
  text-align: center;
  color: var(--sub);
}
.consider-note a { color: var(--primary); text-decoration: underline; }

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

/* ---------- FAQ ---------- */
.faq-section { padding: 60px 20px; }
.faq-section h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0 0 28px;
  text-align: center;
}
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item:first-child { border-top: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 600;
  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;
  flex-shrink: 0;
}
.accordion-trigger[aria-expanded="true"]::after { content: "\2212"; }
.accordion-panel { padding: 0 4px 20px; }
.accordion-panel p { margin: 0; color: var(--sub); }

/* ---------- CTA ---------- */
.cta-section {
  padding: 60px 20px 68px;
  background: var(--primary);
  color: #fff;
  text-align: center;
}
.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0 0 14px;
}
.cta-inner p { margin: 0 0 28px; color: #b7cdd6; }
.cta-inner .hero-cta { justify-content: center; }
.cta-inner .btn-primary { border-color: var(--accent); color: var(--accent); }
.cta-inner .btn-primary:hover { background: var(--accent); color: #fff; }
.cta-inner .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.55); }
.cta-inner .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: #052730;
  color: #a9c1c9;
  padding: 16px 20px;
}
.site-footer address {
  max-width: 1080px;
  margin: 0 auto 16px;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #7d97a0;
}
.site-footer address a { color: #fff; text-decoration: none; }
/* ---------- 반응형 여백 확장 ---------- */
@media (min-width: 1024px) {
  .space-section, .compare-section, .additive-section, .consider-section, .faq-section, .cta-section {
    padding-left: 32px;
    padding-right: 32px;
  }
}
@media (min-width: 1280px) {
  .space-section, .compare-section, .additive-section, .consider-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); } }

/* ---------- 모바일: 비교 테이블을 하나의 스택형 블록으로 표시 (639px 이하) ---------- */
@media (max-width: 639px) {
  .table-wrap { overflow-x: visible; }
  table { min-width: 0; border: 1px solid var(--line); }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table, tbody, tr, th, td { display: block; width: 100%; }
  tr { border-bottom: 2px solid var(--line); }
  tr:last-child { border-bottom: none; }
  tr th[scope="row"] { background: var(--paper); color: var(--accent); font-weight: 800; border: none; border-bottom: 1px solid var(--line); }
  td { border: none; border-bottom: 1px solid var(--line); padding-left: 46%; position: relative; min-height: 44px; display: flex; align-items: center; }
  tr td:last-child { border-bottom: none; }
  td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    width: 40%;
    font-weight: 800;
    color: var(--accent);
  }
}

/* ---------- 관련 페이지 ---------- */
.related-section { padding: 60px 20px; }
.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;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  color: var(--primary);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.related-list a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
