/* ===================================================================
   파주교습소철거 — 다크 히어로 / 라이트 바디 대비 디자인
   =================================================================== */

:root {
  --charcoal-950: #0b0d12;
  --charcoal-900: #12151c;
  --charcoal-800: #1b2029;
  --line-soft: rgba(255, 255, 255, 0.16);
  --line-softer: rgba(255, 255, 255, 0.08);
  --ivory: #f4f1ea;
  --ivory-dim: rgba(244, 241, 234, 0.72);
  --accent: #c98a3f;
  --accent-bright: #e2a862;

  --paper: #faf8f4;
  --paper-raised: #ffffff;
  --ink: #17181c;
  --ink-soft: #4a4d55;
  --border-light: #e4dfd3;
  --shadow-card: 0 1px 2px rgba(23, 24, 28, 0.04), 0 8px 24px rgba(23, 24, 28, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans KR", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  word-break: keep-all;
}

a {
  color: inherit;
}

img, picture {
  max-width: 100%;
  display: block;
}

/* ---------- 헤더 ---------- */

.site-header {
  background: var(--charcoal-950);
  border-bottom: 1px solid var(--line-softer);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--ivory-dim);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.main-nav a:hover {
  color: var(--ivory);
  border-color: var(--accent-bright);
}

/* ---------- 히어로 (다크) ---------- */

.hero {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(201, 138, 63, 0.14), transparent 55%),
    linear-gradient(180deg, var(--charcoal-950) 0%, var(--charcoal-900) 100%);
  color: var(--ivory);
  padding: 72px 24px 88px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-softer) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-softer) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  border: 1px solid rgba(226, 168, 98, 0.4);
  border-radius: 999px;
  padding: 5px 16px;
  margin: 0 0 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero .lead {
  font-size: 1.02rem;
  color: var(--ivory-dim);
  margin: 0 auto 32px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-outline {
  background: transparent;
  border-color: rgba(244, 241, 234, 0.55);
  color: var(--ivory);
}

.btn-outline:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #191307;
}

.btn-solid:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  transform: translateY(-1px);
}

.hero-stats {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 28px;
}

.hero-stats li {
  flex: 1;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line-softer);
  padding: 0 12px;
}

.hero-stats li:last-child {
  border-right: none;
}

.stat-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ivory);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--ivory-dim);
}

/* ---------- 본문 (라이트) ---------- */

.content-stack {
  max-width: 860px;
  margin: -48px auto 0;
  padding: 0 24px 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 32px 36px;
}

.card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 16px;
}

.card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.card p {
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* 지역 카드 그리드 */

.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.region-card {
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 20px;
}

.region-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
}

.region-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* 비용 표 */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.94rem;
}

thead th {
  background: var(--charcoal-900);
  color: var(--ivory);
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
}

thead th:first-child {
  border-top-left-radius: 8px;
}

thead th:last-child {
  border-top-right-radius: 8px;
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--ink-soft);
}

tbody tr:nth-child(even) {
  background: var(--paper);
}

.table-note {
  font-size: 0.82rem;
  color: #8a8d94;
}

/* 절차 리스트 */

.procedure-list {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
  counter-reset: proc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.procedure-list li {
  counter-increment: proc;
  position: relative;
  padding: 14px 16px 14px 52px;
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--ink-soft);
}

.procedure-list li::before {
  content: counter(proc);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--charcoal-900);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.procedure-list strong {
  color: var(--ink);
}

/* 체크리스트 */

.checklist {
  margin: 8px 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--accent);
  color: #191307;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 갤러리 */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
  justify-items: center;
}

.gallery-grid picture {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.gallery-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* FAQ */

.faq-section h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 24px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.faq-section h3:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}

.faq-section p {
  font-size: 0.95rem;
}

/* 관련 페이지 카드 */

.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  min-height: 44px;
  transition: border-color 0.15s, background 0.15s;
}

.related-card:hover {
  border-color: var(--accent);
  background: #fdf6ec;
}

.related-card-arrow {
  color: var(--accent);
  font-weight: 700;
}

/* CTA */

.cta-section {
  background: var(--charcoal-950);
  color: var(--ivory);
  border-radius: 14px;
  padding: 40px 36px;
  text-align: center;
}

.cta-section h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
}

.cta-section p {
  color: var(--ivory-dim);
  margin: 0 0 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* 푸터 */

footer {
  background: var(--charcoal-950);
  border-top: 1px solid var(--line-softer);
  padding: 24px;
}

footer address {
  max-width: 1080px;
  margin: 0 auto;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ivory-dim);
  text-align: center;
  line-height: 1.8;
}

footer a {
  color: var(--accent-bright);
  text-decoration: none;
}

/* ---------- 반응형 ---------- */

@media (max-width: 768px) {
  .header-inner {
    padding: 14px 20px;
  }

  .main-nav {
    gap: 12px 16px;
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding: 48px 20px 64px;
  }

  .content-stack {
    margin-top: -36px;
    padding: 0 16px 64px;
  }

  .card {
    padding: 24px 20px;
  }

  .region-grid,
  .related-cards {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px 0;
  }

  .hero-stats li {
    flex: 1 1 45%;
    border-right: none;
    border-bottom: 1px solid var(--line-softer);
    padding-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 1.05rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .lead {
    font-size: 0.95rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .card h2 {
    font-size: 1.2rem;
  }

  .cta-section {
    padding: 28px 20px;
  }

  footer address {
    font-size: 0.76rem;
  }
}
