/* Section One */

section.banner {
  height: 800px;
  align-content: center;
  position: relative;

  .content {
    max-width: 650px;

    h1 {
      margin-bottom: 20px;
      @media all and (max-width: 575px) {
        font-size: 40px;
      }
    }

    p {
      margin-bottom: 30px;
    }

    @media (max-width: 991px) {
      max-width: 100%;
    }
  }

  p.text-white {
    color: #fafbfc !important;
  }

  video.video_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
  }

  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
      linear-gradient(180deg, rgba(21, 21, 21, 0) 0%, #151515 100%),
      linear-gradient(
        0deg,
        rgba(21, 21, 21, 0.5) 0%,
        rgba(21, 21, 21, 0.5) 100%
      );
    z-index: -1;
  }

  .group_btn {
    display: flex;
    align-items: center;
    gap: 0 20px;

    a.our_product {
      display: flex;
      align-items: center;
      gap: 0 10px;
      color: var(--Red, #ed1c24);
      font-family: "Lato", sans-serif;
      font-size: 16px;
      font-style: normal;
      font-weight: 700;
      line-height: 24px;
      text-decoration: none;

      &:hover {
        transition: 0.5s ease all;
        -webkit-transition: 0.5s ease all;
        -moz-transition: 0.5s ease all;
        -ms-transition: 0.5s ease all;
        -o-transition: 0.5s ease all;
        gap: 0 15px;
      }

      @media all and (max-width: 420px) {
        padding-left: 15px;
      }
    }

    @media (max-width: 420px) {
      flex-direction: column;
      gap: 20px 0;
      align-items: start;
    }
  }

  @media (max-width: 767px) {
    height: 500px;
  }
}

section.why-choose-us {
  background: #151515;

  .header {
    max-width: 900px;
    margin: 0 auto 60px auto;

    @media (max-width: 991px) {
      margin: 0 auto 40px auto;
    }

    @media (max-width: 767px) {
      margin: 0 auto 30px auto;
    }
  }

  h2 {
    font-size: 40px;
    padding: 20px;
  }

  .box_container {
    display: flex;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;

    .count {
      p.counter {
        color: var(--red);
        text-align: center;
        font-family: "Poppins", sans-serif;
        font-size: 50px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        margin-bottom: 10px;
      }

      @media (max-width: 991px) {
        width: calc((100% - 60px) / 3);
        justify-content: center;
      }

      @media (max-width: 767px) {
        width: calc((100% - 30px) / 2);
      }

      @media (max-width: 575px) {
        width: 100%;
      }
    }

    @media (max-width: 991px) {
      justify-content: center;
    }
  }

  @media all and (max-width: 575px) {
    padding-top: 100px;
  }
}

section.products {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;

  h3.text-white {
    font-family: Poppins;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }

  h2 {
    font-size: 40px !important;
  }

  .product-top-one {
    max-width: 650px;
    width: 100%;
  }

  .aluminum-text {
    max-width: 650px;

    p {
      margin-bottom: 30px;
      top: 1.5rem;
      height: unset !important;

      @media (max-width: 1440px) {
        top: 0 !important;
      }
    }
  }

  .group_btn {
    display: flex;
    align-items: center;
    gap: 0 10px;

    button {
      border-radius: 100px;
      background: var(--Red, #ed1c24);
      border: 1px solid var(--Red, #ed1c24);
      padding: 8px 16px;
      height: 35px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    button.prev:disabled {
      background-color: transparent;
    }
  }

  .group_btn button {
    border-radius: 100px;
    background: var(--Red, #ed1c24);
    border: 1px solid var(--Red, #ed1c24);
    padding: 8px 16px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
  }

  .group_btn .prev {
    background: transparent;
    border: 1px solid var(--Red, #ed1c24);
  }

  .product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;

    > div {
      @media (min-width: 999px) {
        width: calc(50% - 25px);
      }

      @media (max-width: 991px) {
        max-width: 100%;
      }
    }

    @media (max-width: 991px) {
      flex-direction: column;
      align-items: start;
    }
  }

  div#our_products {
    .item {
      padding: 30px;
      border-radius: 10px;
      min-height: 500px;
      align-content: end;
      position: relative;
      overflow: hidden;

      .image {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          image-rendering: crisp-edges;
        }

        &:hover img {
          transition: 0.5s ease all;
          transform: scale(1.2);
        }

        &::after {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: linear-gradient(
            180deg,
            rgba(21, 21, 21, 0) 0%,
            #151515 100%
          );
          z-index: 1;
        }
      }

      .main_content {
        position: relative;
        z-index: 2;

        p {
          margin-bottom: 20px !important;
          min-height: 100px;
        }
      }
    }
  }
}

section.who-we-are {
  background:
    linear-gradient(
      270deg,
      rgba(21, 21, 21, 0) 25.38%,
      rgba(21, 21, 21, 0.8) 80%
    ),
    linear-gradient(0deg, rgba(21, 21, 21, 0.3) 0%, rgba(21, 21, 21, 0.3) 100%),
    url("../../assets/img/homepage/Building\ with\ KENMOS.jpg") no-repeat center
      center/cover;

  h2.text-white {
    font-size: 40px;
  }

  .who-we-are-heading {
    max-width: 650px;
    width: 100%;
  }

  .box_container {
    gap: 24px;
    display: flex;
    margin-top: 100px;
    flex-wrap: wrap;

    .content {
      width: calc((100% - 72px) / 4);
      padding: 20px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(5px);

      @media (min-width: 991px) {
        max-width: 250px;
      }

      p:first-child {
        font-family: "Poppins" !important;
        font-size: 50px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        margin: 0px 0px 20px;
      }

      p:nth-child(2) {
        font-family: "Roboto", sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        margin: 0px 0px 20px;
        line-height: 24px;
      }

      p {
        color: var(--white);
        font-family: "Lato", sans-serif !important;
      }

      @media (max-width: 991px) {
        width: calc((100% - 48px) / 3);
      }

      @media (max-width: 767px) {
        width: calc(50% - 12px);
      }

      @media (max-width: 575px) {
        width: 100%;
      }
    }

    @media (max-width: 1200px) {
      margin-top: 70px;
    }

    @media (max-width: 991px) {
      margin-top: 60px;
    }

    @media (max-width: 767px) {
      margin-top: 50px;
    }

    @media (max-width: 575px) {
      margin-top: 50px;
    }
  }
}

section.serviced-locations p {
  position: relative;
  bottom: 12px;
}

section.serviced-locations .owl-carousel .owl-dots.disabled {
  display: block !important;
}

.owl-nav {
  display: none;
}

.owl-dots {
  margin-top: 60px !important;
}

section.who-trust-us {
  h2 {
    font-size: 40px !important;
    margin-bottom: 20px;
  }

  .header {
    margin: 0 auto 100px auto;
    max-width: 662px;

    * {
      text-align: center;
    }

    @media (max-width: 1200px) {
      margin-top: 70px;
    }

    @media (max-width: 991px) {
      margin-top: 60px;
    }

    @media (max-width: 767px) {
      margin-top: 50px;
    }

    @media (max-width: 575px) {
      margin-top: 50px;
    }
  }

  div#featured_projects {
    img {
      height: 50px;
      object-fit: contain;
      object-position: center;
      width: fit-content;
    }
  }
}

/* =============================================
   FEATURED PROJECTS CAROUSEL — Uniform Cards
   ============================================= */

section.serviced-locations {
  background-color: #151515;

  h2 {
    font-size: 40px;
  }

  p {
    margin-bottom: 30px;
    padding-top: 90px;

    @media (max-width: 993px) {
      padding-top: 0px;
    }
  }

  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px 50px;
    padding: 0 30px;

    > div {
      width: calc(50% - 25px);
      max-width: 650px;

      @media (max-width: 991px) {
        width: 100%;
        max-width: 100%;
      }
    }

    @media (max-width: 993px) {
      flex-direction: column;
      gap: 30px 0;
    }

    @media (max-width: 767px) {
      padding: 0 20px;
    }
  }

  /* ── Owl item alignment ── */
  .owl-item {
    display: flex;
    align-items: stretch;
  }

  div#testimonialsTwo {
    h3 {
      color: white;
      margin-bottom: 0;
    }

    /* ── Every card: same fixed aspect ratio, no Owl center-mode distortion ── */
    .item {
      display: flex;
      flex-direction: column;
      width: 100%;
      border-radius: 10px;
      overflow: hidden;
      position: relative;

      /* 4:5 portrait ratio — adjust to taste (e.g. 16/9 for landscape) */
      aspect-ratio: 4 / 5;

      /* Cancel Owl center-mode scale-up so all cards stay the same height */
      transform: none !important;
      -webkit-transform: none !important;

      /* Dark gradient so the title label is always legible */
      &::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
          to top,
          rgba(21, 21, 21, 0.75) 0%,
          rgba(21, 21, 21, 0) 55%
        );
        border-radius: 10px;
        z-index: 1;
      }
    }

    /* ── Image fills the card completely ── */
    .item > img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      border-radius: 10px;
    }

    /* ── Title pinned to the bottom, above the overlay ── */
    .project-heading {
      position: absolute;
      bottom: 20px;
      left: 20px;
      right: 10px;
      z-index: 2;
    }
  }
}

/* Responsive aspect ratios */
@media (max-width: 991px) {
  section.serviced-locations .owl-carousel {
    padding: 0 20px;
  }
}

@media (max-width: 767px) {
  section.serviced-locations div#testimonialsTwo .item {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 575px) {
  section.serviced-locations div#testimonialsTwo .item {
    aspect-ratio: 1 / 1;
  }
}

section.serviced-locations-three {
  background-color: #151515;

  h2 {
    font-size: 40px;
    margin-bottom: 20px;
  }

  .content {
    max-width: 650px;

    @media (max-width: 991px) {
      max-width: 100%;
    }
  }

  .location-container {
    display: flex;
    align-items: start;
    gap: 0 10px;

    p {
      width: calc(100% - 25px);
    }
  }
}

section.testimonials {
  #testimonialsThree .owl-stage {
    display: flex;
  }

  .owl-theme .owl-dots .owl-dot:not(.active) span {
    border-color: #ed1c24;
  }

  #testimonialsThree .item {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  #testimonialsThree .owl-item {
    display: flex;
    align-items: stretch;
    margin-left: 2px;
  }

  h2 {
    font-size: 40px;
    margin-bottom: 20px;
  }

  .header {
    max-width: 662px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  div#testimonialsThree {
    .owl-stage {
      padding: 10px 0 60px 0;
    }

    .owl-dots {
      margin-top: 0;
    }

    .item {
      padding: 20px;
      border-radius: 10px;
      background: #fff;
      box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      align-items: center;

      img.dummyProfile {
        width: 50px;
        height: 50px;
        object-fit: contain;
      }

      .profile_bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        gap: 20px;

        p {
          text-align: center;
          margin-bottom: 0px;
        }

        .profilepic {
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 10px 0;
        }
      }

      > p {
        text-align: center;
        font-weight: 700;
        margin-top: 20px;
        margin-bottom: 24px;
      }
    }
  }
}

section.testimonials .what-our {
  margin-bottom: 60px;
}

section.testimonials {
  p[class^="owl-"] {
    font-weight: 700;
  }

  p[class^="anon"] {
    font-weight: 700;
  }
}

section.ready-to-get-started {
  h2.text-white {
    font-size: 40px;
  }

  .wrapper.position-relative {
    position: relative;
    padding: 100px;
    min-height: 434px;
    align-content: center;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    overflow: hidden;

    img {
      position: absolute;
      top: 0;
      right: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    @media (max-width: 1200px) {
      padding: 70px 30px;
    }

    @media (max-width: 767px) {
      padding: 50px 20px;
    }
  }
}

.serviced-locations-three iframe {
  max-width: 100%;
  width: 100%;
}

.why-choose-us .col-12.text-center p.text-white {
  margin-bottom: 60px;
}

.who-we-are h2 {
  margin-bottom: 20px;
}

@media all and (max-width: 991px) {
  .serviced-locations-three .red_text {
    margin-top: 30px;
  }
}
