/*
  services-page.css
  Services page. Hero, type, and cards come from the About and PEAKOps
  pages. This file only sets the two-up capability grid and the discipline row.
*/

.page-services main > section:not(.about-hero) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-offset) + 1.5rem);
  padding-bottom: 3rem;
}

.page-services main > section:not(.about-hero) > .wrap {
  align-self: center;
}

.page-services .about-hero .display {
  max-width: 11em;
  font-weight: 700;
}

.svc-grid,
.disc-grid {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.disc-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.svc-card,
.disc-card {
  gap: 1rem;
  min-height: 100%;
  padding: 1.75rem 2rem 2rem;
}

.svc-card {
  gap: 1.25rem;
  padding: 2.25rem;
}

.svc-card__head,
.disc-card__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.svc-card__head {
  justify-content: space-between;
}

.svc-card h3,
.disc-card h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
}

.svc-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.disc-card h3 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
}

.svc-card > p,
.disc-card > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.disc-card > p {
  font-size: 0.875rem;
  line-height: 1.5;
}

.svc-flag {
  flex: none;
  margin: 0.2rem 0 0;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.svc-outcome {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
}

.svc-outcome svg {
  flex: none;
  margin-top: 0.15rem;
  color: var(--accent-ink);
}

.svc-outcome strong {
  color: var(--text);
  font-weight: 700;
}

.disc-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  color: var(--accent-ink);
}

.disc-card__head {
  align-items: center;
}

@media (max-width: 980px) {
  .svc-grid,
  .disc-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 701px) and (max-width: 980px) {
  .disc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
