/* academy-demolition-protection — 교습소철거보양
   primary #495057 / accent #94D2BD / Nanum Gothic
   layout: vertical layered / cross-section stack feel */

:root {
  --primary: #495057;
  --primary-dark: #2f3338;
  --accent: #2f7a63;       /* darkened accent for AA text contrast on light bg */
  --accent-bg: #94D2BD;    /* raw accent, used for backgrounds/borders only */
  --accent-soft: #E4F3EC;
  --ink: #262a2d;
  --muted: #5b6268;
  --line: #d8dee1;
  --bg: #f5f7f6;
  --white: #ffffff;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Nanum Gothic', 'Noto Sans KR', sans-serif;
  font-display: swap;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Nanum Gothic', 'Noto Sans KR', sans-serif; font-weight: 800; color: var(--primary-dark); line-height: 1.35; }
h1 { font-size: 1.9rem; margin: 0 0 14px; }
h2 { font-size: 1.4rem; margin: 0 0 16px; padding-left: 14px; border-left: 6px solid var(--accent-bg); }
h3 { font-size: 1.1rem; margin: 0 0 8px; }
p { margin: 0 0 14px; color: var(--ink); }
a { color: var(--accent); }
ul { margin: 0; padding: 0; }
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(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.05rem;
  min-height: 44px;
}
.brand-mark { color: var(--accent); display: inline-flex; }
.main-nav { display: none; flex: 1; }
.main-nav ul { display: flex; gap: 22px; list-style: none; }
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.main-nav a:hover { color: var(--primary-dark); }
.header-cta {
  margin-left: auto;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--primary-dark); }

/* ---------- layout shell ---------- */
main { display: block; }
article { max-width: 880px; margin: 0 auto; padding: 32px 20px 64px; }
.rule { height: 1px; background: var(--line); margin: 36px 0; }
.section { }

/* ---------- hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 0 8px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
}
.lede { font-size: 1.05rem; color: var(--muted); }
.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 24px -14px rgba(41, 48, 51, 0.35);
}
.hero-figure img { width: 100%; }
.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--accent-soft);
}

/* ---------- situation list ---------- */
.situation-list { list-style: none; display: grid; gap: 10px; margin-top: 10px; }
.situation-list li {
  position: relative;
  padding: 12px 16px 12px 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-bg);
  border-radius: 8px;
}
.situation-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- layer stack: cross-section visual ---------- */
.layer-stack {
  display: flex;
  flex-direction: column;
  margin: 24px 0 6px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 28px -18px rgba(41, 48, 51, 0.45);
}
.layer {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--primary-dark);
  border-left: 10px solid var(--accent-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.layer:nth-child(1) { background: #2f3338; }
.layer:nth-child(2) { background: #3d444a; }
.layer:nth-child(3) { background: #495057; }
.layer:nth-child(4) { background: #5c646b; }
.layer:first-child { border-top: none; }
.layer span { position: relative; }
.layer-caption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }

/* ---------- table ---------- */
.spec-sheet { }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 640px; }
caption { text-align: left; }
th, td { padding: 12px 16px; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--primary); color: var(--white); font-weight: 700; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--accent-soft); }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.gallery-grid figcaption { padding: 10px 14px; font-size: 0.85rem; color: var(--muted); }

/* ---------- caution ---------- */
.caution-section { }
.caution-list { list-style: none; display: grid; gap: 12px; margin-top: 10px; }
.caution-list li {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  font-size: 0.95rem;
}
.caution-list strong { color: var(--primary-dark); }

/* ---------- related / cta ---------- */
.related-section p { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.cta-section {
  margin-top: 36px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--white);
  text-align: center;
}
.cta-section h2 { color: var(--white); border-left: none; padding-left: 0; }
.cta-section p { color: rgba(255, 255, 255, 0.85); }
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  background: var(--accent-bg);
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  font-size: 1rem;
}
.cta-button:hover { background: var(--white); }

/* ---------- footer ---------- */
footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 20px 28px;
}
footer nav {
  max-width: 1120px;
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}
footer nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
footer nav a:hover { color: var(--accent-bg); }
footer address {
  max-width: 1120px;
  margin: 0 auto;
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
}
footer address a { color: var(--accent-bg); }
footer p { max-width: 1120px; margin: 16px auto 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- breakpoints ---------- */
@media (min-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .main-nav { display: block; }
  .hero { flex-direction: row; align-items: center; }
  .hero-text { flex: 1; }
  .hero-figure { flex: 1; margin: 0; }
  h1 { font-size: 2.3rem; }
}
@media (min-width: 1024px) {
  article { padding-top: 44px; }
  h1 { font-size: 2.6rem; }
}
@media (min-width: 1280px) {
  .header-inner, article { max-width: 1200px; }
}

/* mobile table -> stacked cards */
@media (max-width: 767px) {
  .table-wrap { overflow-x: visible; border: none; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  tbody tr {
    display: block;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
  }
  td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
    border-bottom: 1px solid var(--line);
  }
  tbody tr:nth-child(even) { background: var(--white); }
  td:last-child { border-bottom: none; }
  td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--primary);
    text-align: left;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a, .cta-button, .header-cta { transition: background-color 0.15s ease, color 0.15s ease; }
}

/* related-cards (관련 페이지 카드 그리드) */
.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; }
}
