/* ============================================================
   Professional Services — shared premium layer
   Loaded only by the regional/service pages (Global Services,
   Africa, India, Research & Data). Scoped to `.ps-page` so it
   never affects the rest of the site. The United States page
   intentionally does NOT load this file.
   ============================================================ */

/* Labels in Work Sans, not JetBrains Mono — the brand standard.
   `var(--mono)` callers (eyebrows, chips, dates, tags) resolve to
   the sans stack; caps + letter-spacing already read as a label. */
.ps-page { --mono: var(--sans); }

/* ---- Hero depth: a soft aurora glow above the overlay, below text ---- */
.ps-page .hero.hero-dark { position: relative; overflow: hidden; }
.ps-page .hero.hero-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(58% 78% at 14% 8%, rgba(142,161,255,0.22), transparent 60%),
    radial-gradient(50% 60% at 100% 100%, rgba(56,67,208,0.20), transparent 62%);
}
.ps-page .hero.hero-dark > .container { position: relative; z-index: 2; }

/* ---- Elevated stats band (shared by Africa / India / Global / R&D) ---- */
.ps-page .stats-band {
  background:
    linear-gradient(180deg, #fff 0%, var(--sky-tint) 42%, var(--indigo-soft) 100%);
}
.ps-page .stats-band-cell { position: relative; }
.ps-page .stats-band-cell::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--grad);
}
.ps-page .stats-band-num { color: var(--deep-purple); }

/* ---- CTA band: a thin gradient hairline ties the closer to the page ---- */
.ps-page .cta-band { position: relative; }
.ps-page .cta-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}

/* ---- Country tiers (Africa): top accent in the stage color ---- */
.ps-page .af-tier { position: relative; overflow: hidden; }
.ps-page .af-tier::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rule);
}
.ps-page .af-tier:has(.af-tier-dot.scale)::before   { background: var(--indigo); }
.ps-page .af-tier:has(.af-tier-dot.scaling)::before { background: var(--marigold); }
.ps-page .af-tier:has(.af-tier-dot.pilot)::before   { background: rgba(20,16,58,0.32); }

/* ---- Global Services: connecting rail behind the phase dots ---- */
@media (min-width: 901px) {
  .ps-page .gsx-process { position: relative; }
  .ps-page .gsx-process::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 7px; right: 7px;
    height: 2px;
    background: linear-gradient(90deg, var(--indigo) 0%, var(--purple) 55%, var(--sky) 100%);
    opacity: 0.5;
  }
}

/* ---- Reusable partner logo strip (India) ---- */
.ps-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 56px;
  margin-top: 30px;
}
.ps-logos img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.62;
  filter: grayscale(1);
  transition: opacity 220ms ease, filter 220ms ease;
}
.ps-logos img:hover { opacity: 0.95; filter: grayscale(0); }

/* ---- Research & Data: credibility band (honest, qualitative) ---- */
.ps-cred {
  background:
    linear-gradient(180deg, #fff 0%, var(--sky-tint) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ps-cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.ps-cred-item { position: relative; padding-top: 24px; }
.ps-cred-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 3px;
  border-radius: 2px;
  background: var(--grad);
}
.ps-cred-lead {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--deep-purple);
  line-height: 1.1;
  margin: 0 0 12px;
}
.ps-cred-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.62;
  margin: 0;
}
@media (max-width: 820px) {
  .ps-cred-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---- Sticky section jump bar (long PS pages), left-anchored ---- */
.ps-jumpbar {
  position: sticky;
  top: 71px;                 /* sits directly under the 72px sticky nav */
  z-index: 40;
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.ps-jumpbar-inner {
  display: flex;
  align-items: stretch;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ps-jumpbar-inner::-webkit-scrollbar { display: none; }
.ps-jumpbar a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 15px 0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease;
}
.ps-jumpbar a:hover { color: var(--ink); }
.ps-jumpbar a.is-active {
  color: var(--indigo-deep);
  border-bottom-color: var(--indigo);
}
.ps-jumpbar .ps-jumpbar-cta {
  margin-left: auto;
  color: var(--indigo);
  font-weight: 600;
}
.ps-jumpbar .ps-jumpbar-cta::after { content: " \2192"; }
/* Give anchor jumps room to clear both the nav and this bar. */
html:has(.ps-jumpbar) { scroll-padding-top: 130px; }
@media (max-width: 760px) {
  .ps-jumpbar { display: none; }   /* collapses cleanly on phones */
}

/* ---- Tasteful one-shot scroll reveal (added by ps-enhance.js) ---- */
html.ps-anim .ps-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
html.ps-anim .ps-reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.ps-anim .ps-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
