/* SAHELI MOVEMENT — page-specific styles.
   Builds on the shared tokens/components in home.css (--seagrass/--amber/
   --paprika, .iei-section-inner, .iei-eyebrow, .iei-h2, .iei-body, .iei-btn).
   Mirrors the structure of digital-sovereignty.css / education.css for
   visual consistency across the site. */

.sm-main {
  background: var(--cream);
}

/* HERO — light two-column layout: copy on the left, a photo collage
   (one large image + two smaller images) on the right. */
.sm-hero {
  position: relative;
  padding: 64px 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.sm-hero.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

.sm-hero__grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.sm-hero__panel {
  max-width: 460px;
}

.sm-hero__eyebrow {
  display: block;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--seagrass);
  margin-bottom: 14px;
}

.sm-hero__heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.05;
  color: var(--graphite);
  margin: 0 0 16px;
}

.sm-hero__heading .iei-brush {
  font-size: 1.15em;
}

.sm-hero__byline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.45;
  color: var(--seagrass);
  margin: 0 0 20px;
}

.sm-hero__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 14px;
}

.sm-hero__actions {
  margin-top: 18px;
}

/* PHOTO COLLAGE */
.sm-hero__gallery {
  position: relative;
  display: grid;
  gap: 18px;
}

.sm-hero__gallery-main,
.sm-hero__gallery-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream-alt);
}

.sm-hero__gallery-main {
  aspect-ratio: 16 / 9;
}

.sm-hero__gallery-main img,
.sm-hero__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sm-hero__gallery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sm-hero__gallery-item {
  aspect-ratio: 4 / 3;
}

.sm-hero__bracket {
  position: absolute;
  top: -22px;
  right: -14px;
  width: 46px;
  height: 46px;
  border-top: 3px solid var(--amber);
  border-right: 3px solid var(--amber);
  border-radius: 0 8px 0 0;
  pointer-events: none;
}

.sm-hero__dots {
  position: absolute;
  bottom: -26px;
  right: -30px;
  width: 74px;
  height: 44px;
  background-image: radial-gradient(var(--paprika) 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.55;
  pointer-events: none;
}

/* ANCHOR NAV STRIP */
.sm-anchor-strip {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--charcoal-dark);
  overflow-x: auto;
  scrollbar-width: none;
}

.sm-anchor-strip::-webkit-scrollbar {
  display: none;
}

.sm-anchor-strip__inner {
  display: flex;
  justify-content: center;
  gap: 4px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 36px;
}

.sm-anchor-strip a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(252, 252, 252, 0.65);
  text-decoration: none;
  padding: 16px 18px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sm-anchor-strip a:hover,
.sm-anchor-strip a:focus-visible {
  color: #fcfcfc;
  border-bottom-color: var(--amber);
}

/* SECTIONS */
.sm-section {
  scroll-margin-top: 54px;
}

.sm-section--alt {
  background: var(--cream-alt);
}

.sm-program__intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.sm-program__intro .iei-eyebrow {
  text-align: center;
}

.sm-program__byline {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px 0 0;
}

/* SAHELI CIRCLES — copy + principle cards on the left, map on the right */
.sm-circles {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 44px;
  align-items: start;
}

.sm-circles__copy > p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 28px;
}

.sm-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sm-principle {
  border: 1.5px solid rgba(67, 170, 139, 0.35);
  border-radius: 14px;
  padding: 20px 18px;
  background: #fcfcfc;
}

.sm-principle--amber {
  border-color: rgba(253, 202, 2, 0.5);
}

.sm-principle--paprika {
  border-color: rgba(236, 78, 32, 0.35);
}

.sm-principle__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-bottom: 12px;
  background: var(--seagrass-tint);
  color: var(--seagrass);
}

.sm-principle--amber .sm-principle__icon {
  background: var(--amber-tint);
  color: var(--amber-text, #b38a00);
}

.sm-principle--paprika .sm-principle__icon {
  background: rgba(236, 78, 32, 0.12);
  color: var(--paprika);
}

.sm-principle__icon svg {
  width: 18px;
  height: 18px;
}

.sm-principle h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--graphite);
  margin: 0 0 8px;
}

.sm-principle p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* MAP CARD */
.sm-map {
  background: #fcfcfc;
  border: 1px solid rgba(53, 53, 53, 0.08);
  border-radius: 18px;
  padding: 26px 24px;
}

.sm-map__stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-bottom: 14px;
}

.sm-map__caption {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
  margin: 0 0 22px;
}

.sm-map__districts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin-bottom: 22px;
}

.sm-district h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--seagrass);
  margin: 0 0 6px;
}

.sm-district ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-district li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.sm-map__cta {
  display: block;
  width: 100%;
  text-align: center;
}

/* CAROUSEL (photo library) */
.sm-carousel {
  position: relative;
}

.sm-carousel__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.sm-carousel__track::-webkit-scrollbar {
  display: none;
}

.sm-carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 18px;
}

.sm-carousel__btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(53, 53, 53, 0.2);
  background: #fcfcfc;
  color: var(--graphite);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sm-carousel__btn:hover {
  background: var(--seagrass-tint);
  border-color: var(--seagrass);
}

.sm-carousel__btn svg {
  width: 18px;
  height: 18px;
}

.sm-photo-item {
  flex: 0 0 calc((100% - 36px) / 3);
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  margin: 0;
}

.sm-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SAHELI FELLOWSHIPS — two program cards */
.sm-fellowships {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.sm-fcard {
  background: #fcfcfc;
  border: 1.5px solid rgba(53, 53, 53, 0.08);
  border-radius: 18px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

.sm-fcard--amber {
  border-color: rgba(253, 202, 2, 0.5);
}

.sm-fcard--seagrass {
  background: var(--seagrass-tint);
  border-color: transparent;
}

.sm-fcard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin-bottom: 16px;
  color: var(--amber-text, #b38a00);
  background: rgba(253, 202, 2, 0.16);
}

.sm-fcard__icon svg {
  width: 30px;
  height: 30px;
}

.sm-fcard--seagrass .sm-fcard__icon {
  color: var(--seagrass);
  background: rgba(67, 170, 139, 0.14);
}

.sm-fcard__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-text, #b38a00);
  margin-bottom: 10px;
}

.sm-fcard__eyebrow--seagrass {
  color: var(--seagrass);
}

.sm-fcard__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 21px;
  color: var(--graphite);
  margin: 0 0 14px;
}

.sm-fcard p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 12px;
}

.sm-fcard__metrics {
  display: flex;
  gap: 14px;
  margin: 16px 0 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(53, 53, 53, 0.1);
}

.sm-fmetric {
  flex: 1;
  text-align: center;
}

.sm-fmetric__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: var(--amber-text, #b38a00);
}

.sm-fmetric__icon svg {
  width: 20px;
  height: 20px;
}

.sm-fcard--seagrass .sm-fmetric__icon {
  color: var(--seagrass);
}

.sm-fmetric strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--graphite);
  line-height: 1.15;
}

.sm-fmetric span {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.sm-fcard__cta {
  margin-top: auto;
  text-align: center;
}

.sm-fcard--amber .sm-fcard__cta.iei-btn--outline {
  color: var(--amber-text, #b38a00);
  border-color: rgba(179, 138, 0, 0.4);
}

.sm-fcard--amber .sm-fcard__cta.iei-btn--outline:hover {
  background: rgba(253, 202, 2, 0.12);
}

/* CASE STUDY */
.sm-case {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 44px;
  align-items: center;
}

.sm-case__image {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream-alt);
}

.sm-case__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.sm-case__image figcaption {
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--muted);
  background: #fcfcfc;
}

.sm-case__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 34px);
  color: var(--graphite);
  margin: 8px 0 18px;
}

.sm-case__body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 14px;
}

.sm-case__quote {
  border-left: 3px solid var(--paprika);
  padding-left: 18px;
  margin: 22px 0;
}

.sm-case__quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--graphite);
  margin: 0;
}

.sm-fpic {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.sm-fpic a {
  color: var(--paprika);
  font-weight: 700;
  text-decoration: underline;
}

/* CTA extras */
.sm-cta__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.sm-cta__meta a {
  color: var(--muted-dark);
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sm-cta__meta a:hover {
  color: #fcfcfc;
}

@media (max-width: 980px) {
  .sm-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sm-hero__panel {
    max-width: none;
  }

  .sm-circles {
    grid-template-columns: 1fr;
  }

  .sm-principles {
    grid-template-columns: 1fr;
  }

  .sm-fellowships {
    grid-template-columns: 1fr;
  }

  .sm-case {
    grid-template-columns: 1fr;
  }

  .sm-photo-item {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 640px) {
  .sm-hero {
    padding: 40px 0;
  }

  .sm-hero__grid {
    padding: 0 20px;
  }

  .sm-hero__gallery-row {
    gap: 12px;
  }

  .sm-map__districts {
    grid-template-columns: 1fr;
  }

  .sm-fcard__metrics {
    flex-direction: column;
    gap: 10px;
  }

  .sm-fmetric {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
  }

  .sm-photo-item {
    flex-basis: 84%;
  }

  .sm-anchor-strip__inner {
    padding: 0 20px;
  }
}
