/* Content sections: bands, services, plan callout, customer groups, steps. */

/* Bands */

.band {
  padding-block: var(--band);
}

.band--tint {
  background: var(--tint);
}

.band--brand {
  background: var(--brand);
  color: var(--on-brand);
}

.band__head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.band__head p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: var(--text-lead);
}

.band--brand .band__head p {
  color: var(--on-brand-muted);
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* Services */

.service {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.service__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tint);
}

.service__media img,
.sector img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service__body {
  flex: 1;
  padding: 1.5rem 1.5rem 1.75rem;
  border-top: 3px solid var(--accent);
}

.service__body p {
  margin-top: 0.625rem;
  color: var(--muted);
}

.callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border-radius: var(--radius-large);
  background: var(--brand);
  color: var(--on-brand);
}

.callout h3 {
  font-size: var(--h2);
  line-height: 1.15;
}

.callout__text p {
  margin-top: 1rem;
  color: var(--on-brand-muted);
}

.callout__text a {
  color: var(--highlight);
}

/* Sectors */

.sector {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 21rem;
  padding: 1.5rem;
  border-radius: var(--radius-large);
  background: var(--brand);
  color: var(--on-brand);
  overflow: hidden;
}

.sector__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.sector::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 92%, transparent) 30%, transparent 62%);
}

.sector p {
  margin-top: 0.5rem;
  color: var(--on-brand-muted);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 4.5rem;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 2px solid var(--highlight);
  border-radius: 50%;
  color: var(--highlight);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: var(--head-weight);
}

.step::after {
  content: "";
  position: absolute;
  top: 1.625rem;
  left: 4rem;
  right: calc(-1 * clamp(1.25rem, 2.5vw, 2.5rem) + 0.75rem);
  height: 2px;
  background: color-mix(in srgb, var(--highlight) 45%, transparent);
}

.step:last-child::after {
  display: none;
}

.step p {
  margin-top: 0.625rem;
  color: var(--on-brand-muted);
}

@media (hover: hover) {
  .service:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 0 1px var(--line), var(--shadow);
  }

  .service:hover img,
  .sector:hover img {
    transform: scale(1.05);
  }
}

@media (max-width: 62rem) {

  .callout {
    grid-template-columns: 1fr;
  }

  .step::after {
    display: none;
  }
}

@media (max-width: 36rem) {
  .grid--3,
  .steps {
    grid-template-columns: 1fr;
  }

  .sector {
    min-height: 20rem;
  }

  .sector::after {
    background: linear-gradient(0deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 92%, transparent) 46%, transparent 82%);
  }
}
