/* The engineering services use the same approved imagery as their detail pages. */
.secondary-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.secondary-service {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #101a28;
  border: 1px solid #41516a70;
  color: #f5f8fc;
  transition: border-color 180ms ease;
}

.secondary-service-art {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #050d1a;
}

.secondary-service-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 450ms ease;
}

.secondary-service-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  padding: 28px 30px 30px;
}

.secondary-service-content h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(30px, 2.6vw, 36px);
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.secondary-service-content > p {
  max-width: 510px;
  margin: 17px 0 25px;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.65;
  color: #c0ccdc;
  text-wrap: pretty;
}

.secondary-service-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding-bottom: 5px;
  border-bottom: 1px solid #728398;
  font-size: 13px;
  font-weight: 700;
}

.secondary-service-cta > span {
  font-size: 20px;
  line-height: 1;
}

.secondary-service:hover,
.secondary-service:focus-visible {
  border-color: #a8d8fa;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .secondary-service:hover .secondary-service-art img {
    transform: scale(1.025);
  }
}

@media (max-width: 1000px) {
  .secondary-service-grid { gap: 22px; }
  .secondary-service-content { padding: 24px; }
  .secondary-service-content > p { font-size: 15px; }
}

@media (max-width: 680px) {
  .secondary-service-grid { grid-template-columns: 1fr; gap: 25px; }
  .secondary-service-content { padding: 25px 24px 27px; }
  .secondary-service-content h3 { font-size: 32px; }
  .secondary-service-content > p { margin-top: 15px; }
}

@media (max-width: 350px) {
  .secondary-service-content { padding-inline: 20px; }
  .secondary-service-content h3 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .secondary-service,
  .secondary-service-art img { transition: none; }
}
