@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --green: #3baa58;
  --green-dark: #147640;
  --ink: #122125;
  --muted: #667572;
  --line: #e3ebe7;
  --paper: #ffffff;
  --soft: #f5faf6;
  --gold: #c29b52;
  --blue: #29465c;
  --shadow: 0 16px 36px rgba(22, 47, 37, 0.12);
  --soft-shadow: 0 18px 55px rgba(18, 33, 37, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--blue);
  font-size: 17px;
  line-height: 1.15;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #42504f;
  font-weight: 650;
}

.main-nav a {
  white-space: nowrap;
}

.nav-donate,
.button,
.proceed-button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 22px rgba(67, 173, 73, 0.22);
}

.nav-donate {
  padding: 12px 18px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #eef2ef;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.8) 38%, rgba(255, 255, 255, 0.2) 68%),
    url("https://images.unsplash.com/photo-1593113630400-ea4288922497?auto=format&fit=crop&w=1800&q=80") center / cover;
  filter: grayscale(0.1);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0 116px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 430px);
  align-items: center;
  gap: 40px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  color: #0d1416;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero p:not(.eyebrow) {
  max-width: 600px;
  color: #31403f;
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  font-weight: 800;
}

.button.secondary {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: none;
}

.impact-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -54px auto 70px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.impact-strip article {
  min-height: 118px;
  padding: 24px;
  background: var(--paper);
}

.impact-strip strong {
  display: block;
  color: var(--green-dark);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.impact-strip span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.page-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 80px;
}

.content-flow {
  min-width: 0;
}

.section {
  padding: 68px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.section:first-child {
  padding-top: 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.018em;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
}

.about p,
.initiative-card p,
.faq p,
.story p,
.join-panel p {
  color: #465654;
  font-size: 17px;
  line-height: 1.7;
}

.mission-panel {
  padding: 24px;
  border: 1px solid #bdebc5;
  border-radius: 8px;
  background: var(--soft);
}

.mission-panel h3 {
  margin: 0 0 12px;
}

.mission-panel ul {
  margin: 0;
  padding-left: 20px;
  color: #31403f;
  line-height: 1.8;
}

.initiative-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.initiative-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.initiative-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.initiative-card div {
  padding: 20px;
}

.initiative-card h3,
.join-panel h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.initiative-card p,
.join-panel p {
  margin: 0;
}

.support-section {
  border-bottom: 0;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 54px;
  align-items: start;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 250, 246, 0.95), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at top right, rgba(194, 155, 82, 0.14), transparent 30%);
  box-shadow: var(--soft-shadow);
}

.support-layout .section-heading {
  margin-bottom: 0;
}

.support-layout .section-heading p:not(.eyebrow) {
  margin: 20px 0 0;
  color: #4d5d5a;
  font-size: 18px;
  line-height: 1.75;
}

.support-routes {
  display: grid;
  gap: 0;
  border-top: 1px solid #d7e5dd;
}

.support-routes article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid #d7e5dd;
}

.support-routes span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.support-routes h3 {
  margin: 0 0 7px;
  color: #173238;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.support-routes p {
  margin: 0;
  color: #5b6b68;
  font-size: 16px;
  line-height: 1.7;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f7f8;
}

.tab-button {
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #69706f;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.active {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.donor-list {
  display: none;
}

.donor-list.active {
  display: grid;
  gap: 12px;
}

.donor-list article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-bottom-color: var(--green);
  border-radius: 8px;
  background: #fff;
}

.donor-list span {
  color: #626d6b;
  font-size: 20px;
  font-weight: 800;
}

.donor-list b,
.donor-list small {
  display: block;
}

.donor-list b {
  font-size: 18px;
}

.donor-list small {
  margin-top: 3px;
  color: var(--green-dark);
  font-weight: 800;
}

.donor-list strong {
  color: #0b9b45;
  font-size: 26px;
}

.join-panel {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid #9ce9a9;
  border-radius: 8px;
  background: #f0fff2;
}

.story blockquote {
  margin: 0;
  padding: 34px;
  border-left: 5px solid var(--green);
  background: #f9fbfa;
}

.story blockquote > p {
  margin-top: 0;
  font-size: 22px;
}

.story footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.story footer img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 50%;
}

.story footer b,
.story footer small {
  display: block;
}

.story footer small {
  margin-top: 4px;
  color: var(--muted);
}

.faq details {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

.faq details + details {
  margin-top: 0;
}

.faq summary {
  cursor: pointer;
  padding: 24px 0;
  color: #173238;
  background: transparent;
  font-size: 19px;
  font-weight: 800;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "-";
}

.faq p {
  margin: 0;
  max-width: 780px;
  padding: 0 0 24px;
  color: #5b6b68;
}

.donation-shell {
  width: 100%;
  max-width: 430px;
  justify-self: end;
}

.donation-card,
.mock-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.donation-card {
  padding: 22px;
}

.mode-switch,
.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mode-switch button,
.amount-grid button {
  min-height: 40px;
  border: 1px solid #d8dedc;
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.mode-switch button.active,
.amount-grid button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 10px 18px rgba(67, 173, 73, 0.22);
}

.other-amount-button {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  margin: 20px 0 12px;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.55;
}

.form-label small {
  color: #465654;
  font-weight: 500;
}

#customAmount {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid #d8dedc;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px transparent, 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 18px;
}

.custom-amount-field {
  display: block;
  margin-top: 12px;
  color: #31403f;
  font-weight: 800;
}

.custom-amount-field[hidden] {
  display: none;
}

.meal-count {
  text-align: center;
  font-size: 16px;
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 16px 0 18px;
}

.payment-logos span {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 5px;
  color: #21405f;
  background: #eef4ff;
  font-size: 12px;
  font-weight: 900;
}

.proceed-button {
  width: 100%;
  min-height: 52px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 850;
}

.tax-note {
  margin: 12px 0 16px;
  text-align: center;
  color: #273331;
  font-size: 14px;
}

.donation-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 16px;
}

.bank-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 17px;
}

.bank-link span {
  color: var(--green-dark);
  text-decoration: underline;
}

.bank-details {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #bdebc5;
  border-radius: 8px;
  background: var(--soft);
  color: #31403f;
  font-size: 14px;
}

.bank-details p {
  margin: 5px 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(16px, calc((100vw - 1180px) / 2));
  color: #dce7e3;
  background: #19302f;
}

.site-footer div,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.site-footer nav a {
  color: #dce7e3;
}

.floating-call {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 28px rgba(16, 96, 49, 0.26);
  font-size: 25px;
}

.mock-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 21, 22, 0.55);
}

.mock-modal[hidden] {
  display: none;
}

.mock-dialog {
  position: relative;
  width: min(480px, 100%);
  padding: 28px;
}

.mock-dialog h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.mock-dialog label {
  display: block;
  margin-top: 16px;
  color: #31403f;
  font-weight: 750;
}

.mock-dialog input {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
}

.complete-payment {
  margin-top: 22px;
}

.success-message {
  margin: 16px 0 0;
  padding: 12px;
  border-radius: 6px;
  color: var(--green-dark);
  background: var(--soft);
  text-align: center;
  font-weight: 800;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 14px;
    font-size: 14px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero .donation-shell {
    max-width: 560px;
    justify-self: start;
  }

  .support-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .floating-call {
    display: none;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 72px;
  }

  .brand span {
    max-width: 210px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .main-nav.open {
    display: grid;
  }

  .nav-donate {
    text-align: center;
  }

  .hero {
    min-height: 560px;
    background: #f4f8f5;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 45%, rgba(255, 255, 255, 0.86) 100%),
      url("https://images.unsplash.com/photo-1593113630400-ea4288922497?auto=format&fit=crop&w=1200&q=80") 62% top / cover;
    opacity: 0.78;
  }

  .hero-content {
    padding: 58px 0 48px;
  }

  .hero-copy {
    padding-top: 6px;
  }

  .hero h1,
  .hero p:not(.eyebrow) {
    max-width: 100%;
  }

  .impact-strip,
  .initiative-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .impact-strip {
    margin: 24px auto 34px;
  }

  .section {
    padding: 46px 0;
  }

  .support-layout {
    padding: 28px;
  }

  .support-routes article {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .donor-list article {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank name amount"
      "rank meta amount";
    align-items: center;
    min-height: auto;
    padding: 20px;
    gap: 6px 14px;
  }

  .donor-list span {
    grid-area: rank;
    align-self: start;
  }

  .donor-list b {
    grid-area: name;
    min-width: 0;
  }

  .donor-list small {
    grid-area: meta;
    margin-top: 0;
    line-height: 1.45;
  }

  .donor-list strong {
    grid-area: amount;
    align-self: center;
    justify-self: end;
    white-space: nowrap;
  }

  .join-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 9px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.65;
  }

  .support-layout {
    padding: 24px 20px;
  }

  .support-routes article {
    grid-template-columns: 1fr;
  }

  .tabs,
  .mode-switch,
  .amount-grid {
    grid-template-columns: 1fr;
  }

  .donor-list article {
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-areas:
      "rank name"
      "rank meta"
      "rank amount";
  }

  .donor-list strong {
    justify-self: start;
    margin-top: 8px;
  }

  .donation-card {
    padding: 18px;
  }

}
