/* ==========================================================================
   SERVICES PAGE STYLES - ATHOS DARK INSPIRED
   ========================================================================== */

/* Force body styling for this page since it's a dark page */
body {
  background-color: #000000;
}

/* ──────────────────────────────────────────────────────────────────────────
   Header Section (Dark Glow)
   ────────────────────────────────────────────────────────────────────────── */
.services-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: clamp(160px, 16vw, 220px);
  padding-bottom: clamp(6rem, 10vw, 8rem);
  background-color: #000000;
  overflow: hidden;
}

/* Hero Radial Glow */
.services-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800vw;
  max-width: 1200px;
  height: 800px;
  background: radial-gradient(33.9% 83.3% at 50% 50%, rgba(0, 168, 107, 0.15) 0%, rgba(0, 168, 107, 0) 100%);
  z-index: 0;
  pointer-events: none;
}

.services-hero .container {
  position: relative;
  z-index: 1;
}

.services-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: #FAFAF8;
}

.services-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #FFFFFF, #888888);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-hero__sub {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: #a1a1a1;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Title reveal specific for dark background */
.service-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   Card Stack Scroll Effect (Sticky Cards)
   ────────────────────────────────────────────────────────────────────────── */
.services-stack {
  position: relative;
  background-color: #000000;
  padding-bottom: 5vh; /* Allow scroll past last card */
  padding-left: clamp(0.75rem, 1.5vw, 1.5rem);
  padding-right: clamp(0.75rem, 1.5vw, 1.5rem);
}

.service-card-wrapper {
  position: sticky;
  /* All cards stick at the same top — each slides over the previous */
  top: 80px;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: stretch; /* Make card fill the wrapper height */
  justify-content: center;
  margin-bottom: 180vh; /* Scroll dwell time per card — keeps each card in view longer */
}

.service-card {
  flex: 1 1 auto; /* Override home.css carousel flex shorthand */
  width: 100%;
  max-width: none;
  background-color: #141414;
  border: 1px solid rgba(204, 204, 204, 0.1);
  border-radius: 37px;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5); /* Shadow above to separate stacked cards */
  display: grid;
  grid-template-columns: 1fr;
  will-change: transform;
}

@media (min-width: 900px) {
  .service-card {
    grid-template-columns: 1fr 1.2fr;
    min-height: calc(100vh - 100px);
  }
}

.service-card__content {
  padding: clamp(2.5rem, 4vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Side Glow on Card */
.service-card__content::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 50%;
  height: 50%;
  background: radial-gradient(33.9% 83.3% at 50% 50%, rgba(204,204,204, 0.05) 0%, rgba(143, 210, 255, 0) 100%);
  pointer-events: none;
}

/* Card Typography */
.service-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.825vw, 2.975rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #FAFAF8;
}

.service-card__body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #a1a1a1;
  margin-bottom: 2.5rem;
}

/* Tags */
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 2.5rem;
}

.service-tag {
  font-size: 0.69rem;
  font-weight: 500;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-card__cta {
  margin-top: 0;
}

.service-card__cta .btn-primary {
  width: 100%;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.078rem; /* base 0.9375rem × 1.15 */
}

.service-card__cta .btn-primary:hover {
  color: #FFFFFF;
}

.service-card__alt-link {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 200ms ease;
}

.service-card__alt-link:hover {
  color: #00A86B;
}

/* Card Image Column */
.service-card__image-col {
  position: relative;
  overflow: hidden;
  min-height: 350px;
}

/* Fades the edge of the image to blend horizontally on desktop */
@media (min-width: 900px) {
  .service-card__image-col::before {
    content: "";
    position: absolute;
    top: 0;
    left: -1px; /* Overlap slightly */
    bottom: 0;
    width: 25%;
    z-index: 2;
    background: linear-gradient(90deg, #141414 0%, rgba(20,20,20,0) 100%);
  }
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

/* Transition to CTA Band */
.cta-band {
  position: relative;
  z-index: 100;
  background-color: #000;
}

/* ──────────────────────────────────────────────────────────────────────────
   Persona Matrix Redesign (Who We Serve)
   ────────────────────────────────────────────────────────────────────────── */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.matrix-quadrant {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 24px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.matrix-quadrant:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.quadrant-blur {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--q-color, var(--color-accent));
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
}

.matrix-quadrant .q-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: var(--q-color, var(--color-accent));
  margin-bottom: 0.75rem;
  display: block;
}

.matrix-quadrant h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 500;
  margin: 0;
  color: #fff;
  letter-spacing: -0.01em;
}

.matrix-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0 0;
}

.matrix-list li {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
  position: relative;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
  line-height: 1.6;
}

.matrix-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--q-color, var(--color-accent));
  font-weight: 900;
}

.matrix-list li strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .matrix-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .matrix-quadrant {
    padding: 2rem;
  }
}

