/* Homepage ------------*/
.home-page {
  overflow: hidden;
}

.home .page-cta {
  padding-top: 0px;
}

.home-hero {
  padding: clamp(2.25rem, 5vw, 4rem) 0;
  color: #fff;
  background: #1f4d2a;
}

.home-hero__inner {
  max-width: 1120px;
}

.home-hero__eyebrow,
.home-section-kicker {
  margin: 0 0 0.8rem;
  color: var(--nzhl-green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero__eyebrow {
  color: #c5e4c9;
}

.home-hero__heading {
  max-width: 1050px;
  margin: 0;
  color: inherit;
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  line-height: 1.03;
}

.home-what-we-do,
.home-programme-feature {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  background: #fff;
}

.home-programme-feature--tint {
  background: #e9e9e9;
}

.home-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.home-feature-row__media {
  min-width: 0;
}

.home-feature-row__image {
  display: block;
  width: 100%;
  height: auto;
}

.home-feature-row__content h2 {
  margin: 0;
  color: #26352a;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.08;
}

.home-feature-row__text {
  margin-top: 1.5rem;
  color: #46554a;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

.home-feature-row__text > :last-child {
  margin-bottom: 0;
}

.home-programme-feature__action { margin-top: 1.75rem; }

.home-donation-cta {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  background: #f0f0f0;
}

.home-donation-cta__inner {
  display: flex;
  max-width: 1120px;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 4vw, 3rem);
}

.home-donation-cta__text {
  max-width: 48rem;
  margin: 0;
  color: #163d1d;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
}

.home-donation-cta__actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-donation-cta__action { flex: none; padding-inline: 1.75rem; }

@media screen and (max-width: 620px) {
  .home-donation-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-donation-cta__actions {
    width: 100%;
  }
}

.home-supporters {
  /* padding: clamp(1.75rem, 4vw, 3rem) 0; */
  background: #fff;
}

.home-supporters__carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.home-supporters__track {
  display: flex;
  width: max-content;
  animation: home-supporters-loop 35s linear infinite;
  will-change: transform;
}

.home-supporters__group {
  display: flex;
  flex: none;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  padding-right: clamp(2.5rem, 6vw, 6rem);
}

.home-supporters__item {
  display: flex;
  width: clamp(120px, 14vw, 190px);
  height: 90px;
  flex: none;
  align-items: center;
  justify-content: center;
}

.home-supporters__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 72px;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 180ms ease, opacity 180ms ease;
}

.home-supporters a:hover .home-supporters__logo,
.home-supporters a:focus .home-supporters__logo {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes home-supporters-loop {
  to { transform: translateX(-50%); }
}

.home-impact {
  width: min(850px, calc(100% - 2rem));
  max-width: 850px;
  margin: clamp(3rem, 7vw, 5.5rem) auto;
}

@media only screen and (max-width: 760px) {
  .home-feature-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .home-supporters__carousel {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .home-supporters__track {
    display: block;
    width: auto;
    animation: none;
    transform: none;
  }

  .home-supporters__group {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }

  .home-supporters__group[aria-hidden="true"] {
    display: none;
  }
}

/* Homepage Impact Lab report feature ------------*/
.impact-feature {
  --impact-green: var(--nzhl-green);
  --impact-background: #b6b19f;
  --impact-text: #ffffff;

  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: var(--impact-background);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

.impact-feature--no-image {
  grid-template-columns: minmax(0, 1fr);
}

.impact-feature__image {
  position: relative;
  min-height: 405px;
  overflow: hidden;
}

.impact-feature__image img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.impact-feature__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 2rem 1.25rem 2.25rem;
  color: var(--impact-text);
  text-align: center;
}

.impact-feature__copy { width: 100%; max-width: 640px; }
.impact-feature__eyebrow { margin: 0 0 0.35em; font-size: 0.95rem; font-weight: 700; line-height: 1.1; letter-spacing: 0.04em; text-transform: uppercase; }
.impact-feature__title { margin: 0; font-size: 2.5rem; font-weight: 700; line-height: 0.98; letter-spacing: 0.025em; text-transform: uppercase; }
.impact-feature__intro { max-width: 560px; margin: 1.3rem auto 0; font-size: 0.95rem; font-weight: 500; line-height: 1.3; }

.impact-feature__card-float {
  width: min(94%, 300px);
  margin-top: 1.5rem;
  animation: impact-card-float 12s ease-in-out infinite;
}

.impact-feature__card {
  position: relative;
  padding: 1rem 1.15rem 1.4rem;
  background: #fff;
  color: #111;
  transform: perspective(1000px) rotateX(3deg) rotateY(-2.5deg) rotateZ(0.6deg) skewX(-7deg) skewY(0.5deg);
  transform-origin: center;
  border-radius: 4px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18), 0 4px 8px rgba(0, 0, 0, 0.12);
  font-size: 0.9rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.25;
}

.impact-feature__card::after { content: ""; position: absolute; z-index: -1; inset: 8px -5px -7px 7px; background: rgba(0, 0, 0, 0.09); filter: blur(8px); }
.impact-feature__card p { margin: 0; }
.impact-feature__card strong { color: var(--impact-green); font-weight: 700; }
.impact-feature__saving { margin-top: 0.1em !important; font-size: 1.6rem; font-weight: 700 !important; font-style: normal; line-height: 1.05; }
.impact-feature__card-label { position: absolute; right: 0.6rem; bottom: -1.55rem; color: rgba(255, 255, 255, 0.9); font-size: clamp(0.58rem, 1vw, 0.75rem); font-weight: 700; font-style: normal; letter-spacing: 0.035em; text-transform: uppercase; white-space: nowrap; }

.impact-feature__research {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  max-width: 100%;
  margin-top: 2.2rem;
  color: #1f2922;
  font-size: 0.9rem;
  line-height: 1.25;
  text-align: left;
}

.impact-feature__research-icon {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--nzhl-action);
  color: #fff;
}

.impact-feature__research-icon svg { width: 23px; height: 23px; }
.impact-feature__research-label { font-weight: 700; }
.impact-feature__research-divider { flex: 0 0 1px; width: 1px; height: 1.75rem; background: rgba(31, 41, 34, 0.38); }

.impact-feature__research-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.05rem;
  border-bottom: 1px solid currentColor;
  color: var(--nzhl-action);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.impact-feature__research-link:hover { color: var(--nzhl-action-hover); }
.impact-feature__research-link:focus-visible { outline: 3px solid var(--nzhl-action); outline-offset: 4px; }
.impact-feature__research-arrow { flex: 0 0 auto; width: 18px; height: 18px; }

@keyframes impact-card-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

@media (max-width: 700px) {
  .impact-feature { grid-template-columns: 1fr; }
  .impact-feature__image { min-height: 0; aspect-ratio: 4 / 3; }
  .impact-feature__content { padding: 2.5rem clamp(1.25rem, 6vw, 2rem) 3rem; }
  .impact-feature__title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .impact-feature__intro { font-size: clamp(1rem, 4.5vw, 1.2rem); }
  .impact-feature__card-float { width: min(92%, 440px); margin-top: 2.3rem; }
  .impact-feature__card { font-size: clamp(0.95rem, 4.4vw, 1.15rem); transform: perspective(1000px) rotateX(2.5deg) rotateY(-2deg) rotateZ(0.5deg) skewX(-6deg) skewY(0.4deg); }
  .impact-feature__saving { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .impact-feature__card-label { bottom: -1.4rem; font-size: 0.55rem; }
}

@media (max-width: 460px) {
  .impact-feature__research {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    justify-items: start;
    column-gap: 0.7rem;
    row-gap: 0.1rem;
  }
  .impact-feature__research-icon { grid-row: 1 / span 2; }
  .impact-feature__research-divider { display: none; }
  .impact-feature__research-link { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .impact-feature__card-float { animation: none; }
}
