/* ==========================================================================
   남양주교습소철거 — split-hero + card-stack layout
   Base tone: deep green / Accent: terracotta-amber
   ========================================================================== */

:root {
  --green-900: #123c30;
  --green-700: #1d6b52;
  --green-600: #24805f;
  --green-100: #e7f2ec;
  --accent-600: #c1622f;
  --accent-500: #d9793f;
  --accent-100: #fbe6d4;
  --paper: #faf7f1;
  --card: #ffffff;
  --ink: #24302a;
  --ink-soft: #5b6b62;
  --line: #e7e1d6;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 10px 30px -12px rgba(18, 60, 48, 0.22);
  --shadow-sm: 0 4px 14px -6px rgba(18, 60, 48, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- header ---------- */

.site-header {
  background: var(--green-900);
  color: #fff;
}

.header-bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: #fff;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ---------- split hero ---------- */

.split-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 560px;
  background: var(--green-900);
  position: relative;
}

.split-media {
  position: relative;
  overflow: hidden;
}

.split-media .media-main img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}

.split-media .media-main {
  height: 100%;
}

.split-media .media-sub {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 42%;
  max-width: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 5px solid var(--accent-500);
  box-shadow: var(--shadow);
}

.split-media .media-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-text {
  padding: 64px 56px 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 100%);
}

.split-text .eyebrow {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-100);
  background: rgba(217, 121, 63, 0.22);
  border: 1px solid rgba(217, 121, 63, 0.5);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}

.split-text h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.split-text .lede {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 32px;
  max-width: 46ch;
}

.split-text .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 48px;
  padding: 0 28px;
  background: var(--accent-500);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.15s ease;
}

.split-text .btn:hover,
.split-text .btn:focus-visible {
  background: var(--accent-600);
  transform: translateY(-1px);
}

/* ---------- content wrap & cards ---------- */

.wrap {
  max-width: 900px;
  margin: -40px auto 0;
  padding: 0 20px 80px;
  position: relative;
  z-index: 2;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  margin-bottom: 28px;
}

.card:first-child {
  margin-top: 0;
}

.card h2 {
  font-size: 1.4rem;
  margin: 0 0 16px;
  color: var(--green-900);
  font-weight: 800;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 18px;
}

.card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: 3px;
  background: var(--accent-500);
}

.card p {
  margin: 0 0 14px;
  color: var(--ink);
}

.card p:last-child { margin-bottom: 0; }

.card ul,
.card ol {
  margin: 0;
  padding-left: 1.3em;
}

.card ul li,
.card ol li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.card ul li:last-child,
.card ol li:last-child { margin-bottom: 0; }

.card ol li::marker {
  color: var(--accent-600);
  font-weight: 700;
}

.card ul li::marker {
  color: var(--green-600);
}

/* ---------- table ---------- */

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

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

thead th {
  background: var(--green-700);
  color: #fff;
  text-align: left;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 16px;
}

tbody td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  vertical-align: top;
}

tbody tr:nth-child(even) {
  background: var(--green-100);
}

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

/* ---------- gallery ---------- */

.gallery-card {
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.gallery picture {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--accent-100);
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* ---------- FAQ ---------- */

.faq-card h3 {
  font-size: 1.02rem;
  color: var(--green-900);
  margin: 26px 0 8px;
  padding: 10px 14px;
  background: var(--accent-100);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-600);
}

.faq-card h3:first-of-type {
  margin-top: 6px;
}

.faq-card p {
  padding: 0 4px;
  color: var(--ink-soft);
}

/* ---------- related pages ---------- */

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
}

.related-item:hover,
.related-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.related-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.related-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--green-900);
  padding: 12px 14px 2px;
}

.related-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 0 14px 14px;
}

/* ---------- footer ---------- */

footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.78);
  padding: 26px 20px;
  font-size: 0.82rem;
  text-align: center;
}

footer address {
  font-style: normal;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

footer a {
  color: var(--accent-100);
  text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .split-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split-media {
    min-height: 260px;
  }

  .split-media .media-main img {
    min-height: 260px;
  }

  .split-media .media-sub {
    width: 38%;
    max-width: 180px;
    right: 12px;
    bottom: -14px;
  }

  .split-text {
    padding: 44px 24px 40px;
  }

  .split-text .lede {
    max-width: none;
  }

  .wrap {
    margin-top: -28px;
    padding: 0 14px 60px;
  }

  .card {
    padding: 26px 22px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .header-bar {
    padding: 12px 16px;
  }

  .site-nav a {
    font-size: 0.84rem;
    padding: 8px 10px;
  }

  .split-media .media-sub {
    display: none;
  }

  .split-text {
    padding: 36px 18px 34px;
  }

  .split-text h1 {
    font-size: 1.7rem;
  }

  .split-text .btn {
    width: 100%;
  }

  .card {
    padding: 22px 16px;
    border-radius: var(--radius-md);
  }

  .card h2 {
    font-size: 1.2rem;
  }

  table {
    min-width: 480px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 200px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
