/* 평택교습소철거 — 세로 타임라인/단계형 프로세스 디자인
   primary: #101a2b (딥 네이비) / progress gradient: teal(#0ea5a3) -> indigo(#5b4fe0)
   heading/marker: IBM Plex Mono / body: Noto Sans KR */

:root {
  --ink: #10182a;
  --ink-soft: #445066;
  --paper: #f4f6fb;
  --card: #ffffff;
  --line: #d8deec;
  --border: #e2e7f2;
  --step-hue-start: 172;
  --step-hue-end: 248;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2 {
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
h3 { font-size: 1rem; color: var(--ink); margin: 0 0 0.4em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: #3730a3; text-decoration-thickness: 1px; }
a:hover, a:focus-visible { color: #0ea5a3; }

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

.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(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: 980px;
  margin: 0 auto;
}

.brand {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5a3, #5b4fe0);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.header-cta:hover, .header-cta:focus-visible { color: #fff; opacity: 0.9; }

/* ---------- hero (작고 단순하게) ---------- */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.6rem 1.25rem 1.4rem;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #0ea5a3;
  background: #e6f7f6;
  border-radius: 999px;
  padding: 0.3em 0.9em;
  margin-bottom: 0.9em;
}

.hero .lede {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- wrap / timeline ---------- */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 30px;
  left: 21px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #0ea5a3 0%, #4c7fd8 45%, #5b4fe0 75%, #9333ea 100%);
  opacity: 0.85;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 1.1rem;
  padding-bottom: 2.1rem;
}

.step:last-child { padding-bottom: 0; }

.step-marker {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(
    155deg,
    hsl(calc(var(--step-hue-start) - var(--i) * 5.5), 68%, 46%),
    hsl(calc(var(--step-hue-start) - var(--i) * 5.5 + 34), 62%, 42%)
  );
  box-shadow: 0 0 0 5px var(--paper), 0 2px 8px rgba(16, 24, 43, 0.18);
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 1px 2px rgba(16, 24, 43, 0.04);
}

.step-sub {
  font-size: 0.92rem;
  color: #6b7690;
  margin-bottom: 1em;
}

/* ---------- table ---------- */
.table-scroll { overflow-x: auto; }

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

caption { text-align: left; }

th, td {
  text-align: left;
  padding: 0.65em 0.7em;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

thead th {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(90deg, #0ea5a3, #5b4fe0);
  white-space: nowrap;
}

tbody tr:nth-child(even) { background: #f7f9fd; }

/* ---------- checklist ---------- */
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.checklist li {
  position: relative;
  padding-left: 1.7em;
  font-size: 0.96rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.05em;
  height: 1.05em;
  border-radius: 5px;
  background: linear-gradient(155deg, #0ea5a3, #5b4fe0);
}

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  max-width: 560px;
  margin: 0 auto;
}

.gallery picture {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- faq ---------- */
.faq { display: grid; gap: 1.1rem; }

.faq-item {
  padding-top: 1.1rem;
  border-top: 1px dashed var(--border);
}

.faq-item:first-child { padding-top: 0; border-top: none; }

.faq-item h3::before {
  content: "Q.";
  font-family: 'IBM Plex Mono', monospace;
  color: #0ea5a3;
  margin-right: 0.4em;
}

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

/* ---------- related cards ---------- */
.related-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem;
  min-height: 44px;
  background: #fbfcfe;
}

.related-card:hover, .related-card:focus-visible {
  border-color: #5b4fe0;
}

.related-card img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.related-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  min-width: 0;
}

.related-card-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.related-card-desc {
  font-size: 0.78rem;
  color: #6b7690;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- cta ---------- */
.cta-card {
  background: linear-gradient(155deg, #0ea5a3, #5b4fe0);
  border: none;
  color: #fff;
}

.cta-card h2 { color: #fff; }
.cta-card p { color: rgba(255,255,255,0.92); }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.3rem;
  border-radius: 999px;
  background: #fff;
  color: #101a2b !important;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.4rem;
}

.btn:hover, .btn:focus-visible { opacity: 0.9; }

/* ---------- footer ---------- */
footer {
  background: var(--ink);
  padding: 1.6rem 1.25rem;
}

footer address {
  max-width: 720px;
  margin: 0 auto;
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #aeb6c9;
}

footer address a {
  color: #9adfdc;
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  .related-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-bar { padding: 0.75rem 1rem; }
  .hero { padding: 2rem 1rem 1.1rem; }
  .wrap { padding: 0 1rem 2.4rem; }

  .step { grid-template-columns: 36px 1fr; column-gap: 0.8rem; }
  .timeline::before { left: 17px; }
  .step-marker { width: 36px; height: 36px; font-size: 0.72rem; }
  .step-card { padding: 1.05rem 1.05rem; }

  .gallery { grid-template-columns: 1fr 1fr; gap: 0.6rem; max-width: 100%; }

  table { min-width: 420px; }
}
