/* Author: Fahadbin Alam (fma52), 4/19/26 */
/* Mod by Codex, 4/19/26 */
/* From Charity Board for Students issue, 4/19/26 */
:root {
  --ink: #14344a;
  --ink-soft: #3d5668;
  --paper: #ffffff;
  --sand: #f8f4ea;
  --sky: #d9eff7;
  --ocean: #147fa5;
  --leaf: #2f8f65;
  --sun: #f0a33a;
  --line: #d8e3e9;
  --shadow: 0 14px 32px rgba(20, 52, 74, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(170deg, #fffefb 0%, #f4f9fc 60%, #f0f7fb 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0 0 0.65rem;
  line-height: 1.2;
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

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

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

.background-shape {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.5;
}

.background-shape-top {
  width: 340px;
  height: 340px;
  background: #9adbf3;
  top: -120px;
  right: -110px;
}

.background-shape-bottom {
  width: 400px;
  height: 400px;
  background: #b1e9ca;
  bottom: -210px;
  left: -140px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(20, 52, 74, 0.08);
}

.header-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--ocean), var(--leaf));
  box-shadow: 0 8px 18px rgba(20, 127, 165, 0.26);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.brand-text {
  font-size: 1.05rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  font-weight: 600;
}

.main-nav a {
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
  color: var(--ink);
  border-color: var(--sun);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(20, 52, 74, 0.16);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--leaf), #3ea173);
}

.button-outline {
  color: var(--ocean);
  border-color: rgba(20, 127, 165, 0.3);
  background: #fff;
}

.hero {
  padding: 3.1rem 0 2.1rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.8rem;
}

.lead {
  max-width: 58ch;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.impact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.2rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(224, 244, 250, 0.95));
  box-shadow: var(--shadow);
}

.impact-panel h2 {
  font-size: 1.36rem;
  margin-bottom: 1rem;
}

.impact-panel ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.95rem;
}

.impact-panel li {
  border-left: 3px solid var(--ocean);
  padding-left: 0.8rem;
}

.impact-panel strong {
  display: block;
  color: var(--leaf);
  font-size: 1.45rem;
  font-weight: 800;
}

.impact-panel span {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.section {
  margin: 1.8rem auto;
  padding: 1.3rem 0;
}

.section-heading {
  margin-bottom: 1.2rem;
  max-width: 70ch;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
}

.mission-grid,
.transparency-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(20, 52, 74, 0.06);
}

.program-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-card {
  border: 1px solid rgba(20, 127, 165, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff, #f9fdff);
  box-shadow: 0 10px 20px rgba(20, 52, 74, 0.08);
}

.program-card ul {
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

.program-card li + li {
  margin-top: 0.35rem;
}

.donation-layout {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.donation-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.amount-grid {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.amount-grid legend {
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.amount-grid label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbfc;
  padding: 0.55rem 0.7rem;
  font-weight: 700;
}

.custom-amount {
  display: grid;
  gap: 0.42rem;
  margin-top: 0.95rem;
  font-weight: 700;
}

.custom-amount input,
.custom-amount select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0.62rem 0.72rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.custom-amount input:focus,
.custom-amount select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ocean);
  outline: 2px solid rgba(20, 127, 165, 0.2);
}

.payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.payments span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: #f8fcff;
  font-size: 0.86rem;
}

.donate-button {
  width: 100%;
  margin-top: 1rem;
}

.donation-note {
  margin-top: 0.7rem;
  font-size: 0.9rem;
}

.donation-status {
  min-height: 1.3rem;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--leaf);
}

.donation-status.error {
  color: #b53a2f;
}

.donation-benefits ul {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}

.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 127, 165, 0.2);
  background: linear-gradient(140deg, #f6fbff, #f7fff9);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.4rem;
  background: linear-gradient(155deg, #0f3d59, #115675);
  color: #f2f9ff;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.site-footer h2 {
  margin-bottom: 0.8rem;
}

.site-footer p {
  color: rgba(242, 249, 255, 0.9);
  margin-bottom: 0.4rem;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.contact-form textarea {
  resize: vertical;
}

.reveal {
  animation: rise-in 0.8s ease both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero,
  .donation-layout,
  .mission-grid,
  .program-grid,
  .transparency-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--max-width), calc(100% - 1.4rem));
  }

  .hero {
    padding-top: 2.2rem;
  }

  .amount-grid {
    grid-template-columns: 1fr;
  }
}
