/* 교습소철거폐기물처리 — 에코 그린 concept, page-scoped styles only */

@font-face {
  font-family: "NanumSquareNeo";
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/moonspam/NanumSquareNeo@1.0/NanumSquareNeoTTF-bRg.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/gh/moonspam/NanumSquareNeo@1.0/NanumSquareNeoTTF-bRg.woff") format("woff");
}
@font-face {
  font-family: "NanumSquareNeo";
  font-weight: 700;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/moonspam/NanumSquareNeo@1.0/NanumSquareNeoTTF-cBd.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/gh/moonspam/NanumSquareNeo@1.0/NanumSquareNeoTTF-cBd.woff") format("woff");
}
@font-face {
  font-family: "NanumSquareNeo";
  font-weight: 800;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/moonspam/NanumSquareNeo@1.0/NanumSquareNeoTTF-dEb.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/gh/moonspam/NanumSquareNeo@1.0/NanumSquareNeoTTF-dEb.woff") format("woff");
}

:root {
  --primary: #1F4D36;
  --primary-dark: #143324;
  --accent: #B7D97B;
  --accent-dark: #8FB855;
  --bg: #FBFCF8;
  --bg-tint: #EEF5E4;
  --text: #1C2A22;
  --text-muted: #43594C;
  --border: #CFE0BE;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

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

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

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

a { color: var(--primary); }

h1, h2, h3 { color: var(--primary-dark); line-height: 1.35; }

.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(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-topbar {
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

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

.wordmark {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.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 10px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--bg-tint);
  color: var(--primary-dark);
  font-weight: 700;
}

/* Layout */
main { display: block; }

.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 20px;
}

.section-tint { background: var(--bg-tint); max-width: none; }
.section-tint > * { max-width: 1000px; margin-left: auto; margin-right: auto; }

.section h2 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 5px solid var(--accent-dark);
}

.section p { max-width: 760px; }
.section-tint p { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Hero */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 16px;
}

.hero .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 24px;
}

.hero-media picture {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(31, 77, 54, 0.14);
}

.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover { background: var(--primary-dark); }

/* Flow diagram */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding: 28px 16px;
  background: var(--bg-tint);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 110px;
}

.flow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--accent-dark);
}

.flow-label {
  font-weight: 800;
  color: var(--primary-dark);
}

.flow-arrow {
  color: var(--accent-dark);
  flex-shrink: 0;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 520px;
}

thead th {
  background: var(--primary);
  color: var(--white);
  text-align: left;
  padding: 14px 16px;
  font-size: 0.95rem;
}

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

tbody tr:nth-child(even) { background: var(--bg-tint); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

/* FAQ / Accordion */
.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item h3 { margin: 0; font-size: 1rem; }

.accordion-trigger {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  text-align: left;
  padding: 14px 4px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.accordion-icon { flex-shrink: 0; color: var(--accent-dark); transition: transform 0.2s ease; }

.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.accordion-panel > p {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  padding: 0 4px;
  color: var(--text-muted);
  max-width: none;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-item.is-open .accordion-panel > p {
  padding: 0 4px 18px;
}

/* CTA */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  max-width: none;
  color: var(--white);
  border-radius: 0;
}

.cta-section h2 { color: var(--white); border-left: none; padding-left: 0; }
.cta-section p { color: rgba(255,255,255,0.85); margin: 0 auto 24px; }
.cta-section .btn-primary { background: var(--accent); color: var(--primary-dark); }
.cta-section .btn-primary:hover { background: var(--accent-dark); color: var(--white); }

/* Footer */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 40px 20px;
}

footer nav {
  max-width: 1000px;
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

footer nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

footer nav a:hover { text-decoration: underline; }

footer address {
  max-width: 1000px;
  margin: 0 auto 16px;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
}

footer address a { color: var(--accent); }

footer p {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* Breakpoints */
@media (max-width: 1280px) {
  .hero { max-width: 1024px; }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

@media (max-width: 768px) {
  .main-nav ul { gap: 2px 4px; }
  .main-nav a { font-size: 0.85rem; padding: 4px 8px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .flow-diagram { gap: 4px; }
  .flow-step { width: 84px; }
  .flow-icon { width: 48px; height: 48px; }
  .flow-icon svg { width: 22px; height: 22px; }

  table, thead, tbody, tr, th, td { display: block; width: 100%; }
  table { min-width: 0; }
  thead { display: none; }
  tbody tr {
    border-top: 1px solid var(--border);
    padding: 12px 16px;
  }
  tbody tr:first-child { border-top: none; }
  tbody td {
    border-top: none;
    padding: 4px 0;
    display: flex;
    gap: 8px;
  }
  tbody td::before {
    content: attr(data-label);
    font-weight: 800;
    color: var(--primary);
    min-width: 96px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .section { padding: 40px 16px; }
  .hero { padding: 32px 16px; }
  .gallery { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .header-inner { padding: 12px 16px; }
}


/* 모바일 하단 고정 CTA 바 (전화/문의) — 번호 텍스트 미노출 */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: none;
  box-shadow: 0 -2px 12px rgba(0,0,0,.16);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (max-width: 767px) {
  .mobile-cta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  body { padding-bottom: 64px; }
}
.mobile-cta-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  background: #1F4D36;
}
.mobile-cta-bar .mobile-cta-contact {
  background: #1F4D36;
  filter: brightness(1.22);
  border-left: 1px solid rgba(255,255,255,.25);
}
