/* ============================================================
   SERVICES PAGE — v5.0
   ============================================================ */

/* ============================================================
   SERVICES HERO
   ============================================================ */
.services-hero {
  background: var(--slate);
  padding-block: 6rem 5rem;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}
.services-hero::before {
  content: '';
  position: absolute;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 62%);
  top: -200px; left: -100px;
  pointer-events: none;
}
.services-hero::after {
  content: '';
  position: absolute;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.09) 0%, transparent 62%);
  top: 80px; right: -160px;
  pointer-events: none;
}
.services-hero__inner { max-width: 760px; position: relative; z-index: 1; }
.services-hero .label { color: var(--teal); }

.services-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
}

.services-hero__sub {
  font-size: clamp(0.9rem, 1.4vw, 1.0625rem);
  color: rgba(248,250,252,0.72);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.services-hero__proof {
  font-family: var(--font-sans);
  font-size: 0.889rem;
  font-weight: 500;
  color: rgba(248,250,252,0.45);
  letter-spacing: 0.01em;
  line-height: 1.6;
}
.services-hero__proof-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ============================================================
   SERVICES JUMP NAV
   ============================================================ */
.services-jumpnav {
  background: var(--bg-alt);
  border-bottom: 0.5px solid var(--border);
  padding: 0;
  position: sticky;
  top: 68px;
  z-index: 50;
  overflow-x: auto;
}
.services-jumpnav__list {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}
.services-jumpnav__item { display: flex; align-items: center; }
.services-jumpnav__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.833rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.services-jumpnav__link:hover { color: var(--slate); border-bottom-color: var(--border); }
.services-jumpnav__link.is-active { color: var(--teal); border-bottom-color: var(--teal); }
.services-jumpnav__num {
  font-size: 0.667rem;
  font-weight: 700;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

/* ============================================================
   START HERE BLOCK
   ─────────────────────────────────────────────────────────────
   FIX: Each .start-here__row uses CSS Grid with fixed column
   widths. This means every row shares the same track sizes,
   so the problem text, arrow, and service name all align at
   consistent x-positions — true two-column alignment.
   Flex + space-between cannot achieve this because each row
   has its own independent spacing.
   ============================================================ */
.start-here {
  background: var(--bg-alt);
  border-bottom: 0.5px solid var(--border);
  padding-block: 2.75rem;
}
.start-here__label {
  color: var(--teal);
  margin-bottom: 1.5rem;
}

/* Bordered card container */
.start-here__grid {
  max-width: auto;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* Each row: 3-column grid — problem | connector | service
   - Column 1 (1fr): problem text, grows to fill available space
   - Column 2 (2.5rem): centered arrow connector, fixed width
   - Column 3 (260px): service name, fixed width, right-aligned
   All rows share identical column tracks → visual alignment */
.start-here__row {
  display: grid;
  grid-template-columns: 1fr 2.5rem 260px;
  align-items: center;
  padding: 1.0625rem 1.75rem;
  border-bottom: 0.5px solid var(--border);
  text-decoration: none;
  transition: background var(--ease-md);
}
.start-here__row:last-child { border-bottom: none; }
.start-here__row:hover { background: rgba(16,185,129,0.04); }
.start-here__row:hover .start-here__service { color: var(--teal); }

.start-here__problem {
  font-family: var(--font-sans);
  font-size: 0.917rem;
  color: var(--text);
  line-height: 1.45;
  padding-right: 0.5rem;
}

/* Arrow connector: centered in its column, subtle */
.start-here__connector {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: center;
  user-select: none;
  line-height: 1;
}

/* Service name: right-aligned in its fixed-width column */
.start-here__service {
  font-family: var(--font-sans);
  font-size: 0.833rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
  transition: color var(--ease);
  justify-self: end;
}

/* ============================================================
   SERVICE SECTIONS
   ============================================================ */
.svc-section {
  padding-block: 5.5rem;
  border-bottom: 0.5px solid var(--border);
}
.svc-section:nth-child(even) { background: var(--bg-alt); }
.svc-section:nth-child(odd)  { background: var(--bg); }

.svc-section__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: start;
}

/* Meta row */
.svc-section__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.svc-section__num {
  font-family: var(--font-sans);
  font-size: 0.722rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.svc-tag {
  font-family: var(--font-sans);
  font-size: 0.667rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #D1FAE5;
  color: #065F46;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
}
.svc-tag--blue   { background: #E0F2FE; color: #0C4A6E; }
.svc-tag--purple { background: #F5F3FF; color: #4C1D95; }
.svc-tag--amber  { background: #FFFBEB; color: #78350F; }
.svc-tag--rose   { background: #FFF1F2; color: #9F1239; }
.svc-tag--slate  { background: var(--bg-alt); color: var(--text-muted); border: 0.5px solid var(--border); }

/* Title */
.svc-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 700;
  color: var(--slate);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.375rem;
}

/* Body copy */
.svc-section__desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.88;
  margin-bottom: 1.25rem;
  max-width: 520px;
}

/* Signature line */
.svc-section__desc--pull {
  font-size: 0.972rem;
  font-weight: 500;
  color: var(--slate);
  border-left: 3px solid var(--teal);
  padding-left: 1rem;
  line-height: 1.72;
  margin-top: -0.25rem;
  margin-bottom: 1.375rem;
  max-width: 520px;
}

/* Secondary note */
.svc-section__desc--note {
  font-size: 0.889rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-top: -0.25rem;
  margin-bottom: 1.375rem;
  max-width: 520px;
}

/* Good fit block */
.svc-section__who {
  font-family: var(--font-sans);
  font-size: 0.889rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding: 0.875rem 1.25rem;
  border-left: 3px solid var(--teal);
  background: rgba(16,185,129,0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.25rem;
}
.svc-section__who strong {
  display: block;
  font-weight: 600;
  color: var(--slate);
  font-size: 0.667rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* Inline proof — experience signal, framed as past work */
.svc-proof {
  font-family: var(--font-sans);
  font-size: 0.833rem;
  font-weight: 500;
  color: var(--teal-dark);
  background: rgba(16,185,129,0.07);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  margin-bottom: 1.375rem;
  max-width: 520px;
  line-height: 1.55;
}

/* CTA link */
.svc-section__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-sans);
  font-size: 0.889rem;
  font-weight: 600;
  color: var(--teal);
  transition: gap var(--ease);
}
.svc-section__cta:hover { gap: 0.625rem; }

/* ============================================================
   DELIVERABLES CARD
   ============================================================ */
.svc-deliverables {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 130px;
  box-shadow: var(--shadow-sm);
}
.svc-deliverables__head {
  padding: 1.25rem 1.75rem;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.svc-deliverables__head-label {
  font-family: var(--font-sans);
  font-size: 0.667rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.svc-deliverables__head-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #38BDF8);
  flex-shrink: 0;
}
.svc-deliverables__list {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.svc-deliverables__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.889rem;
  color: var(--text);
  line-height: 1.55;
}
.svc-deliverables__item::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 0.48em;
}

/* ============================================================
   PROCESS STRIP
   ============================================================ */
.process-strip {
  background: var(--slate);
  padding-block: 5rem;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}
.process-strip .label { color: var(--teal); margin-bottom: 0.75rem; }
.process-strip__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #fff;
  letter-spacing: -0.04em;
  margin-bottom: 3.5rem;
  line-height: 1.08;
  white-space: nowrap;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.process-step {
  padding: 2rem 1.75rem;
  border-right: 0.5px solid rgba(255,255,255,0.08);
  position: relative;
}
.process-step:last-child { border-right: none; }
.process-step__num {
  font-family: var(--font-sans);
  font-size: 0.667rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.12em;
  margin-bottom: 0.875rem;
}
.process-step__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.process-step__desc {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: rgba(248,250,252,0.58);
  line-height: 1.7;
}
.process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -0.6rem;
  top: 2rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.2);
  z-index: 1;
}

/* ============================================================
   SCOPE NOTE
   ============================================================ */
.scope-section {
  padding-block: 5.5rem;
  background: var(--bg);
}
.scope-block {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
}
.scope-block .label { color: var(--teal); }
.scope-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--slate);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.scope-block__body {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.88;
  margin-bottom: 2.5rem;
}
.scope-block__body strong { color: var(--text); font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .svc-section__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-deliverables { position: static; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-child(1),
  .process-step:nth-child(2) { border-bottom: 0.5px solid rgba(255,255,255,0.08); }
  .process-step:not(:last-child)::after { display: none; }
  .process-strip__heading { white-space: normal; }
}

/* Start Here: at medium screens, shrink the service column slightly */
@media (max-width: 860px) {
  .start-here__row { grid-template-columns: 1fr 2rem 240px; }
}

/* Start Here: at small screens, collapse to single column stacked layout */
@media (max-width: 640px) {
  .services-jumpnav { display: none; }

  .start-here__row {
    grid-template-columns: 1fr;
    padding: 0.875rem 1.25rem;
    row-gap: 0.2rem;
  }
  .start-here__connector { display: none; }
  .start-here__service {
    text-align: left;
    justify-self: start;
    color: var(--teal);
    font-size: 0.778rem;
  }

  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 0.5px solid rgba(255,255,255,0.08); }
  .process-step:last-child { border-bottom: none; }
  .svc-section__desc--pull { padding-left: 0.875rem; }
  .svc-proof { max-width: 100%; }
  .services-hero__proof { font-size: 0.833rem; }
}
