/* 사업분야 페이지 전용 - MetaSpatium */

/* 통계 섹션 */
.service-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.service-stat-card {
  background: rgba(5, 10, 20, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.service-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-accent1);
  margin-bottom: 0.25rem;
}

.service-stat-label {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* 사업분야 카드 (상세) */
.service-business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-business-card {
  background: rgba(13, 27, 42, 0.8);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-accent1);
  padding: 2rem;
  transition: all var(--transition-base);
}

.service-business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 109, 170, 0.2);
}

.service-business-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(0, 109, 170, 0.2);
  color: var(--color-accent1);
}

.service-business-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.service-business-card .card-desc {
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.service-business-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.service-business-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.service-business-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--color-accent1);
  border-radius: 50%;
}

.service-business-feature {
  background: rgba(0, 109, 170, 0.1);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.service-business-feature h4 {
  font-size: 0.9rem;
  color: var(--color-accent1);
  margin-bottom: 0.5rem;
}

.service-business-feature ul {
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.service-business-feature li::before {
  content: '• ';
  color: var(--color-accent1);
}

.service-business-card .btn {
  width: 100%;
  justify-content: center;
}

/* 프로젝트 프로세스 */
.service-process {
  background: var(--color-bg-mid);
  padding: var(--section-padding) 0;
}

.service-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.service-process-step {
  text-align: center;
}

.service-process-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent1);
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.service-process-step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.service-process-step p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* CTA */
.service-cta {
  text-align: center;
  padding: 4rem 2rem;
}

.service-cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.service-cta-desc {
  color: var(--color-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.service-cta .btn {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* SI 상세 모달 */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem 4rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.service-modal.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.service-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 0;
}

.service-modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  color: #1e293b;
}

/* 모달 내부: about-page/subpage의 section 스타일 덮어쓰기 */
.service-modal .service-modal-body,
.service-modal .service-modal-content {
  background: #ffffff !important;
}

.service-modal section {
  background: transparent !important;
  padding: 0 !important;
}

.service-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.service-modal-title {
  font-size: 1.35rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-modal-title i {
  color: #006daa;
}

.service-modal-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--transition-fast);
}

.service-modal-close:hover {
  color: #1e293b;
}

.service-modal-body {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
  background: #ffffff !important;
  color: #1e293b;
}

.service-modal-section {
  margin-bottom: 2rem;
  background: transparent !important;
}

.service-modal-section:last-of-type {
  margin-bottom: 1rem;
}

.service-modal-section h4 {
  font-size: 1.1rem;
  color: #1e293b !important;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-modal-section h4 i {
  color: #006daa;
}

.service-modal .service-modal-section > h4 {
  color: #1e293b !important;
}

.service-modal-overview {
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  border-radius: 8px;
  padding: 1.25rem;
}

.service-modal-overview p {
  color: #475569;
  line-height: 1.8;
  font-size: 0.95rem;
}

.service-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service-modal-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
}

.service-modal-card h5 {
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-modal-card h5 i {
  color: #006daa;
}

.service-modal-card ul {
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.7;
}

.service-modal-card li::before {
  content: '• ';
  color: #006daa;
}

.service-modal-process {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
}

.service-modal-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.service-modal-steps-5 {
  grid-template-columns: repeat(5, 1fr);
}

.service-modal-steps-6 {
  grid-template-columns: repeat(6, 1fr);
}

.service-modal-tech-4 {
  grid-template-columns: repeat(4, 1fr);
}

.service-modal-industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-modal-industry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1e293b;
}

.service-modal-industry i {
  color: #006daa;
}

.service-modal-step {
  text-align: center;
}

.service-modal-step .step-num {
  display: block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  background: #006daa;
  color: #ffffff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 auto 0.75rem;
}

.service-modal-step h5 {
  font-size: 0.95rem;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.service-modal-step p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
}

.service-modal-tech {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-modal-tech h5 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #006daa !important;
}

.service-modal-tech > div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tags span {
  padding: 0.25rem 0.6rem;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #0369a1;
}

.service-modal-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service-modal-case {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
}

.service-modal-case h5 {
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.service-modal-case p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.case-tags span {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 4px;
}

.service-modal-footer {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 1rem;
}

.btn-modal-close {
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-modal-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.btn-modal {
  width: 100%;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

@media (max-width: 767px) {
  .service-stats {
    grid-template-columns: 1fr;
  }

  .service-business-grid {
    grid-template-columns: 1fr;
  }

  .service-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-modal-grid {
    grid-template-columns: 1fr;
  }

  .service-modal-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-modal-tech {
    grid-template-columns: 1fr;
  }

  .service-modal-cases-grid {
    grid-template-columns: 1fr;
  }

  .service-modal-steps-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-modal-steps-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-modal-tech-4 {
    grid-template-columns: 1fr;
  }

  .service-modal-industries {
    grid-template-columns: repeat(2, 1fr);
  }
}
