/* Women in Agriculture - single-page project summary (builds on style.css) */

/* Hero */
.closure-hero {
  min-height: min(78vh, 700px);
  background: linear-gradient(160deg, rgba(30,75,43,0.74) 0%, rgba(45,106,63,0.56) 45%, rgba(95,102,52,0.38) 100%),
              url('../assets/images/hero.webp') center/cover no-repeat;
}
.closure-hero .hero-content { max-width: 780px; }
.closure-hero .hero-content p { max-width: 640px; }

.closure-hero-buttons,
.closure-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Section scaffolding */
.page-section { padding: 88px 0; }
.page-section.tinted { background: var(--cream); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--green-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-section h3 {
  font-size: 1.15rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.lead {
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 640px;
  margin-bottom: 40px;
}

.prose { max-width: 680px; }
.prose.wide { max-width: 820px; }
.prose p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 18px;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--green-dark); }

.page-section a:not(.btn):not(.partner-logo) {
  color: var(--green-mid);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-section a:not(.btn):not(.partner-logo):hover { color: var(--brown-primary); }

/* Heading beside text on wide screens */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 56px;
  align-items: start;
}
.two-col h2 { margin-bottom: 0; }

/* Results */
.results {
  background: var(--green-dark);
}
.results h2 { color: var(--white); }
.results .lead { color: rgba(255,255,255,0.85); }

.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}
.figure .stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  margin-bottom: 12px;
}
.figure p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}
.results .note {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  max-width: 760px;
}

/* Training list */
.course-list { border-top: 1px solid var(--gray-200); }
.course {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  grid-template-areas: "title body" "meta body";
  grid-template-rows: auto 1fr;
  gap: 4px 48px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
}
.course h3 { grid-area: title; margin: 0; }
.course .course-meta {
  grid-area: meta;
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
}
.course > p:last-child {
  grid-area: body;
  margin: 0;
  color: var(--gray-700);
  line-height: 1.75;
}

/* Graduates */
.quote {
  margin: 32px 0 44px;
  max-width: 760px;
}
.quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--green-dark);
  margin: 0;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.photo-row figure { margin: 0; }
.photo-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}
.photo-row figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Stories */
.story {
  max-width: 760px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
}
.story:first-of-type { padding-top: 8px; }
.story:last-child { border-bottom: 0; padding-bottom: 0; }
.story p {
  color: var(--gray-700);
  line-height: 1.8;
  margin: 8px 0 0;
}

/* What carries on */
.next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 12px;
}
.next-grid p {
  color: var(--gray-700);
  line-height: 1.7;
  margin: 8px 0 0;
}

/* Funding + partners */
.closure-funding {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 48px 0 56px;
  padding: 32px 0;
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}
.closure-funding img { width: 180px; flex-shrink: 0; height: auto; }
.closure-funding p { margin: 0; color: var(--gray-700); line-height: 1.75; max-width: 720px; }

/* Footer */
.closure-footer-grid { grid-template-columns: 2fr 1fr 1.5fr; }
.site-footer .footer-contact-item a { color: inherit; text-decoration: none; }
.site-footer .footer-contact-item a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .course { grid-template-columns: 1fr; grid-template-areas: "title" "meta" "body"; gap: 4px; }
  .course > p:last-child { margin-top: 10px; }
  .next-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .page-section { padding: 64px 0; }
  .closure-hero { min-height: min(70vh, 600px); }
  .photo-row { grid-template-columns: 1fr; }
  .closure-funding { flex-direction: column; align-items: flex-start; gap: 20px; }
  .closure-footer-grid { grid-template-columns: 1fr; }
  .closure-hero-buttons .btn,
  .closure-cta-buttons .btn { width: 100%; }
}

@media (max-width: 480px) {
  .figures { grid-template-columns: 1fr; gap: 28px; }
}
