/**
 * @file
 * Award Objectives (Figma: 02 Award Objectives).
 *
 * The heading is sticky and the cards stack on scroll (each card sticks a
 * little lower than the previous one), as in the Figma prototype.
 */

.sra-objectives {
  padding-top: 64px;
  background: var(--sra-gray-50);
}

.sra-objectives__inner {
  display: flex;
  align-items: flex-start;
  gap: 96px;
}

.sra-objectives__aside {
  position: sticky;
  top: 110px;
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 20px;
  width: 470px;
  padding: 32px 0;
}

.sra-objectives__shape {
  margin-top: 20px;
}

[dir="rtl"] .sra-objectives__shape {
  transform: scaleX(-1);
}

.sra-objectives__list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 44px 0 0;
  list-style: none;
}

.sra-objectives__item {
  position: sticky;
  top: calc(110px + var(--sra-stack) * 14px);
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 36px;
  border-radius: var(--sra-radius-lg);
  background: var(--sra-white);
  box-shadow: 0 0 0 1px rgba(0, 33, 31, 0.02);
  transition: background-color 0.3s ease-in-out;
}

.sra-objectives__number {
  flex: none;
  width: 76px;
  color: transparent;
  font-size: 44px;
  font-weight: 700;
  line-height: 52px;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1.5px var(--sra-secondary-400);
  transition: color 0.3s ease-in-out, -webkit-text-stroke-color 0.3s ease-in-out;
}

.sra-objectives__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.sra-objectives__title {
  margin: 0;
  color: var(--sra-tertiary-950);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.02em;
  transition: color 0.3s ease-in-out;
}

.sra-objectives__text {
  flex: 1 1 auto;
  color: var(--sra-gray-500);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  transition: color 0.3s ease-in-out;
}

/* Hover (Figma: Objective, Property 1=Variant2; Smart Animate 300 ms):
   purple card, filled white number, light text. */
@media (hover: hover) {
  .sra-objectives__item:hover {
    background: var(--sra-secondary-500);
  }

  .sra-objectives__item:hover .sra-objectives__number {
    color: var(--sra-white);
    -webkit-text-stroke-color: var(--sra-secondary-600);
  }

  .sra-objectives__item:hover .sra-objectives__text {
    color: var(--sra-gray-200);
  }

  .sra-objectives__item:hover .sra-objectives__title {
    color: var(--sra-white);
  }
}

/* Stacked below 1200px: beside the heading the cards get too narrow. */
@media (max-width: 1199px) {
  .sra-objectives__inner {
    flex-direction: column;
    gap: 24px;
  }

  .sra-objectives__aside,
  .sra-objectives__item {
    position: static;
    width: auto;
  }

  .sra-objectives__shape {
    display: none;
  }

  .sra-objectives__list {
    padding-top: 0;
  }

  .sra-objectives__item {
    gap: 16px;
    padding: 24px;
  }

  .sra-objectives__number {
    width: 52px;
    font-size: 32px;
    line-height: 40px;
  }
}
