/* 광주교습소철거 (경기도 광주시) — 딥 바이올렛 concept
   Primary #240046 / Accent #7B2CBF / Gmarket Sans(제목) + Noto Sans KR(본문)
   Layout: 세로 타임라인형 */

:root {
  --primary: #240046;
  --accent: #7B2CBF;
  --accent-soft: #F1E6FB;
  --bg: #FBF9FD;
  --card-bg: #FFFFFF;
  --border: #E3D8F2;
  --text-body: #2B2033;
  --text-muted: #5B4E68;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  font-display: swap;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "GmarketSans", "Noto Sans KR", sans-serif;
  font-display: swap;
  color: var(--primary);
}

a { color: var(--accent); }
a:hover, a:focus { color: var(--primary); }

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

/* ---------- Header ---------- */
.site-header {
  background: var(--primary);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-family: "GmarketSans", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #FFFFFF;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  text-decoration: none;
  color: #E6D9F5;
  font-size: 0.92rem;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #FFFFFF;
  background: rgba(255,255,255,0.12);
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4.4vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0 0 24px;
}

.hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(36, 0, 70, 0.22);
}

/* ---------- CTA button ---------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(123, 44, 191, 0.35);
}

.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: #FFFFFF;
}

.cta-btn-lg {
  min-height: 56px;
  padding: 0 36px;
  font-size: 1.05rem;
}

/* ---------- Layout / Cards ---------- */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

/* ---------- Region table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

caption {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--accent-soft);
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

thead th {
  background: var(--primary);
  color: #FFFFFF;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg); }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--accent-soft);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--card-bg);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.timeline h3 { color: var(--accent); }

/* ---------- Gallery ---------- */
.gallery-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.gallery-grid figure { margin: 0; }

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* ---------- CTA section ---------- */
.cta-section {
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 40px 26px;
  text-align: center;
}

.cta-section h2 {
  color: #FFFFFF;
  justify-content: center;
}

.cta-section p {
  color: #E6D9F5;
  max-width: 520px;
  margin: 0 auto 24px;
}

/* ---------- Footer ---------- */
footer {
  background: #1A0033;
  color: #E6D9F5;
  padding: 40px 20px;
}

footer nav {
  max-width: 1000px;
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

footer nav a {
  color: #E6D9F5;
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

footer nav a:hover, footer nav a:focus { color: #FFFFFF; }

footer address {
  max-width: 1000px;
  margin: 0 auto;
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #C9B6DE;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
}

footer address a { color: #E6D9F5; }

footer p {
  max-width: 1000px;
  margin: 16px auto 0;
  font-size: 0.8rem;
  color: #9A83AF;
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img { max-width: 560px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 12px;
  }
  .site-nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  h2 { font-size: 1.25rem; }
  .card { padding: 24px 18px; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 28px 16px 16px; }
  .cta-btn { width: 100%; }
  .cta-section { padding: 32px 18px; }
}

@media (min-width: 1280px) {
  .hero, main, .header-inner, footer nav, footer address, footer p {
    max-width: 1100px;
  }
}

.related-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line, #ddd);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--paper, #fff);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.related-card:hover,
.related-card:focus-visible {
  border-color: currentColor;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.related-card-arrow { opacity: 0.6; flex-shrink: 0; }
@media (max-width: 480px) {
  .related-cards { grid-template-columns: 1fr; }
}
