/**
 * Section - DOOH Digital
 * Coluna esquerda: fundo azul, título e subtítulo em branco
 * Coluna direita: imagem encostada à direita
 * Formas: rectangle_top (canto superior direito), rectangle_bottom (forma diagonal inferior)
 *
 * @package SeedDigital
 * @since 1.0.0
 */

.dooh-digital {
  position: relative;
  width: 100%;
  min-height: 360px;
  box-sizing: border-box;
  overflow: visible;
}

.dooh-digital__container {
  position: relative;
  z-index: 1;
  max-width: 1651px;
  background: linear-gradient(78.74deg, #00edff 32.8%, #0ba5ec 92.68%);
}

.dooh-digital__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 360px;
}

/* Texto à esquerda (azul) | Imagem à direita */
.dooh-digital--with-image .dooh-digital__grid {
  grid-template-columns: minmax(300px, 45%) 1fr;
  min-height: 440px;
}

/* Formas decorativas (--top = forma que encosta no topo direito; --bottom = forma que encosta no rodapé direito) */
.dooh-digital__rect {
  position: absolute;
  z-index: 0;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.dooh-digital__rect--top {
  top: 0;
  right: 0;
  width: 50%;
  max-width: 800px;
  height: 380px;
  background-position: top right;
}

/* Forma “foguete”: vaza para a seção de baixo */
.dooh-digital__rect--bottom {
  bottom: -80px;
  right: 0;
  width: 55%;
  max-width: 820px;
  height: 220px;
  min-height: 180px;
  background-position: bottom right;
  background-size: cover;
}

/* Coluna esquerda – fundo azul, texto branco */
.dooh-digital__content {
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  padding: 56px 40px 56px 156px;
  position: relative;
  z-index: 2;
}

.dooh-digital__title {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: #000000;
  margin: 0;
}

.dooh-digital__subtitle {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
  margin: 0;
  opacity: 0.95;
}

.dooh-digital__description {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: #000000;
  margin: 0;
  opacity: 0.95;
  padding-top: 16px;
}

.dooh-digital__description p {
  margin: 0 0 0.75em;
}

.dooh-digital__description p:last-child,
.dooh-digital__description p:nth-last-child(2) {
  font-size: 12px;
}

.dooh-digital__description ul {
  list-style: disc;
  margin: 0 0 0.75em;
  padding-left: 20px;
}

.dooh-digital__description h5 {
  color: #000000;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

/* Coluna direita – imagem com borda inferior em diagonal (estilo foguete, vaza para a seção de baixo) */
.dooh-digital__image-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 320px;
  align-self: stretch;
}

.dooh-digital__image {
  width: 100%;
  height: 100%;
  min-height: 440px;
  display: block;
  object-fit: cover;
  object-position: center;
  padding: 100px 0 100px 0;
}

/* Responsivo */
@media (max-width: 1024px) {
  .dooh-digital__rect--top {
    width: 55%;
    height: 320px;
  }

  .dooh-digital__rect--bottom {
    width: 80%;
    height: 50%;
  }

  .dooh-digital__content {
    width: 100%;
    padding: 48px 28px 48px 36px;
  }

  .dooh-digital__title {
    font-size: 32px;
  }

  .dooh-digital__subtitle {
    font-size: 16px;
  }

  .dooh-digital--with-image .dooh-digital__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .dooh-digital__image-wrapper {
    order: -1;
    min-height: 280px;
    clip-path: none;
  }

  .dooh-digital__rect--bottom {
    bottom: 0;
    height: 120px;
  }

  .dooh-digital__image {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .dooh-digital {
    min-height: auto;
  }

  .dooh-digital__rect--top {
    width: 75%;
    height: 240px;
  }

  .dooh-digital__rect--bottom {
    width: 95%;
    min-height: 120px;
    bottom: 0;
  }

  .dooh-digital__content {
    width: 100%;
    padding: 40px 20px 40px 20px;
  }

  .dooh-digital__description {
    font-size: 14px;
  }

  .dooh-digital__title {
    font-size: 28px;
  }

  .dooh-digital__subtitle {
    font-size: 15px;
  }

  .dooh-digital__image {
    min-height: 240px;
    padding: 100px 0 44px 0;
  }
}

@media (max-width: 480px) {
  .dooh-digital__content {
    width: 100%;
    padding: 40px 20px 40px 20px;
  }

  .dooh-digital__title {
    font-size: 24px;
  }
}

@media (min-width: 1920px) {
  .dooh-digital__content {
    padding: 56px 40px 56px 114px;
  }
}
