/* Services page. */

/* One block per service; odd blocks have text left, even blocks have the image left. */
.service-block {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-block: 90px;
  scroll-margin-top: 24px;
}

.service-block__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.service-block__num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.5px;
  color: var(--brand-orange);
}

.service-block__title {
  max-width: 460px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-ink);
}

.service-block__text {
  max-width: 500px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-slate);
}

.service-block .bullet-list {
  padding-top: 6px;
}

/* Each block sets --img-w and --img-ratio inline to match its Figma image frame. */
.service-block__media {
  flex-shrink: 0;
  /* Dynamically-loaded services (from WordPress) don't set these custom
     properties, so they get a sensible default aspect ratio instead. */
  width: var(--img-w, 600px);
  aspect-ratio: var(--img-ratio, 3 / 2);
}

/* Shown instead of a photo when a service has no featured image set yet. */
.service-block__media--empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(114deg, #081a30 0%, #17385e 80%);
}

.service-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Supply chain ---------- */

.supply-chain {
  display: flex;
  flex-direction: column;
  gap: 48px;
  background: var(--brand-navy);
}

.supply-chain .section-title {
  color: var(--surface-white);
}

.supply-chain__note {
  max-width: 680px;
  font-size: 14px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1200px) {
  .service-block { gap: 48px; }
  .service-block__media { width: min(var(--img-w), 48%); }
}

@media (max-width: 1024px) {
  .service-block { flex-direction: column; align-items: stretch; gap: 32px; padding-block: 72px; }
  .service-block__media { order: -1; width: 100%; max-height: 420px; }
}

@media (max-width: 640px) {
  .service-block { padding-block: 56px; gap: 24px; }
  .service-block__title { font-size: 24px; }
  .service-block__media { max-height: 280px; }
  .supply-chain { gap: 36px; }
}
