/* ---- Hero -------------------------------------------------------------
   Photo section with a translucent band pinned to the bottom, and a red
   panel anchored to the hero's bottom edge that overlaps upward out of that
   band over the photo. */
.about-hero {
  position: relative;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: url('/images/iStock-2175235304.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* height (not min-height) so the band stays pinned to the bottom of
   .about-hero instead of growing with its contents. */
.about-hero-band {
  height: 269px;
  border-bottom: 50px solid rgba(112, 146, 180, 0.5);
  background: linear-gradient(90deg, rgba(31, 78, 132, 0.5) 0%, rgba(28, 66, 110, 0.5) 100%);
}

/* Anchored to the bottom of .about-hero (the nearest positioned ancestor)
   rather than pushed there by a negative margin: the panel's height varies
   with font metrics and how the copy wraps, so any fixed offset drifts off
   the edge. bottom: 0 keeps the panel's bottom flush with the hero's however
   tall it gets, and it grows upward out of the band over the photo. */
.about-hero-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.about-hero-inner {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 0;
}

.about-hero-panel {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 100px 0;
  background: #d54553;
  border-right: 25px solid #0f467c;
  animation: fade-left-soft 2s ease forwards;
}

.about-hero-spacer {
  width: 60%;
}

.about-hero-panel h1 {
  width: 82%;
  margin: 0;
  font-family: var(--font-myriad-condensed);
  font-size: 68px;
  font-weight: 700;
  line-height: 68px;
  color: #fff;
}

.about-hero-panel p {
  width: 82%;
  margin: 0;
  font-family: var(--font-myriad);
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  color: #fff;
}

/* ---- Our Purpose ------------------------------------------------------ */
.purpose-section {
  background: #fff;
  padding: 100px 12px;
}

.purpose-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.purpose-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}

.purpose-header h2 {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 66px;
  font-weight: 500;
  line-height: 70px;
  color: #3975b4;
}

.purpose-header p {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  color: #3975b4;
}

/* The pin/dot timeline is shared with the homepage (timeline.css); this page
   only differs in the title colour and having no description line. */
.purpose-section .timeline-item h3 {
  color: #3975b4;
}

/* ---- Our Members ------------------------------------------------------
   Full-bleed mosaic: the fr ratios reproduce the live column widths once
   the 20px gaps are taken out, so the blocks line up edge to edge. */
.members-section {
  background: var(--color-offwhite);
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.members-row {
  display: grid;
  gap: 20px;
}

.members-row-1 {
  grid-template-columns: 728fr 457fr 457fr 183fr;
}

.members-row-2 {
  grid-template-columns: 547fr 457fr 457fr 364fr;
}

.members-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* Decorative blocks that break the mosaic's grid. All three are absolutely
   positioned inside their cell and drop away below the tablet breakpoint,
   matching the live site's hidden-mobile/hidden-tablet flags. */
.members-intro::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: #538baf;
}

.members-row-2 .members-tail {
  position: relative;
}

.members-row-2 .members-tail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  background: #0f467c;
}

.members-row-2 .members-tail::after {
  content: "";
  position: absolute;
  bottom: 40px;
  right: 70px;
  width: 100px;
  height: 100px;
  background: #538baf;
}

/* Row 2's leading cell is a photo, not a spacer. */
.members-lead {
  background-image: url('/images/iStock-2179969369.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.members-intro h2 {
  margin: 0;
  font-family: var(--font-myriad);
  font-size: 60px;
  font-weight: 400;
  line-height: 68px;
  color: #0f467c;
}

.members-intro p {
  margin: 0;
  font-family: var(--font-myriad);
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  color: #0f467c;
}

.members-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 35px;
  padding: 50px 20px;
}

.members-card h3 {
  margin: 0;
  font-family: var(--font-myriad-condensed);
  font-size: 35px;
  font-weight: 600;
  line-height: 42px;
  color: #fff;
}

.members-card p {
  margin: 0;
  font-family: var(--font-myriad);
  font-size: 22px;
  font-weight: 500;
  line-height: 30px;
  color: #fff;
}

.members-card-blue {
  background: #538baf;
}

.members-card-red {
  background: #d54553;
}

.members-card-navy {
  background: #0f467c;
}

/* ---- Photo band ------------------------------------------------------- */
.about-feature {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: url('/images/iStock-1413996445-scaled.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* The band drops in from its own height above, over the photo. */
.about-feature-band {
  min-height: 280px;
  background: linear-gradient(90deg, rgba(31, 78, 132, 0.5) 0%, rgba(28, 66, 110, 0.5) 100%);
  opacity: 0;
}

.about-feature-band.in-view {
  animation: fade-in-down 1.25s ease both;
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 1024px) {
  .about-hero-panel h1 {
    font-size: 50px;
    line-height: 56px;
  }

  .purpose-header h2 {
    font-size: 50px;
    line-height: 60px;
  }

  .members-row-1,
  .members-row-2 {
    grid-template-columns: 1fr 1fr;
  }

  .members-tail {
    display: none;
  }

  .members-intro::after {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Back into normal flow: stacked full-width the panel can outgrow the hero,
     and anchoring it to the bottom would spill it over the section below.
     The band has to size to its content here for the same reason - at a fixed
     height the taller stacked panel overflows it. */
  .about-hero-row {
    position: static;
  }

  .about-hero-band {
    height: auto;
  }

  .about-hero-inner {
    flex-direction: column;
  }

  .about-hero-panel {
    width: 100%;
    align-items: flex-start;
    gap: 30px;
    padding: 50px 20px;
    border-right: 0;
    border-bottom: 25px solid #0f467c;
  }

  .about-hero-panel h1,
  .about-hero-panel p {
    width: 100%;
  }

  .about-hero-panel h1 {
    font-size: 40px;
    line-height: 46px;
  }

  .about-hero-spacer {
    display: none;
  }

  .purpose-section {
    padding: 50px 12px;
  }

  .purpose-header h2 {
    font-size: 32px;
    line-height: 36px;
  }

  .members-section {
    padding: 50px 0;
  }

  .members-row-1,
  .members-row-2 {
    grid-template-columns: 1fr;
  }

  /* The photo stays on mobile (live keeps it); it just needs its own height
     once it no longer shares a row with the cards. */
  .members-lead {
    min-height: 280px;
  }

  .members-intro h2 {
    font-size: 36px;
    line-height: 44px;
  }

  .members-card h3 {
    font-size: 26px;
    line-height: 32px;
  }

  .members-card p {
    font-size: 18px;
    line-height: 26px;
  }

  .about-feature {
    min-height: 400px;
  }

  .about-feature-band {
    min-height: 150px;
  }
}
