/* ============================================================
   solution.css
   /solutions/*.html 12개 페이지 전용 컴포넌트
   - 카테고리 sub-nav (Digital Twin / GIS Engineering / AI 솔루션 형제 이동)
   - solution-pager (이전/다음 솔루션)
   - tagline-section (인용구 + 본문)
   - spec-section (Pattern A: 목적/기대효과/특징)
   - system-card + shot-grid (이미지 + 단계 라벨)
   - feature-section (Pattern C: 5개 기능 항목)
   - benefits-section (SI-DTV: 도입 효과 pill)
   - dtv-split (SI-DTV: 이미지 + phase 카드)
   ============================================================ */

/* ===== Category sub-nav ===== */
.cat-subnav {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 24px;
}

.cat-subnav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  background: #f3f6ec;
  border: 1px solid rgba(16, 62, 48, .08);
  border-radius: 14px;
}

.cat-subnav-label {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--brand-dark);
  text-transform: uppercase;
  padding-right: 16px;
  border-right: 1px solid rgba(16, 62, 48, .15);
}

.cat-subnav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.subnav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(16, 62, 48, .15);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.subnav-pill:hover, .subnav-pill:focus-visible {
  background: var(--brand-light);
  border-color: rgba(142, 184, 64, .55);
  color: var(--brand-dark);
  transform: translateY(-1px);
  outline: none;
}

.subnav-pill.is-current {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
  box-shadow: 0 4px 12px rgba(16, 62, 48, .25);
  cursor: default;
}

.subnav-pill.is-current:hover { transform: none; }

.subnav-pill-num {
  font-size: 11px;
  font-weight: 800;
  opacity: .55;
  font-family: "SBAggroM", "Noto Sans KR", sans-serif;
}

.subnav-pill.is-current .subnav-pill-num { opacity: .65; }

/* ===== Solution pager (prev/next) ===== */
.solution-pager {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.pager-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text-strong);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, background .25s ease;
  min-height: 80px;
}

.pager-card:hover:not([aria-disabled="true"]) {
  transform: translateY(-3px);
  border-color: rgba(142, 184, 64, .55);
  box-shadow: 0 10px 24px rgba(16, 62, 48, .1);
  background: #f8faf6;
}

.pager-card[aria-disabled="true"] {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}

.pager-card .pager-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-light);
  color: var(--brand-dark);
  transition: background .25s ease, color .25s ease;
}

.pager-card:hover:not([aria-disabled="true"]) .pager-arrow {
  background: var(--brand-dark);
  color: #fff;
}

.pager-arrow svg { width: 18px; height: 18px; }

.pager-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.pager-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pager-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: -0.3px;
}

.pager-prev { text-align: left; }
.pager-next { text-align: right; flex-direction: row-reverse; }
.pager-next .pager-text { align-items: flex-end; }

/* ===== Tagline section ===== */
.tagline-section {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 24px;
  text-align: center;
}

.tagline {
  display: inline-block;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: -0.4px;
  position: relative;
  padding: 0 12px;
}

.tagline::before, .tagline::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-accent);
  vertical-align: middle;
  margin: 0 14px 8px;
}

.tagline-body {
  max-width: 880px;
  margin: 18px auto 0;
  color: var(--text-soft);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.85;
  letter-spacing: -0.2px;
}

/* ===== Spec grid (Pattern A: 목적 / 기대효과 / 특징 및 기능) ===== */
.spec-section {
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 0 24px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.spec-card {
  background: #f8faf6;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px 30px;
  box-shadow: 0 4px 18px rgba(16, 62, 48, .04);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(16, 62, 48, .12);
  border-color: rgba(142, 184, 64, .35);
}

.spec-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-icon svg { width: 24px; height: 24px; }

.spec-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-dark);
  margin: 0;
  letter-spacing: -0.3px;
}

.spec-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.7;
}

.spec-card ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.spec-card ul li:last-child { margin-bottom: 0; }

.spec-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
}

/* ===== System card (banner + shots) ===== */
.system-card {
  max-width: 1200px;
  margin: 72px auto 0;
  padding: 0 24px;
}

.system-card-inner {
  position: relative;
  background: #f8faf6;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 32px 36px;
  box-shadow: 0 4px 18px rgba(16, 62, 48, .04);
}

.system-card-head {
  position: relative;
  margin: 0 0 26px;
  min-height: 72px;
}

.system-card-head h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  color: var(--brand-dark);
  margin: 0;
  letter-spacing: -0.4px;
  padding-top: 18px;
}

.system-card-head h2::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: var(--brand-accent);
  border-radius: 2px;
  margin-bottom: 12px;
}

.system-banner {
  position: absolute;
  top: -6px;
  right: 0;
  max-width: 320px;
  width: 38%;
  min-width: 220px;
  pointer-events: none;
}

.system-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.shot {
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  transition: transform .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.shot:hover { transform: translateY(-4px); }

.shot img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
}

/* Phase variant: 2x2 grid with labels under each image */
.shot-grid.shot-grid-phase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.shot-grid-phase .shot-cell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shot-grid-phase .shot { width: 100%; }

.shot-grid-phase .phase-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--brand-dark);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-align: center;
}

/* ===== SI-DTV: image left + 4 phase cards stacked right ===== */
.dtv-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.dtv-split-img {
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dtv-split-img img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  display: block;
}

.dtv-split-phases {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 14px;
}

.phase-text-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: var(--brand-light);
  color: var(--brand-dark);
  border: 1px solid rgba(16, 62, 48, .12);
  border-radius: 12px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.phase-text-card:hover {
  background: #dde8c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 62, 48, .12);
}

.phase-text-card h3 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.35;
  text-align: center;
}

/* ===== Feature section (Pattern C: 5 feature blocks) ===== */
.feature-section {
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 0 24px;
}

.feature-section-head { margin-bottom: 24px; }

.feature-section-head h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  color: var(--brand-dark);
  margin: 0;
  letter-spacing: -0.4px;
  padding-top: 18px;
}

.feature-section-head h2::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: var(--brand-accent);
  border-radius: 2px;
  margin-bottom: 12px;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-item {
  display: grid;
  grid-template-columns: 60px 220px minmax(0, 1fr) 180px;
  gap: 22px;
  align-items: center;
  padding: 22px 26px;
  background: #f8faf6;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16, 62, 48, .08);
  border-color: rgba(142, 184, 64, .35);
}

.feature-num {
  font-family: "SBAggroM", "Noto Sans KR", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-accent);
  letter-spacing: -0.4px;
  line-height: 1;
}

.feature-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-dark);
  margin: 0;
  letter-spacing: -0.3px;
}

.feature-desc {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0;
  letter-spacing: -0.2px;
  line-height: 1.65;
}

.feature-tag {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  border: 1px solid rgba(16, 62, 48, .12);
  white-space: nowrap;
  justify-self: end;
}

/* ===== Benefits row (SI-DTV bottom pills) ===== */
.benefits-section {
  max-width: 1200px;
  margin: 36px auto 0;
  padding: 0 24px;
}

.benefit-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.benefit-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 20px;
  background: linear-gradient(135deg, #103E30 0%, #1c5a45 100%);
  color: #fff;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  min-height: 64px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .spec-grid { grid-template-columns: 1fr; gap: 20px; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .system-banner { max-width: 240px; width: 30%; min-width: 180px; }
  .benefit-pills { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .feature-item {
    grid-template-columns: 50px 1fr;
    row-gap: 6px;
  }
  .feature-item .feature-desc { grid-column: 2 / 3; }
  .feature-item .feature-tag { grid-column: 2 / 3; justify-self: start; }
  .dtv-split { grid-template-columns: 1fr; gap: 22px; }
  .dtv-split-phases { grid-template-rows: repeat(4, auto); }
}

@media (max-width: 760px) {
  .cat-subnav-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cat-subnav-label {
    border-right: none;
    border-bottom: 1px solid rgba(16, 62, 48, .15);
    padding: 0 0 10px;
  }
  .solution-pager { grid-template-columns: 1fr; }
  .pager-next { flex-direction: row; text-align: left; }
  .pager-next .pager-text { align-items: flex-start; }
}

@media (max-width: 720px) {
  .spec-card { padding: 22px 20px 24px; }
  .shot { padding: 10px; }
  .shot-grid { grid-template-columns: 1fr; }
  .shot-grid.shot-grid-phase { grid-template-columns: 1fr; gap: 18px; }
  .system-card-inner { padding: 24px 20px 28px; }
  .system-banner {
    position: static;
    max-width: 280px;
    width: 100%;
    margin: 0 auto 18px;
  }
  .system-card-head { min-height: auto; }
  .system-card-head h2 { padding-top: 0; text-align: center; }
  .system-card-head h2::before { margin-left: auto; margin-right: auto; }
}

@media (max-width: 540px) {
  .benefit-pills { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .spec-card, .feature-item, .pager-card, .phase-text-card, .shot { transition: none !important; }
}
