/* =========================================================
   Services Page — thedigitalladders.com/services.html
   Page-specific hero & section styles only
   ========================================================= */

/* ---------- Services Hero ---------- */
.services-hero {
  position: relative;
  padding: clamp(4rem, 10vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5rem);
  background: var(--grad-hero);
  overflow: hidden;
  text-align: center;
}

.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  animation: servicesMesh 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes servicesMesh {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(1%, -1%); }
}

.services-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.services-hero.is-ready .services-hero__inner {
  opacity: 1;
  transform: translateY(0);
}

.services-hero__title {
  margin-bottom: 1.15rem;
}

.services-hero__sub {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.services-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.4rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 42, 94, 0.12);
}

.service-card .card__icon {
  margin-bottom: 1.1rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Process ---------- */
.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--soft-blue), var(--soft-orange), var(--soft-blue));
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.5rem;
}

.process-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--soft-blue);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  margin-inline: auto;
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.process-step:hover .process-step__num {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.process-step:nth-child(odd) .process-step__num {
  border-color: rgba(255, 107, 0, 0.35);
}

.process-step:nth-child(odd):hover .process-step__num {
  background: var(--orange);
  border-color: var(--orange);
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- Services CTA ---------- */
.services-cta {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4rem);
  background: var(--grad-blue);
  color: var(--white);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}

.services-cta h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.services-cta p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

.services-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.services-cta__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  box-shadow: var(--shadow-md);
}

.services-cta__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-track {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .process-track::before {
    display: none;
  }

  .process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    text-align: left;
    align-items: start;
  }

  .process-step__num {
    margin-inline: 0;
    margin-bottom: 0;
  }

  .services-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
