/* 바닥코팅시공순서 — 퍼플/핑크 그라디언트, 세로 타임라인(로드맵) 레이아웃 */

:root {
  --primary: #3A0CA3;
  --primary-dark: #270877;
  --accent: #F72585;
  --ink: #1E1033;
  --paper: #FAF7FF;
  --card-bg: #FFFFFF;
  --line: #E3D9F7;
  --radius-pill: 999px;
  --radius-card: 18px;
}

* { 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, h3, .btn {
  font-family: "Jua", "Noto Sans KR", sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

p, li { line-height: 1.7; }

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

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

.section-inner { max-width: 1080px; margin: 0 auto; padding: 48px 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;
  flex-wrap: wrap;
}

.logo {
  color: #fff;
  font-family: "Jua", "Noto Sans KR", sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.menu-toggle {
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  cursor: pointer;
}
.menu-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; }

#primary-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
#primary-nav.is-open { display: flex; }
#primary-nav a {
  color: #F1E9FF;
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}
#primary-nav a:hover { background: rgba(247,37,133,0.25); }

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

/* ---------- 버튼 (필 + 퍼플→핑크 그라디언트) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 10px 26px rgba(247, 37, 133, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(247, 37, 133, 0.45); }
.btn-ghost {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-ghost:hover { transform: translateY(-2px); background: #F5EEFF; }

/* ---------- 히어로 ---------- */
.hero {
  padding: 56px 20px 44px;
  text-align: center;
  background:
    radial-gradient(120% 100% at 15% -20%, rgba(58,12,163,0.28), transparent 55%),
    radial-gradient(110% 90% at 100% 0%, rgba(247,37,133,0.22), transparent 60%),
    var(--paper);
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  line-height: 1.35;
  margin: 0 0 18px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 1.02rem; color: #3B2A5C; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- 타임라인(로드맵) ---------- */
.timeline-section { background: #fff; }
.timeline-section h2,
.factors-section h2,
.notice-section h2,
.related-section h2,
.faq-section h2,
.cta-section h2 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--primary);
  margin: 0 0 10px;
  text-align: center;
}
.lead { text-align: center; max-width: 640px; margin: 0 auto 36px; color: #4A3A6B; }

.process-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.process-timeline::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 21px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.process-step {
  position: relative;
  padding: 0 0 36px 60px;
}
.process-step:last-child { padding-bottom: 0; }

.step-node {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: "Jua", "Noto Sans KR", sans-serif;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(58, 12, 163, 0.35);
  z-index: 1;
}

.step-content {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}
.step-content h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.15rem;
}
.step-content p { margin: 0; color: #3B2A5C; }

@media (min-width: 768px) {
  .process-timeline::before { left: 50%; margin-left: -2px; }
  .process-step {
    padding: 0 0 44px 0;
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: start;
    gap: 0 28px;
  }
  .step-node { position: static; grid-column: 2; justify-self: center; }
  .step-content { grid-column: 1; }
  .process-step:nth-child(even) .step-content { grid-column: 3; }
  .process-step:nth-child(odd) .step-content::after,
  .process-step:nth-child(even) .step-content::after { content: none; }
}

/* ---------- 대기 시간 요인 ---------- */
.factors-section { background: var(--paper); }
.factor-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.factor-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 14px;
  padding: 20px;
}
.factor-card h3 { margin: 0 0 8px; color: var(--primary); font-size: 1.05rem; }
.factor-card p { margin: 0; color: #3B2A5C; }

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

/* ---------- 주의사항 ---------- */
.notice-section { background: #fff; }
.notice-section .section-inner { max-width: 820px; }
.notice-section p { color: #3B2A5C; margin: 0 0 16px; }
.notice-section a { color: var(--accent); font-weight: 700; text-decoration: underline; }

/* ---------- 관련 페이지 ---------- */
.related-section { background: var(--paper); }
.related-section .section-inner { max-width: 820px; text-align: center; }
.related-section p { color: #3B2A5C; margin: 0 0 24px; }
.related-section a:not(.related-card) { color: var(--accent); font-weight: 700; text-decoration: underline; }
.related-cards { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.related-card {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.related-card:hover { background: var(--primary); color: #fff; }

/* ---------- FAQ 아코디언 ---------- */
.faq-section { background: #fff; }
.faq-section .section-inner { max-width: 760px; }
.accordion-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-item h3 { margin: 0; }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: none;
  padding: 16px 20px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: "Noto Sans KR", sans-serif;
}
.accordion-trigger::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}
.accordion-trigger[aria-expanded="true"]::after { content: "\2212"; }
.accordion-panel { padding: 4px 20px 18px; color: #3B2A5C; }
.accordion-panel p { margin: 0; }

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  text-align: center;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: #F1E9FF; margin: 0 0 24px; }
.cta-section .btn-ghost { background: #fff; color: var(--primary); border-color: #fff; }
.cta-section .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 10px 26px rgba(0,0,0,0.2); }
.cta-section .btn-primary:hover { background: #F5EEFF; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--ink);
  color: #D8CCF0;
  padding: 16px 20px;
}
.site-footer address {
  max-width: 1080px;
  margin: 0 auto 16px;
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #B7A8DC;
}
.site-footer address a { color: #F72585; text-decoration: none; }
@media (min-width: 1280px) {
  .section-inner { padding: 64px 20px; }
  .hero { padding: 72px 20px 56px; }
}

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