:root {
  --ink: #171017;
  --muted: #6d5f68;
  --paper: #fff8fb;
  --panel: #ffffff;
  --green: #cc3366;
  --green-dark: #98264f;
  --clay: #ff9900;
  --blue: #cc3366;
  --gold: #ff9900;
  --line: #f0d5df;
  --header: #150d15;
  --shadow: 0 18px 48px rgba(88, 21, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: rgba(21, 13, 21, 0.96);
  border-bottom: 1px solid rgba(255, 153, 0, 0.3);
  display: grid;
  gap: 20px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  padding: 12px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  transition: box-shadow 160ms ease, background 160ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(21, 13, 21, 0.99);
  box-shadow: 0 8px 26px rgba(21, 13, 21, 0.24);
}

.brand {
  align-items: center;
  display: inline-flex;
  min-width: 158px;
}

.brand img {
  height: 56px;
  object-fit: contain;
  width: auto;
}

.main-nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  justify-content: center;
}

.main-nav a {
  color: #f7dbe6;
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--gold);
}

.text-link {
  color: var(--green-dark);
  font-size: 0.94rem;
  font-weight: 800;
}

.text-link:hover {
  color: var(--green);
}

.header-action {
  background: var(--gold);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  padding: 10px 18px;
}

.hero {
  min-height: clamp(650px, 92vh, 900px);
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(34, 13, 28, 0.82) 0%, rgba(95, 26, 58, 0.5) 42%, rgba(95, 26, 58, 0.08) 78%),
    linear-gradient(0deg, rgba(23, 16, 23, 0.34), rgba(23, 16, 23, 0.02) 45%);
}

.hero-content {
  color: white;
  max-width: 760px;
  padding: clamp(130px, 18vh, 210px) clamp(22px, 6vw, 88px) 110px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker,
.project-meta {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd87d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(4.5rem, 13vw, 10rem);
  line-height: 0.85;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: 0;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-copy {
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  max-width: 650px;
}

.hero-actions,
.contact-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: #17221f;
}

.button-primary:hover {
  box-shadow: 0 12px 28px rgba(210, 168, 71, 0.34);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: white;
}

.button-secondary {
  background: var(--green);
  color: white;
}

.intro-band,
.project-section,
.impact-section,
.contact-section {
  padding: clamp(64px, 9vw, 116px) clamp(20px, 5vw, 72px);
}

.section-grid {
  align-items: end;
  display: grid;
  gap: clamp(28px, 6vw, 96px);
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  margin: 0 auto;
  max-width: 1180px;
}

.section-grid > p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.focus {
  background: #fff0f5;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.focus article {
  background: #fff0f5;
  padding: clamp(28px, 5vw, 56px);
}

.focus p,
.project-card p,
.donation-copy p,
.contact-section p,
footer {
  color: var(--muted);
}

.icon-dot {
  border-radius: 999px;
  display: block;
  height: 14px;
  margin-bottom: 22px;
  width: 54px;
}

.icon-dot.water {
  background: var(--blue);
}

.icon-dot.learning {
  background: var(--gold);
}

.icon-dot.enterprise {
  background: var(--clay);
}

.section-heading {
  margin: 0 auto 36px;
  max-width: 1180px;
}

.project-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 26px;
}

.project-meta {
  color: var(--blue);
  margin-bottom: 20px;
}

.progress {
  background: #e8ece8;
  border-radius: 999px;
  height: 10px;
  margin-top: auto;
  overflow: hidden;
}

.progress span {
  background: linear-gradient(90deg, var(--green), var(--gold));
  display: block;
  height: 100%;
}

.project-foot {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 12px 0 0;
}

.donation-band {
  align-items: center;
  background: #20111d;
  color: white;
  display: grid;
  gap: clamp(32px, 6vw, 82px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.donation-copy h2 {
  max-width: 720px;
}

.donation-copy p {
  color: #c8d3d0;
  font-size: 1.06rem;
  max-width: 620px;
}

.donation-form {
  background: white;
  border-radius: 8px;
  color: var(--ink);
  padding: clamp(22px, 4vw, 34px);
}

fieldset {
  border: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 18px;
  min-width: 0;
  padding: 0;
}

legend,
.input-group span {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  font-weight: 900;
  margin-bottom: 9px;
}

.donation-form label {
  min-width: 0;
}

.donation-form fieldset label span {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 10px;
}

.donation-form input[type="radio"] {
  clip: rect(0 0 0 0);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.donation-form input[type="radio"]:checked + span {
  background: #fff1f6;
  border-color: var(--green);
  color: var(--green-dark);
}

.input-group {
  display: block;
  margin-top: 14px;
}

.input-group input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}

.donation-form .button {
  margin-top: 20px;
  width: 100%;
}

.form-status {
  color: var(--green-dark);
  font-weight: 800;
  margin: 14px 0 0;
  min-height: 24px;
}

.impact-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: 1180px;
}

.impact-grid article {
  border-top: 3px solid var(--clay);
  padding-top: 18px;
}

.impact-grid strong {
  display: block;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
}

.impact-grid span {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-top: 12px;
}

.contact-section {
  align-items: center;
  background: #fff0f5;
  display: flex;
  gap: 28px;
  justify-content: space-between;
}

.contact-section h2 {
  max-width: 800px;
}

footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 72px);
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .section-grid,
  .donation-band {
    grid-template-columns: 1fr;
  }

  .project-list,
  .focus,
  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(34, 13, 28, 0.86), rgba(95, 26, 58, 0.24)),
      linear-gradient(0deg, rgba(23, 16, 23, 0.44), rgba(23, 16, 23, 0.06) 55%);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-action {
    padding: 9px 13px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding: 118px 18px 80px;
  }

  h1 {
    font-size: 4.8rem;
  }

  .project-list,
  .focus,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  fieldset {
    grid-template-columns: 1fr 1fr;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}
