/*
 * HEOR Services page
 * Loaded after hta-services.css, which provides the shared layout.
 * Only HEOR-specific overrides live here, scoped to .heor-page,
 * so the HTA page is never affected.
 */

/* Background watermark in the capabilities section */
.heor-page .capabilities:before {
  content: "HEOR";
}

/*
 * Hero: keep the banner the same height as the HTA banner.
 * The HEOR heading and intro are much longer than HTA's, so the text is
 * sized to fit inside the shared hero height (min-height in hta-services.css).
 */
.heor-page .hero.hta-hero-banner {
  /* Same min-height as HTA, but less vertical padding, so the longer HEOR
     text fits inside that height instead of stretching the banner.
     The content is vertically centred, so the text position is unchanged. */
  padding-top: 48px;
  padding-bottom: 48px;
}

.heor-page .hero.hta-hero-banner h1 {
  font-size: 36px;
  margin: 14px 0 18px;
}

.heor-page .hero.hta-hero-banner p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 26px;
}

@media (max-width: 767px) {
  .heor-page .hero.hta-hero-banner {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .heor-page .hero.hta-hero-banner h1 {
    font-size: 28px;
  }

  .heor-page .hero.hta-hero-banner p {
    font-size: 16px;
  }
}

/* What Sets Us Apart: 4 cards in a 2 x 2 grid instead of 3 columns */
@media (min-width: 901px) {
  .heor-page #heor-differentiators .quote-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tabs: 5 instead of 6, so the last tab spans both columns on tablet/mobile */
@media (max-width: 900px) {
  .heor-page .capabilities .tab-btn:last-child {
    grid-column: 1 / -1;
  }
}

/*
 * The HTA page has a CTA band between "What Sets Us Apart" and "Insights".
 * HEOR has no CTA band, so the two white sections sit back to back and
 * their paddings would stack (96px + 96px). Drop one so the gap matches
 * the normal 96px rhythm between sections.
 */
.heor-page #heor-differentiators {
  padding-bottom: 0;
}

/*
 * The navy contact section is the last block before the footer on HEOR
 * (HTA ends with a white section, which hides this). Remove any bottom
 * margin/padding the theme adds below it, so no white strip shows.
 */
.heor-page > main {
  margin-bottom: 0;
  padding-bottom: 0;
}

.heor-page > main > section:last-child {
  margin-bottom: 0;
}
