:root {
  --green: #013334;
  --blue: #007591;
  --orange: #fd5e02;
  --yellow: #fda600;
  --sky: #80bac8;
  --platinum: #e8e7e3;
  --white: #ffffff;
  --ink: #122022;
  --shadow: 0 18px 60px rgba(1, 51, 52, 0.12);
  --radius: 34px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(128,186,200,0.25), transparent 28%),
    radial-gradient(circle at bottom right, rgba(253,94,2,0.10), transparent 26%),
    linear-gradient(180deg, #f5f3ef 0%, #efede8 100%);
}

img { display: block; width: 100%; }

.page-shell {
  width: min(calc(100% - 32px), var(--container));
}

.section { margin-bottom: 26px; }
.card {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(1, 51, 52, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.hero-banner {
  position: relative;
  min-height: 440px;
  background: linear-gradient(180deg, rgba(1, 51, 52, 0.08), rgba(1, 51, 52, 0.16));
}

.hero-banner img {
  width: 100%;
  height: 800px;
  object-fit: cover;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 38px 42px;
    background: linear-gradient(180deg, rgba(1, 51, 52, 0.05) 40%, rgb(0 44 69 / 68%) 100%);
}

.hero-banner-overlay .eyebrow,
.hero-banner-overlay h2 {
  color: var(--white);
}

.hero-banner-overlay h2 {
  max-width: 12ch;
  margin: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 720px;
}

.hero-copy {
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo {
  width: 148px;
  margin-bottom: 12px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

h1, h2, h3 {
  margin: 0;
  color: var(--green);
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.95;
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.lead,
.text-block p,
.project-copy p,
.impact-content p,
.support-copy p {
  font-size: 1.02rem;
  line-height: 1.72;
  color: rgba(18, 32, 34, 0.80);
}

.lead { max-width: 58ch; margin: 20px 0 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-actions .home-hero-donate-button {
  background: #ffe433;
  color: #000000;
  box-shadow: none;
}

.hero-actions .home-hero-donate-button:hover,
.hero-actions .home-hero-donate-button:focus-visible {
  background: #f2d300;
  color: #000000;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: #18595a;
  color: var(--white);
  box-shadow: 0 12px 24px rgba(1, 51, 52, 0.18);
}

.btn-secondary {
  background: var(--platinum);
  color: var(--green);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 32px;
}

.mini-stats div {
  background: #f7f6f2;
  border-radius: 22px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(1, 51, 52, 0.08);
}

.mini-stats strong {
  display: block;
  color: var(--green);
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.mini-stats span {
  color: rgba(18, 32, 34, 0.75);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-media {
  min-height: 100%;
  position: relative;
  background: linear-gradient(180deg, rgba(128,186,200,0.12), rgba(253,166,0,0.12));
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.mission-card {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: stretch;
}

.text-block {
  padding: 44px;
}

.feature-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(18, 32, 34, 0.82);
  line-height: 1.65;
}

.feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  position: absolute;
  left: 0;
  top: 0.7em;
}

.image-wrap img {
  height: 100%;
  object-fit: cover;
}

.section-heading {
  padding: 6px 6px 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card img {
  aspect-ratio: 1.15 / 0.9;
  object-fit: cover;
}

.project-copy {
  padding: 24px;
}

.impact-banner {
  position: relative;
  background:
    linear-gradient(135deg, rgba(1,51,52,0.92), rgba(0,117,145,0.82)),
    url('/assets/images/banner background.jpg') center/cover no-repeat;
}

.impact-content {
  padding: 52px;
  max-width: 760px;
}

.impact-banner .eyebrow,
.impact-banner h2,
.impact-banner p {
  color: var(--white);
}

.support-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
}

.support-copy {
  padding: 46px;
}

.support-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.support-points span {
  padding: 12px 16px;
  background: rgba(0, 117, 145, 0.08);
  border: 1px solid rgba(0, 117, 145, 0.10);
  color: var(--green);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.support-points .fundup-donate-button {
  min-height: 0;
  padding: 12px 24px;
  background: #ffe433;
  color: #000000;
  box-shadow: none;
  font-size: 0.95rem;
  line-height: 1.5;
}

.support-points .fundup-donate-button:hover,
.support-points .fundup-donate-button:focus-visible {
  background: #f2d300;
  color: #000000;
}

.support-image img {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

@media (max-width: 1000px) {
  .hero,
  .mission-card,
  .support-section {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; }
  .hero-media { min-height: 360px; }
}

@media (max-width: 720px) {
  .hero-banner,
  .hero-banner img {
    min-height: 300px;
    height: 300px;
  }

  .hero-banner-overlay {
    padding: 26px 24px;
  }

  .page-shell {
    width: min(calc(100% - 20px), var(--container));
    margin: 10px auto 24px;
  }

  .hero-copy,
  .text-block,
  .impact-content,
  .support-copy {
    padding: 28px;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }
}


.f {
    width: min(100%, 760px);
    align-self: self-end;
}

.hero-banner-overlay {
  justify-content: flex-end;
}

.hero-copy {
    padding: 28px 30px;
    border-radius: 26px;
    background: #14444554;
    box-shadow: 0 18px 50px rgba(1, 51, 52, 0.18);
    backdrop-filter: blur(8px);
    align-items: end;
}

.hero-banner .hero-copy .eyebrow {
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  line-height: 1.55;
  font-weight: 700;
}

.mobile-hero-brand {
  display: none;
  width: 100%;
}

.mobile-hero-brand img {
  width: 120px;
  margin: 0 auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.14));
}

@media (max-width: 720px) {
  .hero-banner {
    min-height: 0;
    background: transparent;
  }

  .hero-banner img {
    height: 245px;

  }
  
  .hero-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 38px 42px;
  background: linear-gradient(180deg, rgba(1, 51, 52, 0.05) -30%, rgb(0 44 69 / 80%) 100%);
}

  .mobile-hero-brand {
    display: block;
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
  }

  .mobile-hero-brand img {
    width: min(46vw, 180px);
    height: auto;
    object-fit: contain;
  }

  .hero-banner .f {
    display: none;
  }

  .mission-card {
    grid-template-columns: 1fr;
  }

  .mission-card .image-wrap {
    order: 1;
  }

  .mission-card .text-block {
    order: 2;
  }

  .mission-card .image-wrap img {
    height: 230px;
    min-height: 230px;
    max-height: 230px;
    object-fit: cover;
    object-position: center;
  }

  .text-block {
    padding: 24px 20px 26px;
  }

  .project-card img {
    aspect-ratio: 1.22 / 0.88;
  }

  .impact-content {
    padding: 24px 20px 26px;
  }

  .impact-content h2 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    line-height: 0.95;
    max-width: 9ch;
  }

  .support-points {
    gap: 8px;
  }

  .support-points span {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }
}


.desktop-hero-brand {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  justify-content: center;
  width: 100%;
  pointer-events: none;
}

.desktop-hero-brand img {
  width: clamp(170px, 15vw, 240px);
  max-width: min(34vw, 240px);
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.18));
}

@media (max-width: 720px) {
  .desktop-hero-brand {
    display: none;
  }
}

/* Keep the three home projects balanced side by side on non-phone screens. */
#projects .project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

#projects .project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#projects .project-copy {
  flex: 1;
}

@media (max-width: 720px) {
  #projects .project-grid {
    grid-template-columns: 1fr;
  }
}
