/* 부천교습소철거 — 다크 테마 (딥 바이올렛) */

:root {
  --bg: #10002B;
  --panel: #1F0A3D;
  --panel-border: #3A1868;
  --accent: #7209B7;
  --accent-light: #D8B4FE;
  --text: #F4F0FB;
  --text-muted: #C9BFE0;
  --divider: #3A1868;
}

* { box-sizing: border-box; }

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

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

h1, h2, h3 {
  font-family: "Hahmlet", "Noto Sans KR", serif;
  font-weight: 700;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-light); }
a:hover, a:focus-visible { color: #FFFFFF; }

.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;
}

main { padding-bottom: 64px; }

/* ---------- header ---------- */
.site-header {
  background: #0A0018;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #FFFFFF;
  font-family: "Hahmlet", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.brand-mark { color: var(--accent-light); display: inline-flex; }
.brand:hover, .brand:focus-visible { color: var(--accent-light); }

.main-nav { flex: 1 1 auto; }
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 999px;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  color: #FFFFFF;
  background: var(--panel);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
}
.header-cta:hover, .header-cta:focus-visible {
  background: #8A1FD1;
  color: #FFFFFF;
}

/* ---------- hero ---------- */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(1.8rem, 4.8vw, 2.7rem);
  line-height: 1.35;
  margin: 0 0 16px;
  color: #FFFFFF;
}

.lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 62ch;
}

.hero-figure {
  margin: 0;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 16px;
  padding: 10px;
}
.hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.hero-figure figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 4px 2px;
}

/* ---------- divider ---------- */
.rule {
  max-width: 1280px;
  margin: 0 auto;
  height: 1px;
  background: var(--divider);
}

/* ---------- section shell ---------- */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px;
}

.section h2 {
  font-size: 1.4rem;
  color: #FFFFFF;
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  display: inline-block;
}

.section p { margin: 0 0 16px; max-width: 72ch; color: var(--text); }
.section p:last-child { margin-bottom: 0; }

.situation-list,
.caution-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.situation-list li,
.caution-list li {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  max-width: 72ch;
  color: var(--text);
}
.caution-list strong { color: var(--accent-light); }

/* ---------- table ---------- */
.spec-sheet {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.95rem;
}

caption { text-align: left; }

th, td {
  border: 1px solid var(--panel-border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  color: var(--text);
}

thead th {
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
}

tbody tr:nth-child(even) { background: rgba(114, 9, 183, 0.08); }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 20px;
}
.gallery-grid figure {
  margin: 0;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 14px;
  padding: 8px;
}
.gallery-grid img { border-radius: 8px; }
.gallery-grid figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 4px 0;
}

/* ---------- related links ---------- */
.related-section { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 16px; }

/* ---------- CTA ---------- */
.cta-section {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 44px 20px;
  background: linear-gradient(135deg, var(--panel), #2A0F52);
  color: var(--text);
  text-align: center;
  border-radius: 20px;
}
.cta-section h2 { color: #FFFFFF; margin: 0 0 10px; justify-content: center; }
.cta-section p { margin: 0 auto 20px; max-width: 56ch; color: var(--text-muted); }

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 34px;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--accent-light);
}
.cta-button:hover, .cta-button:focus-visible {
  background: #8A1FD1;
}

/* ---------- footer ---------- */
footer {
  background: #0A0018;
  color: var(--text-muted);
  padding: 40px 20px;
  border-top: 1px solid var(--accent);
}
footer nav {
  max-width: 1280px;
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
footer nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
footer nav a:hover, footer nav a:focus-visible { color: #FFFFFF; }

footer address {
  max-width: 1280px;
  margin: 0 auto;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--panel-border);
}
footer address a { color: var(--accent-light); }

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

/* ---------- breakpoints ---------- */
@media (min-width: 480px) {
  .cta-section { padding: 52px 32px; }
}

@media (min-width: 768px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding-top: 56px; }
  .main-nav a { font-size: 0.95rem; }
}

@media (min-width: 1024px) {
  .section { padding: 40px 32px; }
  .hero { padding: 72px 32px 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* mobile: table becomes card list */
@media (max-width: 767px) {
  .table-wrap { overflow-x: visible; }
  table { min-width: 0; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr {
    margin-bottom: 12px;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    overflow: hidden;
  }
  td {
    border: 0;
    border-bottom: 1px solid var(--panel-border);
    padding: 10px 14px;
  }
  td:last-child { border-bottom: 0; }
  td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .accordion-trigger, .header-cta, .cta-button, .main-nav a { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
}

.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; }
}
