/* OASIS section pages (Parceiros mockup at 1920px): 426px grey side
   navigation, content 50px after it. */
.oasis-section-page {
  display: grid;
  grid-template-columns: clamp(220px, 22.2vw, 426px) minmax(0, 1fr);
  background: var(--oasis-white);
}

.oasis-page-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(20px, 1.6vw, 31px) 16px clamp(40px, 5vw, 96px);
  background: var(--oasis-grey);
  color: var(--oasis-navy);
  text-align: center;
}

.oasis-page-nav__current {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.oasis-page-nav__icon {
  width: clamp(90px, 9vw, 174px);
  height: auto;
}

.oasis-page-nav__title {
  margin: 0.4em 0 0;
  font-size: clamp(1.1rem, 1.35vw, 1.625rem);
  font-weight: 700;
  line-height: 1.2;
}

.oasis-page-nav__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 28px) clamp(16px, 2vw, 40px);
  margin-top: clamp(48px, 9.4vw, 180px);
}

.oasis-page-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-size: clamp(0.7rem, 0.78vw, 0.9375rem);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.oasis-page-nav__link-icon {
  width: clamp(56px, 5.4vw, 104px);
  height: clamp(56px, 5.4vw, 104px);
  object-fit: contain;
  transition: transform 0.25s ease;
}

/* Design document: the icon grows on hover. */
.oasis-page-nav__link:hover .oasis-page-nav__link-icon,
.oasis-page-nav__link:focus-visible .oasis-page-nav__link-icon {
  transform: scale(1.12);
}

.oasis-page-nav__link span {
  max-width: 6.5em;
}

.oasis-section-page__content {
  padding: clamp(28px, 3.9vw, 75px) clamp(16px, 4.9vw, 94px) clamp(48px, 9.9vw, 190px) clamp(16px, 2.6vw, 50px);
}

.oasis-section-page__title {
  margin: 0 0 1em;
  color: var(--oasis-blue-light);
  font-size: clamp(1.25rem, 1.46vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.oasis-section-page__text {
  color: var(--oasis-text);
  font-size: clamp(1rem, 0.99vw, 1.1875rem);
  line-height: 1.4;
}

.oasis-section-page__text > * {
  margin: 0 0 1.2em;
}

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

.oasis-section-page__text a {
  color: var(--oasis-blue-light);
  font-weight: 700;
}

/* Visão e Missão / História (mockup at 1920px): text on the left, photos
   (447px, rounded like the activities) in a column on the right, 88px apart. */
.oasis-section-page__body.has-photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(200px, 23.3vw, 447px);
  gap: clamp(32px, 4.6vw, 88px);
  align-items: start;
}

.oasis-section-page__text h2,
.oasis-section-page__text h3 {
  color: var(--oasis-blue-light);
  font-size: clamp(1.25rem, 1.46vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.oasis-section-page__text > h2:not(:first-child),
.oasis-section-page__text > h3:not(:first-child) {
  margin-top: 2em;
}

.oasis-section-page__text ul,
.oasis-section-page__text ol {
  padding-left: 1.2em;
  list-style: disc;
}

.oasis-section-page__text ol {
  list-style: decimal;
}

.oasis-section-page__photos {
  display: grid;
  gap: clamp(16px, 1.4vw, 26px);
}

.oasis-section-page__photos figure,
.oasis-section-page__photos .wp-block-gallery {
  margin: 0;
}

.oasis-section-page__photos .wp-block-gallery {
  display: grid;
  gap: clamp(16px, 1.4vw, 26px);
}

.oasis-section-page__photos img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1.62 / 1;
  object-fit: cover;
  border-radius: clamp(28px, 4.6vw, 88px);
}

.oasis-section-page__photos figcaption {
  margin-top: 8px;
  color: var(--oasis-blue-light);
  font-size: 0.85rem;
}

/* OASIS landing page (mockup at 1920px): logo on the left, the five pages as
   icons on the right; then a photo slideshow with the hero's proportions. */
.oasis-landing {
  background: var(--oasis-white);
}

.oasis-landing__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px clamp(24px, 3vw, 56px);
  padding-block: clamp(32px, 5.5vw, 105px);
}

.oasis-landing__logo {
  width: clamp(140px, 17.2vw, 330px);
  height: auto;
}

.oasis-landing__links {
  display: flex;
  flex: 1;
  justify-content: space-around;
  gap: clamp(12px, 2vw, 40px);
}

.oasis-landing__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 9em;
  color: var(--oasis-navy);
  font-size: clamp(0.8rem, 1vw, 1.25rem);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  /* Design document: the icons drop in from the top when the page opens. */
  animation: oasis-drop-in 0.7s cubic-bezier(0.2, 0.8, 0.3, 1.2) backwards;
}

.oasis-landing__link:nth-child(2) { animation-delay: 0.08s; }
.oasis-landing__link:nth-child(3) { animation-delay: 0.16s; }
.oasis-landing__link:nth-child(4) { animation-delay: 0.24s; }
.oasis-landing__link:nth-child(5) { animation-delay: 0.32s; }

.oasis-landing__link img {
  width: clamp(56px, 6vw, 115px);
  height: clamp(56px, 6vw, 115px);
  object-fit: contain;
  transition: transform 0.25s ease;
}

.oasis-landing__link:hover img,
.oasis-landing__link:focus-visible img {
  transform: scale(1.12);
}

@keyframes oasis-drop-in {
  from { transform: translateY(-40px); }
  to   { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .oasis-landing__link {
    animation: none;
  }
}

.oasis-landing__video {
  padding-bottom: clamp(32px, 4vw, 64px);
}

.oasis-landing__video iframe,
.oasis-landing__video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.oasis-landing__slider {
  position: relative;
  aspect-ratio: 3.36 / 1;
  overflow: hidden;
  background: var(--oasis-grey);
}

.oasis-landing__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Partners: 6 logos per row. Logo sizes come from oasis_partner_logo_style()
   (same area for every logo). */
.oasis-partner-list {
  --logo-scale: 0.9;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(32px, 4.4vw, 84px) 16px;
  margin-top: clamp(32px, 4.5vw, 87px);
}

.oasis-partner-list__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.oasis-partner-list__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(70px, 6.3vw, 120px);
}

.oasis-partner-list__logo img {
  width: calc(var(--logo-w, 120) * var(--logo-scale) * 1px);
  max-width: 100%;
  height: calc(var(--logo-h, 54) * var(--logo-scale) * 1px);
  object-fit: contain;
}

.oasis-partner-list__logo img {
  transition: transform 0.25s ease;
}

a.oasis-partner-list__item:hover .oasis-partner-list__logo img,
a.oasis-partner-list__item:focus-visible .oasis-partner-list__logo img {
  transform: scale(1.05);
}

/* Quem Somos (mockup at 1920px): orange team title, 4 people per row with a
   283px round photo, a green dot floating along its edge, name and
   description below. */
.oasis-team {
  margin-top: clamp(32px, 3.6vw, 70px);
}

.oasis-team__title {
  margin: 0 0 clamp(24px, 2.6vw, 50px);
  color: var(--oasis-orange);
  font-size: clamp(0.95rem, 1.15vw, 1.375rem);
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.oasis-team__members {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(32px, 3.6vw, 70px) clamp(16px, 1.7vw, 32px);
}

.oasis-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.oasis-member__photo {
  position: relative;
  width: 83%;
  aspect-ratio: 1 / 1;
}

.oasis-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--oasis-grey);
}

/* The orbit covers the photo and rotates, so the dot (on its top edge)
   moves along the circle. Each person starts at a different angle. */
.oasis-member__orbit {
  --angle: 40deg;
  position: absolute;
  inset: 0;
  animation: oasis-orbit 5s ease-in-out infinite alternate;
  pointer-events: none;
}

.oasis-member:nth-child(4n + 2) .oasis-member__orbit { --angle: 215deg; animation-duration: 6s; }
.oasis-member:nth-child(4n + 3) .oasis-member__orbit { --angle: 265deg; animation-duration: 4.5s; }
.oasis-member:nth-child(4n + 4) .oasis-member__orbit { --angle: 100deg; animation-duration: 5.5s; }

.oasis-member__dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 15%;
  aspect-ratio: 1 / 1;
  background: var(--oasis-green);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@keyframes oasis-orbit {
  from { transform: rotate(calc(var(--angle) - 14deg)); }
  to   { transform: rotate(calc(var(--angle) + 14deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .oasis-member__orbit {
    animation: none;
    transform: rotate(var(--angle));
  }
}

.oasis-member__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.8em;
}

.oasis-member__name {
  max-width: 7em;
  color: var(--oasis-green);
  font-size: clamp(1rem, 1.3vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.oasis-member__role {
  margin-top: 0.8em;
  color: var(--oasis-text);
  font-size: clamp(0.75rem, 0.83vw, 1rem);
  line-height: 1.3;
}

@media (max-width: 1200px) {
  .oasis-partner-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .oasis-team__members {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile (mockup at 355px): grey band with the current page on the left and
   the other pages in a 2×2 grid on the right; partners 3 per row. */
@media (max-width: 768px) {
  .oasis-section-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .oasis-page-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px var(--oasis-gutter) 8px;
  }

  .oasis-page-nav__icon {
    width: 20vw;
  }

  .oasis-page-nav__title {
    font-size: 1rem;
  }

  .oasis-page-nav__links {
    gap: 8px 14px;
    margin-top: 0;
  }

  .oasis-page-nav__link {
    font-size: 0.6rem;
  }

  .oasis-page-nav__link-icon {
    width: 13vw;
    height: 13vw;
  }

  .oasis-section-page__content {
    padding: 28px var(--oasis-gutter) 48px;
  }

  .oasis-section-page__body.has-photos {
    grid-template-columns: minmax(0, 1fr);
  }

  .oasis-section-page__photos img {
    border-radius: 40px;
  }

  .oasis-landing__inner {
    flex-direction: column;
    padding-block: 16px 20px;
  }

  .oasis-landing__logo {
    width: 38vw;
  }

  .oasis-landing__links {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .oasis-landing__link {
    font-size: 0.6rem;
    gap: 4px;
  }

  .oasis-landing__link img {
    width: 12vw;
    height: 12vw;
  }

  .oasis-landing__slider {
    aspect-ratio: 2.2 / 1;
  }

  /* Quem Somos: one person per row, photo on the left. */
  .oasis-team__members {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .oasis-member {
    display: grid;
    grid-template-columns: 35% minmax(0, 1fr);
    align-items: center;
    gap: 16px;
  }

  .oasis-member__photo {
    width: 100%;
  }

  .oasis-member__text {
    margin-top: 0;
  }

  .oasis-member__name {
    font-size: 1rem;
  }

  .oasis-member__role {
    margin-top: 0.5em;
    font-size: 0.75rem;
  }

  .oasis-partner-list {
    --logo-scale: 0.6;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 12px;
  }
}
