/* ==========================================================================
   GNC SG — About Page
   ==========================================================================
   Two paragraph types render this page: hero_two_column at the top and one or
   more rich_text_section below it.

   A note on the mobile hero. design/mobile/about/about.png keeps the two
   columns side by side at 375px, but it gets there by scaling the desktop hero
   down rather than laying it out again: measured off the mock, the headline
   lands at ~9px and the standfirst at ~6px, in a column 175px wide holding a
   43-character line. That is below the point where the copy can be read at
   all, so the hero stacks here instead — image, then headline, standfirst and
   badges at their normal sizes. The content and its order are unchanged; only
   the axis differs. Restoring the mock exactly is a one-line change: drop the
   min-width from the grid-template-columns rule below.
   ========================================================================== */

.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .about-hero {
    grid-template-columns: 1fr 1fr;
  }
}

.about-hero__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.about-hero__info {
  text-align: center;
}

@media (min-width: 768px) {
  .about-hero__info {
    text-align: left;
  }
}

.about-hero__headline {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .about-hero__headline {
    font-size: var(--font-size-3xl);
  }
}

.about-hero__subheadline {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

/* Certification badges row */
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: center;
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .about-badges {
    justify-content: flex-start;
  }
}

/* Height-matched rather than width-matched: the four marks are different
   shapes (a round seal, two wide plaques, a square stamp), so pinning the
   height is what makes them read as one row. */
.about-badges img {
  height: 48px;
  width: auto;
}

@media (min-width: 768px) {
  .about-badges img {
    height: 80px;
  }
}

/* ==========================================================================
   Body sections
   ========================================================================== */

.about-section {
  margin-bottom: var(--space-12);
}

/* 20px over the accent rule, which .heading-accent draws 60px wide; the mobile
   design shortens it to 48. */
.about-section__heading {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-6);
}

.about-section__body p {
  margin-bottom: var(--space-5);
}

.about-section__body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .about-hero {
    gap: var(--space-6);
    margin-bottom: var(--space-8);
  }

  /* The desktop pair measures 32/20 in About.png and the rules above already
     match it. Stepping both down keeps that ~0.6 ratio while stopping the
     headline from running to three lines in the stacked column. */
  .about-hero__headline {
    font-size: var(--font-size-xl);
  }

  .about-hero__subheadline {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-4);
  }

  .about-section {
    margin-bottom: var(--space-8);
  }

  .about-section__heading {
    font-size: var(--font-size-lg);
  }

  .about-section__heading.heading-accent::after {
    width: 48px;
  }
}
