/* =========================================================
   صدای مهر غزل — Charity Landing Page
   Put Vazirmatn font files beside this file and update the
   source filenames below if your font files are named differently.
   ========================================================= */

@font-face {
  font-family: "Vazirmatn";
  src: url("Vazirmatn.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #17322d;
  --muted: #6d7f7a;
  --cream: #fbf8f1;
  --paper: #fffdf8;
  --soft: #f1f4ed;
  --green: #0f766e;
  --green-deep: #0d514b;
  --green-soft: #dbece3;
  --orange: #d78951;
  --orange-soft: #f5e3d1;
  --line: #dbe4df;
  --white: #ffffff;
  --shadow: 0 25px 70px rgba(20, 55, 48, .10);
  --shadow-small: 0 12px 35px rgba(20, 55, 48, .08);
  --radius: 28px;
  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

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

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

.section {
  position: relative;
  padding: 120px 0;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.site-header.scrolled {
  background: rgba(251, 248, 241, .84);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(23, 50, 45, .08);
  box-shadow: 0 10px 35px rgba(20, 55, 48, .05);
}

.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 9px 24px rgba(15, 118, 110, .18);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 800;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.desktop-nav {
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  color: #62736e;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 0;
  transition: color .2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width .25s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 15px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease;
  font-weight: 700;
}

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

.button-small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 12px;
}

.button-large {
  min-height: 58px;
  padding: 0 24px;
}

.button-primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 15px 30px rgba(15, 118, 110, .17);
}

.button-primary:hover {
  background: var(--green-deep);
  box-shadow: 0 18px 38px rgba(15, 118, 110, .22);
}

.button-primary svg,
.donate-submit svg {
  width: 19px;
  height: 19px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(15, 118, 110, .08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--green-deep);
  border-radius: 10px;
  transition: transform .25s ease, opacity .25s ease;
}

.mobile-menu {
  display: none;
}

.hero {
  min-height: 920px;
  padding-top: 160px;
  padding-bottom: 90px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 81% 18%, rgba(215, 137, 81, .12), transparent 28%),
    radial-gradient(circle at 18% 62%, rgba(72, 143, 128, .12), transparent 34%),
    linear-gradient(180deg, #faf6ed 0%, #fbf8f1 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 95px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(215, 137, 81, .11);
}

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

.hero h1 {
  max-width: 630px;
  margin-bottom: 26px;
  font-size: clamp(52px, 6vw, 84px);
  line-height: 1.15;
  letter-spacing: -.055em;
  font-weight: 800;
}

.hero h1 span {
  color: var(--green);
  position: relative;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  right: 0;
  left: 8%;
  bottom: -7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-soft);
  z-index: -1;
  transform: rotate(-1deg);
}

.hero-lead {
  max-width: 535px;
  margin-bottom: 34px;
  color: #687975;
  font-size: 17px;
  line-height: 2.25;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.text-link,
.story-link,
.outline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.text-link span,
.story-link span,
.outline-link span {
  display: inline-grid;
  place-items: center;
  transition: transform .25s var(--ease);
}

.text-link:hover span,
.story-link:hover span,
.outline-link:hover span {
  transform: translateX(-5px);
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 52px;
}

.avatar-stack {
  display: flex;
  direction: ltr;
}

.avatar-stack span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: -10px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 800;
}

.avatar-stack span:nth-child(2) { background: #f2dac6; }
.avatar-stack span:nth-child(3) { background: #d9e0f0; }
.avatar-stack span:nth-child(4) { background: #e4edc9; }

.trust-row strong,
.trust-row small {
  display: block;
}

.trust-row strong {
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 700;
}

.trust-row small {
  color: var(--muted);
  font-size: 10px;
}

.hero-visual {
  position: relative;
}

.visual-card {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(20, 66, 59, .09);
  border-radius: 34px;
  background: rgba(255, 253, 248, .78);
  box-shadow: 0 35px 90px rgba(25, 57, 50, .15);
  transform: rotate(2.2deg);
  transition: transform .6s var(--ease);
}

.visual-card:hover {
  transform: rotate(0deg) translateY(-7px);
}

.visual-topline {
  min-height: 49px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4cae79;
  box-shadow: 0 0 0 6px rgba(76, 174, 121, .10);
}

.portrait-frame {
  overflow: hidden;
  border-radius: 24px;
  background: var(--green-soft);
}

.portrait-art {
  position: relative;
  min-height: 560px;
}

.portrait-art svg {
  width: 100%;
  height: 560px;
}

.image-caption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 100px;
  background: rgba(23, 50, 45, .63);
  color: white;
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 600;
}

.story-note {
  padding: 20px 11px 5px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.story-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
}

.story-note h3 {
  max-width: 350px;
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.55;
}

.story-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
}

.floating-stat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border: 1px solid rgba(20, 66, 59, .08);
  border-radius: 15px;
  background: rgba(255, 253, 248, .92);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(13px);
  animation: float 5s ease-in-out infinite;
}

.floating-stat strong,
.floating-stat small {
  display: block;
  line-height: 1.35;
}

.floating-stat strong {
  font-size: 12px;
  font-weight: 800;
}

.floating-stat small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.stat-one {
  left: -35px;
  bottom: 134px;
}

.stat-two {
  top: 114px;
  right: -46px;
  animation-delay: -2s;
}

.stat-icon,
.check-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 17px;
}

.check-icon {
  background: var(--green-soft);
  color: var(--green);
  font-size: 16px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.hero-glow-one {
  width: 320px;
  height: 320px;
  top: 4%;
  left: -120px;
  background: rgba(211, 235, 224, .42);
}

.hero-glow-two {
  width: 210px;
  height: 210px;
  right: 28%;
  bottom: 5%;
  background: rgba(244, 225, 205, .45);
}

.scroll-cue {
  position: absolute;
  right: 50%;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9ca9a5;
  font-size: 9px;
  transform: translateX(50%);
}

.scroll-cue i {
  width: 30px;
  height: 1px;
  background: #b8c4c0;
}

.ticker-section {
  overflow: hidden;
  background: var(--green);
  color: rgba(255, 255, 255, .85);
}

.ticker-track {
  width: max-content;
  padding: 17px 0;
  display: flex;
  align-items: center;
  gap: 35px;
  animation: ticker 30s linear infinite;
  font-size: 12px;
  font-weight: 600;
}

.ticker-track i {
  color: #d5eadc;
  font-style: normal;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

.section-heading {
  margin-bottom: 62px;
}

.section-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.section-heading h2,
.contact-copy h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 4.5vw, 63px);
  line-height: 1.32;
  letter-spacing: -.045em;
  font-weight: 800;
}

.section-heading h2 em,
.contact-copy h2 em,
.donate-copy h2 em {
  color: var(--green);
  font-style: normal;
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 80px;
  align-items: end;
}

.heading-side {
  padding-bottom: 3px;
}

.heading-side p,
.impact-heading > p {
  max-width: 420px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2.1;
}

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

.principle-card {
  position: relative;
  min-height: 270px;
  padding: 34px 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.36);
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}

.principle-card:hover {
  transform: translateY(-7px);
  border-color: rgba(15, 118, 110, .18);
  box-shadow: var(--shadow-small);
}

.principle-number {
  position: absolute;
  top: 25px;
  left: 27px;
  color: #b9c5c1;
  font-size: 10px;
}

.principle-icon {
  width: 51px;
  height: 51px;
  margin-bottom: 40px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 24px;
}

.principle-card:nth-child(2) .principle-icon {
  background: var(--orange-soft);
  color: var(--orange);
}

.principle-card:nth-child(3) .principle-icon {
  background: #e7e8f5;
  color: #6a72a4;
}

.principle-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 800;
}

.principle-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.95;
}

.impact-section {
  background: var(--soft);
}

.impact-heading {
  display: grid;
  grid-template-columns: 1fr .65fr;
  align-items: end;
  gap: 90px;
}

.metrics-card {
  margin-bottom: 44px;
  padding: 30px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(20, 66, 59, .10);
  border-radius: var(--radius);
  background: rgba(255,255,255,.58);
  box-shadow: var(--shadow-small);
}

.metric {
  position: relative;
  text-align: center;
  padding: 7px 20px;
}

.metric:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  height: 62px;
  width: 1px;
  background: var(--line);
}

.metric strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -.06em;
}

.metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.impact-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.impact-story,
.impact-bars {
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(20, 66, 59, .08);
}

.impact-story {
  min-height: 320px;
  padding: 36px;
}

.story-quote {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: .65;
}

.impact-story blockquote {
  max-width: 560px;
  margin: 25px 0 40px;
  font-size: 24px;
  line-height: 1.85;
  letter-spacing: -.02em;
  font-weight: 700;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-dot {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-size: 14px;
  font-weight: 800;
}

.quote-author strong,
.quote-author small {
  display: block;
}

.quote-author strong {
  font-size: 11px;
}

.quote-author small {
  color: var(--muted);
  font-size: 9px;
}

.impact-bars {
  padding: 36px 34px;
}

.bar-row {
  margin-bottom: 23px;
}

.bar-row > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bar-row span,
.bar-row strong {
  font-size: 10px;
}

.bar-row strong {
  color: var(--green);
}

.bar-track {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 30px;
  background: #e7eeea;
}

.bar-track > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: var(--green);
}

.bar-row:nth-child(2) .bar-track > span { background: #8aa89a; }
.bar-row:nth-child(3) .bar-track > span { background: #d59c6f; }
.bar-row:nth-child(4) .bar-track > span { background: #598c80; }

.bars-note {
  display: block;
  color: #9ba8a4;
  font-size: 8px;
  text-align: left;
}

.stories-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.outline-link {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.outline-link:hover {
  background: var(--paper);
  border-color: #bdcfca;
  transform: translateY(-2px);
}

.stories-grid {
  display: grid;
  grid-template-columns: 1.15fr .925fr .925fr;
  gap: 20px;
}

.story-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.44);
  transition: transform .35s var(--ease), box-shadow .35s ease;
}

.story-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-small);
}

.story-visual {
  position: relative;
  height: 265px;
  overflow: hidden;
}

.story-visual > span {
  position: absolute;
  top: 19px;
  right: 20px;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 100px;
  color: white;
  background: rgba(19, 40, 37, .25);
  backdrop-filter: blur(8px);
  font-size: 8px;
  font-weight: 700;
}

.story-visual-one {
  background: linear-gradient(145deg, #d7e9dc, #f3ddc8);
}

.story-visual-two {
  background: linear-gradient(145deg, #e8ddf2, #d8e9e4);
}

.story-visual-three {
  background: linear-gradient(145deg, #f3dccb, #e5ede1);
}

.story-graphic {
  position: absolute;
  inset: 0;
}

.sun {
  position: absolute;
  width: 82px;
  height: 82px;
  top: 45px;
  left: 55px;
  border-radius: 50%;
  background: #f3b976;
}

.hill {
  position: absolute;
  right: -10%;
  bottom: -20%;
  width: 125%;
  height: 62%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: rotate(-5deg);
}

.hill-back { background: #a4c4aa; bottom: 5%; }
.hill-front { background: #5c9182; right: -30%; bottom: -31%; }

.person-shape {
  position: absolute;
  right: 33%;
  bottom: 23%;
  width: 78px;
  height: 125px;
  border-radius: 50px 50px 8px 8px;
  background: #355f57;
  transform: rotate(-5deg);
}

.person-shape::before {
  content: "";
  position: absolute;
  top: -41px;
  right: 18px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #e6ad82;
}

.book-shape {
  position: absolute;
  top: 48%;
  right: 50%;
  transform: translate(50%, -50%) rotate(-7deg);
  width: 116px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #7b74a6;
  color: #faf7ec;
  font-size: 31px;
  box-shadow: 18px 18px 0 rgba(89, 82, 129, .14);
}

.heart-line {
  position: absolute;
  top: 46%;
  right: 50%;
  transform: translate(50%, -50%);
  font-family: Georgia, serif;
  font-size: 150px;
  line-height: 1;
  color: #c87a55;
  opacity: .85;
}

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

.story-tag {
  display: inline-block;
  margin-bottom: 11px;
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
}

.story-body h3 {
  min-height: 56px;
  margin-bottom: 11px;
  font-size: 18px;
  line-height: 1.7;
}

.story-body p {
  min-height: 61px;
  margin-bottom: 21px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.story-link {
  color: var(--green);
  font-size: 10px;
}

.donate-section {
  padding: 120px 0;
  background: var(--cream);
}

.donate-shell {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 55px;
  align-items: center;
  padding: 55px;
  overflow: hidden;
  border-radius: 38px;
  background:
    radial-gradient(circle at 85% 15%, rgba(209, 231, 222, .23), transparent 28%),
    linear-gradient(135deg, #133b35 0%, #0b5148 100%);
  box-shadow: 0 35px 90px rgba(15, 70, 61, .23);
}

.light-label {
  color: #e7b58b;
}

.donate-copy {
  max-width: 490px;
  color: white;
}

.donate-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(40px, 4.7vw, 64px);
  line-height: 1.3;
  letter-spacing: -.05em;
}

.donate-copy h2 em {
  color: #dcefe4;
}

.donate-copy > p {
  max-width: 440px;
  margin-bottom: 32px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  line-height: 2.15;
}

.secure-note {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.secure-note > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.10);
  color: #d6eee1;
  font-size: 11px;
}

.secure-note strong,
.secure-note small {
  display: block;
}

.secure-note strong {
  font-size: 10px;
}

.secure-note small {
  margin-top: 2px;
  color: rgba(255,255,255,.45);
  font-size: 8px;
}

.donate-panel {
  padding: 29px;
  border-radius: 25px;
  background: #fffdf8;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}

.panel-head span {
  font-size: 13px;
  font-weight: 800;
}

.panel-head small {
  color: var(--muted);
  font-size: 9px;
}

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

.amount-btn {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.amount-btn:hover,
.amount-btn.active {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

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

.custom-amount {
  display: block;
  margin: 20px 0 14px;
}

.custom-amount > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
}

.custom-amount > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 51px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.custom-amount input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
}

.custom-amount > div > span {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 9px;
}

.donate-submit {
  width: 100%;
  min-height: 53px;
  color: white;
  background: var(--green);
}

.donate-submit:hover {
  background: var(--green-deep);
}

.panel-footnote {
  display: block;
  margin-top: 11px;
  color: #9ba6a2;
  font-size: 8px;
  text-align: center;
}

.contact-section {
  padding-top: 90px;
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 110px;
  align-items: start;
}

.contact-copy {
  padding-top: 20px;
}

.contact-copy h2 {
  margin-bottom: 22px;
}

.contact-copy > p {
  max-width: 410px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2.1;
}

.contact-links {
  margin-top: 42px;
  display: grid;
  gap: 10px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.contact-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.contact-links small,
.contact-links strong {
  display: block;
}

.contact-links small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 8px;
}

.contact-links strong {
  font-size: 11px;
}

.contact-form {
  padding: 37px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.form-heading {
  margin-bottom: 26px;
}

.form-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
}

.form-heading h3 {
  margin-bottom: 0;
  font-size: 22px;
  font-weight: 800;
}

.contact-form label {
  display: block;
  margin-bottom: 15px;
}

.contact-form label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  resize: vertical;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input {
  min-height: 48px;
}

.contact-form textarea {
  min-height: 110px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(15, 118, 110, .45);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .08);
}

.contact-form .button {
  min-height: 50px;
  padding: 0 22px;
}

.button-dark {
  color: white;
  background: var(--ink);
}

.button-dark:hover {
  background: #0d2824;
}

.form-status {
  min-height: 17px;
  margin: 10px 0 0;
  color: var(--green);
  font-size: 9px;
}

.site-footer {
  padding: 48px 0 25px;
  background: #102f2a;
  color: rgba(255,255,255,.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr .5fr;
  gap: 50px;
  align-items: start;
}

.footer-brand .brand {
  color: white;
}

.footer-brand .brand-mark {
  background: rgba(255,255,255,.10);
  box-shadow: none;
}

.footer-brand .brand-copy small {
  color: rgba(255,255,255,.38);
}

.footer-brand p {
  max-width: 410px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.42);
  font-size: 10px;
  line-height: 2;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(70px, 1fr));
  gap: 10px 24px;
  padding-top: 8px;
}

.footer-links a {
  color: rgba(255,255,255,.58);
  font-size: 10px;
  transition: color .2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-social {
  padding-top: 8px;
}

.footer-social > span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255,255,255,.4);
  font-size: 9px;
}

.footer-social > div {
  display: flex;
  gap: 7px;
}

.footer-social a {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: white;
  font-size: 9px;
  transition: background .2s ease, transform .2s ease;
}

.footer-social a:hover {
  background: rgba(255,255,255,.10);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.28);
  font-size: 8px;
}

.back-to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 45;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(20, 66, 59, .10);
  border-radius: 13px;
  color: var(--green);
  background: rgba(255, 253, 248, .88);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast {
  position: fixed;
  right: 50%;
  bottom: 24px;
  z-index: 100;
  padding: 11px 18px;
  border-radius: 100px;
  background: var(--ink);
  color: white;
  font-size: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(50%, 15px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(50%, 0);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Only hide elements when JavaScript is actually running */
body.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
}

body.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: .12s;
}

.reveal-delay-2 {
  transition-delay: .22s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: .12s;
}

.reveal-delay-2 {
  transition-delay: .22s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 1050px) {
  .desktop-nav {
    gap: 18px;
  }

  .hero-grid {
    gap: 55px;
  }

  .stat-one { left: -17px; }
  .stat-two { right: -17px; }

  .split-heading,
  .impact-heading {
    gap: 45px;
  }

  .contact-grid {
    gap: 60px;
  }

  .donate-shell {
    gap: 35px;
    padding: 44px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 34px), 680px);
  }

  .section {
    padding: 85px 0;
  }

  .site-header {
    background: rgba(251, 248, 241, .87);
    backdrop-filter: blur(16px);
  }

  .nav-wrap {
    min-height: 72px;
  }

  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-right: auto;
  }

  .mobile-menu {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  padding: 0 17px;
  border-top: 1px solid transparent;
  background: rgba(251, 248, 241, .96);
  transition:
    max-height .35s var(--ease),
    padding .35s ease,
    border-color .35s ease;
}

.mobile-menu.open {
  max-height: 500px;
  padding: 12px 17px 20px;
  border-top-color: var(--line);
}

.mobile-menu a:not(.button) {
  padding: 10px 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid rgba(20, 66, 59, .06);
}

.mobile-menu .button {
  margin-top: 13px;
  min-height: 47px;
  font-size: 11px;
}

  .hero {
    min-height: auto;
    padding-top: 125px;
    padding-bottom: 75px;
  }

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

  .hero-copy {
    max-width: none;
    text-align: center;
  }

  .eyebrow,
  .hero-actions,
  .trust-row {
    justify-content: center;
  }

  .hero h1 {
    max-width: 680px;
    margin-inline: auto;
    font-size: clamp(47px, 11vw, 73px);
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-visual {
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
  }

  .visual-card {
    transform: none;
  }

  .visual-card:hover {
    transform: none;
  }

  .stat-one { left: -15px; bottom: 110px; }
  .stat-two { top: 93px; right: -15px; }

  .scroll-cue {
    display: none;
  }

  .split-heading,
  .impact-heading,
  .contact-grid,
  .donate-shell {
    grid-template-columns: 1fr;
  }

  .split-heading {
    gap: 25px;
  }

  .heading-side p,
  .impact-heading > p {
    max-width: 100%;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .principle-card {
    min-height: auto;
    padding: 28px;
  }

  .principle-icon {
    margin-bottom: 25px;
  }

  .metrics-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
  }

  .metric:nth-child(2)::after {
    display: none;
  }

  .metric:nth-child(2n)::after {
    display: none;
  }

  .metric:nth-child(odd)::after {
    display: block;
  }

  .impact-lower {
    grid-template-columns: 1fr;
  }

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

  .story-feature {
    grid-column: auto;
  }

  .story-visual {
    height: 250px;
  }

  .donate-shell {
    padding: 38px 25px;
    gap: 35px;
  }

  .donate-copy {
    max-width: none;
  }

  .contact-grid {
    gap: 45px;
  }

  .contact-copy {
    padding-top: 0;
  }

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

  .footer-social {
    padding-top: 0;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 28px), 470px);
  }

  .section {
    padding: 73px 0;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-top: 110px;
  }

  .hero h1 {
    font-size: clamp(41px, 13vw, 61px);
  }

  .hero-lead {
    font-size: 14px;
    line-height: 2.1;
  }

  .hero-actions {
    flex-direction: column;
    gap: 17px;
  }

  .button-large {
    width: 100%;
  }

  .trust-row {
    margin-top: 35px;
    text-align: right;
    justify-content: flex-start;
  }

  .hero-visual {
    width: 100%;
  }

  .visual-card {
    padding: 10px;
    border-radius: 25px;
  }

  .portrait-art,
  .portrait-art svg {
    min-height: 420px;
    height: 420px;
  }

  .story-note {
    padding: 15px 6px 2px;
  }

  .story-note h3 {
    font-size: 14px;
  }

  .floating-stat {
    padding: 9px 11px;
  }

  .floating-stat strong {
    font-size: 10px;
  }

  .floating-stat small {
    font-size: 8px;
  }

  .stat-one { left: -7px; bottom: 97px; }
  .stat-two { top: 73px; right: -7px; }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 39px;
  }

  .metrics-card {
    padding: 19px 4px;
  }

  .metric {
    padding: 4px 8px;
  }

  .metric strong {
    font-size: 31px;
  }

  .metric span {
    font-size: 8px;
  }

  .impact-story {
    min-height: auto;
    padding: 27px;
  }

  .impact-story blockquote {
    font-size: 18px;
    line-height: 1.85;
  }

  .impact-bars {
    padding: 27px 25px;
  }

  .stories-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .story-body {
    padding: 21px;
  }

  .story-body h3 {
    min-height: auto;
    font-size: 16px;
  }

  .story-body p {
    min-height: auto;
  }

  .donate-section {
    padding: 80px 0;
  }

  .donate-shell {
    padding: 31px 17px;
    border-radius: 29px;
  }

  .donate-copy h2 {
    font-size: 42px;
  }

  .donate-panel {
    padding: 21px 15px;
    border-radius: 20px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .contact-form {
    padding: 25px 19px;
  }

  .back-to-top {
    left: 14px;
    bottom: 14px;
  }
}
