/* ============================================
   Section headings after hero (all page-inner pages + home)
   Scope: body.page-inner — does not affect slider/hero titles
   ============================================ */

/* H2 — section titles */
.page-inner main > section:not(.slider) :is(
  .section-header__title,
  .impact__title,
  .testimonials__title,
  .philosophy__title,
  .partner-category__title,
  .ecopark-main__title,
  .decarb__title,
  .final-cta__title,
  .ecopark-facilities__title,
  .ecopark-community__title,
  .dec-zone-scale__title,
  .credentials-scope3__title,
  .credentials-expert__title,
  .circular-intro__title,
  .circular-cfo__title,
  .circular-waste__title,
  .dec-zone-closing__title,
  .global-hq-cta__title,
  .nz-green__title,
  .nz-delivery__title,
  .nz-contact-card__title,
  .contact-section__title,
  .team-advisory__title,
  .cta-card__title
),
.page-inner main > .presentation-container > section:not(.slider) :is(
  .section-header__title,
  .impact__title,
  .testimonials__title,
  .philosophy__title,
  .partner-category__title,
  .ecopark-main__title,
  .decarb__title,
  .final-cta__title,
  .ecopark-facilities__title,
  .ecopark-community__title,
  .dec-zone-scale__title,
  .credentials-scope3__title,
  .credentials-expert__title,
  .circular-intro__title,
  .circular-cfo__title,
  .circular-waste__title,
  .dec-zone-closing__title,
  .global-hq-cta__title,
  .nz-green__title,
  .nz-delivery__title,
  .nz-contact-card__title,
  .contact-section__title,
  .team-advisory__title,
  .cta-card__title
) {
  font-size: var(--typography-section-title-size);
  font-weight: var(--typography-section-title-weight);
  line-height: var(--typography-section-title-lh);
  letter-spacing: var(--typography-section-title-tracking);
  white-space: normal;
}

/* Section subtitles */
.page-inner main > section:not(.slider) :is(
  .section-header__subtitle,
  .ecopark-facilities__subtitle,
  .partner-category__subtitle,
  .team-advisory__subtitle
),
.page-inner main > .presentation-container > section:not(.slider) :is(
  .section-header__subtitle,
  .ecopark-facilities__subtitle,
  .partner-category__subtitle,
  .team-advisory__subtitle
) {
  font-size: var(--typography-section-subtitle-size);
  font-weight: var(--typography-section-subtitle-weight);
  line-height: var(--typography-section-subtitle-lh);
  white-space: normal;
}

/* H3 — card / block titles within sections */
.page-inner main > section:not(.slider) :is(
  .ecopark-side__title,
  .circular-card__title,
  .cred-card__title,
  .feature-card__title,
  .catalog-card__title,
  .nz-excellence-card__title,
  .nz-terrain-card__title,
  .apprentice-benefit-card__title,
  .ecosystem-card__title,
  .sustain-feature__title
),
.page-inner main > .presentation-container > section:not(.slider) :is(
  .ecopark-side__title,
  .circular-card__title,
  .cred-card__title,
  .feature-card__title,
  .catalog-card__title,
  .nz-excellence-card__title,
  .nz-terrain-card__title,
  .apprentice-benefit-card__title,
  .ecosystem-card__title,
  .sustain-feature__title
) {
  font-size: var(--typography-section-card-title-size);
  font-weight: var(--typography-section-card-title-weight);
  line-height: var(--typography-section-card-title-lh);
  letter-spacing: var(--typography-section-card-title-tracking);
}

.page-inner main > section:not(.slider) .section-header__title,
.page-inner main > .presentation-container > section:not(.slider) .section-header__title {
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .page-inner main > section:not(.slider) .section-header__title,
  .page-inner main > .presentation-container > section:not(.slider) .section-header__title {
    margin-bottom: var(--space-lg);
    white-space: normal;
  }
}

/* Override page-level nowrap on section headers */
.page-inner .uk-services .section-header__title,
.page-inner .uk-why .section-header__title,
.page-inner .program-transformation .section-header__title,
.page-inner .ecosystem .section-header__title,
.page-inner .global .section-header__title,
.page-inner .depreciation__header .section-header__title,
.page-inner .sustain .section-header__title-line {
  white-space: normal;
}

/* Home — sustain intro lede on one line (desktop) */
@media (min-width: 768px) {
  .page-home.page-inner main > .presentation-container > section.sustain .section-header__subtitle,
  .page-home.page-inner main > section.sustain .section-header__subtitle {
    max-width: none;
    white-space: nowrap;
  }
}

/* Home — sustain title on one line, centered (desktop) */
@media (min-width: 992px) {
  .page-home.page-inner main > .presentation-container > section.sustain .section-header,
  .page-home.page-inner main > section.sustain .section-header {
    text-align: center;
  }

  .page-home.page-inner main > .presentation-container > section.sustain .section-header__title--two-lines,
  .page-home.page-inner main > section.sustain .section-header__title--two-lines {
    width: fit-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    white-space: nowrap;
  }

  .page-home.page-inner main > .presentation-container > section.sustain .section-header__title-line,
  .page-home.page-inner main > section.sustain .section-header__title-line {
    white-space: nowrap;
  }
}
