/* services-styles.css — /services page styles
   Depends on: homepage-styles.css (design tokens, shared classes)
*/

/* Disable snap-scroll for this page */
html { scroll-snap-type: none; }

/* ── Layout ──────────────────────────────────────────────────────────────── */

.services-container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Section spacing + backgrounds ──────────────────────────────────────── */

#services-hero {
  background: var(--bg-secondary);
  padding: var(--space-10) 0 var(--space-9);
  border-bottom: 1px solid var(--border-subtle);
}

#services-cards-section {
  background: var(--bg);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border-subtle);
}

#services-how-section {
  background: var(--bg-secondary);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border-subtle);
}

#services-cta-section {
  background: var(--bg);
  padding: var(--space-10) 0;
}

/* ── Section 00: Hero ────────────────────────────────────────────────────── */

.services-hero-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin: var(--space-4) 0 var(--space-6);
  max-width: 680px;
}

.services-intro {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 680px;
  margin: 0 0 var(--space-8);
  border-left: 3px solid var(--brand-orange);
  padding-left: var(--space-5);
}

/* ── Section 01: Service Cards ───────────────────────────────────────────── */

.services-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.services-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card, var(--bg-secondary));
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--brand-orange);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6) var(--space-7);
}

.services-card-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: var(--space-4);
}

.services-card-headline {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
}

.services-card-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  flex: 1;
  margin-bottom: var(--space-4);
}

.services-card-result {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.services-card-result::before {
  content: '→ ';
  color: var(--brand-orange);
}

.services-card-cta {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-5);
  align-self: flex-start;
}

.services-card-example {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-decoration: none;
  font-family: var(--font-mono);
  transition: color 0.15s;
}

.services-card-example:hover {
  color: var(--brand-orange);
}

/* ── Section 02: How It Works ────────────────────────────────────────────── */

.services-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  margin-top: var(--space-7);
}

.services-how-step {
  position: relative;
}

.services-how-num {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--border-subtle);
  line-height: 1;
  margin-bottom: var(--space-4);
  user-select: none;
}

.services-how-label {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.services-how-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Connector line between steps (desktop only) */
.services-how-grid .services-how-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(var(--text-3xl) / 2);
  right: calc(-1 * var(--space-7) / 2);
  width: var(--space-7);
  height: 1px;
  background: var(--border-subtle);
}

.services-how-footer {
  margin-top: var(--space-8);
  text-align: center;
}

/* ── Section 03: Final CTA ───────────────────────────────────────────────── */

.services-cta-block {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.services-cta-h2 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--text);
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
}

.services-cta-body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.services-cta-note {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .services-card-grid,
  .services-how-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .services-how-step::after {
    display: none;
  }

  .services-cta-block {
    padding: var(--space-6) var(--space-5);
  }
}

@media (max-width: 520px) {
  .services-hero-sub {
    font-size: var(--text-base);
  }
}
