/* ══════════════════════════════════════════════
   SERVICES PAGE
   ══════════════════════════════════════════════ */

/* ── Hero ── */
.services-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

.services-hero-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 30% center;
}

.services-hero-heading {
  padding: 48px 80px 24px;
  background: #F5F3F0;
}

.services-hero-heading h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 56px;
  color: #1A1A1A;
  margin: 0 0 12px;
  clip-path: inset(0 0 100% 0);
}

.services-hero-heading p {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: #545554;
  margin: 0;
  max-width: 600px;
  line-height: 1.6;
  opacity: 0;
}

/* ── Service Cards Section ── */
.services-cards-section {
  padding: 80px 40px 0;
  background: #F5F3F0;
  position: relative;
}

.services-intro {
  max-width: 680px;
  margin-bottom: 64px;
  margin-left: 40px;
  opacity: 0;
}

.services-intro p {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #545554;
  line-height: 1.7;
  margin: 0;
}

/* ── Horizontal Stair-Step Layout ── */
.services-cards {
  position: relative;
  width: 100%;
  height: 75vh;
}

.service-card {
  position: absolute;
  width: 23.5%;
  height: 55vh;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s ease;
}

.service-card:nth-child(1) { left: 0; }
.service-card:nth-child(2) { left: 25.5%; }
.service-card:nth-child(3) { left: 51%; }
.service-card:nth-child(4) { left: 76.5%; }

.service-card:hover {
  z-index: 10;
  width: 45%;
  height: 55vh;
}

.service-card:nth-child(3):hover {
  left: auto;
  right: 23.5%;
}

.service-card:nth-child(4):hover {
  left: auto;
  right: 0;
}

.services-cards:hover .service-card {
  opacity: 0.5;
}

.services-cards:hover .service-card:hover {
  opacity: 1;
}

.service-card a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
}

.service-card-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-bg {
  transform: scale(1.05);
}

.service-card a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
  z-index: 1;
}

.service-card-title {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: #FFFFFF;
  pointer-events: none;
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
  pointer-events: none;
}

.service-card:hover .service-card-overlay {
  opacity: 1;
}

.service-card-overlay span {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #F5F3F0;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════
   PROCESS BAR
   ══════════════════════════════════════════════ */

.process-bar {
  position: relative;
  width: calc(100% + 80px);
  margin-left: -40px;
  height: 15vh;
  overflow: hidden;
  margin-top: 24px;
  background: #FFFFFF;
}

/* ── Gradient trail squares — children of each row ── */
.process-trail {
  position: absolute;
  top: 0;
  height: 100%;
  width: 3.75vh; /* 25% of 15vh = row height = square width */
}

.process-row {
  position: absolute;
  left: 0;
  width: 100%;
  background: #8EBA3F;
}

.process-row:nth-child(1) { top: 0;    height: 25%; }
.process-row:nth-child(2) { top: 25%;  height: 25%; }
.process-row:nth-child(3) { top: 50%;  height: 25%; }
.process-row:nth-child(4) { top: 75%;  height: 25%; }

.process-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  text-align: right;
  pointer-events: auto;
}

.process-text-line1 {
  position: absolute;
  top: 25%;
  right: 80px;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 2.2vw;
  color: #1A1A1A;
  line-height: 1.2;
  white-space: nowrap;
}

.process-text-line2 {
  position: absolute;
  top: 50%;
  right: 80px;
  white-space: nowrap;
}

.process-text-line2 a {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1.3vw;
  color: #1A1A1A;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.process-text-line2 a:hover {
  color: #FFFFFF;
}

.process-scroll-spacer {
  height: 100vh;
  background: transparent;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   MOBILE
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
  .services-hero {
    height: 45vh;
  }

  .services-hero-heading {
    padding: 32px 24px 20px;
  }

  .services-hero-heading h1 {
    font-size: 36px;
  }

  .services-hero-heading p {
    font-size: 15px;
  }

  .services-cards-section {
    padding: 48px 24px 0;
  }

  .services-intro {
    margin-bottom: 40px;
    margin-left: 0;
  }

  .services-cards {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .service-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: 35vh !important;
    margin-top: 0 !important;
  }

  .service-card:hover {
    width: 100% !important;
    height: 35vh !important;
  }

  .service-card:nth-child(3):hover,
  .service-card:nth-child(4):hover {
    left: auto !important;
    right: auto !important;
  }

  .services-cards:hover .service-card {
    opacity: 1;
  }

  .service-card-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.15);
  }

  .service-card-title {
    font-size: 18px;
    bottom: 18px;
    left: 18px;
  }

  .service-card .service-card-bg {
    animation: kenBurns 12s ease-in-out infinite alternate;
  }

  .service-card:nth-child(2) .service-card-bg { animation-delay: -3s; }
  .service-card:nth-child(3) .service-card-bg { animation-delay: -6s; }
  .service-card:nth-child(4) .service-card-bg { animation-delay: -9s; }

  @keyframes kenBurns {
    0%   { transform: scale(1) translateX(0); }
    50%  { transform: scale(1.08) translateX(-2%); }
    100% { transform: scale(1.04) translateX(1%); }
  }

  .process-bar {
    width: calc(100% + 48px);
    margin-left: -24px;
    height: 11vh;
    margin-top: 24px;
  }

  .process-text-line1 {
    font-size: 20px;
    white-space: normal;
    right: 40px;
  }

  .process-text-line2 {
    right: 40px;
  }

  .process-text-line2 a {
    font-size: 14px;
  }

  .process-scroll-spacer {
    height: 0 !important;
    display: none !important;
  }
}
