@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@300;400;500;600;700&family=Manrope:wght@400;500;600&display=swap");

.services-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  font-family: "Manrope", sans-serif;
  border-radius: 20px;
  background: linear-gradient(
    5deg,
    rgba(160, 174, 118, 0.2) 6.56%,
    rgba(246, 242, 234, 0.2) 57.15%
  );
  border-radius: 20px;
  padding: 80px 0;
}
.services-section__tabs {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: 100%;
  min-height: 72px;
  padding: 0 20px;
  box-sizing: border-box;
  background: #d7dac1;
  border-radius: 20px;
  max-width: 1440px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}


  .services-section__tabs::-webkit-scrollbar {
    display: none;
  }


.services-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #67695c;
  font-family: "Manrope", sans-serif;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

.services-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 5px;
  background: var(--primary);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.services-tab.is-active {
  color: var(--jns-text);
}

.services-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.services-tab__number {
  color: rgba(103, 105, 92, 0.5);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
}

.services-tab__title {
  color: inherit;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px;
  white-space: nowrap;
}

.services-section__contents {
  position: relative;
}

.services-container {
  max-width: 100%;
  padding: 0 20px;
}

.services-content {
  position: relative;
  display: none;
  min-height: 595px;
  padding: 60px 56px 40px;
  overflow: hidden;
  box-sizing: border-box;
  max-width: 1440px;
  margin: 0 auto;
}

.services-content.is-active {
  display: block;
  animation: servicesFadeIn 0.35s ease;
}

@keyframes servicesFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-content__background-text {
  position: absolute;
  top: 18px;
  left: 38px;
  z-index: 0;
  color: #bcbcbc;
  opacity: 0.12;
  font-family: "Manrope", sans-serif;
  font-size: 100px;
  font-weight: 800;
  line-height: normal;
  white-space: normal;
  pointer-events: none;
  user-select: none;
}

.services-content__top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 38% 62%;
  gap: 30px;
}

.services-content__heading {
  padding-right: 40px;
}

.services-content__description {
  max-width: 650px;
  padding-top: 3px;
}

.services-main-paragraph,
.services-secondary-paragraph {
  margin: 0;
}

.services-main-paragraph {
  color: var(--jns-text);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px;
}

.services-secondary-paragraph {
  margin-top: 14px;
  color: #67695c;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
}

.services-main-paragraph p,
.services-secondary-paragraph p {
  margin: 0 0 14px;
}

.services-main-paragraph p:last-child,
.services-secondary-paragraph p:last-child {
  margin-bottom: 0;
}

.services-content__bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 38% 62%;
  gap: 30px;
  margin-top: 64px;
}

.services-list-wrapper {
  padding-right: 40px;
}

.services-list-label {
  margin-bottom: 18px;
  color: rgba(103, 105, 92, 0.6);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--jns-text);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px;
}

.services-list__number {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 500;
}

.services-list__text {
  flex: 1;
}

.services-cards {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 14px;
  min-width: 0;
}

.services-target-card {
  position: relative;
  display: flex;
  min-height: 282px;
  overflow: hidden;
  border-radius: 20px;
  background-color: #4f7430;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
}

.services-target-card__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(72, 109, 39, 0.93);
  mix-blend-mode: multiply;
}

.services-target-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.services-target-card__dot {
  width: 14px;
  height: 14px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #d9ff00;
}

.services-target-card h3 {
  max-width: 320px;
  margin: 0;
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 300;
  line-height: 1.15;
  text-align: center;
}

.services-target-card__line {
  width: 43px;
  height: 1px;
  margin: 25px 0 22px;
  background: rgba(255, 255, 255, 0.35);
}

.services-target-card p {
  margin: 0 0 20px;
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  text-align: center;
}

.services-primary-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.services-primary-button > span:first-child {
  display: inline-block;
  background-color: #d9ff00;
  color: #1b2110;
  padding: 9px 22px;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1.2;
  transition: background-color 0.25s ease;
}

.services-primary-button__icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: transparent !important;
  color: #d9ff00;
  flex-shrink: 0;
}

.services-primary-button__icon svg,
.services-primary-button__icon .button-arrow {
  display: block !important;
  width: 18px;
  height: 18px;
  color: #d9ff00;
  stroke-width: 2.5;
  transition: transform 0.25s ease;
}

/* Hover Effect */
.services-primary-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.services-primary-button:hover > span:first-child {
  background-color: #e5ff33;
}

.services-primary-button:hover .services-primary-button__icon svg,
.services-primary-button:hover .button-arrow {
  transform: rotate(45deg);
}

.services-right-image {
  position: relative;
  min-height: 282px;
  overflow: hidden;
  border-radius: 20px;
  background: #ddd;
}

.services-right-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 282px;
  object-fit: cover;
  mix-blend-mode: multiply;
}

@media (max-width: 1100px) {

  .services-container{
      padding: 0;
  }

  .services-section{
    padding: 0;
  }
 
  .services-tab::after {
    bottom: 0;
  }

  .services-content {
    padding: 80px 20px;
  }

  .services-content__top,
  .services-content__bottom {
    grid-template-columns: 1fr;
  }

  .services-content__heading {
    padding-right: 0;
  }

  .services-content__description {
    max-width: 100%;
  }

  .services-list-wrapper {
    padding-right: 0;
  }

  .services-cards {
    grid-template-columns: 1fr;
  }

  .services-right-image {
    display: none !important;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

  .services-container{
      padding: 0 20px;
  }
  .services-section {
    border-radius: 16px;
    padding: 0;
  }

  .services-section__tabs {
    display: flex;
    width: 100%;
    padding: 0;
    overflow-x: auto;
    border-radius: 16px;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .services-section__tabs::-webkit-scrollbar {
    display: none;
  }

  .services-tab {
    flex: 0 0 180px;
    min-height: 74px;
    padding: 13px 16px;
  }

  .services-content {
    min-height: auto;
    padding: 40px 0px;
  }

  .services-content__background-text {
    top: 35px;
    left: 10px;
    font-size: 80px;
  }

  .services-content__top {
    gap: 0px;
  }

  .services-content__heading h2 {
    font-size: 40px;
    line-height: 1.08;
  }

  .services-main-paragraph,
  .services-secondary-paragraph {
    font-size: 15px;
    line-height: 24px;
  }

  .services-content__bottom {
    margin-top: 24px;
    gap: 24px;
  }

  .services-cards {
    grid-template-columns: 1fr;
  }

  .services-target-card {
    min-height: 300px;
  }

  .services-right-image {
    display: none !important;
  }
}

@media (max-width: 576px) {

  .services-section{
    padding: 40px 0 0 0;
  }
  .services-tab {
    flex-basis: 165px;
  }

    .services-content {
    min-height: auto;
    padding: 40px 0px;
  }

  .services-content__heading h2 {
    font-size: 34px;
  }

  .services-target-card h3 {
    font-size: 30px;
  }

  .services-target-card__content {
    padding: 25px 18px;
  }
}
