/* ==========================================================================
   Hire From Us page (V2). Load after contact.css (form + info panel).
   ========================================================================== */

/* ---------- Hero ---------- */
.tp-hero--hire { padding-bottom: clamp(48px, 3vw + 32px, 80px); }
.tp-hero--hire .tp-hero__ctas { margin-top: var(--space-5); }

/* ---------- Why hire: 4 equal cards ---------- */
.tp-hwhy .tp-audience__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Roles ---------- */
.tp-hroles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.tp-hroles__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  transition: border-color 600ms var(--ease-out), box-shadow 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.tp-hroles__card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.tp-hroles__card h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  letter-spacing: var(--tracking-h3);
  font-weight: var(--weight-bold);
  color: var(--color-heading);
}
.tp-hroles__card > p { font-size: var(--text-body); line-height: var(--leading-body); color: var(--color-text-secondary); }
.tp-hroles__skills { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: auto; padding-top: var(--space-2); }
.tp-hroles__skills li {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  font-weight: var(--weight-semibold);
  color: var(--color-accent-text);
}

/* ---------- How hiring works (dark panel) ---------- */
.tp-hsteps { display: grid; gap: 20px; margin: 0; padding: 0 0 var(--space-4); list-style: none; border-bottom: 1px solid var(--color-border); }
.tp-hsteps li { display: flex; align-items: flex-start; gap: var(--space-1-5); }
.tp-hsteps > li > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-round);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-bold);
}
.tp-hsteps strong { display: block; font-size: var(--text-body); font-weight: var(--weight-bold); color: var(--color-heading); }
.tp-hsteps p { margin: 2px 0 0; font-size: var(--text-body-sm); line-height: var(--leading-body-sm); color: var(--color-text-secondary); }

/* ---------- GitHub profiles: same carousel as the testimonials
   (.tp-stories__track + .tp-story in home-sections.css; cards built by the
   TEAM script at the end of the page) ---------- */
.tp-gh .tp-stories__track { margin-top: 0; }

/* Short intro lines sit in the right-hand corner of the heading row */
@media (min-width: 1024px) {
  .tp-hroles__head .tp-section__lead { justify-self: end; text-align: right; }
}
.tp-gh__card { gap: var(--space-2); min-width: 0; }
.tp-gh__head { display: flex; align-items: center; gap: var(--space-1-5); }
.tp-gh__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-round);
  object-fit: cover;
  background: var(--color-surface-sunken);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-bold);
  color: var(--color-heading);
}
.tp-gh__who { flex: 1; min-width: 0; }
.tp-gh__name { font-size: var(--text-body); font-weight: var(--weight-bold); color: var(--color-heading); }
.tp-gh__role { font-size: var(--text-caption); color: var(--color-text-secondary); }
.tp-gh__link {
  display: grid;
  place-items: center;
  width: var(--touch);
  height: var(--touch);
  border: 1px solid var(--color-border-control);
  border-radius: var(--radius-md);
  color: var(--color-heading);
  transition: border-color 600ms var(--ease-out), background-color 600ms var(--ease-out);
}
.tp-gh__link:hover { border-color: var(--color-heading); background: var(--color-surface-hover); }
.tp-gh__link svg { width: 18px; height: 18px; }
.tp-gh__stats { display: flex; gap: var(--space-4); }
.tp-gh__stats div { display: grid; }
.tp-gh__stats b { font-size: var(--text-h4); font-weight: var(--weight-bold); color: var(--color-heading); }
.tp-gh__stats span { font-size: var(--text-caption); color: var(--color-text-muted); }
.tp-gh__heatmap { padding: var(--space-1-5); border-radius: var(--radius-md); background: var(--color-bg-alt); }
.tp-gh__heatmap img { display: block; width: 100%; height: auto; }
.tp-gh__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-gh__tags span {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-sunken);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}
.tp-gh__muted { font-size: var(--text-caption); color: var(--color-text-muted); }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .tp-hwhy .tp-audience__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-hroles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .tp-hwhy .tp-audience__grid,
  .tp-hroles__grid { grid-template-columns: 1fr; }
  .tp-hroles__card { padding: var(--space-3); }
}
