/* 의왕교습소철거 — 카탈로그 카드형, 유틸리티 바 헤더 */

:root {
  --ink: #24231f;
  --paper: #faf6ee;
  --paper-alt: #f1ead9;
  --line: #ddd2b8;
  --amber: #c8681f;
  --amber-deep: #9c4f16;
  --olive: #4b5a3a;
  --olive-deep: #333f26;
  --card-bg: #ffffff;
  --mono: 'Space Mono', 'Courier New', monospace;
  --sans: 'Gothic A1', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  word-break: keep-all;
}

a { color: var(--amber-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--sans); font-weight: 900; margin: 0 0 .5em; line-height: 1.3; }

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

/* ---------- utility header ---------- */
.util-header {
  background: var(--olive-deep);
  color: #f2ecd9;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--amber);
}

.util-bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.util-brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  color: #f2ecd9;
  display: flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: .02em;
  min-height: 44px;
  align-items: center;
}
.util-brand:hover { text-decoration: none; opacity: .85; }
.util-brand-sub {
  font-size: .62rem;
  color: #c9c1a4;
  border: 1px solid #5a6748;
  border-radius: 3px;
  padding: 2px 6px;
  letter-spacing: .04em;
}

.util-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.util-nav a {
  color: #e7e1cb;
  font-size: .82rem;
  padding: 10px 10px;
  border-radius: 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.util-nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }

.util-crumb {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6px 20px;
  font-family: var(--mono);
  font-size: .72rem;
  color: #b9c19f;
  display: flex;
  gap: 6px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.util-crumb a { color: #b9c19f; }
.util-crumb span[aria-current] { color: var(--amber); }

/* ---------- lead ---------- */
.lead {
  max-width: 880px;
  margin: 0 auto;
  padding: 44px 20px 20px;
}
.tag {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--amber-deep);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0 0 10px;
}
.lead h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--olive-deep);
}
.lead-answer {
  font-size: 1.05rem;
  color: #3c392f;
  max-width: 68ch;
}

/* ---------- catalog card grid ---------- */
.catalog {
  max-width: 1120px;
  margin: 20px auto 0;
  padding: 20px 20px 8px;
}
.catalog h2 {
  font-size: 1.4rem;
  color: var(--olive-deep);
}
.catalog-desc {
  margin: 0 0 22px;
  color: #4d4a3f;
  max-width: 70ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  border-radius: 6px;
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-icon {
  font-size: 1.6rem;
  line-height: 1;
  display: inline-block;
  margin-bottom: 2px;
}

.cat-card h3 {
  font-size: 1.02rem;
  color: var(--olive-deep);
  margin: 0;
}

.cat-card p {
  margin: 0;
  font-size: .88rem;
  color: #4d4a3f;
}

/* ---------- cost table ---------- */
.cost-section {
  max-width: 1120px;
  margin: 36px auto 0;
  padding: 0 20px;
}
.cost-section h2 {
  font-size: 1.4rem;
  color: var(--olive-deep);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card-bg);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 560px;
}
caption { caption-side: top; }
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--olive-deep);
  color: #f2ecd9;
  font-weight: 700;
  font-size: .85rem;
}
tbody tr:nth-child(even) { background: var(--paper-alt); }
tbody tr:last-child td { border-bottom: none; }

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

/* ---------- checklist ---------- */
.checklist-section {
  max-width: 880px;
  margin: 36px auto 0;
  padding: 0 20px;
}
.checklist-section h2 { font-size: 1.4rem; color: var(--olive-deep); }
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checklist li {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--olive);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: .93rem;
}

/* ---------- gallery ---------- */
.gallery-section {
  max-width: 1120px;
  margin: 36px auto 0;
  padding: 0 20px;
}
.gallery-section h2 { font-size: 1.4rem; color: var(--olive-deep); text-align: center; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  justify-items: center;
  align-items: start;
}
.gallery-grid picture {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
  background: var(--card-bg);
}
.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- faq ---------- */
.faq-section {
  max-width: 880px;
  margin: 40px auto 0;
  padding: 0 20px;
}
.faq-section h2 {
  font-size: 1.4rem;
  color: var(--olive-deep);
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq-item h3 {
  font-size: 1rem;
  color: var(--amber-deep);
  margin-bottom: 8px;
}
.faq-item p {
  margin: 0;
  font-size: .92rem;
  color: #3c392f;
}

/* ---------- cta ---------- */
.cta-section {
  max-width: 880px;
  margin: 40px auto 0;
  padding: 28px 24px;
  background: var(--olive-deep);
  color: #f2ecd9;
  border-radius: 8px;
  text-align: center;
}
.cta-section h2 { color: #f2ecd9; font-size: 1.3rem; }
.cta-section p { color: #d9d2b8; margin: 0 auto 18px; max-width: 60ch; }
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  background: var(--amber);
  color: #fff;
  font-weight: 700;
  border-radius: 5px;
  letter-spacing: .01em;
}
.cta-button:hover { background: var(--amber-deep); text-decoration: none; }

/* ---------- related ---------- */
.related-section {
  max-width: 1120px;
  margin: 36px auto 0;
  padding: 0 20px;
}
.related-section h2 {
  font-size: 1.3rem;
  color: var(--olive-deep);
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 16px;
  color: var(--ink);
  font-weight: 500;
  font-size: .92rem;
}
.related-card:hover {
  border-color: var(--amber);
  text-decoration: none;
  background: var(--paper-alt);
}
.related-arrow { color: var(--amber-deep); font-weight: 700; }

/* ---------- footer ---------- */
footer {
  margin-top: 48px;
  padding: 18px 20px 60px;
  background: var(--olive-deep);
  color: #cfc7ac;
  font-size: .78rem;
  text-align: center;
}
footer a { color: #f2ecd9; }

main { padding-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .util-bar { flex-wrap: wrap; }
  .util-nav { width: 100%; justify-content: flex-start; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .lead { padding-top: 28px; }
  .lead h1 { font-size: 1.6rem; }
  .util-brand-sub { display: none; }
  .cost-section, .checklist-section, .gallery-section, .faq-section, .related-section, .catalog { margin-top: 26px; }
  table { min-width: 480px; }
}
