/* 교습소철거절차 — primary #212529 / accent #FFD60A / Paperlogy + Noto Sans KR */

:root {
  --primary: #212529;
  --primary-soft: #343a40;
  --accent: #FFD60A;
  --accent-dark: #caa500;
  --bg: #ffffff;
  --bg-alt: #f5f4f1;
  --text: #212529;
  --text-muted: #495057;
  --line: #d9dcdf;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, .step-num, .brand {
  font-family: "Paperlogy", "Noto Sans KR", sans-serif;
  color: var(--primary);
  line-height: 1.3;
  margin: 0 0 .6em;
}

p { margin: 0 0 1em; }

a { color: var(--primary); text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--primary);
  padding: .75em 1em;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* header */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  margin: 0;
  margin-right: auto;
}
.header-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.header-nav a {
  color: #e9ecef;
  text-decoration: none;
  font-size: .95rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.header-nav a:hover { color: var(--accent); }
.header-cta { flex-shrink: 0; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-dark); color: var(--primary); }
.btn-accent { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--primary); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }

/* hero */
.hero {
  position: relative;
  color: #fff;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media picture, .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33,37,41,.55) 0%, rgba(33,37,41,.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 48px;
  width: 100%;
}
.hero-eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .4em;
  font-size: .95rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: .4em;
}
.hero-sub {
  font-size: 1.1rem;
  color: #f1f3f5;
  max-width: 640px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.4em;
}

/* sections */
.band { padding: 56px 20px; }
.band-alt { background: var(--bg-alt); }
.band-inner { max-width: 1100px; margin: 0 auto; }
.band-inner.narrow { max-width: 780px; }
.band h2 {
  font-size: 1.7rem;
  margin-bottom: .7em;
  border-left: 6px solid var(--accent);
  padding-left: .5em;
}

/* steps */
.steps-section .step-block {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 0;
}
.step-num {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  -webkit-text-stroke: 1.5px var(--primary);
  line-height: 1;
}
.step-body h3 { font-size: 1.25rem; margin-bottom: .5em; }
.step-body p { color: var(--text-muted); }
.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* table */
.table-scroll { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
caption { text-align: left; }
th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
tbody th[scope="row"] {
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.gallery-item {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item figcaption {
  padding: 12px 14px;
  font-size: .9rem;
  color: var(--text-muted);
}

/* cta section */
.cta-section { text-align: center; background: var(--primary); }
.cta-inner h2 { color: #fff; border-left: none; padding-left: 0; }
.cta-inner p { color: #dee2e6; }
.cta-section .hero-cta { justify-content: center; }
.cta-section .btn-outline { color: #fff; border-color: #fff; }
.cta-section .btn-outline:hover { background: #fff; color: var(--primary); }

/* footer */
footer {
  background: var(--primary-soft);
  color: #dee2e6;
  padding: 40px 20px 30px;
}
footer nav {
  max-width: 1100px;
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer nav a {
  color: #dee2e6;
  text-decoration: none;
  font-size: .9rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
footer nav a:hover { color: var(--accent); }
footer address {
  max-width: 1100px;
  margin: 0 auto;
  font-style: normal;
  font-size: .9rem;
  line-height: 1.8;
  border-top: 1px solid #495057;
  padding-top: 18px;
}
footer address a { color: var(--accent); }
footer p { max-width: 1100px; margin: 16px auto 0; font-size: .82rem; color: #adb5bd; }

/* breakpoints */
@media (max-width: 1280px) {
  .band-inner, .header-inner, footer nav, footer address, footer p { max-width: 1000px; }
}

@media (max-width: 1024px) {
  .hero-content { padding: 50px 20px 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-nav { order: 3; width: 100%; gap: 14px; }
  .header-inner { padding: 12px 16px; }
  .band { padding: 40px 16px; }
  .steps-section .step-block { grid-template-columns: 64px 1fr; gap: 14px; }
  .step-num { font-size: 2.1rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-sub { font-size: 1rem; }
  .btn { width: 100%; }
  .hero-cta, .cta-section .hero-cta { flex-direction: column; }
  .steps-section .step-block { grid-template-columns: 1fr; }
  .step-num { font-size: 1.6rem; }
}
