/*
  main.css — 공통 컴포넌트(히어로/배지/카드/단계/CTA). tokens.css, header-footer.css 다음에 로드.
*/

/* ===== 히어로 ===== */
.hero{ position: relative; overflow: hidden; color: var(--white); display: flex; align-items: center; min-height: 52vh; }
@media (min-width: 768px){ .hero{ min-height: 64vh; } }
@media (min-width: 1200px){ .hero{ min-height: 70vh; } }
.hero__media{ position: absolute; inset: 0; z-index: 0; }
.hero__media img{ width: 100%; height: 100%; object-fit: cover; }
.hero__scrim{ position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,23,42,.82) 0%, rgba(15,23,42,.62) 55%, rgba(15,23,42,.86) 100%); }
.hero__body{ position: relative; z-index: 2; width: 100%; padding-block: 84px 72px; }
@media (min-width: 768px){ .hero__body{ padding-block: 124px 104px; } }
.hero__badge{ display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.12); color: var(--white); font-weight: 700; font-size: 13px; letter-spacing: .04em; margin-bottom: 18px; }
.hero__badge .dot{ width: 8px; height: 8px; border-radius: 999px; background: var(--teal); flex: none; }
.hero h1{ color: var(--white); margin-bottom: 14px; }
.hero h2{ color: #E2E8F0; font-weight: 500; font-size: clamp(16px, 2.4vw, 20px); letter-spacing: -0.01em; margin-bottom: 28px; }
.hero__answer{ max-width: 640px; font-size: clamp(16px, 2.4vw, 19px); line-height: 1.7; color: #E2E8F0; margin-bottom: 24px; }
.hero__sub{ display: grid; gap: 8px; margin: 0 0 28px; max-width: 560px; color: #CBD5E1; font-size: 15.5px; }
.hero__sub li{ list-style: none; padding-left: 22px; position: relative; }
.hero__sub li::before{ content: ""; position: absolute; left: 0; top: 10px; width: 12px; height: 2px; background: var(--teal); }
.hero__cta{ display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn-ghost{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); color: var(--white); }
.hero__cta .btn-ghost:hover{ background: rgba(255,255,255,.18); }

/* ===== 요약 박스 (AI 빠른 추출용) ===== */
.overview-box{ background: var(--accent-soft); border: 1px solid #BAE6FD; border-radius: var(--r-lg); padding: 20px 22px; }
.overview-box h2{ font-size: 15px; color: var(--accent-deep); margin-bottom: 10px; }
.overview-box ul{ margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; line-height: 1.8; }

/* ===== 핵심요약 카드 ===== */
.summary-grid{ display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px){ .summary-grid{ grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1024px){ .summary-grid--4{ grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px){ .summary-grid--3{ grid-template-columns: repeat(3, 1fr); } }
.summary-card .num{ display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--white); font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.summary-card h3{ margin-bottom: 8px; }
.summary-card p{ font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ===== 전후사진 그리드 ===== */
.gallery-grid{ display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px){ .gallery-grid{ grid-template-columns: repeat(2, 1fr); } }
.gallery-set{ background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--sh-1); }

/* ===== 키워드 캐러셀 카드 (1:1) ===== */
.kw-grid{ display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px){ .kw-grid{ grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.kw-card{ display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.kw-card .thumb{ border-radius: var(--r-lg) var(--r-lg) 0 0; aspect-ratio: 1/1; }
.kw-card__body{ padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kw-card h3{ font-size: 16px; }
.kw-card p{ font-size: 13.5px; color: var(--ink-2); margin: 0; flex: 1; }
.kw-card .btn-secondary{ align-self: flex-start; margin-top: 4px; }

/* ===== 서비스/지역 카드 ===== */
.svc-grid, .region-grid{ display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px){ .svc-grid, .region-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .svc-grid, .region-grid{ grid-template-columns: repeat(4, 1fr); } }
.svc-card, .region-card{ display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: var(--ink); }
.svc-card .thumb, .region-card .thumb{ border-radius: var(--r-lg) var(--r-lg) 0 0; }
.svc-card__body, .region-card__body{ padding: 16px; }
.svc-card h3, .region-card h3{ font-size: 16px; margin-bottom: 6px; }
.svc-card p, .region-card p{ font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* ===== 진행 절차 ===== */
.steps{ display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px){ .steps{ grid-template-columns: repeat(4, 1fr); gap: 0; } }
.step{ position: relative; padding: 20px 0; }
@media (min-width: 768px){ .step{ padding: 24px 20px 0; border-top: 3px solid var(--teal); } .step + .step{ border-left: 1px solid var(--line); } }
.step__num{ display: block; font-weight: 800; font-size: 14px; letter-spacing: .08em; color: var(--accent); margin-bottom: 10px; }
.step h3{ margin-bottom: 8px; }
.step p{ font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ===== CTA 밴드 ===== */
.cta-band{ background: var(--teal-soft); }
.cta-band__inner{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2{ margin-bottom: 8px; }
.cta-band p{ margin: 0; color: var(--ink-2); }
.cta-band__actions{ display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ===== 링크 그리드 ===== */
.link-grid{ display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px){ .link-grid{ grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.link-card{ display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; text-decoration: none; color: var(--ink); }
.link-card span{ font-weight: 700; font-size: 16px; }
.link-card::after{ content: ""; flex: none; width: 9px; height: 9px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }

/* ===== 지역 탭/필터 ===== */
.region-filter{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.region-filter button{ padding: 10px 18px; border-radius: var(--r-chip); border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink-2); font-weight: 700; font-size: 14px; cursor: pointer; min-height: 44px; }
.region-filter button.is-active, .region-filter button:hover{ border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.section-head{ margin-bottom: 28px; max-width: 720px; }
.section-head .eyebrow{ margin-bottom: 10px; }
.section-head p{ color: var(--ink-2); margin: 8px 0 0; }
.section-foot{ margin-top: 28px; text-align: center; }
