/* Home (front-page.php). */

.home-banner {
  margin: var(--space-2) var(--space-2) 140px;
  padding: 110px var(--space-4) var(--space-1);
}

.banner-image {
  clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
  width: 100%;
}

.logo-list.home-logo-list {
  padding-left: 0;
  padding-right: 0;
}

.logo-section {
  padding-top: var(--space-12);
}

.home-banner-wrap {
  margin-bottom: -155px;
}

.project-section {
  padding: 0 var(--space-6) var(--space-12);
}

.image-column-layout {
  padding: var(--space-12) 0;
  position: relative;
}

.image-block.rtl-image-block {
  order: 1;
}

.block-content.rtl-content-block {
  padding-left: 0;
  padding-right: var(--space-6);
}

.bg-shadow {
  z-index: -1;
  background-color: var(--theme-blue-tint);
  border-radius: var(--radius-sm);
  width: 85%;
  height: 65%;
  margin-left: auto;
  margin-right: auto;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.box-bg-shadow {
  z-index: -1;
  background-color: var(--theme-blue-tint);
  border-radius: var(--radius-sm);
  width: 50%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  position: absolute;
  right: 10%;
}

.box-bg-shadow.shared-shadow-bottom {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  top: 0;
  bottom: auto;
}

.box-bg-shadow.shared-shadow-top {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  height: 75%;
  top: 25%;
}

.section-title-h3 {
  color: var(--black);
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: var(--space-6);
  font-size: clamp(26px, 22.4789px + 0.939vw, 36px);
  line-height: clamp(36px, 32.4789px + 0.939vw, 46px);
}

.section-title-h3.contact-title {
  text-wrap: balance;
  margin-bottom: var(--space-6);
}

@media screen and (min-width: 1440px) {
  .home-banner {
    padding: 150px var(--space-3) var(--space-3);
  }

  .block-content.rtl-content-block {
    padding-right: var(--space-8);
  }
}

@media screen and (min-width: 1920px) {
  .home-banner {
    margin-top: var(--space-4);
    margin-left: var(--space-4);
    margin-right: var(--space-4);
  }

  .block-content.rtl-content-block {
    padding-right: var(--space-16);
  }
}

@media screen and (max-width: 991px) {
  .home-banner {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }

  .banner-image {
    object-fit: cover;
    height: 100%;
  }

  .home-banner-wrap {
    margin-left: var(--space-2);
    margin-right: var(--space-2);
  }

  .project-section {
    padding: var(--space-12) var(--space-4) var(--space-2);
  }

  .image-column-layout {
    padding-top: 0;
    display: block;
  }

  .bg-shadow,
  .box-bg-shadow {
    display: none;
    bottom: 30px;
    left: auto;
  }
}

@media screen and (max-width: 767px) {
  .banner-image {
    clip-path: none;
  }

  .logo-section {
    padding-top: var(--space-10);
  }

  .project-section {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }

  .image-column-layout {
    padding-bottom: var(--space-10);
  }
}

@media screen and (max-width: 479px) {
  .logo-list.home-logo-list {
    justify-content: center;
    align-items: center;
  }

  .logo-section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .home-logo-img {
    max-height: 46px;
  }

  .home-logo-list > .logo-tile {
    max-width: 320px;
  }
} /*
 * Home: the labels and the blocks are lists that editors extend. These rules
 * place any number of items; the gaps, paddings and breakpoints stay those of
 * the components.
 */

/*
 * Labels: three per row, in equal columns. Six tracks with each logo over two
 * keep a row that is not full in the middle. From 479px down, logo-list.css puts
 * the logos under each other.
 */

@media screen and (min-width: 480px) {
  .logo-list.home-logo-list {
    display: grid;
    grid-template-rows: none;
    grid-template-columns: repeat(6, 1fr);
  }

  .logo-list.home-logo-list > .logo-tile {
    grid-column: span 2;
  }

  .logo-list.home-logo-list > .logo-tile:nth-child(3n + 1):nth-last-child(2) {
    grid-column: 2 / span 2;
  }

  .logo-list.home-logo-list > .logo-tile:nth-child(3n + 1):last-child {
    grid-column: 3 / span 2;
  }
}

/*
 * Blocks: the photo is wider on the odd blocks; on the even blocks, with the
 * photo on the right, both halves are equal. From 991px down, the rules above show
 * the blocks without a grid.
 */
.project-section .image-column-layout {
  grid-template-columns: 1.25fr 1fr;
}

.project-section .image-column-layout:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}
