/* ==================================================
   MISSION PAGE — HERO SECTION
   (Figma 385:2526 desktop / 595:9469 mobile)
   ================================================== */

.mission-hero {
  position: relative;
  background: var(--color-hero-base);
}

/* Figma: #0E586F @80% (13.5%) -> transparent (47.6%) over the photo */
.mission-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
}

.mission-hero__img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.mission-hero__img--mobile {
  display: none;
}

.mission-hero__content {
  position: absolute;
  width: 100%;
  bottom: 53px;
  text-align: center;
  overflow: hidden;
}

/* Figma: Oswald Bold 90, white, centered, max 1134px */
.mission-hero__title {
  max-width: 1134px;
  margin: 0 auto var(--space-8);
}

.mission-hero__buttons {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  align-items: center;
}

/* ==================================================
   MISSION PAGE — COMMUNITY IMPACT INTRO BAND
   (Figma 385:3318 desktop / 599:10009 mobile)
   ================================================== */

.mission-intro {
  background: var(--color-bg-light) url("../../images/texture-light-small.png") left top repeat;
  padding: var(--space-20) 0;
  text-align: center;
}

.mission-intro__title {
  margin-bottom: 0;
}

/* "Anytime a client books me…" appears on the mobile design only */
.mission-intro__lede {
  display: none;
  font-size: var(--text-2xl);
  line-height: var(--leading-normal);
  color: var(--color-text-gray);
  margin-top: var(--space-6);
}

/* ==================================================
   MISSION PAGE — MISSION STORY SECTION
   (Figma 385:3857 — solid #0C4A5D, 6 alternating rows)
   ================================================== */

.mission-story {
  background: url("../../images/mission-story-bg.png") center / cover no-repeat;
  padding: var(--space-20) 0 var(--space-27);
}

/* Figma: rows 1280 wide, 160px apart, image 592 / text 592, 96px gutter */
.story-row {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.story-row + .story-row {
  margin-top: 10rem; /* 160px per Figma row rhythm */
}

.story-row--flip {
  flex-direction: row-reverse;
}

.story-row__media {
  flex: 1 1 50%;
  position: relative;
}

/* Backing plate behind each photo (Figma: white @20%, radius 16,
   16px larger than the photo on every side, tilted 2°) */
.story-row__media::before {
  content: "";
  position: absolute;
  inset: -16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  transform: rotate(-2deg);
}

/* Figma: only the Advocacy row plate tilts the other way */
.story-row__media--tilt-left::before {
  transform: rotate(2deg);
}

.story-row__media img,
.story-row__thumb {
  position: relative;
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

/* Row 3 — video popup trigger (Figma 1513:1433) */
.story-row__trigger {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  transition: transform var(--transition-base);
}

.story-row__trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.story-row__trigger:hover {
  transform: translateY(-2px);
}

.story-row__trigger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.story-row__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  padding-left: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.story-row__play img {
  width: 23px;
  height: auto;
  border-radius: 0 !important;
}

.story-row__content {
  flex: 1 1 50%;
}

.story-row__title {
  margin-bottom: var(--space-6);
}

/* Figma: Inter Regular 18, white */
.story-row__text {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
}

/* Figma: Inter Medium Italic 18 */
.story-row__note {
  font-size: var(--text-lg);
  font-weight: 500;
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}

.story-row__cta {
  margin-top: var(--space-2);
}

/* ==================================================
   MISSION PAGE — SCHOLARSHIP SECTION
   (Figma 1513:1485 desktop / 1520:1709 mobile)
   ================================================== */

.scholarship {
  background: var(--color-bg-light) url("../../images/texture-light-small.png") left top repeat;
  padding: var(--space-20) 0;
}

.scholarship .swiper-horizontal {
  padding-bottom: 0;
}

/* Scholarship feature card (artwork exported from Figma as one image) */
/* Scholarship feature card (Section 2 redesign) */
.scholarship-feature {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card-lg);
  background: url("../../images/scholarship-section2-bg.png") center / cover no-repeat;
  padding: 30px 63px 72px;
}

/* subtle vignette so white text stays readable */
.scholarship-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.scholarship-feature > * {
  position: relative;
  z-index: 1;
}

.scholarship-feature__title {
  font-family: var(--font-heading);
  font-weight: 600; /* Figma: Oswald Demi-Bold (weight 600) */
  font-style: normal;
  text-align: center;
  color: var(--color-text-primary);
  font-size: 37.942px;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 1.997px 0.998px 1.498px rgba(0, 0, 0, 1);
  margin: 0 0 37px;
  transform: skewX(-10deg);
}

.scholarship__title {
  text-align: center;
  margin: var(--space-15) 0;
}

.scholarship-feature__grid {
  display: grid;
  grid-template-columns: 341px 1fr;
  gap: 87px;
  align-items: start;
}

/* .scholarship-feature__media {
  box-shadow: 5px 7px 4px rgba(0, 0, 0, 0.52);
} */

.scholarship-feature__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 341 / 521;
  object-fit: cover;
}

.scholarship-feature__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}

.scholarship-feature__copy {
  width: 100%;
  font-family: Georgia, serif;
  /* Figma reads as a lighter slant than full italic */
  font-style: oblique 10deg;
  font-size: 24px;
  line-height: 1.2;
  text-align: justify;
  color: var(--color-text-primary);
}

@supports not (font-style: oblique 10deg) {
  .scholarship-feature__copy {
    font-style: italic;
  }
}

.scholarship-feature__copy p {
  margin: 0;
}

.scholarship-feature__copy p + p {
  margin-top: 30px;
}

.scholarship-feature__cta {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 418px;
  height: 79px;
  border-radius: 65px;
  background: #6e5d59;
  box-shadow: 0 4px 0 #412d29;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  text-shadow: 2px 1px 2px rgba(0, 0, 0, 0.85);
  transition: transform var(--transition-base);
  transform: skewX(-10deg);
}

.scholarship-feature__cta:hover {
  transform: translateY(-2px);
}

.scholarship-feature__cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ==================================================
   SCHOLARSHIP SWIPER — peek-center
   Fixed 518px slides; center full, neighbours ~half visible
   ================================================== */

.scholarship-swiper {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.scholarship-swiper .swiper-wrapper {
  align-items: flex-start;
}

/* card width — drives half-peek with centeredSlides */
.scholarship-swiper .swiper-slide {
  width: 518px;
  padding-bottom: 15px;
  height: auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* Figma: identical card on every slide — no scale/opacity/lift */
.scholarship-swiper .recipient-card {
  width: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow:
    0 12.52px 18.78px -3.756px rgba(0, 0, 0, 0.1),
    0 5.008px 7.512px -5.008px rgba(0, 0, 0, 0.1);
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 677px;
}

.scholarship-swiper .recipient-card__text {
  font-size: var(--text-xl);
  font-weight: 500;
  font-style: italic;
  line-height: 1.83;
  color: var(--color-text-dark);
  margin-bottom: var(--space-8);
}

.scholarship-swiper .recipient-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: auto;
}

.scholarship-swiper .recipient-card__avatar {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.scholarship-swiper .recipient-card__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-card);
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
}

.scholarship-swiper .recipient-card__name {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-dark);
}

/* Dot pagination (Figma 1520:1635 — 60px below carousel, 3 dots) */
.scholarship-swiper__pagination {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  margin-top: var(--space-15);
}

.scholarship-swiper__dot {
  width: 14px;
  height: 14px;
  margin: 0 !important;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background-color 600ms ease-out;
}

.scholarship-swiper__dot:hover {
  background: rgba(0, 0, 0, 0.3);
}

.scholarship-swiper__dot--active {
  width: 16px;
  height: 16px;
  background: var(--color-text-gray);
}

/* ==================================================
   MISSION PAGE — BOOK DAMON CTA BAND
   (Figma 385:3934 — photo bg + #06313D @84% overlay baked)
   ================================================== */

.mission-cta {
  background: var(--color-heading-dark) url("../../images/mission-cta-bg.png") center / cover no-repeat;
  padding: var(--space-20) 0;
  text-align: center;
}

.mission-cta .button {
  letter-spacing: 0px;
}

.mission-cta__title {
  max-width: 760px;
  margin: 0 auto var(--space-6);
}

/* Figma: Inter Regular 20, white */
.mission-cta__lede {
  font-size: var(--text-xl);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  max-width: 680px;
  margin: 0 auto var(--space-10);
}

.mission-cta__action {
  display: flex;
  justify-content: center;
}

/* ==================================================
   MISSION PAGE — RESPONSIVE
   ================================================== */

/* Laptop — 1200px */
@media (max-width: 1200px) {
  .story-row {
    gap: var(--space-16);
  }

  .story-row + .story-row {
    margin-top: var(--space-24);
  }
}

/* Tablet — 992px */
@media (max-width: 992px) {
  .mission-hero__content {
    bottom: var(--space-8);
  }

  .story-row {
    gap: var(--space-10);
  }

  .scholarship-swiper .recipient-card__avatar {
    width: 72px;
    height: 72px;
  }

  .scholarship-feature__grid {
    display: grid;
    grid-template-columns: 223px 1fr;
    gap: 42px;
  }

  .scholarship-feature__copy {
    font-size: 18px;
  }
}

@media (max-width: 820px) {
  .scholarship-feature__grid {
    display: grid;
    grid-template-columns: 181px 1fr;
    gap: 18px;
  }
}

/* Mobile — 767px */
@media (max-width: 767px) {
  .mission-hero__img--mobile {
    display: block;
  }

  .mission-hero__img--desktop {
    display: none;
  }

  .mission-intro {
    padding: var(--space-8) 0;
  }

  .mission-intro__lede {
    display: block;
  }

  /* Rows stack: photo, then copy (Figma mobile 599:10212) */
  .story-row,
  .story-row--flip {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-6);
  }

  .story-row + .story-row {
    margin-top: var(--space-15);
  }

  .story-row__title {
    margin-bottom: var(--space-4);
  }

  .scholarship {
    padding: var(--space-8) 0;
    padding-top: 0 !important;
  }

  .first-content {
    padding: 0 !important;
  }

  .scholarship-feature {
    padding: 18px 16px 24px;
    border-radius: 0px;
  }

  .scholarship-feature__title {
    font-size: 22px;
    margin-bottom: 26px;
    text-align: center;
  }

  .scholarship__title {
    text-align: left;
    margin: var(--space-10) 0 var(--space-10);
  }

  .scholarship-feature__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .scholarship-feature__media {
    box-shadow: 4px 6px 4px rgba(0, 0, 0, 0.45);
  }

  .scholarship-feature__img {
    aspect-ratio: 307 / 384;
  }

  .scholarship-feature__content {
    align-items: stretch;
    gap: 20px;
  }

  .scholarship-feature__copy {
    font-size: 14px;
    line-height: 1.25;
  }

  .scholarship-feature__copy p + p {
    margin-top: 16px;
  }

  .scholarship-feature__cta {
    width: 100%;
    height: 45px;
    font-size: 16px;
    border-radius: 65px;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Figma 1520:1709 — section px 16px; card inset matches .container */
  .scholarship-swiper {
    width: calc(100% - (2 * var(--container-padding)));
    margin-inline: var(--container-padding);
    padding-left: 0;
    padding-right: 0;
  }

  .scholarship-swiper .swiper-slide {
    width: 100%;
    box-sizing: border-box;
  }

  .scholarship-swiper .recipient-card {
    min-height: auto;
    border: 1px solid var(--color-text-dark);
  }

  .scholarship-swiper .recipient-card__text {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
  }

  .scholarship-swiper .recipient-card__avatar {
    width: 60px;
    height: 60px;
  }

  .scholarship-swiper .recipient-card__avatar--initials {
    font-size: var(--text-xl);
  }

  .scholarship-swiper .recipient-card__name {
    font-size: var(--text-lg);
  }

  .scholarship-swiper__pagination {
    margin-top: var(--space-10);
  }

  .mission-cta {
    padding: var(--space-16) 0;
  }

  .mission-cta__lede {
    font-size: var(--text-lg);
  }

  .story-row__media::before {
    inset: -7px;
    transform: rotate(1deg);
  }
  .story-row__media--tilt-left::before {
    transform: rotate(1deg);
  }
  
}

/* Small Mobile — 480px */
@media (max-width: 480px) {
  .mission-story {
    padding: var(--space-16) 0;
  }
  .mission-hero__title {
    letter-spacing: -2px;
    padding: 0 10px;
  }
  .story-row__play {
    width: 74px;
    height: 74px;
  }
}
