/* keyword-components.css — 20개 신규 키워드 페이지(service/{slug}/) 공용 컴포넌트.
   색상/폰트/히어로 변형은 각 페이지 :root 및 <style>에서 정의. base.css 다음에 로드. */

h1, h2, h3 { color: var(--heading, #111); }
a { color: var(--link, var(--accent, #2563eb)); }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 200; background: var(--header-bg, #fff); color: var(--header-text, #111); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.hdr-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.hdr-logo { font-family: var(--font-head); font-size: 1.15rem; color: inherit; text-decoration: none; font-weight: 800; }
.hdr-nav { display: flex; gap: 22px; }
.hdr-nav a { color: inherit; text-decoration: none; font-weight: 700; font-size: .92rem; }
.hdr-toggle { display: none; background: none; border: none; color: inherit; cursor: pointer; }
.mobile-menu { background: var(--header-bg, #fff); padding: 0 20px; }
.mobile-menu a { display: block; padding: 10px 0; color: inherit; text-decoration: none; border-top: 1px solid var(--border, #eee); }
@media (max-width: 860px) { .hdr-nav { display: none; } .hdr-toggle { display: block; } }

/* 히어로 변형 */
.hero-full { padding: 88px 20px 64px; text-align: center; background: var(--hero-bg, var(--accent)); color: var(--hero-text, #fff); position: relative; }
.hero-full h1, .hero-full p { color: var(--hero-text, #fff); }
.hero-full .kicker { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .08em; background: rgba(255,255,255,.18); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }

.hero-split { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 300px; }
.hero-split .hero-text { padding: 64px 40px; display: flex; flex-direction: column; justify-content: center; background: var(--hero-bg, var(--surface)); color: var(--hero-text, var(--heading)); }
.hero-split .hero-panel { background: var(--accent); }
@media (max-width: 768px) { .hero-split { grid-template-columns: 1fr; } .hero-split .hero-panel { height: 120px; } }

.hero-card { padding: 56px 20px 40px; background: var(--bg); }
.hero-card .hero-box { max-width: 720px; margin: 0 auto; background: var(--surface, #fff); border: 1px solid var(--border, #eee); border-radius: 20px; padding: 44px 34px; box-shadow: 0 20px 50px -32px rgba(0,0,0,.35); border-top: 6px solid var(--accent); }

.freshness { max-width: 880px; margin: 14px auto 0; padding: 0 20px; font-size: .84rem; color: var(--muted, #666); }

/* 현장사진 4장 그리드 */
.photo-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1080px; margin: 34px auto; padding: 0 20px; }
.photo-grid-4 img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
@media (max-width: 900px) { .photo-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .photo-grid-4 { grid-template-columns: 1fr; } }

/* 본문 블록 */
.blk { max-width: 880px; margin: 0 auto; padding: 40px 20px; }
.blk.wide { max-width: 1080px; }
.section-alt { background: var(--surface, #f7f7f7); }

/* 큰 숫자형 스탯 카드 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 22px 0; }
.stat-card { background: var(--surface, #fff); border: 1px solid var(--border, #eee); border-left: 4px solid var(--accent); border-radius: 12px; padding: 18px 20px; }
.stat-card .num { font-family: var(--font-head); font-size: 1.7rem; color: var(--accent); display: block; }
.stat-card .label { font-size: .85rem; color: var(--muted, #666); }

/* 타임라인 */
.timeline { list-style: none; padding: 0; margin: 22px 0; border-left: 3px solid var(--accent); }
.timeline li { position: relative; padding: 2px 0 20px 24px; }
.timeline li::before { content: ''; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); }
.timeline .t-label { font-weight: 800; color: var(--accent); }

/* 아코디언(정보/체크형) */
.info-accordion details { border: 1px solid var(--border, #eee); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; background: var(--surface, #fff); }
.info-accordion summary { cursor: pointer; font-weight: 800; color: var(--accent); list-style: none; }
.info-accordion summary::-webkit-details-marker { display: none; }

/* 원형 스텝 */
.circle-steps { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin: 26px 0; }
.circle-steps .circle { width: 120px; text-align: center; }
.circle-steps .circle .ring { width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-family: var(--font-head); font-size: 1.3rem; color: var(--accent); }

/* 체크리스트 아이콘 색상 */
.check-list svg { color: var(--accent); }

/* 관련페이지 카드 */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-top: 1rem; }
.related-card { display: flex; flex-direction: column; gap: .3rem; background: var(--surface, #fff); border: 1px solid var(--border, #eee); border-left: 4px solid var(--accent); border-radius: 10px; padding: 1rem 1.1rem; color: inherit; text-decoration: none; font-weight: 700; font-size: .92rem; transition: transform .15s ease, box-shadow .15s ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -14px rgba(0,0,0,.35); }
.related-card small { font-weight: 400; color: var(--muted, #666); }

/* CTA */
.cta { background: var(--surface, #f7f7f7); border-top: 1px solid var(--border, #eee); }
.btn-call { background: var(--accent); color: var(--on-accent, #fff); }
.btn-sms { background: transparent; color: var(--accent); border: 2px solid var(--accent); }

.site-footer { background: var(--footer-bg, #121212); color: var(--footer-text, #b9b9b9); border-top: 1px solid var(--border, #333); }
.site-footer a { color: var(--footer-link, inherit); }
