/* Support page ("Quer apoiar os nossos projetos?"). Mockup at 1920px:
   185px orange band, intro text on the left (~930px) and a rounded photo on
   the right (~780px), 117px coloured bands with the section titles. */

.oasis-support-page__banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(76px, 9.66vw, 185px);
  padding-inline: clamp(110px, 12vw, 240px);
  background: var(--oasis-orange);
  color: var(--oasis-white);
}

.oasis-support-page__banner .oasis-mark-pill {
  top: 50%;
  transform: translateY(-50%);
}

.oasis-support-page__banner h1 {
  margin: 0;
  font-size: clamp(1.15rem, 1.9vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Intro: icon + heading, text; photo on the right. */
.oasis-support-page__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 3vw, 56px);
  align-items: center;
  padding-block: clamp(32px, 3.2vw, 62px);
}

.oasis-support-page__intro.has-photo {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.oasis-support-page__lead {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 48px);
  margin-bottom: clamp(20px, 2.6vw, 50px);
}

.oasis-support-page__icon {
  flex: none;
  width: clamp(80px, 11.9vw, 228px);
  height: auto;
}

.oasis-support-page__lead h2 {
  margin: 0;
  color: var(--oasis-navy);
  font-size: clamp(1.15rem, 1.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

.oasis-support-page__photo :is(figure, .wp-block-image, .wp-block-gallery) {
  margin: 0;
}

.oasis-support-page__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 368;
  object-fit: cover;
  border-radius: clamp(40px, 6vw, 115px);
}

.oasis-support-page__photo figure + figure {
  margin-top: 16px;
}

/* Text: as written in the editor (alignment, bold, links). */
.oasis-support-page__text {
  color: var(--oasis-text);
  font-size: clamp(1rem, 1.2vw, 1.4rem);
  line-height: 1.4;
}

.oasis-support-page__text > :first-child {
  margin-top: 0;
}

.oasis-support-page__text > :last-child {
  margin-bottom: 0;
}

.oasis-support-page__text p {
  margin: 0 0 1.1em;
}

.oasis-support-page__text a {
  color: var(--oasis-blue-light);
  font-weight: 700;
  text-decoration: none;
}

.oasis-support-page__text a:hover {
  text-decoration: underline;
}

.oasis-support-page__text strong {
  color: var(--oasis-text);
}

.oasis-support-page__text :is(h3, h4) {
  margin: 1.8em 0 0.6em;
  color: var(--oasis-navy);
  font-size: clamp(1.1rem, 1.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

.oasis-support-page__text .has-text-align-center {
  text-align: center;
}

.oasis-support-page__text .has-text-align-right {
  text-align: right;
}

/* Coloured band per section (blue, green, orange, navy, in turn). */
.oasis-support-page__band {
  margin: 0 0 clamp(24px, 2.6vw, 50px);
  padding: clamp(10px, 1.1vw, 22px) var(--oasis-gutter);
  color: var(--oasis-white);
  font-size: clamp(1.15rem, 1.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.oasis-support-page__band--blue   { background: var(--oasis-blue-light); }
.oasis-support-page__band--green  { background: var(--oasis-green); }
.oasis-support-page__band--orange { background: var(--oasis-orange); }
.oasis-support-page__band--navy   { background: var(--oasis-navy); }

.oasis-support-page__section {
  padding-bottom: clamp(24px, 2.6vw, 50px);
}

.oasis-support-page__dots {
  margin-block: clamp(16px, 2vw, 40px) clamp(40px, 4.5vw, 90px);
}

@media (max-width: 768px) {
  .oasis-support-page__banner {
    min-height: 0;
    padding: 12px var(--oasis-gutter) 12px 64px;
  }

  .oasis-support-page__banner .oasis-mark-pill {
    --pill-w: 45px;
    height: 32px;
  }

  .oasis-support-page__intro.has-photo {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Mobile mockup: icon and heading, then the photo, then the text. */
  .oasis-support-page__intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .oasis-support-page__intro-text {
    display: contents;
  }

  .oasis-support-page__lead {
    order: 1;
    margin-bottom: 0;
  }

  .oasis-support-page__photo {
    order: 2;
  }

  .oasis-support-page__intro .oasis-support-page__text {
    order: 3;
  }
}
