/* 바닥코팅전문 서비스 안내 — 카탈로그 컨셉, 3열 카드 그리드 인덱스 페이지 */

:root {
  --primary: #1D3557;
  --accent: #E63946;
  --ink: #1c2733;
  --line: #dfe4ea;
  --paper: #f6f7f9;
  --radius-card: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif;
  font-display: swap;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.table-scroll { overflow-x: auto; }
.section-inner { max-width: 1280px; margin: 0 auto; }

/* ---------- 헤더: 단순 상단 바 ---------- */
.site-header {
  border-bottom: 3px solid var(--primary);
  background: #fff;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.menu-toggle {
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--primary); }

#primary-nav {
  display: none;
  flex-direction: column;
  width: 100%;
}
#primary-nav.is-open { display: flex; }
#primary-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 12px 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
#primary-nav a:hover { color: var(--accent); }

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  #primary-nav {
    display: flex;
    flex-direction: row;
    width: auto;
    gap: 4px;
  }
  #primary-nav a { border-top: none; padding: 10px 12px; }
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c92c38; }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--paper); }

/* ---------- 인트로 ---------- */
.intro-section {
  padding: 40px 20px 32px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.catalog-label {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin: 0 0 10px;
}
.intro-section h1 {
  font-size: clamp(1.6rem, 4.4vw, 2.3rem);
  color: var(--primary);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.intro-section p { max-width: 68em; margin: 0 0 14px; color: #33404d; }
.intro-section p:last-child { margin-bottom: 0; }

/* ---------- 카드 그리드 ---------- */
.catalog-section, .guide-section, .expansion-section { padding: 44px 20px; }
.catalog-section h2, .guide-section h2, .expansion-section h2 {
  color: var(--primary);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 0 0 22px;
  letter-spacing: -0.02em;
  border-left: 5px solid var(--accent);
  padding-left: 12px;
}

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.cat-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.cat-card:hover { box-shadow: 0 10px 24px rgba(29, 53, 87, 0.14); transform: translateY(-2px); }
.cat-card picture { border-bottom: 1px solid var(--line); }
.cat-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.cat-card-body h3 {
  color: var(--primary);
  font-size: 1.12rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.cat-card-body p { margin: 0 0 16px; color: #33404d; font-size: 0.96rem; flex: 1; }
.cat-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  align-self: flex-start;
  padding: 0 4px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.94rem;
}
.cat-more::after { content: "→"; }
.cat-more:hover { text-decoration: underline; }

/* ---------- 소재 선택 가이드 표 ---------- */
.guide-section { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide-section > .section-inner > p { max-width: 68em; margin: 0 0 20px; color: #33404d; }
table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
thead th {
  background: var(--primary);
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-size: 0.95rem;
}
tbody td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
tbody tr:nth-child(even) { background: var(--paper); }

/* ---------- 준비 중인 세부 서비스 ---------- */
.expansion-section > .section-inner > p { max-width: 68em; margin: 0 0 20px; color: #5b6a78; }
.cat-card.is-disabled {
  background: var(--paper);
  border: 1px dashed var(--line);
  color: #8b95a1;
}
.cat-card.is-disabled:hover { box-shadow: none; transform: none; }
.cat-card.is-disabled .cat-card-body { padding: 22px 20px; }
.cat-card.is-disabled h3 { color: #8b95a1; margin: 0; }
.soon-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e9ecf1;
  color: #6b7684;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 48px 20px 56px;
  background: var(--primary);
  color: #fff;
}
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 0 0 12px; }
.cta-inner p { margin: 0 0 24px; color: #c7d1de; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-inner .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.cta-inner .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ---------- 푸터 ---------- */
.site-footer {
  background: #12233b;
  color: #c7d1de;
  padding: 40px 20px 28px;
}
.footer-nav {
  max-width: 1280px;
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.footer-nav a {
  color: #c7d1de;
  text-decoration: none;
  font-size: 0.92rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-nav a:hover { color: var(--accent); }
.site-footer address {
  max-width: 1280px;
  margin: 0 auto 16px;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.9;
  color: #93a1b2;
}
.site-footer address a { color: #fff; text-decoration: none; }
.site-footer p { max-width: 1280px; margin: 0 auto; font-size: 0.85rem; color: #6b7c90; }

/* ---------- 반응형 여백 ---------- */
@media (min-width: 480px) {
  .intro-section { padding-top: 48px; }
}
@media (min-width: 1280px) {
  .intro-section, .catalog-section, .guide-section, .expansion-section, .cta-section {
    padding-left: 40px;
    padding-right: 40px;
  }
}
