/* ======================
   Service Pages — Shared Styles
   Used by advisory-services.html and implementation-services.html
   ====================== */

/* --- Hero extensions --- */

.page-hero .sp-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bright-cyan);
  background: rgba(0, 168, 232, 0.1);
  border: 1px solid rgba(0, 168, 232, 0.25);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: var(--space-sm);
}

.page-hero .sp-hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* --- Lifecycle section --- */

.sp-lifecycle-section {
  background: var(--off-white);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}

.sp-lifecycle-heading {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cool-gray);
  margin-bottom: var(--space-xl);
}

.sp-lifecycle-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  padding: 4px 0 8px;
}

.sp-lifecycle-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 110px;
  min-width: 60px;
}

.sp-step-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--deep-navy);
  border: 2px solid var(--bright-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bright-cyan);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.sp-step-circle svg {
  width: 20px;
  height: 20px;
}

.sp-step-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  text-align: center;
  line-height: 1.3;
}

.sp-step-connector {
  height: 2px;
  flex: 1;
  max-width: 36px;
  background: linear-gradient(90deg, rgba(0, 168, 232, 0.45), rgba(74, 123, 167, 0.25));
  margin-top: 25px;
  flex-shrink: 0;
}

/* --- Services section --- */

.sp-services-section {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.sp-services-heading {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: var(--space-md);
  text-align: center;
}

.sp-services-intro {
  font-size: 1.125rem;
  color: var(--cool-gray);
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
  line-height: 1.7;
}

/* Phase groups */

.sp-phase-group {
  margin-bottom: var(--space-2xl);
}

.sp-phase-group:last-child {
  margin-bottom: 0;
}

.sp-phase-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.sp-phase-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--light-gray);
}

.sp-phase-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--bright-cyan);
  background: rgba(0, 168, 232, 0.07);
  border: 1px solid rgba(0, 168, 232, 0.2);
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

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

/* --- Service card --- */

.sp-service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  border-left: 4px solid var(--bright-cyan);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.sp-service-card::before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 80px;
  height: 80px;
  background: var(--bright-cyan);
  opacity: 0.03;
  border-radius: 50%;
  transition: all var(--transition-slow);
}

.sp-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--bright-cyan);
}

.sp-service-card:hover::before {
  transform: scale(2);
  opacity: 0.05;
}

.sp-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.sp-card-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--bright-cyan);
  margin-top: 2px;
}

.sp-card-icon svg {
  width: 28px;
  height: 28px;
}

.sp-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-navy);
  line-height: 1.3;
}

.sp-card-desc {
  font-size: 0.9375rem;
  color: var(--cool-gray);
  line-height: 1.65;
  flex-grow: 1;
}

.sp-outputs {
  border-top: 1px solid var(--light-gray);
  padding-top: 12px;
}

.sp-outputs-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #94A3B8;
  margin-bottom: 8px;
}

.sp-outputs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sp-outputs-list li {
  font-size: 0.8125rem;
  color: var(--cool-gray);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.sp-outputs-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bright-cyan);
  flex-shrink: 0;
  margin-top: 5px;
}

/* --- Credibility section --- */

.sp-credibility-section {
  background: var(--off-white);
  padding: var(--space-2xl) 0 var(--space-3xl);
  border-top: 1px solid var(--light-gray);
}

.sp-credibility-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.sp-credibility-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: var(--space-md);
}

.sp-credibility-text {
  font-size: 1.0625rem;
  color: var(--cool-gray);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.sp-capability-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
  max-width: 960px;
  margin: 0 auto;
}

.sp-capability-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  padding: var(--space-lg) var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: all var(--transition-base);
}

.sp-capability-item:hover {
  border-color: var(--bright-cyan);
  box-shadow: 0 4px 12px rgba(0, 168, 232, 0.1);
  transform: translateY(-2px);
}

.sp-capability-icon {
  color: var(--deep-navy);
}

.sp-capability-icon svg {
  width: 28px;
  height: 28px;
}

.sp-capability-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

/* ======================
   Responsive — Tablet
   ====================== */

@media (max-width: 1024px) {
  .sp-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sp-capability-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ======================
   Responsive — Mobile
   ====================== */

@media (max-width: 768px) {
  .sp-lifecycle-flow {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    overflow-x: unset;
  }

  .sp-step-connector {
    display: none;
  }

  .sp-lifecycle-step {
    width: calc(33.333% - 12px);
    flex: none;
    max-width: none;
    min-width: 70px;
  }

  .sp-cards-grid {
    grid-template-columns: 1fr;
  }

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

  .sp-services-heading {
    font-size: 1.75rem;
  }

  .sp-credibility-heading {
    font-size: 1.75rem;
  }

  .sp-services-intro {
    font-size: 1rem;
  }

  .page-hero .sp-hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .page-hero .sp-hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .sp-phase-group {
    margin-bottom: var(--space-xl);
  }
}
