/* ================================================================
   services.css — Services page styles
   Depends on: tokens.css, global.css, home.css
   ================================================================ */

/* ═══════════════════════════════════════════════════════════════
   PAGE HERO (shorter variant)
═══════════════════════════════════════════════════════════════ */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-24) var(--space-16);
  text-align: center;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.page-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 65% 80% at 50% -20%,
    rgb(99 102 241 / 0.2) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

/* Reuse .hero-badge from home.css — no extra rules needed */

.page-hero h1 {
  font-size: clamp(var(--text-4xl), 6vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.page-hero-sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: var(--color-muted);
  max-width: 52ch;
  text-align: center;
}

/* Active nav link */
.primary-nav a[aria-current="page"] {
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════════════════════
   SERVICE SECTIONS
═══════════════════════════════════════════════════════════════ */

.svc-section {
  padding-block: var(--space-24);
}

/* Alternate sections get a surface tint + hairline borders */
.svc-section--alt {
  background-color: var(--color-surface);
  border-top: 1px solid rgb(255 255 255 / 0.06);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

/* Two-column row */
.svc-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

/* ── Service visual panel ──────────────────────────────────── */

.svc-visual {
  display: flex;
  justify-content: center;
}

.svc-visual-inner {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  background-color: var(--color-surface);
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Inner grid texture */
  background-image:
    linear-gradient(rgb(99 102 241 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(99 102 241 / 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Glow variants */
.svc-visual-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.svc-visual-glow--indigo {
  background: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    rgb(99 102 241 / 0.18) 0%,
    transparent 70%
  );
}

.svc-visual-glow--cyan {
  background: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    rgb(34 211 238 / 0.1) 0%,
    transparent 70%
  );
}

/* Large icon container */
.svc-icon-wrap {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(99 102 241 / 0.1);
  border: 1px solid rgb(99 102 241 / 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 8px rgb(99 102 241 / 0.05);
}

/* Decorative dot grid (bottom-right corner accent) */
.svc-dots {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  background-image: radial-gradient(
    rgb(99 102 241 / 0.4) 1px,
    transparent 1px
  );
  background-size: 10px 10px;
  opacity: 0.6;
}

/* ── Service content ───────────────────────────────────────── */

.svc-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  /* Default flex-direction:column uses align-items:stretch, which would
     expand inline elements (buttons) to full column width. Override: */
  align-items: flex-start;
}

.svc-number {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.12em;
}

.svc-content h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* Outcomes list */
.outcomes-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.outcomes-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.6;
}

.outcomes-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-color: rgb(99 102 241 / 0.12);
  border: 1px solid rgb(99 102 241 / 0.35);
  border-radius: var(--radius-sm);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%236366F1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* "Who this is for" callout */
.who-callout {
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background-color: rgb(99 102 241 / 0.06);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.who-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

.who-callout p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
  max-width: none;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* ── Tablet and up ───────────────────────────────────────────── */
@media (min-width: 768px) {
  .svc-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  /* Reverse: visual goes right, content stays left */
  .svc-row--reverse .svc-visual {
    order: 2;
  }
  .svc-row--reverse .svc-content {
    order: 1;
  }

  .svc-visual-inner {
    max-width: none; /* fill the column */
  }
}

/* ── Large desktop ───────────────────────────────────────────── */
@media (min-width: 1024px) {
  .svc-row {
    grid-template-columns: 5fr 7fr;
  }

  /* Reversed sections keep content wider */
  .svc-row--reverse {
    grid-template-columns: 7fr 5fr;
  }
}
