/* ============================================================
   about.css — About page styles
   ============================================================ */


/* ----------------------------------------------------------
   Intro
   ---------------------------------------------------------- */

.about-intro {
  background: var(--color-cream);
}

.about-intro__content {
  max-width: 64ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about-intro__lead {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: var(--weight-medium);
  line-height: 1.6;
}

.about-intro__content p {
  font-size: clamp(0.9375rem, 1.1vw, 1rem);
  line-height: 1.75;
  opacity: 0.75;
}

.about-intro__content p:first-of-type {
  opacity: 1;
}

.about-intro__cta {
  margin-top: var(--space-sm);
  align-self: flex-start;
}


/* ----------------------------------------------------------
   Our Team
   ---------------------------------------------------------- */

.about-team {
  background: var(--color-cream);
  padding-top: 0; /* intro provides the spacing above */
}

.about-team__heading {
  /* Orange heading — distinctive treatment per design */
  color: var(--color-overdrive);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* Team grid — 4 columns desktop */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Bio card */
.bio-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-deep-slate);
}

.bio-card__photo-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Overlay — anchored to bottom, sits over photo */
.bio-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-tape);
  padding: 0.875rem 1rem;
}

.bio-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.bio-card__identity {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.bio-card__name {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: 0.9375rem;
  color: var(--color-overdrive);
  line-height: 1.2;
}

.bio-card__title {
  display: block;
  font-size: 0.6875rem;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  opacity: 0.7;
}

/* Toggle button — + / × */
.bio-card__toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-overdrive);
  font-size: 1.25rem;
  line-height: 1;
  font-weight: var(--weight-light);
}

.bio-card__plus  { display: block; }
.bio-card__cross { display: none; }

.bio-card.is-expanded .bio-card__plus  { display: none; }
.bio-card.is-expanded .bio-card__cross { display: block; }

/* Bio text — hidden by default, shown when expanded */
.bio-card__bio {
  display: none;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--color-white);
  opacity: 0.85;
  margin-top: 0.75rem;
}

.bio-card.is-expanded .bio-card__bio {
  display: block;
}


/* ----------------------------------------------------------
   Our Spaces
   ---------------------------------------------------------- */

.about-spaces {
  background: #415751;
  color: var(--color-white);
  padding-block: var(--space-section-y);
  overflow: hidden;
}

.spaces-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.spaces-heading {
  color: var(--color-white);
  margin-bottom: var(--space-xl);
}

.spaces-body {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.7;
  opacity: 0.8;
  max-width: 42ch;
  margin-bottom: var(--space-xl);
}

.spaces-cta {
  /* btn--dark styling handles the look */
}

/* Photos — stacked vertically on right side */
.spaces-photos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spaces-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}


/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */

@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* On mobile, bio card images are full-width portrait */
  .bio-card__photo-wrap img {
    aspect-ratio: 4 / 3; /* slightly shorter on mobile for better proportions */
  }

  .spaces-inner {
    grid-template-columns: 1fr;
  }

  .spaces-photos {
    order: -1; /* photos above text on mobile */
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
