/*
 * About page (templates/pages/about.php) — GDL-283.
 * Founder photos pending (GDL-288): sage placeholder blocks stand in.
 */

/* ------------------------------------------------------------
   Meet the founders — photo placeholders + letter
   ------------------------------------------------------------ */
.founders-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 640px;
  margin: 0 auto var(--space-block);
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--clr-sage-light), var(--clr-sage));
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder .sprig svg {
  width: 96px;
  height: 40px;
  stroke: rgba(250, 247, 240, 0.85);
}

.founders-letter {
  max-width: 640px;
  margin: 0 auto;
  background: var(--clr-cream);
  border: 1px solid rgba(38, 61, 47, 0.08);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.founders-letter p:first-child {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--clr-forest);
}

.founders-letter-signature {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--clr-forest);
  margin: 2rem 0 0;
}

/* ------------------------------------------------------------
   Values — cream-on-forest grid
   ------------------------------------------------------------ */
.about-values ul {
  list-style: none;
  margin: var(--space-block) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3.5rem;
}

.about-values li {
  border-top: 1px solid rgba(244, 240, 230, 0.22);
  padding-top: 1.3rem;
  margin: 0;
}

.about-values li strong {
  color: var(--clr-text-inverse);
  font-weight: 600;
}

/* An odd last item spans the row so the grid closes evenly (same rule as the home pillars) */
.about-values li:last-child:nth-child(odd),
.about-creds li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ------------------------------------------------------------
   Credentials — two-column grid
   ------------------------------------------------------------ */
.about-creds ul {
  list-style: none;
  margin: var(--space-block) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3.5rem;
}

.about-creds li {
  border-top: 1px solid rgba(38, 61, 47, 0.16);
  padding-top: 1.3rem;
  margin: 0;
}

.about-creds li strong {
  color: var(--clr-forest-ink);
  font-weight: 600;
}

/* ------------------------------------------------------------
   Ofsted quote rotator
   ------------------------------------------------------------ */
.quote-rotator {
  display: grid;
  margin: 0 auto;
}

.quote-rotator .quote-rotator-item {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.8s var(--ease-soft);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.quote-rotator .quote-rotator-item.is-active { opacity: 1; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 720px) {
  /* Founders photos and values keep two columns on phone (Kelly, draft-2 decision 2);
     the credentials list has long paragraphs and stacks to one column on phone only */
  .founders-photos { gap: 1rem; }
  .about-values ul { gap: 1.4rem 1.25rem; }
  .about-values li { font-size: 0.875rem; line-height: 1.55; padding-top: 1rem; }
  .about-creds ul { grid-template-columns: 1fr; }
}
