/* ==========================================================================
   About page
   1. Page hero
   2. Who we are
   3. Journey timeline
   4. Vision & mission
   5. Core values
   6. Why CoopEast
   7. Impact statistics
   8. Leadership preview
   9. CTA actions
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page hero — image, deep scrim, drifting light
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 30rem;
  padding-block: var(--space-4xl);
  overflow: hidden;
  background-color: var(--clr-primary-deep);
}

/* Bleeds beyond the section so the scroll parallax never shows edges */
.page-hero__media {
  position: absolute;
  inset: -12% 0;
  background-image: url("../../images/hero3.jfif");
  background-size: cover;
  background-position: center 30%;
}

.page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5, 26, 16, 0.88) 0%,
    rgba(5, 26, 16, 0.7) 45%,
    rgba(5, 26, 16, 0.45) 100%
  );
}

.page-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.page-hero__glow--gold {
  top: -8rem;
  right: 6%;
  width: 22rem;
  height: 22rem;
  background-color: rgba(233, 161, 59, 0.14);
}

.page-hero__glow--green {
  bottom: -10rem;
  left: -6rem;
  width: 26rem;
  height: 26rem;
  background-color: rgba(20, 150, 85, 0.18);
}

@media (prefers-reduced-motion: no-preference) {
  .page-hero__glow--gold {
    animation: glow-drift 18s ease-in-out infinite alternate;
  }

  .page-hero__glow--green {
    animation: glow-drift 24s ease-in-out infinite alternate-reverse;
  }
}

.page-hero__content {
  position: relative;
}

.page-hero__eyebrow {
  color: var(--clr-accent);
}

.page-hero__eyebrow::before {
  background-color: var(--clr-accent) !important;
}

.page-hero .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  letter-spacing: 0.16em;
}

.page-hero .section-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background-color: var(--clr-accent);
}

.page-hero__title {
  max-width: 18ch;
  margin-top: var(--space-md);
  font-size: clamp(2.25rem, 4.4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--clr-white);
}

.page-hero__text {
  max-width: 54ch;
  margin-top: var(--space-lg);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

/* --------------------------------------------------------------------------
   2. Who we are — split editorial
   -------------------------------------------------------------------------- */

.who__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: var(--space-3xl);
}

.who__photo {
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 1px rgba(16, 33, 24, 0.03),
    0 24px 48px -24px rgba(16, 33, 24, 0.22);
}

.who__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 30%;
}

.who .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  letter-spacing: 0.16em;
}

.who .section-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background-color: var(--clr-accent);
}

.who__title {
  max-width: 20ch;
  margin-top: var(--space-md);
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.who__text {
  max-width: 36rem;
  margin-top: var(--space-lg);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--clr-muted);
}

.who__text + .who__text {
  margin-top: var(--space-md);
}

.who__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-xl);
}

.who__meta li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  color: var(--clr-text);
}

.who__meta li::before {
  content: "";
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background-color: var(--clr-accent);
}

/* --------------------------------------------------------------------------
   3. Journey — alternating timeline
   -------------------------------------------------------------------------- */

.journey-section__header {
  max-width: 44rem;
  margin-bottom: var(--space-2xl);
}

.journey-section .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  letter-spacing: 0.16em;
}

.journey-section .section-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background-color: var(--clr-accent);
}

.journey-section__header h2,
.values__header h2,
.why__header h2,
.team-preview__header h2 {
  max-width: 22ch;
  margin-top: var(--space-md);
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.journey {
  position: relative;
  max-width: 56rem;
  margin-inline: auto;
}

/* Spine */
.journey::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background-color: rgba(10, 110, 61, 0.15);
}

.journey__item {
  position: relative;
  width: 50%;
  padding-right: var(--space-2xl);
}

.journey__item + .journey__item {
  margin-top: var(--space-xl);
}

/* Alternate sides */
.journey__item:nth-child(even) {
  margin-left: 50%;
  padding-right: 0;
  padding-left: var(--space-2xl);
}

/* Node on the spine */
.journey__item::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  right: -0.4375rem;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background-color: var(--clr-white);
  border: 3px solid var(--clr-accent);
  z-index: 1;
}

.journey__item:nth-child(even)::before {
  right: auto;
  left: -0.4375rem;
}

.journey__card {
  padding: var(--space-lg);
  background-color: var(--clr-white);
  border: 1px solid rgba(16, 33, 24, 0.05);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 1px rgba(16, 33, 24, 0.03),
    0 12px 32px -20px rgba(16, 33, 24, 0.14);
  transition:
    transform 300ms cubic-bezier(0.2, 0.6, 0.2, 1),
    box-shadow 300ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.journey__card:hover {
  transform: translateY(-0.25rem);
  box-shadow:
    0 2px 3px rgba(16, 33, 24, 0.04),
    0 20px 44px -20px rgba(16, 33, 24, 0.22);
}

.journey__num {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  color: var(--clr-primary);
}

.journey__num::after {
  content: "";
  width: 1.5rem;
  height: 1px;
  background-color: rgba(10, 110, 61, 0.35);
}

.journey__title {
  margin-top: var(--space-xs);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.journey__text {
  margin-top: var(--space-xs);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--clr-muted);
}

/* --------------------------------------------------------------------------
   4. Vision & mission — contrasting pair
   -------------------------------------------------------------------------- */

.vm__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.vm-card {
  padding: var(--space-2xl);
  background-color: var(--clr-white);
  border: 1px solid rgba(16, 33, 24, 0.05);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 1px rgba(16, 33, 24, 0.03),
    0 16px 40px -24px rgba(16, 33, 24, 0.14);
  transition:
    transform 300ms cubic-bezier(0.2, 0.6, 0.2, 1),
    box-shadow 300ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.vm-card:hover {
  transform: translateY(-0.375rem);
  box-shadow:
    0 2px 3px rgba(16, 33, 24, 0.04),
    0 28px 56px -24px rgba(16, 33, 24, 0.24);
}

.vm-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  background-color: var(--clr-primary-tint);
  color: var(--clr-primary);
}

.vm-card__icon svg {
  width: 1.625rem;
  height: 1.625rem;
}

.vm-card__title {
  margin-top: var(--space-lg);
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}

.vm-card__text {
  margin-top: var(--space-sm);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-muted);
}

/* Vision — the dark anchor of the pair */
.vm-card--vision {
  position: relative;
  overflow: hidden;
  background-color: var(--clr-primary-deep);
  border-color: transparent;
}

.vm-card--vision::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    24rem 12rem at 85% -20%,
    rgba(233, 161, 59, 0.16),
    transparent 60%
  );
  pointer-events: none;
}

.vm-card--vision .vm-card__icon {
  position: relative;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--clr-accent);
}

.vm-card--vision .vm-card__title {
  position: relative;
  color: var(--clr-white);
}

.vm-card--vision .vm-card__text {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
}

/* --------------------------------------------------------------------------
   5. Core values
   -------------------------------------------------------------------------- */

.values__header {
  max-width: 44rem;
  margin-bottom: var(--space-2xl);
}

.values .section-eyebrow,
.why .section-eyebrow,
.team-preview .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  letter-spacing: 0.16em;
}

.values .section-eyebrow::before,
.why .section-eyebrow::before,
.team-preview .section-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background-color: var(--clr-accent);
}

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

.value-card {
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--clr-white);
  border: 1px solid rgba(16, 33, 24, 0.05);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 1px rgba(16, 33, 24, 0.03),
    0 12px 32px -20px rgba(16, 33, 24, 0.12);
  transition:
    transform 300ms cubic-bezier(0.2, 0.6, 0.2, 1),
    box-shadow 300ms cubic-bezier(0.2, 0.6, 0.2, 1),
    border-color 300ms ease;
}

.value-card:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(10, 110, 61, 0.22);
  box-shadow:
    0 2px 3px rgba(16, 33, 24, 0.04),
    0 20px 44px -20px rgba(16, 33, 24, 0.2);
}

.value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--clr-primary-tint);
  color: var(--clr-primary);
  transition: transform 250ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.value-card:hover .value-card__icon {
  transform: scale(1.08);
}

.value-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.value-card__title {
  margin-top: var(--space-md);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.value-card__text {
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--clr-muted);
}

/* --------------------------------------------------------------------------
   6. Why CoopEast — alternating editorial rows
   -------------------------------------------------------------------------- */

.why__header {
  max-width: 44rem;
  margin-bottom: var(--space-2xl);
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.why__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  max-width: 46rem;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(16, 33, 24, 0.08);
}

/* Alternate left / right placement */
.why__item:nth-child(even) {
  flex-direction: row-reverse;
  margin-left: auto;
  text-align: right;
}

.why__item:nth-child(even) .why__icon {
  margin-left: auto;
}

.why__num {
  flex-shrink: 0;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--clr-primary-tint);
  -webkit-text-stroke: 1px rgba(10, 110, 61, 0.35);
}

.why__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background-color: var(--clr-primary-tint);
  color: var(--clr-primary);
}

.why__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.why__title {
  margin-top: var(--space-md);
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.why__text {
  max-width: 34rem;
  margin-top: var(--space-xs);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--clr-muted);
}

.why__item:nth-child(even) .why__text {
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   7. Impact statistics — deep green band
   -------------------------------------------------------------------------- */

.impact {
  padding-block: var(--space-3xl);
  background:
    radial-gradient(
      44rem 20rem at 15% -20%,
      rgba(255, 255, 255, 0.06),
      transparent 60%
    ),
    var(--clr-primary-deep);
}

/* auto-fit + a 0 minimum means the browser always creates exactly as many
   columns as there are stats — never fewer — so this stays one line no
   matter how many categories the backend renders (5 today, 7 tomorrow),
   without anyone needing to update this number by hand. */
.impact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--space-lg);
}

.impact__stat {
  display: flex;
  flex-direction: column-reverse;
  padding-left: var(--space-lg);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.impact__stat dd {
  font-size: clamp(1.875rem, 2.6vw, 2.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--clr-white);
  font-variant-numeric: tabular-nums;
}

.impact__stat dt {
  margin-top: var(--space-xs);
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.65);
}

/* --------------------------------------------------------------------------
   8. Leadership preview
   -------------------------------------------------------------------------- */

.team-preview__header {
  max-width: 44rem;
  margin-bottom: var(--space-2xl);
}

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

.team-preview__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 1px rgba(16, 33, 24, 0.03),
    0 16px 40px -24px rgba(16, 33, 24, 0.18);
}

.team-preview__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.team-preview__card:hover .team-preview__media img {
  transform: scale(1.04);
}

.team-preview__role {
  margin-top: var(--space-md);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-primary);
}

.team-preview__name {
  margin-top: var(--space-2xs);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  transition: color 250ms ease;
}

.team-preview__card:hover .team-preview__name {
  color: var(--clr-primary);
}

.team-preview__bio {
  margin-top: var(--space-2xs);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--clr-muted);
}

.team-preview__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

/* --------------------------------------------------------------------------
   9. CTA band actions (two buttons)
   -------------------------------------------------------------------------- */

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  flex-shrink: 0;
  position: relative;
}

.cta-band__actions .btn {
  min-height: 3.125rem;
}

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

@media (max-width: 64rem) {
  .who__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .who__photo {
    aspect-ratio: 16 / 10;
  }

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

  /* Still one line — same column count, smaller figures and gap so
     however many stats there are still fit without wrapping. */
  .impact__grid {
    gap: var(--space-md);
  }

  .impact__stat dd {
    font-size: clamp(1.375rem, 3.4vw, 2rem);
  }

  .team-preview__grid {
    gap: var(--space-md);
  }
}

@media (max-width: 48rem) {
  .vm__grid {
    grid-template-columns: 1fr;
  }

  /* Timeline collapses to a single left spine */
  .journey::before {
    left: 0.4375rem;
  }

  .journey__item,
  .journey__item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-right: 0;
    padding-left: var(--space-xl);
  }

  .journey__item::before,
  .journey__item:nth-child(even)::before {
    right: auto;
    left: 0;
  }

  .journey__item + .journey__item {
    margin-top: var(--space-lg);
  }

  .team-preview__grid {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin-inline: auto;
  }
}

@media (max-width: 40rem) {
  .page-hero {
    min-height: 26rem;
    padding-block: var(--space-3xl);
  }

  .page-hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 24rem;
  }

  .page-hero__actions .btn {
    justify-content: center;
    min-height: 3.125rem;
    border-radius: var(--radius-lg);
  }

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

  /* Why rows stop alternating on phones */
  .why__item,
  .why__item:nth-child(even) {
    flex-direction: row;
    margin-left: 0;
    text-align: left;
    gap: var(--space-lg);
  }

  .why__item:nth-child(even) .why__icon,
  .why__item:nth-child(even) .why__text {
    margin-left: 0;
  }

  /* Phone width: figures shrink further and dividers tighten, but the
     count of columns still tracks the count of stats — one line, always. */
  .impact__grid {
    gap: var(--space-sm);
  }

  .impact__stat {
    padding-left: var(--space-sm);
  }

  .impact__stat dd {
    font-size: clamp(1rem, 5vw, 1.5rem);
  }

  .impact__stat dt {
    font-size: 0.6875rem;
  }

  .cta-band__actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-band__actions .btn {
    justify-content: center;
    border-radius: var(--radius-lg);
  }
}
