/* 바닥코팅두께 — 퍼플/머스타드, 도막 단면(cross-section) 레이어 다이어그램 */

:root {
  --primary: #3D348B;
  --primary-dark: #2A2361;
  --accent: #E6AF2E;
  --ink: #211D3C;
  --paper: #F7F5FB;
  --card-bg: #FFFFFF;
  --line: #DAD5EC;
}

* { 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: "Gowun Dodum", "Noto Sans KR", sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h3, .btn, .logo {
  font-family: "Noto Sans KR", -apple-system, sans-serif;
  font-weight: 700;
}

a { color: inherit; }

.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: var(--primary-dark);
  border-bottom: 3px 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: #fff;
  font-size: 1.1rem;
  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: 2px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--accent); 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: #fff;
  text-decoration: none;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  min-height: 44px;
  display: flex;
  align-items: center;
}

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

/* ---------- 버튼: 라운드 + 레이어드(적층) 그림자 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow:
    0 2px 0 #B98A17,
    0 6px 0 rgba(185,138,23,0.4),
    0 12px 18px rgba(42,35,97,0.25);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  background: var(--primary);
  color: #fff;
  box-shadow:
    0 2px 0 var(--primary-dark),
    0 6px 0 rgba(42,35,97,0.4),
    0 12px 18px rgba(42,35,97,0.25);
}
.btn-ghost:hover { transform: translateY(-2px); }

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

/* ---------- 히어로 ---------- */
.hero {
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 56px 0;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 40px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--accent);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 18px;
  color: #fff;
}
.hero-sub { font-size: 1.02rem; max-width: 52ch; color: #E4E0F4; margin: 0; }

/* 도막 단면 다이어그램: 아래에서 위로 쌓이는 레이어 */
.cross-section {
  display: flex;
  flex-direction: column-reverse;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(17,13,46,0.35);
}
.layer {
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-weight: 700;
  font-size: 0.92rem;
}
.layer span { color: inherit; }
.layer-base { height: 44px; background: #C9C3DE; color: var(--ink); }
.layer-primer { height: 34px; background: #8E85C4; color: #fff; }
.layer-mid { height: 60px; background: #5B4FB0; color: #fff; }
.layer-top { height: 46px; background: var(--accent); color: var(--ink); }

@media (min-width: 480px) {
  .hero h1 { font-size: 2.5rem; }
  .layer { font-size: 1rem; padding: 0 24px; }
}

@media (min-width: 768px) {
  .hero { padding: 88px 0; }
  .hero-inner { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .hero h1 { font-size: 3rem; }
}

/* ---------- 본문 섹션 공통 ---------- */
.content-section { background: #fff; }
.content-section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.content-section h2 { font-size: 1.6rem; color: var(--primary-dark); margin: 0 0 18px; }
.content-section p { margin: 0 0 16px; max-width: 74ch; }
.content-section p:last-child { margin-bottom: 0; }
.content-section .lead { color: #4A4468; }

/* ---------- 용도별 카드: 미니 단면 다이어그램 ---------- */
.use-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}
.use-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px;
}
.use-card h3 { font-size: 1.1rem; color: var(--primary-dark); margin: 0 0 10px; }
.use-card p { margin: 0; font-size: 0.98rem; max-width: none; }

.mini-section {
  display: flex;
  align-items: flex-end;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}
.mini-bar { display: block; width: 100%; border-radius: 4px 4px 0 0; }
.mini-thin { height: 18px; background: linear-gradient(90deg, var(--accent), #8E85C4); }
.mini-thick { height: 56px; background: linear-gradient(90deg, var(--accent), var(--primary)); }
.mini-uneven {
  height: 38px;
  background: linear-gradient(90deg, var(--accent), #8E85C4);
  clip-path: polygon(0 40%, 15% 10%, 35% 55%, 55% 5%, 75% 45%, 100% 0, 100% 100%, 0 100%);
}

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

/* ---------- FAQ 아코디언 ---------- */
.faq-section { background: #fff; border-top: 1px solid var(--line); }
.faq-section h2 { font-size: 1.6rem; color: var(--primary-dark); margin-bottom: 24px; }
.accordion-item {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-item h3 { margin: 0; }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
  padding: 18px 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: #fff;
  background: var(--accent);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.accordion-trigger[aria-expanded="true"]::after { content: "\2212"; }
.accordion-panel { padding: 0 20px 20px; }
.accordion-panel p { margin: 0; max-width: none; }

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

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--ink);
  color: #D8D3EC;
  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) {
  .content-section h2 { font-size: 1.8rem; }
}

@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); } }

/* 표 (비용/절차 요약 테이블) */
.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); }
