/* ============================================================
   Astea Solutions — about.css
   Page-specific styles for about.html.
   Depends on base.css and sections.css variables.
   ============================================================ */

/* ---- Who we are copy blocks ------------------------------- */
.about-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 72ch;
}

.about-copy__block h3 {
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
}

.about-copy__block p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  max-width: none;
}

/* ---- People grid ------------------------------------------ */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg) var(--space-md);
}

.person-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.person-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-placeholder);
}

.person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.person-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.person-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-black);
}

.person-card__role {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  max-width: none;
}

.person-card__bio {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text);
  max-width: none;
  margin-top: 0.25rem;
}

/* Quoted employee testimonials — first-person speech, styled distinct from bios */
.person-card__quote {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text);
  max-width: none;
  margin: 0.25rem 0 0;
  padding: 0;
  border: none;
  font-style: italic;
}

.person-card__quote p {
  margin: 0;
}

/* ---- How we work grid ------------------------------------- */
.how-we-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg) var(--space-xl);
}

.how-we-work-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
}

.how-we-work-item p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  max-width: none;
}

/* ---- Responsive adjustments ------------------------------ */
@media (max-width: 768px) {
  /* Skip the 2-column step to avoid a lone orphaned third card */
  .people-grid {
    grid-template-columns: 1fr;
  }

  /* Cap card width so photos don't span a near-full viewport at 480–768px */
  .person-card {
    max-width: 420px;
    margin-inline: auto;
  }

  .how-we-work-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}
