/*
  BANNER v 1.2;
  05/2023;
  João Diogo Pereira;
*/

.banner {
  position: relative;
}

.banner__item {
  position: relative;
  min-height: 86vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding-bottom: 120px;
  overflow: hidden;
  /* para o vídeo escondido não criar scroll horizontal */
  /* véu escuro por cima da imagem e por baixo do texto:
     garante leitura do texto branco em qualquer foto (WCAG 1.4.3).
     Feito com sombra interior para não mexer no posicionamento do conteúdo. */
  box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, .35);
}

/* Bolinhas do Owl */
.banner .owl-dots {
  position: absolute;
  bottom: 110px;
  left: 0;
  right: 0;
}

/* contorno escuro para se verem em fotos claras (WCAG 1.4.11) */
.banner .owl-dot span {
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .45);
}

.banner .owl-dot.active span {
  background: #fff;
}

.banner__text {
  color: #fff;
  /* reforço de leitura sobre zonas claras da imagem */
  text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}

.banner__title {
  font-size: 75px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
}

.banner__subtitle {
  font-size: 40px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.banner__content {
  font-size: 20px;
  font-style: italic;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

/* VÍDEO POPUP */
.banner__video {
  position: absolute;
  right: 0;
  bottom: 200px;
  display: flex;
  align-items: center;
  transform: translateX(calc(100% - 40px));
  /* mostra só a metade esquerda do círculo (80 / 2) */
  transition: transform .4s ease;
  z-index: 10000;
}

.banner__video.is-open {
  transform: translateX(0);
}

.banner__video-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  padding: 0 40px 0 0;
  /* empurra o ícone para o centro da metade esquerda */
  margin-right: -40px;
  /* metade do círculo fica por baixo da caixa */
  border: 0;
  border-radius: 50%;
  background: #3f5a14;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.banner__video-toggle svg {
  width: 26px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .25));
  /* sombra do Figma */
  transform: rotate(180deg);
  /* fechado: seta para a esquerda */
  transition: transform .3s;
}

.banner__video.is-open .banner__video-toggle svg {
  transform: rotate(0deg);
  /* aberto: seta para a direita */
}

.banner__video-box {
  position: relative;
  z-index: 2;
  /* a caixa tapa a metade direita do círculo */
  background: #3f5a14;
  padding: 16px;
  width: 500px;
}

.banner__video-box video {
  width: 100%;
  display: block;
}

/* QUADRADOS */
.banner__boxes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: -120px 0 0;
  /* sobe e sobrepõe o banner */
  position: relative;
  z-index: 3;
}

.banner__box a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 4/3;
  background: #fbfcf3;
  color: #3f5a14;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  transition: transform .2s;
}

.banner__box a:hover {
  transform: translateY(-4px);
}

.banner__box-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.banner__box-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 991px) {
  .banner__item {
    min-height: 60vh;
  }

  .banner__title {
    font-size: 40px;
  }

  .banner__subtitle {
    font-size: 20px;
  }

  .banner__content {
    font-size: 15px;
  }

  .banner__boxes {
    grid-template-columns: repeat(3, 1fr);
    margin: 30px 0 30px;
  }

  .banner__box-title {
    font-size: 10px;
  }

  .banner__video-box {
    width: 290px;
  }

  .banner__video {
    bottom: 130px;
  }

  .banner__video-toggle svg {
    width: 20px;
  }
}