/*
 * Career IP — Landing page composition (Frontend Prompt #003).
 *
 * Page-specific layout ONLY, where the foundation primitives cannot express the
 * approved composition directly (full-bleed gradient bands, hero character band,
 * 2-/3-column section grids, illustration sizing). Every value references a design
 * token — no hardcoded visual values. Colours, gradients, type, spacing all come
 * from styles/tokens.css. The frozen orange CTA is untouched (DEBT-001 preserved).
 */

/* ================================================================== Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--space-2xl);
  padding-bottom: 0;
  overflow: hidden;
}
.hero__inner {
  gap: var(--space-lg);
  align-items: center;
  padding-bottom: var(--space-xl);
}
.hero__logo {
  width: min(20rem, 62vw);
  height: auto;
}
/* Line breaks are authored in the markup (<br>); no max-width so the approved
   two-line desktop headline never wraps prematurely. It wraps naturally on narrow
   viewports (faithful mobile behaviour). */
/* Character band anchored to the base of the hero, edge to edge (full-bleed). */
.hero__people {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

/* ===================================================== Section titles (art) */
.steps__title img,
.testimonials__title img {
  height: clamp(2.5rem, 7vw, 4rem);
  width: auto;
  margin-inline: auto;
}

/* ========================================================= How it Works */
.steps__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}
.step {
  align-items: center;
  gap: var(--space-md);
}
.step .label {
  min-height: 2lh; /* keep two-line labels vertically aligned across the row */
}
.step__art {
  height: 13rem;
  width: auto;
}

/* ============================================================== Value */
.value__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.value__text {
  gap: var(--space-md);
  align-items: flex-start;
}
/* UX/UI Test 2: the "Finding it difficult…" eyebrow reads too small next to the
   heading it introduces — enlarged ~200% (responsively), with the stack gap
   beneath it tightened to remove the now-oversized gap that produced. */
.value__text .label {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: var(--leading-snug);
}
.value__text .label + .section-title {
  margin-top: calc(-1 * var(--space-sm));
}
.value__art {
  width: 100%;
  height: auto;
  max-width: 34rem;
  margin-inline: auto;
}

/* ======================================================= Testimonials */
.testimonials__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: start;
}
.testimonial {
  align-items: center;
  text-align: center;
}
.testimonial__portrait {
  height: 12rem;
  width: auto;
}
.testimonial__quote {
  margin: 0;
  width: 100%;
  padding: var(--space-md);
  border-radius: var(--radius-card);
  /* pale frosted surface derived from the white token — not a hardcoded colour */
  background: color-mix(in srgb, var(--color-white) 70%, transparent);
  box-shadow: var(--shadow-sm);
}

/* ============================================================ Feedback */
.feedback__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.feedback__art {
  width: 100%;
  height: auto;
  max-width: 30rem;
  margin-inline: auto;
}
.feedback__text {
  gap: var(--space-md);
  align-items: flex-start;
}
.feedback__title {
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ================================================= Responsive foundation */
/* Tablet & below: section grids collapse to one column (mobile is a faithful
   stacked composition, not a compressed desktop). */
@media (max-width: 1023px) {
  .value__grid,
  .feedback__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .value__text,
  .feedback__text {
    align-items: center;
    text-align: center;
  }
  .steps__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .step .label {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: var(--space-xl);
  }
  .step__art {
    height: 12rem;
  }
}
