/* 서비스상세 키워드 페이지 20개 공용 베이스 — 리셋 + 헤더 4종 + 사진 2장 배열 + 표준 푸터 */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: #1a1a1a; background: #fff; line-height: 1.7; }
img, video { max-width: 100%; height: auto; }
a { color: inherit; }
.kw-container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* 헤더 4종 — 상호명 텍스트 미노출, 아이콘 로고만 */
.kw-nav { position: sticky; top: 0; z-index: 40; background: #fff; }
.kw-nav-inner { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
.kw-nav-logo { color: #2f5744; flex-shrink: 0; display: flex; }
.kw-nav-links { display: flex; gap: 20px; margin-left: auto; }
.kw-nav-links a { text-decoration: none; font-size: 0.92rem; }
.kw-nav-cta { text-decoration: none; padding: 8px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 700; white-space: nowrap; }

.kw-nav-center .kw-nav-inner { justify-content: center; position: relative; }
.kw-nav-center .kw-nav-logo { position: absolute; left: 50%; transform: translateX(-50%); }
.kw-nav-center .kw-nav-links { margin: 0 auto 0 0; }

.kw-nav-bordered { border-bottom: 3px solid currentColor; }

.kw-nav-overlay { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.kw-nav-overlay .kw-nav-links a, .kw-nav-overlay .kw-nav-cta { color: inherit; }

.kw-nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 32px; height: 32px; background: none; border: 0; cursor: pointer; margin-left: auto; }
.kw-nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; }

@media (max-width: 760px) {
  .kw-nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; padding: 16px 20px; display: none; margin: 0; gap: 14px; }
  .kw-nav-links.kw-open { display: flex; }
  .kw-nav-toggle { display: flex; }
  .kw-nav-cta { order: -1; margin-left: 12px; }
}

/* 사진 2장 가운데 배열 */
.photo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 880px; margin: 48px auto; }
.photo-row img { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 4/3; border-radius: 4px; }
.photo-row figcaption { grid-column: 1 / -1; font-size: 0.85rem; color: #666; text-align: center; margin-top: 4px; }
@media (max-width: 768px) { .photo-row { grid-template-columns: 1fr; gap: 12px; max-width: 520px; } }

/* CTA 버튼 공통 */
.btn { display: inline-block; text-decoration: none; padding: 14px 28px; font-weight: 700; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* 표준 푸터 */
.site-footer { background: #1c1c1c; color: #c9c9c9; padding: 40px 0; margin-top: 0; }
.site-footer .footer-inner { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.site-footer .brand { color: #fff; font-weight: 700; margin: 0 0 12px; }
.site-footer .biz-info { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 12px; font-size: 0.85rem; }
.site-footer .biz-info div { display: flex; gap: 6px; }
.site-footer .biz-info dt { color: #8a8a8a; margin: 0; }
.site-footer .biz-info dd { margin: 0; }
.site-footer .biz-info a { color: #c9c9c9; }
.site-footer .copyright { font-size: 0.8rem; color: #777; margin: 0; }

details > summary { cursor: pointer; }

/* 3차 확장 클러스터(19개) 전용 — 현장사진 4장 그리드 + 관련페이지 7카드 그리드 */
.field-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 960px; margin: 40px auto; }
.field-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 4px; }
.field-gallery figcaption { grid-column: 1 / -1; font-size: 0.85rem; color: #666; text-align: center; margin-top: 4px; }
@media (max-width: 900px) { .field-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .field-gallery { grid-template-columns: 1fr; max-width: 420px; } }

.kw-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 8px; }
.kw-related-grid a { display: block; border: 1px solid #e5e5e5; border-radius: 8px; padding: 16px 18px; text-decoration: none; color: inherit; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.kw-related-grid a:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); transform: translateY(-3px); }
.kw-related-grid strong { display: block; font-size: 0.98rem; margin-bottom: 6px; }
.kw-related-grid span { display: block; font-size: 0.85rem; color: #666; line-height: 1.5; }
@media (max-width: 900px) { .kw-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kw-related-grid { grid-template-columns: 1fr; } }
