/* ============================================
   INDEX.HTML SPECIFIC LAYOUT & STRUCTURE
   ============================================ */

/* Main Layout */
.splash {
  display: flex;
  min-height: 360px;
  padding: unset;

  .left-splash {
    width: 60%;
    background-image: url('media/women_farming.png');
    background-size: cover;
    background-position: 30% 85%;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 32px;
    padding: 40px 40px 0px 40px;
  }

  .overlay-text {
    color: var(--color-text-on-dark-alt);
    font-weight: 700;
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 2px;
    align-self: flex-start;
    position: relative;
    padding-bottom: 2px;
  }

  .overlay-text::after {
    content: "";
    position: absolute;
    left: 0;
    right: -30px;
    bottom: 0;
    height: 1px;
    background-color: var(--color-text-on-dark-alt);
  }

  .button-group {
    align-self: center;
    margin-bottom: 0;
    margin-top: 60%;
    margin-bottom: 30px;
  }

  .right-splash {
    width: 40%;
    background-color: var(--color-secondary-light);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 40px;
    box-sizing: border-box;
    min-height: 100%;

    .highlight {
      color: var(--color-text-on-dark-highlight);
    }

    h1 {
      color: var(--color-text-on-dark-alt);
      margin-bottom: 30px;
      text-align: left;
      font-weight: 500;
    }

    p {
      color: var(--color-text-on-dark-alt);
      text-align: left;
      font-weight: 300px;
      padding-top: 20px;
      margin-top: auto;
    }

    .heading-container {
      display: flex;
      flex-direction: column;
      margin-top: 80px;
    }

    .subheading-container {
      display: flex;
      flex-direction: column;
      margin-top: 20px;
    }

    .logo-container {
      display: flex;
      justify-content: flex-end;
      margin-top: 40px;
      padding: 0px;

      .logo {
        height: 80px;
        width: auto;
      }
    }

  }
}

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

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

.stats-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.stats-left .leaf-icon,
.water-tank-right .leaf-icon {
  align-self: center;
}

.leaf-icon {
  margin-bottom: 10px;
}

.stats-left h2 {
  color: var(--color-text-primary);
  text-align: left;
  margin: 0;
}

.stats-left p {
  color: var(--color-text-primary);
  text-align: left;
  margin: 0;
}

.stats-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.farmer-image {
  width: 80%;
  max-width: 600px;
  height: 380px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--color-border-tan);
  box-shadow: 0 4px 12px var(--color-shadow);
}

/* Water Tank Section */
.water-tank-section {
  width: 100%;
}

.water-tank-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

.water-tank-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.water-tank-image {
  width: 80%;
  max-width: 600px;
  height: 380px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--color-border-tan);
  box-shadow: 0 4px 12px var(--color-shadow);
}

.water-tank-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.water-tank-right h2 {
  text-align: left;
  margin: 0;
}

.water-tank-right p {
  text-align: left;
  margin: 0;
}

/* Quote Section */
.quote-section {
  width: 100%;
}

.quote-header {
  padding: 0px 0px var(--section-spacing-vertical-large);
  width: 80%;
  margin: 0 auto;
}

.quote-text {
  color: var(--color-primary);
  margin-bottom: 8px;
  text-align: center;
  font-size: 22px;
  font-family: Poppins;
  font-weight: 500;
}

.quote-attribution {
  color: #8b6d53;
  text-align: right;
  font-size: 16px;
  font-family: Poppins;
  padding-right: 20px;
}

.quote-divider {
  height: 2px;
  background-color: var(--color-primary);
  width: 100%;
  margin-top: 20px;
}

.quote-image-container {
  width: 100%;
  overflow: hidden;
}

.quote-landscape {
  width: 100%;
  object-fit: cover;
}

/* Approach Section */
.approach-section {
  width: 100%;
  background-color: var(--color-bg-cream-grey);
  align-items: center;
}

.approach-overview {
  display: flex;
  gap: 40px;

}

.approach-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 600px;
  gap: 25px;
}

.approach-title {
  margin: 0;
  padding-top: 20px;
  padding-bottom: 20px;
}

.approach-title .highlight {
  color: var(--color-primary);
}

.approach-left p {
  color: var(--color-text-primary);
  text-align: left;
  margin: 0;
}

.approach-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.africa-map {
  width: 80%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 4px 12px var(--color-shadow-medium));
}

/* RCT Results Section */
/* If editing these, map it across to the same section in `./our-approach.css` */
.rct-results-section {
  width: 100%;
  background-color: var(--color-bg-cream-grey);
  padding: var(--section-spacing-vertical-large) var(--section-spacing-horizontal-small);
  display: flex;
  flex-direction: column;
  gap: var(--section-spacing-vertical-small)
}

.rct-title-area {
  width: min(100%, 1200px);
  padding-inline: clamp(24px, 6vw, 60px);
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.rct-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(24px, 6vw, 60px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.rct-title-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rct-leaf {
  font-size: 32px;
  line-height: 1;
}

.rct-title {
  color: var(--color-text-primary);
  margin: 0;
}

.rct-subtitle {
  color: var(--color-primary);
  font-weight: 400;
}

.rct-title-underline {
  height: 1px;
  background-color: var(--color-primary);
  width: 100%;
  max-width: 600px;
}

.rct-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
}

.rct-card {
  background-color: var(--color-bg-white);
  border-radius: 20px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px var(--color-shadow);
  max-height: 360px;
}


.rct-icon-container {
  border-radius: 50%;
  background-color: var(--color-bg-green-light);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;

  .rct-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
  }
}

.rct-stat {
  color: var(--color-secondary);
  text-align: center;
  font-size: 20px;
  font-family: Poppins;
}

.rct-desc {
  color: var(--color-text-secondary);
  text-align: center;
  font-weight: 400;
  font-size: 20px;
  font-family: PT Sans;
}

.cta-button-container {
  display: flex;
  justify-content: flex-start;
}

/* Help Farmers Section */
.help-farmers-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.help-farmers-content {
  display: flex;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.help-farmers-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cows-circular {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
}

.help-farmers-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 520px;
  width: 100%;
  align-self: center;
}

.help-farmers-right p {
  color: var(--color-text-primary);
  text-align: left;
  margin: 0;
}

.help-farmers-button {
  margin-top: 10px;
}

.charity-logo-container {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: 40px;
  width: 100%;
}

.charity-logo {
  max-width: 200px;
  height: auto;
}

/* ============================================
   RESPONSIVE LAYOUT
   ============================================ */

@media (max-width: 1024px) {
  main {
    flex-direction: column;
    height: auto;
  }

  .splash {

    .left-splash {
      width: 50%;
      min-height: 320px;
      background-size: cover;
      background-position: center;
    }

    .right-splash {
      width: 50%;
    }

  }


  .button-group {
    flex-direction: column;
    width: 100%;
    gap: 30px;
  }

  .stats-section {
    padding: 60px 40px;
  }

  .stats-container {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .stats-right,
  .water-tank-left {
    width: 100%;
    justify-content: center;
  }

  .water-tank-container {
    flex-direction: column;
  }

  .stats-left,
  .water-tank-right {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    align-items: center;
  }

  .stats-left h2,
  .stats-left p,
  .water-tank-right h2,
  .water-tank-right p {
    text-align: center;
  }

  .help-farmers-container {
    padding: 0 40px;
  }

  .help-farmers-right {
    align-self: center;
    max-width: 600px;
  }

  .help-farmers-right p {
    text-align: center;
  }

  /* Center CTA when layout stacks vertically */
  .help-farmers-right .cta-button-container {
    justify-content: center;
  }

  .charity-logo-container {
    align-self: center;
    justify-content: center;
    max-width: 220px;
  }

  .rct-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .rct-container {
    padding-inline: 32px;
  }

  .help-farmers-content {
    flex-direction: column;
  }

  .cows-circular {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .rct-cards {
    grid-template-columns: 1fr;
  }

  .rct-container {
    padding-inline: 24px;
  }

  .splash {
    flex-direction: column;

    .left-splash {
      width: 100%;

      min-height: 600px;
    }

    .right-splash {
      width: 100%;
    }

    .right-splash .heading-container,
    .right-splash .subheading-container {
      padding-top: 0;
    }
  }

  .approach-overview {
    flex-direction: column;
    gap: var(--section-spacing-vertical-small)
  }

  .water-tank-container {
    gap: 20px;
  }

  .quote-header {
    width: 90%
  }

  .left-splash {
    padding: 24px;
  }

  .button-group {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 20px;
  }

  .right-splash {
    padding: 32px 24px;
  }
}