/* Inner pages: blue title band and orange "Quer apoiar" band (Contact mockup at 1920px). */

/* :where() keeps these resets at zero specificity, so component rules always win. */
:where(.oasis-page) * { box-sizing: border-box; }
:where(.oasis-page) img { max-width: 100%; display: block; }
:where(.oasis-page) ul { list-style: none; margin: 0; padding: 0; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* White pill with the OASIS mark, against the left edge (180×116px). */
.oasis-mark-pill {
  --pill-w: clamp(90px, 9.4vw, 180px);
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: var(--pill-w);
  height: clamp(58px, 6.05vw, 116px);
  overflow: hidden;
  background: var(--oasis-white);
  border-radius: 0 999px 999px 0;
}

/* Same as the Agenda band (component-agenda.css): compensates the SVG's transparent margin. */
.oasis-mark-pill img {
  flex: none;
  width: calc(var(--pill-w) * 0.928);
  height: auto;
  margin-right: calc(var(--pill-w) * -0.142);
  transform: translateY(calc(var(--pill-w) * 0.03));
}

/* 185px band; title cap height 35px (~49px font). */
.oasis-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-blue-light);
  color: var(--oasis-white);
}

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

.oasis-page-banner__title {
  margin: 0;
  font-size: clamp(1.4rem, 2.55vw, 3.0625rem);
  font-weight: 300;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

/* Orange band: text 298px from the left, button 132px from the right.
   Type is smaller than the mockup on request. */
.oasis-support {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(200px, 13vw, 250px);
  padding: clamp(28px, 4.6vw, 88px) clamp(16px, 6.9vw, 132px) clamp(28px, 3.3vw, 64px) clamp(110px, 15.5vw, 298px);
  background: var(--oasis-orange);
}

.oasis-support .oasis-mark-pill {
  top: clamp(24px, 2.7vw, 52px);
}

.oasis-support__inner {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4.5vw, 86px);
}

.oasis-support__text {
  max-width: 1100px;
}

.oasis-support__text h2 {
  margin: 0 0 0.6em;
  color: var(--oasis-white);
  font-size: clamp(1.35rem, 2.08vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.oasis-support__text p {
  margin: 0;
  color: var(--oasis-text);
  font-size: clamp(0.95rem, 1.04vw, 1.25rem);
  line-height: 1.4;
}

.oasis-support__btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: clamp(140px, 11.5vw, 220px);
  min-height: clamp(48px, 4.2vw, 80px);
  padding-inline: 1em;
  background: var(--oasis-white);
  color: var(--oasis-blue-light);
  border-radius: var(--oasis-radius-pill);
  font-size: clamp(1rem, 1.46vw, 1.75rem);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease;
}

.oasis-support__btn:hover,
.oasis-support__btn:focus {
  transform: translateY(-2px);
}

/* Mobile (mockup at 389px): 50px blue band with the title next to the pill;
   orange band with centred title and button. */
@media (max-width: 768px) {
  .oasis-page-banner {
    justify-content: flex-start;
    min-height: 50px;
    padding: 6px var(--oasis-gutter) 6px 59px;
  }

  .oasis-page-banner .oasis-mark-pill {
    --pill-w: 45px;
    height: 32px;
  }

  .oasis-page-banner__title {
    font-size: 1.6875rem;
    text-align: left;
  }

  .oasis-support {
    min-height: 0;
    padding: 46px 21px 27px 109px;
  }

  .oasis-support .oasis-mark-pill {
    top: 28px;
    --pill-w: 80px;
    height: 62px;
  }

  .oasis-support__inner {
    flex-direction: column;
    gap: 18px;
  }

  .oasis-support__text h2 {
    margin-bottom: 0.4em;
    font-size: 1.25rem;
    line-height: 1.2;
    text-align: center;
  }

  .oasis-support__text p {
    font-size: 0.8125rem;
  }

  .oasis-support__btn {
    min-width: 123px;
    min-height: 44px;
    padding-inline: 1.1em;
    font-size: 0.9375rem;
  }
}
