/* ============================================
   SUBHERO SECTION
   ============================================ */
.subhero {
  padding-top: calc(var(--space-xxl) + 100px);
  padding-bottom: calc(var(--space-xl) + 100px);
  padding-inline: 0;
  background-color: #e5edeb;
  color: var(--grey-900);
  position: relative;
  z-index: 0;
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.subhero .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  width: min(90%, var(--max-width));
  margin-inline: auto;
}

.subhero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  width: 100%;
}

.subhero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 100%;
}

.subhero-headline {
  font-size: var(--header-large);
  line-height: var(--header-large-lh);
  font-weight: 700;
  color: #004c46;
  margin: 0;
}

.subhero-description {
  font-size: var(--body-xl);
  line-height: var(--body-xl-lh);
  color: #376f6b;
  margin: 0;
  max-width: 90%;
}

.subhero-cta {
  margin-top: var(--space-sm);
}

.subhero-image {
  width: 100%;
  height: auto;
  position: relative;
  overflow: visible;
}

.subhero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-md);
}

.subhero-image:after {
  content:'';
  background-image: url('../utility/leaf-hero.svg');
  background-repeat: no-repeat;
  width:220px;
  height:217px;
  background-size: contain;
  position: absolute;
  bottom:-60px;
  right:-60px;
}

/* Stats Section */
.subhero-stats {
  width: 100%;
}

.subhero-stats-wrapper {
  width: 100%;
  background-color: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom:-100px;
}

.hero-stat {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  width: 100%;
}

.stat-card {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-height: 120px;
  text-align: center;
}

.stat-label {
  font-size: var(--body-small);
  line-height: var(--body-small-lh);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey-500);
  margin: 0;
}

.stat-title {
  font-size: var(--header-small);
  line-height: var(--header-small-lh);
  font-weight: 700;
  color: var(--green-primary);
  margin: 0;
}

.stat-description {
  font-size: var(--body-medium);
  line-height: var(--body-medium-lh);
  color: var(--grey-700);
  margin: 0;
}

/* ============================================
   TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {

  .subhero-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .subhero-image {
    order: 2;
  }

  .subhero-image:after {
    width:156px;
    height:150px;
    bottom:-40px;
    right:-40px;
  }

  .subhero-text {
    order: 1;
  }

  .hero-stat {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  @media (min-width: 768px) {
    .subhero-headline {
      font-size: var(--header-medium);
      line-height: var(--header-medium-lh);
    }

    .subhero-description {
      font-size: var(--body-medium-large);
      line-height: var(--body-medium-large-lh);
    }
  }
}

/* ============================================
   MOBILE (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {
  .subhero {
    padding-top: calc(var(--space-xxl) + 50px);
    min-height: auto;
  }

  .subhero .container {
    gap: var(--space-lg);
  }

  .subhero-content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .subhero-text {
    order: 1;
    gap: var(--space-sm);
  }

  .subhero-headline {
    font-size: var(--header-medium);
    line-height: var(--header-medium-lh);
  }

  .subhero-description {
    font-size: var(--body-medium);
    line-height: var(--body-medium-lh);
    max-width: 100%;
  }

  .subhero-image {
    order: 2;
    width: 100%;
  }

  .subhero-image:after {
    width:105px;
    height:100px;
    bottom:-24px;
    right:-24px;
  }

  .subhero-image img {
    border-radius: var(--radius-sm);
  }

  .subhero-stats {
    margin-top: var(--space-md);
  }

  .hero-stat {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .stat-card {
    padding: var(--space-sm);
  }

  .stat-title {
    font-size: var(--header-xs);
    line-height: var(--header-xs-lh);
  }
}

