/* =====================================================================
   Services page layout, cube edition.
   Loaded only by site/src/pages/services.html on top of home.css, which
   provides the shared home-v2 tokens, glass, orbs, eyebrows and steps.
   Scoped to body.services-v2 or sv- classes used nowhere else.
   ===================================================================== */

/* ------------------------------------------------------------------ Hero */
.services-v2 .sv-hero {
  position: relative;
  overflow-x: clip;
  isolation: isolate;
  padding: clamp(3.5rem, 8vh, 6.5rem) 0 clamp(2rem, 5vh, 3.5rem);
}
.services-v2 .hv-title { font-size: clamp(2.6rem, 5.8vw, 4.8rem); }
.sv-hero__copy { max-width: 720px; }

/* Entrance, triggered by site.js adding body.is-loaded (same rhythm as the
   homepage hero). */
html.js .sv-hero__copy > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
html.js .is-loaded .sv-hero__copy > * { opacity: 1; transform: none; }
.is-loaded .sv-hero__copy > :nth-child(2) { transition-delay: .08s; }
.is-loaded .sv-hero__copy > :nth-child(3) { transition-delay: .18s; }
.is-loaded .sv-hero__copy > :nth-child(4) { transition-delay: .28s; }
.is-loaded .sv-hero__copy > :nth-child(5) { transition-delay: .38s; }

/* --------------------------------------------------------- Service rows */
.sv-rows { display: grid; gap: 1.25rem; }

.sv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.6rem, 3.5vw, 2.75rem);
  /* Anchor targets land below the sticky header. */
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.sv-row__intro { display: flex; flex-direction: column; align-items: flex-start; }
.sv-row__intro .hv-service__num { margin-top: 1.2rem; }
.services-v2 .sv-row h2 {
  margin-top: .4rem;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
  color: var(--hv-ink);
}
.sv-row__intro > p {
  max-width: 46ch;
  margin-top: .75rem;
  font-size: .98rem;
  line-height: 1.6;
  color: var(--hv-muted);
}

/* The deliverables card sits on the glass like the explainer panel. */
.sv-what {
  align-self: center;
  padding: clamp(1.2rem, 2.5vw, 1.9rem);
  border: 1px solid #fff;
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 14px 34px rgba(18, 22, 30, .06);
}
.sv-what__label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hv-soft-muted);
}
.sv-list {
  display: grid;
  gap: .7rem;
  margin: .95rem 0 0;
  padding: 0;
  list-style: none;
}
.sv-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--hv-ink);
}
.sv-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .42em;
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
  background: var(--accent);
  opacity: .85;
}

/* ------------------------------------------------- Engagement mini-steps */
.hv-steps.sv-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sv-steps .hv-step p { max-width: 34ch; }

/* ----------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .sv-row { grid-template-columns: 1fr; }
  .sv-what { align-self: stretch; }
  .hv-steps.sv-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .sv-hero__copy > * { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------- Arabic / RTL */
.services-v2.lang-ar .hv-title { font-size: clamp(2.1rem, 4.4vw, 3.8rem); line-height: 1.35; }
.services-v2.lang-ar .sv-row h2 { line-height: 1.4; letter-spacing: 0; }
.services-v2.lang-ar .sv-row__intro > p,
.services-v2.lang-ar .sv-list li { line-height: 1.85; }
