/* ═══════════════════════════════════════════════════════════
   HOME PAGE
   Depends on css/main.css (shared base: tokens, reset, nav, footer).
   ═══════════════════════════════════════════════════════════ */

/* ─── 8. HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--color-offwhite);
  min-height: calc(100vh - var(--site-header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.page-home .hero {
  margin-top: calc(-1 * var(--site-header-height));
  min-height: 100vh;
  min-height: 100dvh;
}

.page-home .hero__inner {
  padding-top: calc(var(--site-header-height) + var(--space-20));
  padding-bottom: var(--space-20);
}

.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Keeps the photo atmospheric instead of competing with the hero copy. */
  opacity: 0.22;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: saturate(0.96) contrast(1);
  opacity: 0;
  transform: scale(1.12);
  will-change: transform, opacity;
}

.hero__slide:first-child {
  opacity: 1;
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Off-white wash: keeps the photo visible while protecting text contrast. */
  background:
    radial-gradient(circle at 50% 46%, rgba(247, 244, 238, 0.18) 0%, rgba(247, 244, 238, 0.1) 34%, rgba(247, 244, 238, 0) 68%),
    linear-gradient(180deg, rgba(247, 244, 238, 0.42) 0%, rgba(247, 244, 238, 0.26) 42%, rgba(247, 244, 238, 0.34) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-block: var(--space-20);
}

.hero__content {
  max-width: 880px;
  text-align: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  margin-bottom: var(--space-6);
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(247, 244, 238, 0.55);
}

.hero__title-accent {
  color: var(--color-emerald);
  font-weight: inherit;
  font-style: normal;
}

.hero__lead {
  max-width: 640px;
  margin: 0 auto var(--space-8);
  font-family: var(--font-body);
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-navy) 86%, transparent);
}

.hero__ctas {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__cta-primary {
  background: var(--color-emerald);
  color: var(--color-offwhite);
}

.hero__cta-primary:hover {
  background: color-mix(in srgb, var(--color-emerald) 88%, black);
}

.hero__cta-primary:active {
  background: color-mix(in srgb, var(--color-emerald) 78%, black);
}

.hero .btn {
  min-height: 56px;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero .btn:focus-visible {
  outline: 2px solid var(--color-emerald);
  outline-offset: 3px;
}

.hero .btn--outline-light {
  background: color-mix(in srgb, var(--color-offwhite) 38%, transparent);
  color: var(--color-navy);
  border-color: color-mix(in srgb, var(--color-navy) 64%, transparent);
}

.hero .btn--outline-light:hover {
  background: color-mix(in srgb, var(--color-navy) 7%, transparent);
  border-color: var(--color-navy);
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide:first-child { opacity: 1; transform: scale(1); }
}

/* ─── 8b. YOU + WE ─────────────────────────────────────── */
.you-we {
  background: var(--bg-page);
  color: var(--text-primary);
  padding-block: var(--space-20) var(--space-12);
  position: relative;
}

@media (min-width: 1024px) {
  .you-we {
    padding-block: var(--space-24) var(--space-16);
  }
}

.you-we__statement {
  max-width: 880px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

@media (min-width: 1024px) {
  .you-we__statement {
    margin-bottom: var(--space-16);
  }
}

.you-we__statement p {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  text-wrap: balance;
}

.you-we__statement strong {
  color: var(--color-emerald);
  font-weight: 800;
}

.you-we__grid {
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 0;
  align-items: stretch;
  row-gap: 0;
}

.you-we__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  justify-content: center;
  align-items: center;
  text-align: center;
  width: min(100%, 23rem);
  justify-self: center;
}

.you-we__list--left,
.you-we__list--right {
  grid-column: auto;
}

.you-we__divider {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 2px;
}

.you-we__item {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.7vw, 20px);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.005em;
  width: 100%;
  max-width: none;
}

.you-we__list--right .you-we__item {
  color: var(--color-emerald);
}

.you-we__item--aside {
  margin-top: var(--space-2);
  font-weight: 400;
  color: var(--text-secondary);
}

.you-we__list--right .you-we__item.you-we__item--aside {
  color: var(--text-secondary);
}

.you-we__divider::before {
  content: '';
  width: 2px;
  height: 100%;
  background: rgba(9, 108, 41, 0.25);
  border-radius: var(--radius-full);
}

@media (max-width: 1023px) {
  .you-we__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    row-gap: var(--space-8);
    text-align: center;
  }

  .you-we__list--left,
  .you-we__divider,
  .you-we__list--right {
    grid-column: auto;
  }

  .you-we__divider {
    height: 2px;
    align-self: center;
    width: 40%;
    margin-inline: auto;
  }

  .you-we__divider::before {
    width: 100%;
    height: 2px;
  }

  .you-we__list {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .you-we__list {
    gap: var(--space-5);
  }

  .you-we__item {
    font-size: 17px;
  }
}

/* ─── 9. VIDEO SECTION ──────────────────────────────────── */
.video-section {
  background: var(--color-navy);
  color: var(--color-offwhite);
  padding-block: var(--space-20);
}

@media (min-width: 1024px) {
  .video-section {
    padding-block: var(--space-24);
  }
}

.video-section__inner {
  max-width: 960px;
  margin-inline: auto;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(145deg, rgba(34, 34, 77, 0.55), rgba(23, 23, 57, 0.78));
  border: 1px solid rgba(199, 241, 54, 0.28);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 200ms ease-out, transform 200ms ease-out, box-shadow 200ms ease-out;
}

.video-frame:hover {
  border-color: rgba(199, 241, 54, 0.45);
  transform: translateY(-2px);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.video-frame__play {
  width: 84px;
  height: 84px;
  background: var(--color-lime);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 200ms ease-out, background-color 200ms ease-out, box-shadow 200ms ease-out;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.video-frame__play:hover {
  transform: scale(1.08);
  background: var(--action-primary-hover);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.4),
    0 0 0 10px rgba(199, 241, 54, 0.16);
}

.video-frame__play svg {
  width: 28px;
  height: 28px;
  color: var(--color-navy);
  margin-left: 3px;
}

/* ─── 10. HOW WE HELP ────────────────────────────────────── */
.how-we-help {
  background:
    linear-gradient(rgba(247, 244, 238, 0.84), rgba(247, 244, 238, 0.84)),
    var(--bg-page);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(20px, 3vw, 32px);
  position: relative;
  padding-bottom: clamp(12px, 1.6vw, 18px);
}

.section-header .overline { margin-bottom: var(--space-3); }

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-emerald);
}

.section-header::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(260px, 34vw);
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(9, 108, 41, 0.36), transparent);
  border-radius: var(--radius-full);
}

.how-we-help__stage {
  position: relative;
  margin-inline: auto;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 44px);
  border-radius: 36px;
  border: 1px solid rgba(23, 23, 57, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.2) 100%);
  box-shadow: 0 28px 70px rgba(23, 23, 57, 0.06);
  overflow: hidden;
}

.how-we-help__stage::before {
  content: none;
}

.how-we-help__stage::after {
  content: none;
}

.cards-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 28px);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .cards-grid {
    flex-direction: row;
    align-items: stretch;
    gap: clamp(22px, 2.3vw, 30px);
  }

  .card--how {
    flex: 1;
    min-width: 0;
  }
}

.card--how {
  background: linear-gradient(180deg, #ffffff 0%, #faf8f1 100%);
  border: 1px solid rgba(23, 23, 57, 0.1);
  border-radius: 30px;
  padding: clamp(30px, 3.2vw, 44px);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(23, 23, 57, 0.07);
  transition: box-shadow 200ms ease-out, transform 200ms ease-out, border-color 200ms ease-out;
}

.card--how::before {
  content: none;
}

.card--how::after {
  content: '';
  position: absolute;
  top: clamp(-54px, -4vw, -34px);
  right: clamp(-54px, -4vw, -34px);
  width: clamp(118px, 10vw, 156px);
  aspect-ratio: 1;
  border: 1.5px solid var(--card-watermark-border, rgba(23, 23, 57, 0.1));
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 52% 48%, var(--card-watermark-glow, rgba(255, 255, 255, 0.12)) 0%, transparent 64%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.card--how > * {
  position: relative;
  z-index: 1;
}

.card--how .card__icon  { order: 1; }
.card--how .card__title { order: 2; }
.card--how p            { order: 3; }
.card--how .card__overline { order: 4; }
.card__cta              { order: 5; }

.card--how:hover {
  box-shadow: 0 28px 72px rgba(23, 23, 57, 0.11);
  transform: translateY(-8px);
  border-color: rgba(23, 23, 57, 0.14);
}

.card--how-purple {
  background: linear-gradient(160deg, rgba(180, 154, 253, 0.94) 0%, rgba(180, 154, 253, 0.82) 100%);
  border-color: rgba(23, 23, 57, 0.16);
  color: var(--color-navy);
  --card-watermark-border: rgba(23, 23, 57, 0.14);
  --card-watermark-glow: rgba(247, 244, 238, 0.16);
  box-shadow: 0 24px 64px rgba(180, 154, 253, 0.24);
}

.card--how-purple::after {
  border-color: rgba(23, 23, 57, 0.12);
}

.card--how-purple .card__icon {
  background: rgba(247, 244, 238, 0.34);
  border-color: rgba(23, 23, 57, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.card--how-purple .card__icon svg,
.card--how-purple .card__title,
.card--how-purple p,
.card--how-purple .card__cta {
  color: var(--color-navy);
}

.card--how-purple p {
  color: rgba(23, 23, 57, 0.92);
}

.card--how-purple .card__cta.btn--ghost {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

.card--how-purple .card__cta.btn--ghost:hover {
  background: var(--action-secondary-hover);
  border-color: rgba(23, 23, 57, 0.28);
  color: var(--color-white);
}

.card--how.card--featured {
  background: linear-gradient(160deg, #0c7a34 0%, #096c29 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-on-brand);
  --card-watermark-border: rgba(199, 241, 54, 0.2);
  --card-watermark-glow: rgba(199, 241, 54, 0.1);
  box-shadow: 0 26px 70px rgba(9, 108, 41, 0.18);
}

.card--featured::after {
  content: '';
}

.card--featured::before {
  content: none;
}

.card__icon {
  width: 60px;
  height: 60px;
  background: rgba(23, 23, 57, 0.035);
  border: 1px solid rgba(23, 23, 57, 0.07);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.card--featured .card__icon {
  background: rgba(247, 244, 238, 0.12);
  border-color: rgba(255, 255, 255, 0.1);
}

.card__icon svg {
  width: 25px;
  height: 25px;
  color: var(--color-emerald);
  stroke-width: 1.6;
}

.card--featured .card__icon svg { color: var(--color-lime); }

.card--featured .card__title,
.card--how.card--featured p {
  color: var(--color-offwhite);
}

.card__overline {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(9, 108, 41, 0.92);
}

.card--featured .card__overline {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  font-style: normal;
  color: rgba(247, 244, 238, 0.8);
  order: 5;
}

.card__title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.45vw, 34px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.card--featured .card__title { color: var(--color-offwhite); }

.card--featured .card__cta {
  background: var(--color-lime);
  color: var(--text-on-action);
  border: none;
  box-shadow: none;
}

.card--featured .card__cta:hover {
  background: var(--action-primary-hover);
}

.card--how p {
  font-size: 16px;
  line-height: 1.72;
  color: var(--text-secondary);
  flex: 1;
  max-width: 100%;
}

.card__cta {
  margin-top: auto;
  align-self: flex-start;
  min-height: 52px;
  padding-inline: var(--space-5);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card--how .btn--ghost {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.78);
  border: 1.5px solid rgba(23, 23, 57, 0.22);
  border-radius: var(--radius-lg);
  padding-inline: var(--space-5);
  min-height: 52px;
  box-shadow: 0 10px 20px rgba(23, 23, 57, 0.04);
}

.card--how .btn--ghost:hover {
  border-color: rgba(9, 108, 41, 0.34);
  background: rgba(255, 255, 255, 0.98);
}

.card--featured .card__cta {
  order: 5;
}

/* ─── 11. PARTNERS ───────────────────────────────────────── */
.partners { background: var(--bg-page); }

.partners__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.partners__header h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--color-emerald);
  margin-bottom: var(--space-5);
}

.partners__lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-brand);
  background: var(--bg-muted);
  border: var(--border-default);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

.marquee {
  overflow: hidden;
  padding-block: var(--space-8);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  width: max-content;
  will-change: transform;
}

.marquee__item {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-disabled);
  white-space: nowrap;
  transition: color 200ms ease-out;
}

.marquee__item:hover { color: var(--color-emerald); }

.marquee__sep {
  color: var(--color-lime);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

/* ─── 12. CTA BANNER ─────────────────────────────────────── */
.cta-banner {
  background: var(--bg-inverse);
  padding-block: var(--space-16);
}

@media (min-width: 1024px) { .cta-banner { padding-block: var(--space-24); } }

.cta-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8);
}

.cta-banner__text {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-offwhite);
  max-width: 800px;
}

.cta-banner__text em {
  color: var(--color-lime);
  font-style: normal;
}


/* ─── 16. PARTNER CARDS CAROUSEL ─────────────────────────── */
.partner-cards {
  overflow: hidden;
  padding-block: var(--space-8);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.partner-cards__track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 4.2vw, 68px);
  width: max-content;
  animation: partner-scroll 35s linear infinite;
}

.partner-cards__track:hover {
  animation-play-state: paused;
}

.partner-card {
  flex-shrink: 0;
  width: auto;
  height: 78px;
  padding: 0;
  background: transparent;
  border: 0;
  transition: transform 200ms ease-out, filter 200ms ease-out;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: clamp(148px, 11vw, 184px);
  max-height: 62px;
  object-fit: contain;
}

.partner-card:hover {
  filter: saturate(1.05);
  transform: translateY(-2px);
}

@keyframes partner-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Remove old marquee styles (kept for reference, overridden above) */
.marquee { display: none; }

