/* =============================================
   SERVICES PAGE STYLES
   ============================================= */

/* ---------- Hero Section ---------- */
.services-hero {
  position: relative;
  background:
    url("../images/services/f79dd2113bbc6fef70e9994c3f80101fbb962856.jpg") center center / cover no-repeat,
    url("../images/shapes/main-slider-two-shape-1.png") no-repeat;
  min-height: 550px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  background-blend-mode: hard-light;
}

.services-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.services-hero__shape {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.services-hero__shape img {
  display: block;
  max-width: 100%;
  height: auto;
}

.services-hero__inner {
  position: relative;
  z-index: 2;
}

.services-hero__title {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

/* ---------- Intro Text ---------- */
.services-intro {
  padding: 24px 0 40px;
  background: #fff;
}

.services-intro__text {
  color: var(--Pri, #6653e8);
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 34px; /* 141.667% */
  margin-bottom: 87px;
}

/* ---------- Three Service Pillars ---------- */
.service-pillars {
  padding: 24px 0 476px;
  background-image: url("../images/services/Union.png"), url("../images/services/squares-2.png");

  background-repeat: no-repeat, no-repeat;

  background-position:
    bottom -150px left,
    top 10px right;

  background-color: #fff;
}

.service-pillars__title {
  color: #1b1525;
  text-align: center;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 50px; /* 125% */
  margin-bottom: 62px;
}

.service-pillars__card {
  min-height: 145px;
  padding: 44px 30px 13px 30px;
  margin-bottom: 30px;
  cursor: pointer;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  background: #fff;
  box-shadow: 1px 2px 13px 3px rgba(52, 14, 92, 0.26);
}

/* Active / clicked state — purple dashed border */
.service-pillars__card.is-active {
  border: 2px dashed #6653e8;
}

.service-pillars__card-title {
  color: var(--Color-2, #1b1525);
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px; /* 122.222% */
  margin-bottom: 32px;
}

/* Purple block — the thick violet bar */
.service-pillars__bar {
  background: #7968ed;
  height: 67px;
  transition: height 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: absolute;
  top: 0;
  margin: 0 1rem 0 1rem;
}

.service-pillars__bar__box {
  height: 34px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(102, 83, 232, 0) 0%, #6653e8 286.76%);
}

/* Description text hidden inside the bar */
.service-pillars__card-desc {
  color: #fff;
  text-align: center;
  padding: 54px 16px 38px 16px;
  opacity: 0;
  transition: opacity 0.35s ease;
  margin: 0;

  color: #fff;
  text-align: center;

  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px; /* 150% */
}

/* Hover: bar expands, text appears */
.service-pillars__card:hover .service-pillars__bar {
  height: 392px;
}

.service-pillars__card:hover .service-pillars__card-desc {
  opacity: 1;
}

/* ---------- Implementation Methodology ---------- */
.methodology {
  position: relative;
  padding: 236px 0 123px;
  overflow: hidden;
  background: url("../images/services/rm378-03-1.png") lightgray 50% / cover no-repeat;
}

.methodology__title {
  color: #fff;
  text-align: center;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 50px; /* 125% */
  margin-bottom: 88px;
}

/* Flow: horizontal zigzag */
.methodology__flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  min-height: 260px;
}

/* Step */
.methodology__step {
  flex: 0 0 150px;
  z-index: 2;
  width: 20%;
  min-width: 20%;
  padding: 0 10px;
}

.methodology__step--up {
  justify-content: flex-start;
  padding-top: 0;
}

.methodology__step--down {
  justify-content: flex-start;
  padding-top: 80px;
}

/* Card */
.methodology__card {
  position: relative;
  background: #1b1525;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
  cursor: pointer;

  padding: 56px 31px 8px 31px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 57px;
}

.methodology__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;

  background: #221a2f;
  border-radius: 50%;
  width: 69px;
  height: 69px;
}

.methodology__icon-wrap i {
  font-size: 28px;
  color: #a78bfa;
  transition: all 0.35s ease;
}

/* Hover: enlarge + purple bg + white circled icon */
.methodology__step:hover .methodology__card {
  background: linear-gradient(180deg, #8b7bea 0%, #6653e8 100%);
  border-color: #8b7bea;
  box-shadow: 0 12px 40px rgba(102, 83, 232, 0.45);
}

.methodology__step:hover .methodology__icon-wrap {
  background: #fff;
  border-radius: 50%;
}

.methodology__step:hover .methodology__icon-wrap i {
  color: #fff;
}

/* Label */
.methodology__label {
  color: #fff;
  text-align: center;

  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px; /* 200% */
  white-space: nowrap;
}

/* Arrows between steps — CSS only */
.methodology__arrow {
  flex: 0 0 60px;
  position: relative;
  z-index: 1;

  width: calc(50% + 10px);
}

/* Down-right: vertical line goes down, then horizontal line goes right with arrowhead */
.methodology__arrow--down-right {
  height: 46px;
  align-self: flex-start;
  position: absolute;
  left: 50%;
}

.methodology__arrow--down-right .methodology__arrow-line--v {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 50%;
  background: #6653e8;
}

.methodology__arrow--down-right .methodology__arrow-line--h {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #6653e8;
}

.methodology__arrow--down-right .methodology__arrow-head {
  position: absolute;
  top: calc(50% + 1px);
  right: -1px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #6653e8;
}

/* Up-right: vertical line goes up, then horizontal line goes right with arrowhead */
.methodology__arrow--up-right {
  height: 80px;
  align-self: flex-end;
  position: absolute;
  left: 50%;
}

.methodology__arrow--up-right .methodology__arrow-line--v {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2px;
  height: 50%;
  background: #6653e8;
}

.methodology__arrow--up-right .methodology__arrow-line--h {
  position: absolute;
  bottom: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #6653e8;
}

.methodology__arrow--up-right .methodology__arrow-head {
  position: absolute;
  bottom: calc(50% + 1px);
  right: -1px;
  transform: translateY(50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #6653e8;
}

/* ---------- Reasons to Choose Us ---------- */
.reasons {
  padding: 80px 0 100px;
  background: #fff;
}

.reasons__title {
  color: var(--en, #1b1525);
  text-align: center;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 50px; /* 125% */
  margin-bottom: 60px;
}

.reasons__card {
  min-height: 242px;
  padding: 30px 26px;
  margin-bottom: 30px;
  height: 100%;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  background: #fff;
  box-shadow: 0 4px 22px 0 rgba(35, 20, 52, 0.25);
}

.reasons__card:hover {
  border-color: #6653e8;
  box-shadow: 0 6px 20px rgba(102, 83, 232, 0.1);
}

.reasons__card-title {
  color: var(--en, #1b1525);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 120% */
  margin-bottom: 48px;
}

.reasons__card-text {
  color: var(--en, #1b1525);

  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px; /* 150% */
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .methodology__flow {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: auto;
  }

  .methodology__step--up,
  .methodology__step--down {
    padding-top: 0;
  }

  .methodology__arrow {
    flex: 0 0 40px;
  }

  .methodology__arrow--down-right,
  .methodology__arrow--up-right {
    height: 50px;
    width: 30px;
    margin-top: 0;
    align-self: center;
    transform: rotate(90deg) scaleY(-1);
  }

  .services-hero__title {
    font-size: 32px;
  }

  .service-pillars__title,
  .methodology__title,
  .reasons__title {
    font-size: 28px;
  }
}

@media (max-width: 575px) {
  .services-hero {
    min-height: 300px;
    padding-bottom: 40px;
  }

  .services-hero__title {
    font-size: 26px;
  }

  .service-pillars__title,
  .methodology__title,
  .reasons__title {
    font-size: 24px;
  }
}

.methodology__step {
  position: relative;
}

/* Mobile */
@media (max-width: 767px) {
  .services-hero {
    min-height: 571px;
    padding-bottom: 65px;
  }
  .services-hero__title {
    font-size: 40px;
    line-height: 50px; /* 125% */
    padding-right: 50px;
  }
  .services-intro__text {
    font-size: 20px;
    line-height: 30px; /* 150% */
    margin-bottom: 52px;
  }
  .service-pillars {
    padding: 36px 0px 36px;
  }

  .service-pillars__title,
  .methodology__title,
  .reasons__title {
    font-size: 30px;
    line-height: 40px; /* 150% */
    margin-bottom: 60px;
  }
  .service-pillars__card {
    margin-bottom: 380px;
  }

  .methodology {
    padding: 32px 0 110px;
  }
  .methodology__step {
    width: 100%;
  }
  .methodology__card {
    width: 206px;
  }

  .methodology__flow .methodology__step:nth-child(2n) {
    display: flex;
    flex-direction: row-reverse;
  }

  .methodology__flow .methodology__step:nth-child(1) .methodology__arrow {
    width: 134px;
    height: 124px;
    bottom: 0px;
  }

  .methodology__flow .methodology__step:nth-child(3) .methodology__arrow {
    width: 134px;
    height: 124px;
    bottom: 0px;
  }

  .methodology__flow .methodology__step:nth-child(2) .methodology__arrow {
    width: 58px;
    height: 20px;
    bottom: 12px;
    left: calc(50% - 56px);
  }

  .methodology__flow .methodology__step:nth-child(4) .methodology__arrow {
    width: 58px;
    height: 20px;
    bottom: 12px;
    left: calc(50% - 56px);
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .services-hero {
    min-height: 481px;
    padding-bottom: 45px;
  }
  .services-hero__title {
    font-size: 40px;
    line-height: 50px; /* 125% */
  }
  .services-intro__text {
    font-size: 20px;
    line-height: 30px; /* 150% */
    margin-bottom: 52px;
  }
  .service-pillars {
    padding: 36px 0px 36px;
  }

  .service-pillars__title,
  .methodology__title,
  .reasons__title {
    font-size: 40px;
    line-height: 50px; /* 150% */
    margin-bottom: 49px;
  }
  .service-pillars__card {
    margin-bottom: 280px;
    padding: 25px 9px 9px 9px;
    min-height: 102px;
  }
  .service-pillars__card-title {
    font-size: 16px;
    line-height: 32px;
    margin-bottom: 12px;
  }
  .service-pillars__card-desc {
    font-size: 16px;
    line-height: 1.25;
  }

  .service-pillars__card:hover .service-pillars__bar {
    height: 272px;
  }

  .methodology {
    padding: 32px 0 110px;
  }
  .methodology__step {
    width: 100%;
  }
  .methodology__card {
    width: 206px;
  }
  .methodology__flow {
    flex-direction: row;
  }
  .methodology__flow .methodology__step {
    display: flex;
    flex-direction: column;
  }
  .methodology__arrow {
    display: none;
  }

  .methodology__flow .methodology__step:nth-child(1) .methodology__arrow {
    width: 134px;
    height: 124px;
    bottom: 0px;
  }

  .methodology__flow .methodology__step:nth-child(3) .methodology__arrow {
    width: 134px;
    height: 124px;
    bottom: 0px;
  }

  .methodology__flow .methodology__step:nth-child(2) .methodology__arrow {
    width: 58px;
    height: 20px;
    bottom: 12px;
    left: calc(50% - 56px);
  }

  .methodology__flow .methodology__step:nth-child(4) .methodology__arrow {
    width: 58px;
    height: 20px;
    bottom: 12px;
    left: calc(50% - 56px);
  }
}
