/* Estilo automático para a página: inicio */

#banner {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 140px;

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay-banner);
    z-index: 1;
  }

  .banner-media {
    position: absolute;
    inset: 0;

    .banner-video,
    .banner-picture,
    .banner-image,
    .banner-picture img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }

  .banner-content {
    position: relative;
    padding-top: 120px;
    padding-bottom: 160px;

    .banner-description {
      margin-top: 16px;
      font-size: 24px;
      line-height: 140%;
      color: var(--color-white);
    }

    .banner-actions {
      margin-top: 24px;
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }
  }
}

#numeros {
  position: relative;
  z-index: 3;
  margin-top: -60px;

  .swiper-wrapper {
    flex-wrap: nowrap;

    .swiper-slide {
      height: auto;
      display: flex;
    }
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }

  .numeros-list {
    list-style: none;
    padding-top: 20px;
    padding-left: 0;
    border-radius: var(--radius-lg);

    .numero-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      height: 100%;

      .numero-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: var(--color-white);
        border: 1px solid var(--color-white);
        margin-bottom: 12px;

        img {
          width: 40px;
          height: 40px;
          object-fit: contain;
        }
      }

      .numero-value {
        font-size: 32px;
        font-weight: bold;
        line-height: 140%;
        color: var(--color-primary);
        margin-bottom: 10px;
      }

      .numero-label {
        font-size: 24px;
        line-height: 120%;
        font-weight: 400;
        color: var(--color-text);
        text-align: center;
      }
    }
  }
}

#dores {
  position: relative;
  overflow: hidden;
  padding: 80px 0;

  .dores-wrapper {
    position: relative;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      width: calc(50% + 120px);
      background: var(--color-primary-alt);
      border-radius: 0 40px 40px 0;
      z-index: 0;
    }
  }

  .dores-content {
    color: var(--color-white);
    padding: 70px 0;

    .dores-title {
      margin-bottom: 50px;
    }

    .dores-list {
      list-style: none;
      margin: 0;
      padding: 0;

      .dores-item {
        padding-bottom: 24px;
        will-change: transform;

        &:hover {
          transform: translateX(4px);
        }

        .dores-name {
          font-size: 24px;
          line-height: 140%;
          font-weight: 400;
          margin-bottom: 30px;
        }

        .dores-text,
        .dores-subtitle {
          font-size: 20px;
          line-height: 140%;
          font-weight: 400;
          color: var(--color-white-soft);
        }

        .dores-text {
          margin-bottom: 12px;
          position: relative;
          padding-bottom: 20px;

          &::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background: var(--color-white-divider);
          }
        }

        .dores-highlight {
          display: flex;
          align-items: center;
          gap: 10px;
          font-weight: 600;

          .dores-arrow {
            width: 16px;
            height: 16px;
            border-right: 2px solid var(--color-white);
            border-bottom: 2px solid var(--color-white);
            transform: rotate(-45deg);
          }
        }

        .dores-subtitle {
          font-weight: 500;
        }
      }
    }
  }

  .dores-image-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    right: 0;
    width: 50%;
    z-index: 1;

    img {
      width: 100%;
      height: auto;
      border-radius: 40px 0 0 40px;
      display: block;
    }
  }
}

#solucoes {
  padding-bottom: 80px;

  .solucoes-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary);
  }

  .solucao-swiper {
    overflow: hidden;
  }

  .swiper-controls {
    display: none;
  }

  .swiper-slide {
    height: auto;
  }

  .solucoes-card {
    padding: 24px;
    border-radius: var(--radius-card);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 2px solid transparent;
    background:
      linear-gradient(var(--color-white), var(--color-white)) padding-box,
      var(--gradient-brand) border-box;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    height: 100%;

    .solucoes-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 60px;
      height: 60px;
      margin: 0 auto;

      img {
        width: 48px;
        height: 48px;
        object-fit: contain;
      }
    }

    .solucoes-name {
      margin-bottom: 8px;
    }

    .solucoes-text {
      font-size: 16px;
      line-height: 140%;
      color: var(--color-black);
    }

    .solucoes-link {
      margin-top: auto;
      display: block;
      width: calc(100% + 48px);
      margin-left: -24px;
      margin-right: -24px;
      margin-bottom: -24px;
      padding: 18px;
      font-size: 18px;
      color: var(--color-white);
      background-color: var(--color-primary);
      border-radius: 0 0 10px 10px;
      text-decoration: none;
      font-weight: 600;
    }
  }
}

#cases {
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: 80px 0;

  .cases-title {
    text-align: center;
    margin-bottom: 40px;
  }

  .cases-swiper {
    overflow: hidden;
  }

  .swiper-controls {
    display: none;
  }

  .swiper-slide {
    height: auto;
  }

  .case-button-prev,
  .case-button-next {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-white);
    border-radius: var(--radius-xl);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);

    &::after {
      font-size: 18px;
      color: var(--color-white);
      font-weight: bold;
    }

    &:hover {
      background: var(--color-white);
      &::after {
        color: var(--color-bg-dark);
      }
    }
  }

  .case-button-prev {
    left: -60px;
  }

  .case-button-next {
    right: -60px;
  }

  .cases-card {
    background: var(--color-white);
    color: var(--color-black);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    height: 100%;
    display: flex;
    flex-direction: column;

    .case-image img {
      width: 100%;
      height: 300px;
      object-fit: cover;
      display: block;
    }

    .case-content {
      display: flex;
      flex-direction: column;
      flex: 1;
      padding: 20px;

      .case-name {
        font-weight: bold;
        color: var(--color-primary);

        .case-role {
          font-weight: normal;
          line-height: 0;
          color: var(--color-text);
        }

        .case-text {
          margin-bottom: auto;
          font-size: 16px;
          color: var(--color-text);
        }
      }
      .case-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
        margin-bottom: 20px;

        .case-tag {
          border-radius: var(--radius-xl);
          border: 1px solid var(--color-primary);
          color: var(--color-primary);
          margin-bottom: 0;
          padding: 12px 24px;
          font-weight: bold;
          line-height: 100%;
          flex-shrink: 0;
        }

        .btn-primary {
          color: var(--color-white);
          white-space: nowrap;
          flex-shrink: 0;
        }

        &:not(:has(.case-tag)) .btn {
          width: 100%;
        }
      }
    }
  }
}

#clientes {
  padding: 80px 0;
  overflow: hidden;
  position: relative;
  background: var(--color-white);

  &::after,
  &::before {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
  }
  &::before {
    left: 0;
    background: linear-gradient(to right, var(--color-white) 30%, transparent);
  }
  &::after {
    right: 0;
    background: linear-gradient(to left, var(--color-white) 30%, transparent);
  }

  .clientes-slider-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);

    .clientes-parceiros {
      width: 100%;

      .swiper-wrapper {
        align-items: center;
        transition-timing-function: linear !important;
        will-change: transform;
      }
    }
  }

  .clientes-title {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 40px;
  }

  .cliente-logo {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    img {
      max-height: 90px;
      object-fit: contain;
      filter: grayscale(100%);
      opacity: 0.7;
      transition: 0.4s ease;
    }

    &:hover img {
      filter: grayscale(0%);
      opacity: 1;
      transform: scale(1.05);
    }
  }
}

#contato {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 80px 0;

  .contato-title {
    margin-bottom: 20px;
  }

  .contato-text {
    font-weight: 400;
    font-size: 20px;
    margin-bottom: 30px;
  }

  .contato-content {
    display: flex;
    flex-direction: column;
    gap: 16px;

    form {
      width: 100%;
    }

    .btn-form {
      justify-items: end;
    }
  }
}

@media (width <= 992px) {
  #numeros {
    .numero-item {
      width: auto;
    }

    .swiper-button-prev,
    .swiper-button-next {
      width: 48px;
      height: 48px;
      border: 2px solid var(--color-primary);
      border-radius: 50%;
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      top: 70%;
      transform: translateY(-50%);

      &::after {
        font-size: 18px;
        color: var(--color-primary);
        font-weight: bold;
      }

      &:hover {
        background: var(--color-primary);
        &::after {
          color: var(--color-white);
        }
      }
    }
  }
  #dores {
    .dores-wrapper {
      display: flex;
      flex-direction: column;

      &::before {
        width: 100%;
        border-radius: 0;
      }
      .dores-image-wrapper {
        position: relative;
        width: 80%;
        top: 40px;
        bottom: auto;
        right: auto;
        display: block;
        margin-top: -80px;
        align-self: center;
      }
    }

    .dores-content {
      padding: 50px 0 40px;
    }

    .dores-image-wrapper {
      position: relative;
      width: 100%;
      top: auto;
      bottom: auto;
      right: auto;
      display: block;
      margin-top: -80px;

      img {
        border-radius: 30px;
        width: 100%;
      }
    }
  }

  #solucoes {
    .swiper-slide {
      box-sizing: border-box;
    }

    .swiper-wrapper {
      flex-wrap: nowrap;
    }

    .swiper-controls {
      display: flex;
      justify-content: space-evenly;
      align-items: center;
      gap: 20px;
      margin-top: 24px;
    }

    .solucao-button-prev,
    .solucao-button-next {
      position: relative;
      top: auto;
      left: auto;
      right: auto;
      transform: none;
      margin-top: 0;
      width: 40px;
      height: 40px;
      border: 2px solid var(--color-primary);
      border-radius: var(--radius-xl);
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;

      &::after {
        font-size: 18px;
        color: var(--color-primary);
        font-weight: bold;
      }

      &:hover {
        background: var(--color-primary);
        &::after {
          color: var(--color-white);
        }
      }
    }

    .solucao-pagination {
      position: relative;
      top: auto;
      left: auto;
      right: auto;
      transform: none;
      width: auto;

      .swiper-pagination-bullet {
        width: 15px;
        height: 15px;
        background-color: #bfbfbf;
      }
      .swiper-pagination-bullet-active {
        background-color: var(--color-primary);
      }
    }
  }

  #cases {
    .swiper-slide {
      box-sizing: border-box;
      height: auto;
      display: flex;
    }

    .swiper-wrapper {
      flex-wrap: nowrap;
      align-items: flex-start;
    }

    .swiper-controls {
      display: flex;
      justify-content: space-evenly;
      align-items: center;
      gap: 20px;
      margin-top: 24px;
    }

    .case-button-prev,
    .case-button-next {
      position: relative;
      top: auto;
      left: auto;
      right: auto;
      transform: none;
      margin-top: 0;
      width: 40px;
      height: 40px;
      border: 2px solid var(--color-white);
      border-radius: var(--radius-xl);
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;

      &::after {
        font-size: 18px;
        color: var(--color-white);
        font-weight: bold;
      }

      &:hover {
        background: var(--color-white);
        &::after {
          color: var(--color-primary);
        }
      }
    }

    .case-pagination {
      display: block;
      position: relative;
      top: auto;
      left: auto;
      right: auto;
      transform: none;
      width: auto;

      .swiper-pagination-bullet {
        width: 15px;
        height: 15px;
        background-color: #bfbfbf;
      }
      .swiper-pagination-bullet-active {
        background-color: var(--color-white);
      }
    }

    .cases-card {
      height: auto;
      width: 100%;
    }

    .case-footer {
      .case-tag {
        padding: 12px 12px;
      }
    }
  }
}

@media (width <= 768px) {
  #banner {
    min-height: 60dvh;

    .banner-content {
      padding-top: 0px !important;
      padding-bottom: 140px;
      min-height: 720px;
      text-align: center;

      .banner-actions {
        justify-content: center;
        a {
          width: 80%;
        }
      }
    }
  }

  #numeros {
    .numeros-list {
      padding: 24px 0px;
      padding-left: 0px;

      .numero-item {
        padding: 0px 70px;
      }
    }
  }

  #dores {
    padding: 20px 0 100px;

    .dores-wrapper::before {
      bottom: 200px;
    }

    .dores-image-wrapper {
      width: 80%;
      top: 40px;
      align-self: center;

      img {
        height: 50vh;
        object-fit: cover;
      }
    }
  }

  #solucoes {
    padding-bottom: 40px;
  }

  #cases {
    padding: 40px 0;
  }

  #clientes {
    padding: 40px 0;

    &::after,
    &::before {
      bottom: 0;
      top: auto;
      height: 60%;
      width: 50px;
    }
  }

  #contato {
    padding: 40px 0;

    .btn-form {
      margin-top: 20px;
      p {
        width: 100%;
      }
    }
  }
}
