/* ============================================SERVICES PAGE=================================== */
.services {
  height: 100%;
  width: 100%;
}

/* Hero Section */
.services .layout {
  height: 700px;
  max-height: 80vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.services .layout .container {
  position: absolute;
  bottom: 50%;
  transform: translateY(50%);
  width: 100%;
  height: 100%;
  z-index: 5;

  display: flex;
  justify-content: center;
  align-items: center;

  background-color: #093d0f59;
}

.services .layout .hero-image {
  filter: brightness(100%);
  height: 100%;
  width: 100%;

  object-fit: cover;
  object-position: center;
}

.services .layout h1 {
  font-weight: 600;
  color: white;
  letter-spacing: 7px;
  text-align: center;
  letter-spacing: normal;

  font-size: 3rem;
  line-height: 1.5;
  color: whitesmoke;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  text-transform: uppercase;
}

@media only screen and (max-width: 1000px) {
  .services .layout {
    height: 50vh;
    max-height: auto;
    width: 100%;
    position: relative;
    z-index: 0;
  }

  .services .layout h1 {
    font-weight: 600;
    font-size: 3.5rem;
    color: white;
    letter-spacing: normal;
  }
}

@media only screen and (max-width: 765px) {
  .services .layout {
    max-height: auto;
    height: 50vh;
    width: 100%;
  }

  .services .layout h1 {
    font-weight: 600;
    font-size: 2rem;
    color: white;
    letter-spacing: normal;
  }
}

/* Service Item Section */
.services .service-item {
  width: 100%;
  height: auto;
  position: relative;
  padding: 5rem 0;
  background-color: white;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.services .service-item.alt {
  background-color: #f5f5f5;
}

.services .service-item .container {
  width: 98%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.services .service-item .container .row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  width: 100%;
  gap: 1.5rem;
}

.services .service-item .container .row .image-wrapper {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: transform 0.5s ease;
  border-radius: 8px;
}

.services .service-item .container .row .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  aspect-ratio: 3.2/2;
  transition: transform 0.5s ease;
}

.services .service-item .container .row .image-wrapper:hover img {
  transform: scale(1.1);
}

.services .service-item .container .row .content {
  width: 50%;
  height: auto;
  gap: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.services .service-item .container .row .content .service-icon-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1rem;

  display: none !important;
}

.services .service-item .container .row .content .service-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.services .service-item .container .row .content h2 {
  color: #34643b;
  font-weight: 800;
  font-size: 2rem;
  margin: 0;
  padding: 0;
  padding-bottom: 0rem;
  text-transform: uppercase;
}

.services .service-item .container .row .content p {
  font-size: 1.25rem;
  line-height: 1.4;
  color: #333;
  padding: 0;
  padding-bottom: 0rem;
}


@media only screen and (max-width: 1050px) {
  .services .service-item {
    width: 100%;
    height: auto;
    position: relative;
    padding: 4rem 1rem;
    box-sizing: border-box;
    margin: 0;
  }

  .services .service-item .container {
    width: 100%;
    min-height: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .services .service-item .container .row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }

  .services .service-item.reverse .container .row {
    flex-direction: column-reverse !important;
  }

  .services .service-item .container .row .image-wrapper {
    width: 100%;
    height: auto;
  }

  .services .service-item .container .row .image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 8px;
  }

  .services .service-item .container .row .content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .services .service-item .container .row .content h2 {
    padding-left: 0%;
    text-align: left;
    padding: 0;
    padding-bottom: 1rem;
  }

  .services .service-item .container .row .content p {
    padding: 0;
    padding-bottom: 1rem;
    text-align: left;
  }
}

@media only screen and (max-width: 765px) {
  .services .service-item {
    height: auto;
    padding: 2rem 0.5rem 3rem 0.5rem;
  }

  .services .service-item.reverse .container .row {
    flex-direction: column-reverse !important;
  }

  .services .service-item .container .row {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
  }

  .services .service-item .container .row .image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 5/4;
    object-fit: cover;
    padding-top: 0rem;
  }

  .services .service-item .container .row .content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .services .service-item .container .row .content h2 {
    padding-left: 0%;
    text-align: left;
    padding: 0;
    padding-bottom: 0rem;
    font-size: 1.5rem;
  }

  .services .service-item .container .row .content p {
    padding-bottom: 1rem;
    padding: 0;
    text-align: left;
    font-size: 1.1rem;
  }

}

/* CTA Section */
.services .cta {
  background-image: url("https://plantechkenya.com/wp-content/uploads/2026/02/0A0A4887-1.jpg");
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  height: 500px;
  width: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;

  color: white;
  z-index: 0;
}

.services .cta::after {
  content: "";
  background-color: #000;
  opacity: 50%;
  z-index: 5;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.services .cta .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;

  z-index: 10;

  max-width: 1400px;
  width: 90%;
  text-align: center;
}

.services .cta h2 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.services .cta p {
  font-size: 1.5rem;
  font-weight: 400;
  padding: 1rem 0;
  line-height: normal;
  text-align: center;
  color: white;
}

.services .cta div {
  padding-bottom: 2rem;
  font-size: 1.2rem;
  text-align: center;
  max-width: 800px;
}

@media only screen and (max-width: 768px) {
  .services .cta {
    background-attachment: scroll;
    height: auto;
    padding: 3rem 1rem;
    min-height: 350px;
    box-sizing: border-box;

    display: flex;
    justify-content: center;
    align-items: center;
  }

  .services .cta .container {
    width: 95%;
    margin: 0 auto;
  }

  .services .cta h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
  }

  .services .cta p {
    font-size: 1.2rem;
  }

  .services .cta div {
    font-size: 1rem;
  }
}
