/**
 * Services atlas — subservice “View more” cross-links (not homepage flex showcase).
 *
 * @package Innov8th
 */

.services-atlas--view-more {
  padding: 4rem 0 5rem;
  position: relative;
  overflow: visible;
}

.services-atlas__head--compact {
  margin-bottom: 2rem;
}

.services-atlas__head--compact .heading {
  margin: 0;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.12;
}

.services-atlas {
  position: relative;
  padding: 5rem 0 4.5rem;
  overflow: visible;
}

.services-atlas__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 2rem;
}

.services-atlas__head-copy {
  max-width: 34rem;
}

.services-atlas__head .sub-heading {
  margin-bottom: 0;
}

.services-atlas__head .heading {
  margin: var(--header-eyebrow-gap, 0.4rem) 0 0;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.12;
}

.services-atlas__head-note {
  margin: 0;
  max-width: 16rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.services-atlas__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.services-atlas__card {
  --atlas-accent: #662192;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 1.35rem 1.35rem 1.2rem;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 4, 18, 0.45);
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.services-atlas__card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--atlas-accent) 55%, rgba(255, 255, 255, 0.25));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px color-mix(in srgb, var(--atlas-accent) 25%, transparent);
}

.services-atlas__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  transition: opacity 280ms ease, transform 500ms ease;
}

.services-atlas__card:hover .services-atlas__media {
  opacity: 0.42;
  transform: scale(1.04);
}

.services-atlas__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(8, 4, 18, 0.92) 0%,
    rgba(8, 4, 18, 0.55) 45%,
    color-mix(in srgb, var(--atlas-accent) 35%, rgba(8, 4, 18, 0.85)) 100%
  );
}

.services-atlas__num {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ff00b8;
}

.services-atlas__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 1.5rem;
}

.services-atlas__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.2;
  font-weight: 800;
}

.services-atlas__desc {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.services-atlas__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--atlas-accent) 40%, #ff5fce);
}

.services-atlas__card:hover .services-atlas__cta {
  color: #fff;
}

.services-atlas__foot {
  margin-top: 1.75rem;
  text-align: center;
}

.services-atlas__foot-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 200ms ease;
}

.services-atlas__foot-link:hover {
  color: #ff5fce;
}

@media (max-width: 768px) {
  .services-atlas,
  .services-atlas--view-more {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

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

  .services-atlas__card {
    min-height: 240px;
  }

  .services-atlas__head-note {
    max-width: none;
  }
}
