/*
 * SERVED PROS v3.4.3 — Pricing + Services above-the-fold refinements.
 * Only these two pages are targeted. All brand assets, cards, portal features,
 * and other templates remain unchanged from v3.4.2.
 */

/* Desktop: use the available horizontal width instead of stacking oversized
   headlines. Let the pricing options and core services become visible sooner. */
@media (min-width: 901px) {
  main.sp-pricing-page .inner-hero-content,
  body.page-services .inner-hero-content {
    padding-top: 17px !important;
    padding-bottom: 17px !important;
  }
  main.sp-pricing-page .inner-hero h1,
  body.page-services .inner-hero h1 {
    max-width: 1150px !important;
    font-size: clamp(30px, 3.15vw, 44px) !important;
    line-height: 1.13 !important;
    letter-spacing: -.052em !important;
    margin: 7px 0 7px !important;
    text-wrap: balance;
  }
  main.sp-pricing-page .inner-hero h1 br,
  body.page-services .inner-hero h1 br {
    display: none !important;
  }
  main.sp-pricing-page .inner-hero h1 em::before,
  body.page-services .inner-hero h1 em::before {
    content: " ";
    white-space: pre;
  }
  main.sp-pricing-page .inner-hero p,
  body.page-services .inner-hero p {
    max-width: 970px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 6px 0 0 !important;
  }
  main.sp-pricing-page .sp-service-section {
    padding-top: 15px !important;
  }
  main.sp-pricing-page .sp-service-heading {
    margin-bottom: 14px !important;
  }
  main.sp-pricing-page .sp-service-heading .section-title {
    margin: 7px 0 10px !important;
    font-size: clamp(30px, 3vw, 42px) !important;
    line-height: 1.1 !important;
  }
  body.page-services main > .inner-hero + .section {
    padding-top: 18px !important;
  }
  body.page-services main > .inner-hero + .section .section-intro.two-col-intro {
    display: grid !important;
    grid-template-columns: minmax(0, 2.5fr) minmax(210px, 1fr) !important;
    align-items: end !important;
    gap: 24px !important;
    margin-bottom: 14px !important;
  }
  body.page-services main > .inner-hero + .section .section-intro.two-col-intro h2.section-title {
    font-size: clamp(29px, 3.0vw, 42px) !important;
    line-height: 1.14 !important;
    margin: 6px 0 0 !important;
    max-width: 900px !important;
  }
  body.page-services main > .inner-hero + .section .section-intro.two-col-intro h2 br {
    display: none !important;
  }
  body.page-services main > .inner-hero + .section .section-intro.two-col-intro h2 em::before {
    content: " ";
    white-space: pre;
  }
  body.page-services main > .inner-hero + .section .section-intro.two-col-intro > p {
    max-width: 330px !important;
    margin: 0 0 2px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
}

/* Small screens retain natural two-line headlines for legibility while
   reducing excessive vertical whitespace. */
@media (max-width: 900px) {
  main.sp-pricing-page .inner-hero-content,
  body.page-services .inner-hero-content {
    padding-top: 22px !important;
    padding-bottom: 21px !important;
  }
  main.sp-pricing-page .inner-hero h1,
  body.page-services .inner-hero h1 {
    font-size: clamp(34px, 6.1vw, 50px) !important;
    max-width: 100% !important;
    margin: 9px 0 8px !important;
    line-height: 1.14 !important;
  }
  main.sp-pricing-page .inner-hero p,
  body.page-services .inner-hero p {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin: 5px 0 0 !important;
  }
  main.sp-pricing-page .sp-service-section {
    padding-top: 18px !important;
  }
  body.page-services main > .inner-hero + .section {
    padding-top: 19px !important;
  }
  body.page-services main > .inner-hero + .section .section-intro.two-col-intro {
    margin-bottom: 16px !important;
  }
}
@media (max-width: 600px) {
  main.sp-pricing-page .inner-hero-content,
  body.page-services .inner-hero-content {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }
  main.sp-pricing-page .inner-hero h1,
  body.page-services .inner-hero h1 {
    font-size: clamp(31px, 8.6vw, 42px) !important;
  }
  main.sp-pricing-page .sp-service-heading .section-title {
    margin-top: 5px !important;
  }
}
