/* ==================================================================
   About us page
   Mobile layout follows the Figma "About us" frame (390px); tablet and
   desktop reuse the homepage's type scale and spacing.
   Header/footer/buttons/badges come from site.css.
   ================================================================== */

.about-page {
  --page-margin: 6rem;       /* side margin, same as the homepage body */
  --section-gap: 7.5rem;     /* space between sections */
  background-color: var(--color-aliceblue);
  color: var(--blue-grey);
  font-family: var(--Body);
  overflow-x: clip;
}

/* ------------------------------------------------------------------
   Shared text styles for this page
   ------------------------------------------------------------------ */
.about-eyebrow {
  margin: 0;
  font-family: var(--Headlines);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--Blue-dark);
}
.about-title {
  margin: 0;
  font-family: var(--Headlines);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--Blue-dark);
}

/* ------------------------------------------------------------------
   Page body: sections stacked with a consistent gap
   ------------------------------------------------------------------ */
.about-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap);
  padding: var(--section-gap) var(--page-margin);
}

/* Intro */
.about-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  max-width: 50rem;
  text-align: center;
}
.about-intro__lead {
  margin: 0;
  font-family: var(--Headlines);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--Blue-dark);
}
.about-intro__text {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Founder: photo + card side by side on desktop */
.about-leader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  width: 100%;
}
.about-leader__profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4rem;
  max-width: 62rem;
  width: 100%;
}
.about-leader__photo {
  display: block;
  width: 16rem;
  height: auto;
}
.about-leader__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 3rem;
  border-radius: var(--14);
  background-color: var(--white);
  box-shadow: var(--shadow-drop);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-leader__card .about-title {
  margin-bottom: 1rem;
}
.about-leader__text {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.about-credentials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}
.about-credentials > li {
  display: contents; /* the badge wrapper is the flex item, like on the homepage */
}
.about-leader__note {
  margin: 0;
  max-width: 50rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-align: center;
}

/* Commitment + CTA */
.about-commitment {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 56rem;
  text-align: center;
}
.about-commitment__text {
  margin: 0.75rem 0 1.25rem;
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Footer wrapper: same side margins as the page body */
.about-footer {
  padding: 0 var(--page-margin);
}

@media (hover: hover) {
  .about-leader__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(9, 128, 247, 0.18);
  }
}

/* ------------------------------------------------------------------
   Tablet
   ------------------------------------------------------------------ */
@media screen and (max-width: 1024px) {
  .about-page {
    --page-margin: 2.5rem;
    --section-gap: 5rem;
  }
  .about-leader__profile {
    gap: 2.5rem;
  }
  .about-leader__photo {
    width: 13rem;
  }
  .about-leader__card {
    padding: 2.25rem;
  }
}

/* ------------------------------------------------------------------
   Mobile (Figma "About us" frame)
   ------------------------------------------------------------------ */
@media screen and (max-width: 700px) {
  .about-leader__profile {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 2.5rem;
  }
  .about-leader__photo {
    width: 14.75rem;
  }
}
@media screen and (max-width: 600px) {
  .about-page {
    --page-margin: 1.25rem;
  }
  .about-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }
  .about-title {
    font-size: 1.5625rem;
  }
  .about-intro {
    gap: 2.5rem;
    padding: 0 0.25rem;
  }
  .about-intro__lead {
    font-size: 1.375rem;
  }
  .about-intro__text,
  .about-leader__note,
  .about-commitment__text {
    font-size: 1rem;
    line-height: 1.625rem;
  }
  .about-leader {
    gap: 2.625rem;
  }
  .about-leader__card {
    padding: 3rem 1.25rem;
    align-self: stretch;
  }
  .about-leader__text {
    font-size: 1rem;
  }
  .about-credentials {
    gap: 1rem; /* badge-shine's 2-per-row width assumes a 1rem gap */
  }
  .about-commitment {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-leader__card {
    transition: none;
    transform: none !important;
  }
}

/* Banner photo (component styles in site.css) */
.page-banner--about {
  --banner-photo: url('./assets/banner-about-us.webp');
}
@media screen and (max-width: 600px) {
  .page-banner--about {
    --banner-photo-x: 78%; /* show the sonographer's face and probe, not her back */
  }
}
