/* Homepage only. Shared and supporting-page styles remain in site.css.
   Desktop proportions follow GRASSROOTS 2.png; content is retained from index.html. */
.home {
  --green: #08752f;
  --green-2: #138336;
  --green-dark: #086127;
  --gold: #f5b900;
  --cream: #fff6db;
  --ink: #242524;
  --shadow: 0 5px 18px rgb(20 55 28 / 5%);
}
.home .container { width: min(1100px, calc(100% - 64px)); }
.home :is(a, button):focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.home .home-icon { display: block; width: 48px; height: 48px; margin-inline: auto; }
.home .eyebrow { margin-bottom: 9px; font-size: 12px; letter-spacing: .09em; }
.home .btn { min-height: 42px; padding: 11px 25px; font-size: 11px; }
.home .btn-green { background: linear-gradient(100deg, #138336, #076025); }
.home .btn-outline { background: rgb(8 117 47 / 78%); border-color: #e1eacb; }
.home .btn span { font-size: 19px; line-height: 1; }
.home .btn-outline span, .home .btn-green span { color: var(--gold); }

/* Header */

/* Hero and overlapping impact statistics */
.home .hero { min-height: 563px; background-position: center; }
.home .hero:after { display: none; }
.home .hero-shade { background: linear-gradient(90deg, rgb(0 15 7 / 48%), rgb(0 15 7 / 17%) 44%, transparent 66%); }
.home .hero-content { padding: 52px 0 110px; }
.home .hero h1 { max-width: 520px; margin-bottom: 22px; font-size: 52px; line-height: 1.12; letter-spacing: -.025em; }
.home .hero h1 em { margin-top: 0; font-family: Kalam, cursive; font-size: 68px; font-style: normal; font-weight: 400; line-height: 1.05; color: var(--gold); }
.home .hero-copy { max-width: 355px; font-size: 15px; line-height: 1.5; margin-bottom: 34px; }
.home .hero-actions { gap: 25px; }
.home .hero-actions .btn { min-height: 52px; padding-inline: 27px; }
.home .stats-section { margin-top: -63px; }
.home .stats-card { padding: 24px 20px; background: #f7f9f2; border: 0; border-radius: 20px; box-shadow: none; }
.home .stat { padding: 0 15px; }
.home .stat-icon { height: 40px; }
.home .stat-icon .home-icon { width: 39px; height: 39px; }
.home .stat strong { margin-top: 8px; font-size: 34px; letter-spacing: -.025em; }
.home .stat h2 { margin-top: 8px; font-size: 13px; }
.home .stat p { color: #242524; font-size: 12px; }
.home .stat.stat-gold :is(strong, .stat-icon) { color: #e9a900; }

/* Intro and programme cards */
.home .about-preview { padding: 38px 0 20px; }
.home .split-grid { grid-template-columns: .94fr 1.06fr; gap: 75px; }
.home .copy-block h2 { margin-bottom: 18px; font-size: 35px; line-height: 1.13; letter-spacing: -.025em; }
.home .copy-block p { max-width: 430px; font-size: 13px; line-height: 1.6; margin: 0 0 12px; color: #242524; }
.home .copy-block .btn { margin-top: 7px; }
.home .photo-card { margin-right: 55px; isolation: isolate; }
.home .photo-card img { min-height: 0; max-height: none; aspect-ratio: 1.7; border-radius: 15px; box-shadow: none; }
.home .dot-grid { right: -100px; bottom: -28px; width: 200px; height: 130px; background-size: 16px 16px; background-image: radial-gradient(var(--gold) 1.5px, transparent 1.5px); }
.home .programmes-preview { padding: 0 0 8px; background: #fff; }
.home .programmes-preview .container { width: min(1130px, calc(100% - 48px)); }
.home .section-heading { margin-bottom: 14px; }
.home .section-heading h2 { margin-bottom: 0; font-size: 31px; line-height: 1.2; letter-spacing: -.02em; }
.home .programme-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.home .programme-card { min-height: 255px; padding: 15px 12px 17px; text-align: center; border-color: #e4e4e4; border-radius: 12px; box-shadow: 0 1px 4px rgb(0 0 0 / 4%); }
.home .programme-card h3 { display: grid; place-items: center; min-height: 42px; margin: 11px 0 12px; font-size: 15px; }
.home .programme-card p { font-size: 12px; line-height: 1.55; color: #343734; }
.home .programme-card a { font-size: 11px; letter-spacing: 0; }
.home .programme-card a.gold-link { color: #866000; }
.home .programme-card a.coral-link { color: #b64019; }
.home .section-cta { margin-top: 13px; }
.home .programmes-preview .section-cta .btn, .home .news-section .section-cta .btn { border-radius: 9px; min-height: 34px; padding: 8px 27px; }

/* Three-part impact story */
.home .impact-section { padding: 0 0 20px; }
.home .impact-band { grid-template-columns: .95fr 1.15fr 1.37fr; border-radius: 16px; box-shadow: none; }
.home .impact-story { padding: 23px 27px; background: var(--cream); }
.home .quote-mark { height: 25px; font-size: 53px; }
.home .impact-story h2 { margin: 1px 0 15px; font-size: 26px; }
.home .impact-story p { margin: 0 0 10px; font-size: 12px; line-height: 1.5; color: #343734; }
.home .impact-story a { font-size: 10px; }
.home .impact-band > img { min-height: 0; object-position: center; }
.home .impact-list { padding: 48px 32px 30px; background: linear-gradient(110deg, #148035, #09632a); }
.home .impact-list h3 { margin-bottom: 20px; font-size: 17px; }
.home .impact-list li { margin: 13px 0; padding-left: 20px; font-size: 12px; }
.home .impact-heart { right: 2px; bottom: 6px; transform: rotate(-12deg); }
.home .impact-heart .home-icon { width: 170px; height: 170px; }

/* Participation and existing partner names (no substitute partner logos) */
.home .involved-section { padding: 0 0 34px; }
.home .involved-section .section-heading { margin-bottom: 22px; }
.home .involved-section .eyebrow { font-size: 10px; margin-bottom: 5px; }
.home .involved-section h2 { font-size: 27px; }
.home .involved-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; }
.home .involved-grid a { gap: 12px; }
.home .involved-grid .home-icon { width: 56px; height: 56px; }
.home .involved-grid strong { max-width: 125px; font-size: 12px; line-height: 1.35; }
.home .involved-section .section-cta { margin-top: 24px; }
.home .involved-section .btn { border-radius: 12px; }
.home .partner-row { margin-top: 42px; gap: 24px; }
.home .partner-row div { min-height: 66px; padding: 8px 0; border: 0; border-radius: 0; }
.home .partner-row strong { font-size: 20px; }
.home .partner-row small { font-size: 9px; }

/* Programme news and footer */
.home .news-section { padding: 8px 0 20px; }
.home .news-section .container { width: min(1015px, calc(100% - 64px)); }
.home .news-section .section-heading { margin-bottom: 20px; }
.home .news-section .section-heading h2 { font-size: 26px; }
.home .news-grid { gap: 26px; }
.home .news-card { border-radius: 9px; box-shadow: none; }
.home .news-card img { height: auto; aspect-ratio: 2 / 1; }
.home .news-card > div { position: relative; padding: 17px 14px 12px; }
.home .tag { position: absolute; top: -10px; left: 12px; border-radius: 3px; padding: 1px 5px; font-size: 9px; }
.home .news-card h3 { min-height: 0; margin: 0 0 10px; font-size: 14px; line-height: 1.3; }
.home .news-card a { font-size: 11px; }
.home .news-section .section-cta { margin-top: 17px; }
.home .site-footer { margin-top: 0; padding: 23px 0 12px; background: #06462c; }
.home .footer-grid { grid-template-columns: 1.15fr .86fr 1.1fr 1.15fr; gap: 55px; }
.home .site-footer h2 { font-size: 11px; margin-bottom: 15px; }
.home .site-footer :is(p, li, a, address) { font-size: 11px; line-height: 1.4; }
.home .site-footer li { margin: 2px 0; }
.home .site-footer address { gap: 7px; }
.home .site-footer .btn { color: #18331f; padding: 10px 15px; border-radius: 5px; }
.home .socials { margin-top: 11px; }
.home .socials a { width: 23px; height: 23px; }
.home .footer-bottom { margin-top: 18px; padding-top: 12px; }
.home .footer-bottom :is(p, a) { font-size: 10px; }
/* The homepage remains visible even if animation scripts are unavailable. */
.home .reveal { opacity: 1; transform: none; }

/* Wide-screen alignment from the master reference. Keep the intro photograph
   level with the heading and bring the hero copy into the same left column. */
@media (min-width: 1151px) {
  .home .hero-content { width: min(1053px, calc(100% - 96px)); }
  .home .about-preview .container { width: min(1053px, calc(100% - 96px)); }
  .home .split-grid { grid-template-columns: .88fr 1fr; gap: 64px; align-items: start; }
  .home .photo-card { margin: 0; }
  .home .copy-block p { line-height: 1.5; margin-bottom: 10px; }
  .home .programme-card h3 { margin-block: 9px 10px; }
  .home .impact-band { grid-template-columns: .95fr 1.15fr 1.37fr; }
}

/* Tablet */
@media (max-width: 1150px) {
  .home .programme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home .programme-card { min-height: 245px; }
  .home .split-grid { gap: 45px; }
  .home .photo-card { margin-right: 25px; }
  .home .dot-grid { right: -40px; }
  .home .involved-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; }
  .home .partner-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .home .footer-grid { gap: 25px; }
}
@media (max-width: 900px) {
  .home .hero { min-height: 560px; background-position: 60% center; }
  .home .hero-shade { background: linear-gradient(90deg, rgb(0 20 8 / 72%), rgb(0 20 8 / 30%) 57%, transparent); }
  .home .hero h1 { font-size: 45px; }
  .home .stats-card { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 20px 8px; }
  .home .stat { border-bottom: 0; padding-inline: 8px; }
  .home .stat:not(:last-child) { border-right: 1px solid var(--line); }
  .home .stat strong { font-size: 27px; }
  .home .stat h2, .home .stat p { font-size: 11px; }
  .home .split-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .home .copy-block h2 { font-size: 29px; }
  .home .photo-card { margin-right: 0; }
  .home .dot-grid { right: -15px; width: 110px; height: 90px; }
  .home .impact-band { grid-template-columns: 1fr 1fr; }
  .home .impact-story { grid-column: auto; }
  .home .impact-list { grid-column: 1 / -1; padding: 28px; }
  .home .impact-list ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .home .news-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .home .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 40px; }
}
/* Mobile */
@media (max-width: 580px) {
  .home .container, .home .programmes-preview .container, .home .news-section .container { width: calc(100% - 36px); }
  .home .hero { min-height: 650px; align-items: flex-end; background-position: 66% top; }
  .home .hero-shade { background: linear-gradient(0deg, rgb(0 24 9 / 94%), rgb(0 24 9 / 56%) 62%, rgb(0 24 9 / 10%)); }
  .home .hero-content { padding: 140px 0 90px; }
  .home .hero h1 { font-size: 39px; margin-bottom: 14px; }
  .home .hero h1 em { font-size: 57px; }
  .home .hero-copy { max-width: 340px; font-size: 14px; margin-bottom: 23px; }
  .home .hero-actions { flex-direction: row; flex-wrap: wrap; gap: 10px; max-width: none; }
  .home .hero-actions .btn { min-height: 46px; padding: 10px 16px; font-size: 10px; }
  .home .stats-section { margin-top: -42px; }
  .home .stats-card { grid-template-columns: 1fr 1fr; padding: 12px; border-radius: 15px; }
  .home .stat { padding: 16px 8px; border-bottom: 1px solid var(--line); }
  .home .stat:nth-child(even) { border-right: 0; }
  .home .stat:nth-child(odd):not(:last-child) { border-right: 1px solid var(--line); }
  .home .stat:last-child { grid-column: 1 / -1; padding-bottom: 8px; border: 0; }
  .home .stat h2, .home .stat p { font-size: 12px; }
  .home .about-preview { padding: 36px 0; }
  .home .split-grid { grid-template-columns: 1fr; gap: 26px; }
  .home .copy-block p { font-size: 14px; }
  .home .photo-card img { min-height: 0; }
  .home .programmes-preview { padding: 0 0 24px; }
  .home .programme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .programme-card { padding: 16px 12px; min-height: 285px; }
  .home .programme-card h3 { font-size: 14px; }
  .home .programme-card p { font-size: 12px; }
  .home .impact-section { padding: 0 0 30px; }
  .home .impact-band { grid-template-columns: 1fr; }
  .home .impact-story, .home .impact-list { padding: 27px; }
  .home .impact-story p { font-size: 14px; }
  .home .impact-band > img { min-height: 0; aspect-ratio: 1.3; }
  .home .impact-list ul { grid-template-columns: 1fr; }
  .home .impact-list li { font-size: 13px; }
  .home .involved-section { padding: 0 0 25px; }
  .home .involved-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .home .partner-row { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; }
  .home .partner-row strong { font-size: 17px; }
  .home .news-section { padding: 10px 0 30px; }
  .home .news-grid { gap: 14px; }
  .home .news-card > div { padding: 16px 10px 12px; }
  .home .news-card h3 { font-size: 13px; }
  .home .site-footer { padding-top: 30px; }
  .home .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .home .site-footer :is(p, li, a, address) { font-size: 13px; }
  .home .site-footer h2 { font-size: 12px; }
  .home .footer-bottom { gap: 14px; }
  .home .footer-bottom :is(p, a) { font-size: 11px; }
}
@media (max-width: 350px) {
  .home .hero h1 { font-size: 35px; }
  .home .news-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .home *, .home *:before, .home *:after { transition: none; scroll-behavior: auto; }
}
/* Supplied Grassroots photography: preserve faces and avoid unnecessary zoom. */
.home .photo-card img { object-position: center 48%; }
.home .impact-photo { position: relative; overflow: hidden; min-width: 0; }
.home .impact-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.home .news-photo { overflow: hidden; aspect-ratio: 2 / 1; margin: 0; }
.home .news-photo img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 35%; }
.home .news-card:hover .news-photo img { transform: scale(1.04); }
/* Keep the old site's bus collage complete, including its captions. */
.home .news-photo-documentary { background: var(--cream); }
.home .news-photo-documentary img,
.home .news-card:hover .news-photo-documentary img { object-fit: contain; transform: none; }
@media (max-width: 580px) {
  .home .impact-photo { aspect-ratio: 1.3; }
}
