/* ---------- 블루프린트 테마 : 화성바닥코팅전문 ---------- */
:root {
  --primary: #0D3B66;
  --accent: #FAA916;
  --ink: #17233A;
  --paper: #F4F6F9;
  --line: #C9D4E2;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Gothic A1', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: 'Gothic A1', 'Noto Sans KR', sans-serif;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.35;
}
a { color: inherit; }
.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;
}

/* ---------- 헤더 ---------- */
.site-header { background: var(--primary); border-bottom: 3px solid var(--accent); }
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.logo {
  font-family: 'Gothic A1', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #fff;
}
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--accent); }
#primary-nav {
  width: 100%;
  display: none;
  flex-direction: column;
  padding: 12px 0 4px;
}
#primary-nav.is-open { display: flex; }
#primary-nav a {
  text-decoration: none;
  padding: 12px 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 900;
  border-top: 1px dashed rgba(255,255,255,0.25);
}

/* ---------- 히어로: 블루프린트 격자 ---------- */
.hero-blueprint {
  background-color: var(--primary);
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.10) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.10) 0 1px, transparent 1px 40px);
  border-bottom: 4px solid var(--accent);
  padding: 44px 20px 40px;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.eyebrow {
  font-family: 'Gothic A1', sans-serif;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 14px;
}
.hero-blueprint h1 { color: #fff; font-size: 1.75rem; margin: 0 0 16px; }
.hero-lede { color: #fff; font-size: 1rem; line-height: 1.8; margin: 0 0 28px; max-width: 640px; }
.hero-cta { display: flex; flex-direction: column; gap: 14px; }

/* ---------- 블루프린트 버튼 (모서리 눈금) ---------- */
.btn-blueprint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 26px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--primary);
  font-family: 'Gothic A1', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  margin: 10px;
}
.btn-blueprint::before,
.btn-blueprint::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
}
.btn-blueprint::before { top: -6px; left: -6px; border-right: none; border-bottom: none; }
.btn-blueprint::after { bottom: -6px; right: -6px; border-left: none; border-top: none; }
.btn-blueprint-ghost { background: transparent; color: #fff; }
.btn-blueprint-invert { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-blueprint-invert::before, .btn-blueprint-invert::after { border-color: var(--primary); }

/* ---------- 본문: 블루프린트 박스 ---------- */
.content-wrap { max-width: 900px; margin: 0 auto; padding: 40px 20px 8px; }
.blueprint-box {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px 22px;
  margin: 0 0 28px;
}
.blueprint-box::before,
.blueprint-box::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--primary);
}
.blueprint-box::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.blueprint-box::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.blueprint-box h2 { font-size: 1.3rem; margin: 0 0 16px; }
.blueprint-box p { margin: 0 0 14px; }
.blueprint-box p:last-child { margin-bottom: 0; }
.blueprint-box a { color: var(--primary); font-weight: 700; text-decoration: underline; }

/* ---------- 표 ---------- */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: 0.92rem; }
th { background: var(--primary); color: #fff; font-family: 'Gothic A1', sans-serif; font-weight: 900; }
td { background: var(--paper); }

/* 모바일: 가로 스크롤 대신 행을 카드형으로 쌓아 화면에 한번에 표시 */
@media (max-width: 639px) {
  .table-scroll { overflow-x: visible; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { margin-bottom: 12px; border: 1px solid var(--line); }
  tr:last-child { margin-bottom: 0; }
  td { border: none; border-bottom: 1px solid var(--line); padding-left: 46%; position: relative; min-height: 44px; display: flex; align-items: center; }
  tr td:last-child { border-bottom: none; }
  td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    width: 40%;
    font-weight: 900;
    font-family: 'Gothic A1', sans-serif;
    color: var(--primary);
  }
}

/* ---------- 아코디언 ---------- */
.accordion-item { border-bottom: 1px dashed var(--line); }
.accordion-item:last-child { border-bottom: none; }
.accordion-item h3 { margin: 0; font-size: 1rem; }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: 'Gothic A1', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--primary);
  padding: 16px 32px 16px 0;
  min-height: 44px;
  cursor: pointer;
  position: relative;
}
.accordion-trigger::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--accent);
}
.accordion-trigger[aria-expanded="true"]::after { content: "\2212"; }
.accordion-panel { padding: 0 0 16px; }
.accordion-panel p { margin: 0; }

/* ---------- CTA ---------- */
.cta-section {
  background: var(--accent);
  padding: 36px 20px;
  border-top: 4px solid var(--primary);
  border-bottom: 4px solid var(--primary);
}
.cta-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.cta-section h2 { color: var(--primary); font-size: 1.4rem; margin: 0 0 12px; }
.cta-section p { margin: 0 0 8px; color: var(--ink); }
.cta-section .hero-cta { justify-content: center; align-items: center; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--primary); color: #fff; padding: 32px 20px; }
.footer-nav {
  max-width: 1200px;
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-nav a:hover { text-decoration: underline; }
address {
  max-width: 1200px;
  margin: 0 auto 16px;
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.9;
  color: #fff;
  opacity: 0.9;
}
address a { color: var(--accent); text-decoration: underline; }
.site-footer p { max-width: 1200px; margin: 0 auto; font-size: 0.8rem; opacity: 0.75; }

/* ---------- 반응형 ---------- */
@media (min-width: 480px) {
  .hero-cta { flex-direction: row; }
  .cta-section .hero-cta { flex-direction: row; }
}
@media (min-width: 768px) {
  .hero-blueprint h1 { font-size: 2.1rem; }
  .hero-lede { font-size: 1.05rem; }
  .content-wrap { padding: 52px 32px 8px; }
  .blueprint-box { padding: 32px 36px; }
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  #primary-nav { display: flex !important; flex-direction: row; width: auto; padding: 0; gap: 24px; }
  #primary-nav a { border-top: none; min-height: auto; padding: 6px 2px; }
  .hero-blueprint { padding: 64px 32px 56px; }
  .hero-blueprint h1 { font-size: 2.4rem; }
  .blueprint-box h2 { font-size: 1.5rem; }
}
@media (min-width: 1280px) {
  .content-wrap { max-width: 960px; }
  .hero-inner, .cta-inner { max-width: 960px; }
}

/* 현장 사진 */
.site-photo-section { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
.site-photo-section h2 { color: var(--primary); margin: 0 0 18px; }
.site-photo-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.site-photo-grid picture { display: block; aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--line); }
.site-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .site-photo-grid { grid-template-columns: repeat(2, 1fr); } }
