/* Light-green accents to emphasize "sustainable".
   Header stays white/clean; green is used as the accent throughout. */
:root {
  --sustain-green: #07A047;
  --sustain-green-dark: #05803a;
  --sustain-green-light: #66bb6a;

}

/* Material defines these on the color scheme (on <body>), which beats :root.
   Override them at the same level so links pick up the sustainable green. */
[data-md-color-scheme="default"] {
  --md-accent-fg-color: var(--sustain-green-dark);
  --md-accent-fg-color--transparent: rgba(7, 160, 71, 0.1);
  --md-typeset-a-color: var(--sustain-green);
}

/* Thin green strip along the bottom of the white header */
.md-header {
  border-bottom: 3px solid var(--sustain-green);
}

/* Active nav tab: green label + green underline indicator */
.md-tabs__link--active {
  color: var(--sustain-green) !important;
  font-weight: 700;
}

.md-tabs__item {
  position: relative;
}

.md-tabs__item--active > .md-tabs__link::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--sustain-green);
  border-radius: 2px;
}

/* Tab hover */
.md-tabs__link:hover {
  color: var(--sustain-green);
  opacity: 1;
}

/* Hide the title */
.md-typeset h1,
.md-content__button {
  display: none;
}

/* Submission call-to-action button */
.submit-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 2.5rem 0;
  text-align: center;
}

.md-typeset .submit-button,
.md-typeset .submit-button:visited {
  display: inline-block;
  padding: 1rem 2.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, var(--sustain-green-dark), var(--sustain-green));
  border: none;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(7, 160, 71, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.md-typeset .submit-button:hover,
.md-typeset .submit-button:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(7, 160, 71, 0.45);
  filter: brightness(1.05);
}

.submit-cta__note {
  font-size: 0.85rem;
  opacity: 0.75;
}

@media (max-width: 599px) {
  .md-typeset .submit-button,
  .md-typeset .submit-button:visited {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
  }
}

.hero {
  /* make full-bleed across the viewport */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  overflow: hidden;
  /* pull hero up so it sits behind the sticky navbar/tabs */
  margin-top: -7rem;
  /* margin-bottom: 2rem; */
  /* ensure hero doesn't overlap mobile sidebar/drawer */
  z-index: 0;
}

.hero__small {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  overflow: hidden;
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
}

.hero__image__small {
  display: block;
  width: 100%;
  height: 20vh;
  object-fit: cover;
}

.hero__overlay__small {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  color: #fff;
}

.hero__title__small {
  font-size: clamp(1.25rem, 6vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(0, 0, 0, 0.4);
}


.hero__overlay__small {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.15) 45%,
      rgba(0, 0, 0, 0)),
    rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 -80px 120px rgba(0, 0, 0, 0.45),
    inset 0 40px 80px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.15) 45%,
      rgba(0, 0, 0, 0)),
    rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 -80px 120px rgba(0, 0, 0, 0.45),
    inset 0 40px 80px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.hero__title {
  margin: 2rem 0 0.25rem 0;
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(0, 0, 0, 0.4);
}

.hero__subtitle {
  margin: 1rem 0 0 0;
  font-size: clamp(1rem, 2.25vw, 1.375rem);
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.landingpage-heading {
  margin-top: 0rem !important;
}

.hero__logo {
  width: clamp(110px, 22vw, 320px);
  height: auto;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

@media (min-width: 1024px) {
  .hero__logo {
    width: clamp(140px, 18vw, 400px);
  }
}

@media (max-width: 959px) {
  .hero {
    margin-top: -5.5rem;
    /* smaller header on mobile */
  }
}

/* Small phones: ensure text fits and hero has enough height */
@media (max-width: 599px) {
  .hero {
    min-height: 58vh;
  }

  .hero__image {
    height: 58vh;
    object-fit: cover;
  }

  .hero__overlay {
    padding: 2.25rem 1rem;
  }

  .hero__logo {
    width: clamp(84px, 28vw, 140px);
    margin-bottom: 0.5rem;
  }

  .hero__title {
    margin: 1rem 0 0.25rem 0;
    font-size: clamp(1.25rem, 6vw, 2rem);
  }

  .hero__subtitle {
    margin: 0.5rem 0 0 0;
    font-size: clamp(0.9rem, 4.5vw, 1.1rem);
  }

  .hero__image__small {
    height: 10vh;
  }
}