/* new home jumbotron carousel */

#home-page-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#home-page-carousel .mobile-images {
  visibility: hidden;
}

#home-page-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

#home-page-carousel .indicator-dots {
  position: absolute;
  left: 50%;
  bottom: 64px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
  z-index: 3;
}

#home-page-carousel .indicator-dots .dot {
  width: 12px;
  height: 12px;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 1s ease;
  cursor: pointer;
}

#home-page-carousel .indicator-dots .dot.current {
  opacity: 1;
}

#home-page-carousel .progress {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
  height: 5px;
  background-color: #757575;
  z-index: 3;
}

#home-page-carousel .progress .bar {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  background-color: #2741e6;
  transform-origin: left;
}

#home-page-carousel .play-toggle {
  position: absolute;
  z-index: 3;
  width: 64px;
  height: 64px;
  right: var(--page-padding);
  bottom: 54px;
  transition: 0.3s ease opacity;
  opacity: 0.5;
  background-image: url("../png/paused_icon.png");
  background-size: cover;
  cursor: pointer;
}

#home-page-carousel .play-toggle.paused {
  background-image: url("../png/play_icon.png");
}

#home-page-carousel .play-toggle:hover {
  opacity: 1;
}

#home-page-carousel .play-toggle:focus-visible{
  outline: 4px solid var(--white);
  outline-offset:2px;
}

@media (max-width: 800px) {
  #home-page-carousel {
    /* height: var(--mobile-image-height); */
  }

  #home-page-carousel .desktop-images {
    visibility: hidden;
  }

  #home-page-carousel .mobile-images {
    visibility: visible;
  }

  #home-page-carousel .play-toggle {
    bottom: 26px;
    width: 42px;
    height: 42px;
  }

  #home-page-carousel .indicator-dots {
    bottom: 32px;
  }
}

/* home - jumbotron */

#home-jumbotron,
#home-jumbotron .mobile-bg-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#home-jumbotron .mobile-bg-image {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

#home-jumbotron .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
}

#home-jumbotron .content .text {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  color: var(--white);
  z-index: 1;
}

#home-jumbotron .content a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

@media (max-width: 800px) {
  #home-jumbotron {
    background: var(--white) !important;
    height: calc(100dvh - 64px);
  }

  #home-jumbotron .mobile-bg-image {
    display: block;
  }

  #home-jumbotron .content {
    margin-top: var(--mobile-image-height);
    /* padding: 70px 0; */
    padding: 70px 0 96px;
    gap: 28px;
    justify-content: flex-end;
  }

  #home-jumbotron .content .text {
    gap: 24px;
    color: var(--white);
    max-width: 350px;
  }
}

/* home - statistics */

#statistics {
  background-color: var(--light-gray-2);
}

#statistics .content:first-child {
  display: flex;
  flex-direction: column;
  padding-block: 100px 72px;
}
#statistics .content:last-child {
  display: flex;
  flex-direction: column;
  padding-block: 0 100px;
  overflow: visible;
}

#statistics .header {
  display: flex;
  flex-direction: column;
  gap: 36px;
  color: var(--black);
}

#statistics .header .description {
  max-width: 440px;
}

#statistics .slides {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 190px;
  width: fit-content;
  will-change: transform;
}

#statistics .slide {
  display: flex;
  width: 382px;
  flex-direction: column;
  gap: 16px;
  border-left: 5px solid var(--turquoise);
  padding-left: 32px;
}

#statistics .slide .value {
  color: var(--blue);
}

#statistics .slide .label {
  color: var(--black);
  max-width: 235px;
}

@media (max-width: 1100px) {
  #statistics .slide {
    width: 340px;
  }
}

@media (max-width: 800px) {
  #statistics .content {
    padding-bottom: 60px !important;
  }

  #statistics .content:first-child {
    padding-top: 70px;
  }

  #statistics .content.break-left {
    grid-column-start: 3;
  }

  #statistics .content.break-right {
    grid-column-end: -3;
  }

  #statistics .header {
    gap: 32px;
  }

  #statistics .slides {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 44px;
    column-gap: 20px;
    height: auto;
  }

  #statistics .slide {
    width: 100%;
    border-left: none;
    border-top: 5px solid var(--turquoise);
    padding: 16px 0 0;
    gap: 8px;
  }
}

/* home - customer types */

#customer-types {
  background-color: var(--white);
}

#customer-types .content {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 132px 0;
}

#customer-types .header {
  display: flex;
  flex-direction: column;
  gap: 36px;
  color: var(--black);
}

#customer-types .cards {
  display: flex;
  gap: 24px;
}

#customer-types .card {
  width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: width 0.5s ease;
  cursor: pointer;
}

#customer-types .card:hover {
  width: 40%;
}

#customer-types .card img {
  width: 100%;
  height: 320px;
  border-radius: 30px;
  object-fit: cover;
}

#customer-types .card .label {
  display: flex;
  justify-content: center;
  text-align: center;
  color: var(--black);
  max-width: 156px;
}

@media (max-width: 800px) {
  #customer-types .content {
    gap: 40px;
    padding: 70px 0;
  }

  #customer-types .header {
    gap: 20px;
  }

  #customer-types .cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 56px;
    column-gap: 20px;
  }

  #customer-types .card {
    width: 100% !important;
    transition: none;
  }

  #customer-types .card img {
    height: 180px;
    border-radius: 15px;
  }

  #customer-types .card .label {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    max-width: 100%;
  }
}

/* home - video cta */

#video-cta {
  background-color: var(--semitransparent-black-35);
}

#video-cta video,
#video-cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

#video-cta .content {
  display: flex;
  flex-direction: column;
  color: var(--white);
  height: 100%;
  align-items: flex-start;
  gap: 60px;
  justify-content: flex-end;
  padding-bottom: 72px;
  max-width: 500px;
}

#video-cta .content .title {
  margin-bottom: -30px;
}

#video-cta .content .description {
  max-width: 360px;
}

@media (max-width: 800px) {
  #video-cta {
    height: 580px;
  }

  #video-cta .content {
    gap: 30px;
    padding-bottom: 70px;
  }

  #video-cta .content .title {
    margin-bottom: -20px;
  }

  #video-cta .content .description {
    max-width: 100%;
  }

  #video-cta .button-outline {
    margin-top: 30px;
  }
}

/* home - resources */

#home-resources {
  background-color: var(--white);
}

#home-resources .content {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 132px 0;
}

#home-resources .title {
  color: var(--black);
  max-width: 480px;
}

#home-resources .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

#home-resources .card {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

#home-resources .card .image-wrapper-outer {
  position: relative;
  height: 360px;
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
}

#home-resources .card .image-wrapper-inner {
  position: absolute;
  left: 0;
  top: -25%;
  width: 100%;
  height: 150%;
  will-change: transform;
}

#home-resources .card .image-wrapper-outer .image-wrapper-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

#home-resources .card:hover .image-wrapper-outer .image-wrapper-inner img {
  transform: scale(1.05);
}

#home-resources .card .details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

#home-resources .card .details .text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#home-resources .card .label {
  color: var(--black);
}

#home-resources .card .description {
  color: var(--black);
}

#home-resources .card .link {
  color: var(--blue);
  text-decoration: underline;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  #home-resources .content {
    padding: 70px 0;
    gap: 36px;
  }

  #home-resources .title {
    max-width: 100%;
  }

  #home-resources .cards {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }

  #home-resources .card .image-wrapper-outer {
    height: 300px;
  }

  #home-resources .card .details .text {
    gap: 24px;
  }

  #home-resources .card .details {
    gap: 16px;
  }
}

/* home - news */

#news {
  background-color: var(--light-gray-3);
}

#news .content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 140px 0;
}

#news .title {
  color: var(--black);
}

#news .divider-line {
  width: 100%;
  height: 2px;
  background-color: var(--light-gray-4);
}

#news .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

#news .bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
}

#news .bottom .see-more-link {
  display: flex;
  gap: 20px;
  text-transform: uppercase;
  color: var(--blue);
}

#news .bottom .see-more-link .plus {
  font-size: 40px;
}

@media (max-width: 800px) {
  #news .content {
    padding: 70px 0;
    gap: 0;
  }

  #news .title {
    text-align: center;
    margin-bottom: 30px;
  }

  #news .content > .divider-line {
    margin-left: calc(-1 * var(--page-padding));
    margin-right: calc(-1 * var(--page-padding));
    width: calc(100% + calc(2 * var(--page-padding)));
  }

  #news .content > .divider-line {
    margin-bottom: 44px;
  }

  #news .cards {
    margin-bottom: 56px;
    display: flex;
    flex-direction: column;
  }

  #news .bottom {
    gap: 24px;
    align-items: center;
  }
}

/* home - final cta */

#final-cta {
  background-color: var(--white);
}

#final-cta .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding: 92px 0;
  z-index: 1;
}

#final-cta .cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  border: 4px solid var(--blue);
  border-radius: 30px;
  padding: 52px 120px 44px;
  width: 920px;
}

#final-cta .cta .title {
  color: var(--black);
  text-align: center;
}

#final-cta .logos-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  color: var(--black);
}

#final-cta .logos {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
}

#final-cta .logo-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#final-cta .logo {
  width: 100%;
  max-width: 140px;
}

@media (max-width: 1100px) {
  #final-cta .cta {
    width: auto;
  }

  #final-cta .logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  #final-cta .cta {
    padding: 64px 52px;
    gap: 32px;
  }

  #final-cta .logos-container {
    gap: 32px;
  }

  #final-cta .logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}
