/* 과천바닥왁스전문 — 정부청사 격자 패턴 모티프: 네이비 + 실버, 직선/격자 구조 */
:root {
  --navy: #16233D;
  --navy-dark: #0C1526;
  --navy-line: #2B3B5C;
  --silver: #B9C3D6;
  --silver-dark: #7C89A8;
  --accent: #7FA8D9;
  --paper: #F1F3F7;
  --card: #FFFFFF;
  --ink: #1A2130;
  --muted: #565F72;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; }
p { margin: 0 0 1em; }

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

h1, h2 {
  font-family: "Gothic A1", "Noto Sans KR", sans-serif;
  font-weight: 800;
  line-height: 1.35;
  color: var(--accent);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); color: #fff; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--navy); }

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-dark);
  border-bottom: 1px solid var(--silver-dark);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: "Gothic A1", "Noto Sans KR", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.01em;
}
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--navy-line);
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--silver);
}
#primary-nav {
  display: none;
  flex-direction: column;
  gap: .25rem;
}
#primary-nav.is-open { display: flex; }
#primary-nav a {
  display: block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 .5rem;
  color: #DCE2EE;
  text-decoration: none;
  border-top: 1px solid var(--navy-line);
}

/* ---------- grid/lattice decorations ---------- */
.grid-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--navy-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .35;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}

.grid-divider {
  height: 26px;
  background:
    repeating-linear-gradient(90deg, var(--silver-dark) 0 2px, transparent 2px 34px);
  opacity: .5;
}

/* ---------- hero ---------- */
.hero-section {
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}
.hero-inner { padding-top: 2.4rem; padding-bottom: 3rem; position: relative; }
.eyebrow {
  color: var(--accent);
  font-size: .82rem;
  letter-spacing: .08em;
  margin: 0 0 .5rem;
  text-transform: uppercase;
}
.hero-desc {
  color: #D5DAE6;
  max-width: 640px;
  font-size: 1.03rem;
}

/* ---------- square/lattice buttons ---------- */
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .9rem 2.1rem;
  font-family: "Gothic A1", "Noto Sans KR", sans-serif;
  font-weight: 800;
  font-size: .98rem;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity .15s ease;
}
.btn:hover { opacity: .85; }
.btn-primary { background: var(--accent); color: var(--navy-dark); }
.btn-ghost { background: transparent; color: var(--silver); border: 1px solid var(--silver-dark); }

/* ---------- content ---------- */
.content-section { background: var(--paper); }
.content-section h2 {
  position: relative;
  padding-left: 1.15rem;
  border-left: 4px solid var(--accent);
}
.content-section p { color: var(--ink); }
.content-section a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--accent); }

.table-scroll { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--silver-dark); }
.table-scroll table { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--card); }
.table-scroll th, .table-scroll td { padding: .75em 1em; border-bottom: 1px solid #DDE2EC; border-right: 1px solid #DDE2EC; text-align: left; font-size: .95rem; }
.table-scroll th:last-child, .table-scroll td:last-child { border-right: none; }
.table-scroll thead th { background: var(--navy); color: #fff; font-weight: 700; }
.table-scroll tbody tr:last-child td { border-bottom: none; }

/* ---------- CTA ---------- */
.cta-section { background: var(--navy); }
.cta-section h2 { color: #fff; }
.cta-inner p { color: #D5DAE6; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #C3C9D8;
  padding: 1rem 1.25rem;
}
.site-footer address {
  max-width: 1080px;
  margin: 0 auto 1rem;
  font-style: normal;
  font-size: .85rem;
  line-height: 1.5;
  color: #9AA3BB;
}
.site-footer address a { color: var(--accent); text-decoration: none; }

.last-modified { font-size: .85rem; color: var(--muted); margin-top: 1.5rem; }

/* ---------- 관련 페이지 ---------- */
.related-section { background: #E5E8F0; }
.related-section p { color: var(--ink); }
.related-section a { color: var(--navy); text-decoration: underline; }
.related-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 1.4rem;
  background: var(--silver-dark);
  border: 1px solid var(--silver-dark);
}
.related-card {
  display: block;
  background: var(--card);
  padding: 1rem 1.2rem;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none !important;
  color: var(--navy) !important;
  transition: background .15s ease;
}
.related-card:hover { background: #EEF1F7; }

/* ---------- FAQ ---------- */
.faq-section { background: var(--paper); }
.faq-section .accordion { max-width: 780px; margin: 0 auto; }
.faq-section .accordion-item { border: 1px solid var(--silver-dark); border-left: 4px solid var(--accent); margin-bottom: .7rem; background: var(--card); }
.faq-section .accordion-item h3 { margin: 0; font-size: 1rem; }
.faq-section .accordion-trigger {
  width: 100%;
  text-align: left;
  min-height: 44px;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
}
.faq-section .accordion-trigger::after { content: '＋'; color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.faq-section .accordion-trigger[aria-expanded="true"]::after { content: '－'; }
.faq-section .accordion-panel { padding: 0 1.2em 1.1em; }
.faq-section .accordion-panel p { color: var(--muted); margin: 0; }

/* 현장 사진: 격자형 4분할 */
.site-photo-section { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }
.site-photo-section h2 { color: var(--navy); margin: 0 0 18px; }
.site-photo-grid { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--silver-dark); border: 1px solid var(--silver-dark); }
.site-photo-grid picture { display: block; aspect-ratio: 1/1; overflow: hidden; background: var(--card); }
.site-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .site-photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-photo-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- breakpoints ---------- */
@media (min-width: 480px) {
  .btn { padding: .9rem 2.3rem; }
}

@media (min-width: 768px) {
  .header-inner { padding: 16px 32px; }
  .menu-toggle { display: none; }
  #primary-nav {
    display: flex;
    flex-direction: row;
    gap: 1.75rem;
  }
  #primary-nav a {
    border-top: none;
    min-height: auto;
    line-height: normal;
    padding: 0;
  }
  .section-inner { padding: 4rem 2rem; }
  .hero-inner { padding-top: 3.4rem; padding-bottom: 4rem; }
  .related-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .section-inner { padding: 5rem 2rem; }
  .content-section .section-inner { max-width: 900px; }
}

@media (min-width: 1280px) {
  .header-inner, .section-inner { max-width: 1280px; }
  .content-section .section-inner { max-width: 960px; margin: 0 auto; }
  .related-cards { grid-template-columns: repeat(6, 1fr); }
}
