/* Services archive (services.php) — typography + CTA width. Loads last on body.services-page only. */

body.services-page:not(.about-page) .midz-hero-section-subtitle,
body.services-page:not(.about-page) .midz-services-hero .midz-services-kicker {
  display: none !important;
}

body.services-page:not(.about-page) .midz-services-copy h1 {
  font-family: var(--font_arapey), "Arapey", Georgia, serif !important;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: #fff;
}

body.services-page:not(.about-page) .midz-services-heading h2 {
  font-family: var(--font_urbanist), "Urbanist", system-ui, sans-serif !important;
  font-size: clamp(16px, 1.15vw, 18px) !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  max-width: min(920px, 100%);
  margin: clamp(16px, 2vw, 24px) 0 0 !important;
}

body.services-page:not(.about-page) .midz-services-cta {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  padding: clamp(28px, 3.2vw, 38px) clamp(28px, 3vw, 36px) !important;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 32px);
}

body.services-page:not(.about-page) .midz-services-cta > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(720px, 68%);
}

body.services-page:not(.about-page) .midz-services-cta h3 {
  font-family: var(--font_urbanist), "Urbanist", system-ui, sans-serif !important;
  font-size: clamp(22px, 2.6vw, 32px) !important;
  line-height: 1.18 !important;
  font-weight: 500 !important;
  max-width: 620px !important;
  margin-top: 10px !important;
}

@media (max-width: 991px) {
  body.services-page:not(.about-page) .midz-services-cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  body.services-page:not(.about-page) .midz-services-cta > div:first-child {
    max-width: 100% !important;
  }

  body.services-page:not(.about-page) .midz-services-cta h3 {
    max-width: 100% !important;
  }
}

@media (max-width: 767px) {
  body.services-page:not(.about-page) .midz-services-copy h1 {
    font-size: 42px;
  }

  body.services-page:not(.about-page) .midz-services-heading h2 {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  body.services-page:not(.about-page) .midz-services-cta h3 {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }
}

/* Service cards — icon float (all devices) */
body.services-page:not(.about-page) .midz-service-card-media img {
  animation: upDownAnim 3s infinite linear !important;
}

body.services-page:not(.about-page) .midz-service-card:hover .midz-service-card-media img,
body.services-page:not(.about-page) .midz-service-card:focus-within .midz-service-card-media img {
  animation: upDownAnim 2s infinite linear !important;
}

@media (prefers-reduced-motion: reduce) {
  body.services-page:not(.about-page) .midz-service-card-media img {
    animation: none !important;
  }
}
