/*
Theme Name: H&H Foundation
Theme URI: https://example.org/
Author: H&H Foundation
Description: A responsive, green-earth inspired WordPress theme for Harambee Green Earth and Humanity Foundation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: hh-foundation
*/

:root {
  --hh-forest: #043B21;
  --hh-green: #257527;
  --hh-olive: #6B921F;
  --hh-brown: #5B3518;
  --hh-light: #EEF5EA;
  --hh-bg: #FAFCF9;
  --hh-text: #17231C;
  --hh-muted: #5D6B62;
  --hh-white: #FFFFFF;
  --hh-border: rgba(4,59,33,.12);
  --hh-shadow: 0 18px 45px rgba(4,59,33,.10);
  --hh-radius: 22px;
  --hh-max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--hh-bg);
  color: var(--hh-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.container {
  width: min(calc(100% - 40px), var(--hh-max));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
  border: 0;
}

/* Header */
.hh-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--hh-border);
  backdrop-filter: blur(12px);
}

.hh-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.hh-brand img {
  width: 145px;
  height: auto;
}

.hh-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.hh-nav a {
  text-decoration: none;
  color: var(--hh-forest);
  font-weight: 650;
  font-size: .94rem;
}

.hh-nav a:hover { color: var(--hh-green); }

.hh-donate {
  background: var(--hh-forest) !important;
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 999px;
}

.hh-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--hh-forest);
  font-size: 28px;
  cursor: pointer;
}

/* Hero */
.hh-hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4,59,33,.94) 0%, rgba(4,59,33,.78) 42%, rgba(4,59,33,.20) 100%),
    radial-gradient(circle at 80% 30%, rgba(107,146,31,.45), transparent 30%),
    linear-gradient(135deg, #043B21, #257527);
}

.hh-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -260px;
  border: 2px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(255,255,255,.05),
    0 0 0 100px rgba(255,255,255,.035);
}

.hh-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 760px;
  padding: 110px 0 130px;
}

.hh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .78rem;
  font-weight: 800;
  color: #D7EBA8;
}

.hh-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: #D7EBA8;
}

.hh-hero h1 {
  margin: 20px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: .98;
  letter-spacing: -.045em;
  max-width: 900px;
}

.hh-hero p {
  max-width: 650px;
  font-size: 1.16rem;
  color: rgba(255,255,255,.88);
  margin: 0 0 32px;
}

.hh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: .2s ease;
}

.hh-btn-primary {
  background: #fff;
  color: var(--hh-forest);
}

.hh-btn-primary:hover { transform: translateY(-2px); }

.hh-btn-outline {
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
  background: rgba(255,255,255,.08);
}

.hh-btn-outline:hover { background: rgba(255,255,255,.16); }

/* Sections */
.hh-section { padding: 96px 0; }

.hh-section-light { background: var(--hh-light); }

.hh-section-head {
  max-width: 730px;
  margin-bottom: 46px;
}

.hh-eyebrow {
  color: var(--hh-green);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.hh-section h2 {
  margin: 10px 0 15px;
  color: var(--hh-forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.hh-section-head p {
  margin: 0;
  color: var(--hh-muted);
  font-size: 1.05rem;
}

/* Intro */
.hh-intro-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}

.hh-intro-copy p { color: var(--hh-muted); font-size: 1.05rem; }

.hh-quote {
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 4px solid var(--hh-olive);
  background: #fff;
  border-radius: 0 16px 16px 0;
  color: var(--hh-forest);
  font-weight: 750;
}

.hh-visual {
  min-height: 440px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(107,146,31,.75), transparent 22%),
    linear-gradient(145deg, rgba(4,59,33,.95), rgba(37,117,39,.78)),
    url("images/hnh-logo.jpg") center/cover;
  box-shadow: var(--hh-shadow);
}

.hh-visual::after {
  content: "EMPOWER • PROTECT • RESTORE";
  position: absolute;
  left: 26px;
  bottom: 24px;
  color: #fff;
  font-weight: 850;
  letter-spacing: .12em;
  font-size: .74rem;
}

/* Programs */
.hh-programs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hh-card {
  background: #fff;
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(4,59,33,.055);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hh-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hh-shadow);
}

.hh-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--hh-light);
  color: var(--hh-green);
  font-size: 24px;
  margin-bottom: 24px;
}

.hh-card h3 {
  margin: 0 0 9px;
  color: var(--hh-forest);
  font-size: 1.18rem;
}

.hh-card p {
  margin: 0;
  color: var(--hh-muted);
  font-size: .95rem;
}

/* Split feature */
.hh-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-radius: 30px;
  overflow: hidden;
  background: var(--hh-forest);
  color: #fff;
}

.hh-feature-image {
  min-height: 520px;
  background:
    linear-gradient(145deg, rgba(4,59,33,.10), rgba(4,59,33,.40)),
    radial-gradient(circle at 30% 25%, #A9C94A, transparent 22%),
    linear-gradient(145deg, #257527, #043B21);
}

.hh-feature-content {
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hh-feature-content h2 { color: #fff; }

.hh-feature-content p { color: rgba(255,255,255,.78); }

.hh-checks {
  list-style: none;
  padding: 0;
  margin: 25px 0 30px;
}

.hh-checks li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: rgba(255,255,255,.9);
}

.hh-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #B8D967;
  font-weight: 900;
}

/* Impact */
.hh-impact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hh-border);
  border: 1px solid var(--hh-border);
  border-radius: 22px;
  overflow: hidden;
}

.hh-stat {
  background: #fff;
  padding: 38px 24px;
  text-align: center;
}

.hh-stat strong {
  display: block;
  color: var(--hh-forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
}

.hh-stat span {
  color: var(--hh-muted);
  font-size: .88rem;
  font-weight: 750;
}

/* Get involved */
.hh-involve {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hh-involve .hh-card {
  text-align: center;
  padding: 40px 30px;
}

/* Stories */
.hh-stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hh-story {
  background: #fff;
  border: 1px solid var(--hh-border);
  border-radius: 22px;
  overflow: hidden;
}

.hh-story-image {
  aspect-ratio: 16/10;
  background:
    radial-gradient(circle at 70% 25%, rgba(107,146,31,.8), transparent 20%),
    linear-gradient(135deg, #257527, #043B21);
}

.hh-story-body { padding: 25px; }

.hh-story-body h3 {
  color: var(--hh-forest);
  margin: 0 0 10px;
}

.hh-story-body p {
  color: var(--hh-muted);
  font-size: .94rem;
}

.hh-link {
  color: var(--hh-green);
  font-weight: 800;
  text-decoration: none;
}

/* CTA */
.hh-cta {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: var(--hh-forest);
  color: #fff;
}

.hh-cta::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  right: -230px;
  top: -350px;
  box-shadow: 0 0 0 60px rgba(255,255,255,.035);
}

.hh-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
  margin: auto;
}

.hh-cta h2 { color: #fff; }
.hh-cta p { color: rgba(255,255,255,.78); }

/* Footer */
.hh-footer {
  background: #022B18;
  color: rgba(255,255,255,.75);
  padding: 65px 0 25px;
}

.hh-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 45px;
}

.hh-footer-brand img { width: 150px; filter: brightness(0) invert(1); margin-bottom: 20px; }

.hh-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 16px;
}

.hh-footer a {
  display: block;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  margin: 7px 0;
}

.hh-footer a:hover { color: #fff; }

.hh-footer-bottom {
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* WordPress content compatibility */
.wp-block-button__link {
  background: var(--hh-forest);
  border-radius: 999px;
}

.entry-content a { color: var(--hh-green); }

/* Responsive */
@media (max-width: 980px) {
  .hh-programs { grid-template-columns: repeat(2, 1fr); }
  .hh-intro-grid, .hh-feature { grid-template-columns: 1fr; }
  .hh-feature-image { min-height: 360px; }
  .hh-impact { grid-template-columns: repeat(2, 1fr); }
  .hh-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--hh-max)); }
  .hh-header-inner { min-height: 70px; }
  .hh-brand img { width: 125px; }
  .hh-menu-toggle { display: block; }
  .hh-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 70px;
    background: #fff;
    border: 1px solid var(--hh-border);
    border-radius: 18px;
    box-shadow: var(--hh-shadow);
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .hh-nav.is-open { display: flex; }
  .hh-nav a { padding: 12px 10px; }
  .hh-donate { text-align: center; margin-top: 5px; }
  .hh-hero { min-height: 650px; }
  .hh-hero-content { padding: 90px 0 105px; }
  .hh-hero h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .hh-section { padding: 70px 0; }
  .hh-programs, .hh-involve, .hh-stories { grid-template-columns: 1fr; }
  .hh-feature-content { padding: 45px 28px; }
  .hh-impact { grid-template-columns: 1fr 1fr; }
  .hh-footer-grid { grid-template-columns: 1fr 1fr; }
  .hh-footer-brand { grid-column: 1 / -1; }
  .hh-footer-bottom { flex-direction: column; }
}

@media (max-width: 460px) {
  .hh-impact { grid-template-columns: 1fr; }
  .hh-footer-grid { grid-template-columns: 1fr; }
  .hh-footer-brand { grid-column: auto; }
}
