/* Page Intro — shared inner-page intro (Views/Partials/pageIntro), scoped to .page-intro.
   Values follow the reference theme: heading 40/44 with a 2px accent border, body indented 300px,
   paragraphs 16/30 (14/20 at ≤700px) with 16px spacing, video 500px contain (200px at ≤770px),
   optional image up to the text column width with 50px above and below.
   Optional subtitle suffix and highlight (eVTOL) are described with their rules at the end of this file.
   Bottom spacing comes from sectionComposition.spacingBottom (none / small / medium / large). */

.page-intro {
  padding-top: 80px;
}

/* Reference grid: 1200px container, 15px gutter → 1170px content. */
.page-intro__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-intro__subtitle {
  position: relative;
  margin: 0 0 50px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--eve-page-accent, var(--eve-color-violet));
  font-family: var(--eve-font-display-regular);
  font-weight: 400;
  font-size: 40px;
  line-height: 44px;
  color: var(--eve-color-text);
  overflow: visible;
}

.page-intro__subtitle--accent {
  color: var(--eve-page-accent, var(--eve-color-violet));
}

/* Decorative line under the heading; colour from the page accent mask (site.css). */
.page-intro__line {
  position: absolute;
  bottom: -19px;
  left: -1166px;
  width: 1168px;
  height: 19px;
  max-width: none;
  margin: 0;
  transform: scaleX(-1);
  display: block;
}

.page-intro__content {
  padding-left: 300px;
}

.page-intro__paragraph {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 30px;
  color: var(--eve-color-text);
}

/* 16px above the video comes from the preceding paragraph's margin. */
.page-intro__video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 500px;
  margin: 0;
  object-fit: contain;
}

/* Optional image (pageIntro.image): natural size up to the text column width, 50px above and below
   (reference TechCare intro p.mb-50 + img.mb-50; the 50px above collapses with the paragraph's 16px). */
.page-intro__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 50px 0;
}

/* Reference: when the video ends the intro, its inline line box leaves 10px below it (all widths). */
.page-intro__content--ends-with-video {
  padding-bottom: 10px;
}

/* 50px above the CTA (collapses with the paragraph's 16px). */
.page-intro__cta {
  margin-top: 50px;
}

.page-intro__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
  line-height: 30px;
  color: var(--eve-page-accent, var(--eve-color-violet));
  text-decoration: none;
}

.page-intro__cta-link:hover,
.page-intro__cta-link:focus-visible {
  color: var(--eve-page-accent, var(--eve-color-violet));
  text-decoration: none;
}

.page-intro__cta-arrow {
  display: inline-block;
  position: relative;
  width: 15px;
  height: 16px;
  flex-shrink: 0;
  background: var(--eve-page-accent-arrow, url("/img/arrow-purple.svg")) no-repeat center / 14px;
  transform: rotate(270deg);
}

/* The section spacing below defines the gap to the next section exactly. */
.page-intro__content > :last-child {
  margin-bottom: 0;
}

.page-intro--space-none {
  padding-bottom: 0;
}

/* A heading-only intro (no paragraphs, image, video or link) set to none and followed by a full-width image keeps the
   reference's 20px below the heading's own margin (eVTOL Global Support Network: 70px to the map, 50px at ≤850px).
   Followed by text (legal page title), the heading's own 50px (30px at ≤850px) is the whole gap. */
.page-intro--space-none:not(:has(.page-intro__content)):has(+ .single-image-full-width) {
  padding-bottom: 20px;
}

.page-intro--space-small {
  padding-bottom: 50px;
}

.page-intro--space-medium {
  padding-bottom: 80px;
}

.page-intro--space-large {
  padding-bottom: 170px;
}

@media (max-width: 850px) {
  .page-intro {
    padding-top: 40px;
  }

  .page-intro__inner {
    padding: 0 20px;
  }

  .page-intro__subtitle {
    margin-bottom: 30px;
    font-size: 25px;
    line-height: 27px;
  }

  .page-intro__content {
    padding-left: 0;
  }

  .page-intro--space-small,
  .page-intro--space-medium {
    padding-bottom: 40px;
  }

  .page-intro--space-large {
    padding-bottom: 100px;
  }
}

@media (max-width: 770px) {
  .page-intro__video {
    height: 200px;
  }
}

@media (max-width: 700px) {
  .page-intro__paragraph {
    font-size: 14px;
    line-height: 20px;
  }
}

/* —— subtitleSuffix (optional; reference eVTOL .entry-subtitle.green span): after the subtitle, one space apart,
   30px in the page accent (23px at ≤700px), on the heading's own line height (44px, 27px at ≤850px).
   At ≤850px the suffix stays larger than the 25px heading, as in the reference. —— */
.page-intro__subtitle-suffix {
  font-size: 30px;
  color: var(--eve-page-accent, var(--eve-color-violet));
}

/* —— highlight (optional; reference eVTOL .entry-content-fix.mb-80 > h2.entry-minititle.c-green): an h3 in the page
   accent directly after the paragraphs, 30/42 with 80px above (25/27 and 40px at ≤850px); the paragraph's 16px
   collapses into it. As the last item its bottom margin is 0 and the section spacing gives the gap below
   (medium = the reference .mb-80, 80px / 40px). —— */
.page-intro__highlight {
  margin: 80px 0 0;
  font-family: var(--eve-font-display-regular);
  font-weight: 400;
  font-size: 30px;
  line-height: 42px;
  color: var(--eve-page-accent, var(--eve-color-violet));
}

@media (max-width: 850px) {
  .page-intro__highlight {
    margin-top: 40px;
    font-size: 25px;
    line-height: 27px;
  }
}

@media (max-width: 700px) {
  .page-intro__subtitle-suffix {
    font-size: 23px;
  }
}
