/* =========================================================
   ABOUT.CSS
   About page — about.html
   ========================================================= */

/* =========================================================
   HERO  (L-shaped panel)
   ========================================================= */
.hero--about {
  position: relative;
  background: var(--color-navy);
  overflow: hidden;
}

.hero__background--about {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-images/about-hero.jpg');
  background-image: image-set(
    url('../img/hero-images/about-hero.webp') type('image/webp'),
    url('../img/hero-images/about-hero.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center top;
}

.hero__background--about::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 51, 108, 0.45);
}

.hero--about .hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: var(--sticky-top);
}

.hero--about .hero__panel {
  grid-column: 2 / 3;
  background: var(--color-navy);
  padding: var(--space-4xl) var(--space-3xl);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 65vh;
}

.hero--about .hero__panel .btn {
  align-self: flex-start;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-md);
}

.hero--about .hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--space-xl);
}

.hero--about .hero__body {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  max-width: 46ch;
}

.hero__stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1;
}

.hero__stat-label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   SHARED SECTION TYPOGRAPHY
   ========================================================= */
.about-eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-md);
}

.about-eyebrow--light {
  color: rgba(255, 255, 255, 0.6);
}

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-navy);
  line-height: 1.05;
  margin-bottom: var(--space-xl);
}

.about-heading--light {
  color: var(--color-white);
}

/* =========================================================
   OUR STORY
   ========================================================= */
.about-story {
  padding: var(--space-4xl) var(--gutter);
  background: var(--color-white);
}

.about-story__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-4xl);
  align-items: start;
}

.about-story__text p {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  max-width: 60ch;
}

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

.about-story__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.about-stat-card {
  background: var(--color-navy);
  border-top: 4px solid var(--color-red);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.about-stat-card__number {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1;
}

.about-stat-card__unit {
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 0.35em;
}

.about-stat-card__label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* Then-and-now photo pair under the story text */
.about-story__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about-story__photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Full-width action band between Mission and Team */
.about-photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--color-navy);
  height: 260px;
  overflow: hidden;
}

.about-photo-strip__img { overflow: hidden; }

.about-photo-strip__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-smooth);
}

.about-photo-strip__img:hover img { transform: scale(1.04); }

@media (max-width: 768px) {
  .about-photo-strip {
    grid-template-columns: repeat(2, 1fr);
    height: 340px;
  }
}

/* Wide team banner above the staff directory strip */
.about-team__photo {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

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

/* =========================================================
   MISSION & VALUES
   ========================================================= */
.about-mission {
  background: var(--color-navy);
  padding: var(--space-4xl) var(--gutter);
}

.about-mission__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.about-mission__header {
  max-width: 68ch;
  margin-bottom: var(--space-3xl);
}

.about-mission__statement {
  font-size: var(--fs-md);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  border-left: 4px solid var(--color-red);
  padding-left: var(--space-lg);
  margin: 0;
  max-width: none;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

.about-value {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.05);
  border-top: 4px solid var(--color-red);
  transition: background 0.2s var(--ease-smooth);
}

.about-value:hover {
  background: rgba(255, 255, 255, 0.09);
}

.about-value__icon {
  color: var(--color-red);
}

.about-value__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.about-value__body {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  max-width: none;
}

/* =========================================================
   OUR TEAM
   ========================================================= */
.about-team {
  padding: var(--space-4xl) var(--gutter);
  background: var(--color-off-white);
}

.about-team__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.about-team__header {
  max-width: 60ch;
  margin-bottom: var(--space-3xl);
}

.about-team__intro {
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--color-text);
  max-width: none;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.team-card {
  background: var(--color-white);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(4, 51, 108, 0.07);
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(4, 51, 108, 0.12);
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-navy);
  overflow: hidden;
}

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

.team-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy-25);
  color: var(--color-grey);
}

.team-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.team-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--color-navy);
  text-transform: uppercase;
}

.team-card__role {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-xs);
}

.team-card__bio {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--color-text);
  max-width: none;
}

.team-group-title {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin: var(--space-3xl) 0 var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-navy-25);
}

.team-group-title:first-of-type {
  margin-top: 0;
}

.team-grid--management {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  justify-content: start;
}

.team-admin-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  background: var(--color-navy);
  border-top: 4px solid var(--color-red);
  padding: var(--space-xl) var(--space-2xl);
  flex-wrap: wrap;
}

.team-admin-strip__text p {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 56ch;
  margin-bottom: var(--space-sm);
}

.team-admin-strip__names {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5) !important;
  margin: 0 !important;
}

.about-team__note {
  font-size: var(--fs-sm);
  color: var(--color-grey);
  max-width: none;
  margin-top: var(--space-xl);
}

.about-team__note a {
  color: var(--color-navy);
  font-weight: 600;
}

/* =========================================================
   OUR FACILITY
   ========================================================= */
.about-facility {
  background: var(--color-navy);
  padding: var(--space-4xl) var(--gutter);
}

.about-facility__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.about-facility__header {
  max-width: 60ch;
  margin-bottom: var(--space-3xl);
}

.about-facility__intro {
  font-size: var(--fs-base);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  max-width: none;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.facility-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 0.2s var(--ease-smooth);
}

.facility-item:hover {
  background: rgba(255, 255, 255, 0.09);
}

.facility-item__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.facility-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-smooth);
}

.facility-item:hover .facility-item__img img {
  transform: scale(1.04);
}

.facility-item__content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.facility-item__title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-white);
}

.facility-item__desc {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: none;
}

/* =========================================================
   SAFEGUARDING & WELFARE
   ========================================================= */
.about-welfare {
  padding: var(--space-4xl) var(--gutter);
  background: var(--color-white);
}

.about-welfare__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-4xl);
  align-items: start;
}

.about-welfare__text p {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  max-width: 60ch;
}

.about-welfare__text p:last-of-type {
  margin-bottom: var(--space-xl);
}

/* Sits between the copy and the button, matching the Our Story photos.
   Held to the same 60ch the paragraphs use so it lines up with them
   rather than running the full width of the column. */
.about-welfare__photo {
  max-width: 60ch;
  margin-bottom: var(--space-xl);
}

/* 4:3 matches the photo as shot, so nothing is cropped away. */
.about-welfare__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.about-welfare__commitments {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--color-off-white);
  border-top: 4px solid var(--color-navy);
}

.welfare-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.welfare-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-navy);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.welfare-item__text {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-navy);
  line-height: 1.5;
  max-width: none;
}

/* =========================================================
   AFFILIATIONS
   ========================================================= */
.about-affiliations {
  padding: var(--space-4xl) var(--gutter);
  background: var(--color-off-white);
}

.about-affiliations__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.about-affiliations__body {
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--color-text);
  max-width: 60ch;
  margin-bottom: var(--space-2xl);
}

.affiliations-list {
  display: flex;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.affiliation-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-navy-25);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: 0 2px 8px rgba(4, 51, 108, 0.06);
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth);
}

.affiliation-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4, 51, 108, 0.12);
}

.affiliation-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.affiliation-item__text strong {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--color-navy);
  text-transform: uppercase;
}

.affiliation-item__text span {
  font-size: var(--fs-xs);
  color: var(--color-grey);
}

/* =========================================================
   ENQUIRY STRIP
   ========================================================= */
.enquiry-strip {
  background: var(--color-navy);
  padding: var(--space-3xl) var(--gutter);
}

.enquiry-strip__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.enquiry-strip__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.enquiry-strip__body {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-md);
  max-width: 52ch;
}

.enquiry-strip__actions {
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .about-values {
    grid-template-columns: repeat(3, 1fr);
  }

  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 900px) {
  .hero--about .hero__grid {
    grid-template-columns: 1fr;
    padding-top: var(--header-height-mobile);
  }

  .hero--about .hero__panel {
    grid-column: 1 / -1;
    margin: 28vh 0 0 auto;
    padding: var(--space-xl) var(--space-lg);
    min-height: auto;
    width: 80%;
    max-width: 380px;
  }

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

  .about-story__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-welfare__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .enquiry-strip__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero--about .hero__panel {
    width: 85%;
    padding: var(--space-lg);
  }

  .hero--about .hero__title {
    font-size: 1.9rem;
    margin-bottom: var(--space-md);
  }

  .about-story,
  .about-mission,
  .about-team,
  .about-facility,
  .about-welfare,
  .about-affiliations {
    padding: var(--space-3xl) var(--gutter-mobile);
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .about-story__stats {
    grid-template-columns: 1fr 1fr;
  }

  .facility-grid {
    grid-template-columns: 1fr;
  }

  .facility-item__img {
    aspect-ratio: 16 / 7;
  }

  .team-grid,
  .team-grid--management {
    grid-template-columns: 1fr;
  }

  .team-admin-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl) var(--gutter-mobile);
  }

  .enquiry-strip {
    padding: var(--space-2xl) var(--gutter-mobile);
  }

  .enquiry-strip__actions {
    width: 100%;
  }

  .enquiry-strip__actions .btn {
    flex: 1;
    text-align: center;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .about-values {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PAGE QUICK NAV
   The same sticky jump bar the Classes and Preschool pages use. Those
   styles live in classes.css, which this page does not load, so the few
   rules that matter are repeated here rather than pulling in a whole
   stylesheet for one strip.
   ========================================================= */
.about-nav {
  background: var(--color-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: var(--sticky-top);
  z-index: 10;
}

.about-nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.about-nav__inner::-webkit-scrollbar { display: none; }

.about-nav__link {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-md);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.about-nav__link:hover,
.about-nav__link:focus-visible {
  color: var(--color-white);
  border-bottom-color: var(--color-red);
}

/* The sticky bar would otherwise cover the heading of whichever section
   was jumped to. */
.about-story,
.about-mission,
.about-welfare,
.about-facility,
.about-team,
.about-affiliations {
  scroll-margin-top: calc(var(--sticky-top) + 52px);
}

@media (max-width: 900px) {
  .about-nav__inner { padding: 0 var(--gutter-mobile); }
  .about-nav__link  { padding: var(--space-sm) var(--space-md); }
}

/* =========================================================
   COMMUNITY HUB
   A showcase page for the volunteer fundraising team, built from the
   About page's parts so it stays on brand without a stylesheet of
   its own.
   ========================================================= */
.hero__background--hub {
  position: absolute;
  inset: 0;
  background-image: url('../img/about/community-hub.jpg');
  background-image: image-set(
    url('../img/about/community-hub.webp') type('image/webp'),
    url('../img/about/community-hub.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center 35%;
}

.hero__background--hub::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,51,108,0.92) 0%, rgba(4,51,108,0.55) 55%, rgba(4,51,108,0.25) 100%);
}

/* The values grid is built for five. These pages want four and three. */
.about-values--four  { grid-template-columns: repeat(4, 1fr); }
.about-values--three { grid-template-columns: repeat(3, 1fr); }

/* Photo bands. Hidden until the gallery has something in it, and the
   display rule would otherwise beat the hidden attribute. */
.hub-strip[hidden],
.hub-feature__photo[hidden] { display: none; }

/* Café feature: text beside a single photo. */
.hub-feature {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

/* Square, so a portrait phone photo and a landscape one both sit here
   without either being cut in half. */
.hub-feature__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* Sits on navy, so the join tiles need the lighter treatment. */
.hub-join { background: var(--color-navy); }

@media (max-width: 1100px) {
  .about-values--four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hub-feature { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .about-values--three { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .about-values--four { grid-template-columns: 1fr; }
}

/* Café feature copy, on the navy section. */
.hub-feature__text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-base);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* Most Community Hub photos are portrait phone shots dropped into a
   landscape strip. Centre is roughly where the people are; higher than
   that and the frame fills with the gym roof. */
.hub-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
  display: block;
}

/* The strip carries the "See all" control, which is positioned against it. */
.hub-strip { position: relative; cursor: pointer; }
