/* ============ Design tokens ============ */
:root {
  --bg: #fdfaf5;
  --bg-tint: #f6efe4;
  --ink: #241d17;
  --ink-soft: #5c5248;
  --primary: #e8630a;
  --primary-dark: #c95104;
  --deep: #1f3d33;
  --deep-2: #163028;
  --sand: #e9dcc6;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(36, 29, 23, 0.10);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============ Type helpers ============ */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.9rem;
}
.eyebrow--light { color: #f4b183; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 1rem;
}

.section__sub {
  color: var(--ink-soft);
  max-width: 46ch;
  margin-inline: auto;
}

.accent { color: var(--primary); }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(232, 99, 10, 0.35);
}
.btn--primary:hover { background: var(--primary-dark); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.24); }

.btn--outline {
  color: var(--deep);
  border-color: var(--deep);
  background: transparent;
}
.btn--outline:hover { background: var(--deep); color: #fff; }

.btn--sm { padding: 0.55rem 1.2rem; font-size: 0.88rem; }
.btn--full { display: block; text-align: center; width: 100%; }

/* ============ Navbar ============ */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding: 0.9rem 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.navbar.is-scrolled {
  background: rgba(253, 250, 245, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(36, 29, 23, 0.08);
  padding: 0.55rem 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  transition: color 0.25s ease;
}
.navbar.is-scrolled .brand { color: var(--deep); }

.brand__mark { width: 34px; height: 34px; display: inline-flex; }
.brand__mark svg { width: 100%; height: 100%; }

.brand__text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand__text em { font-style: normal; color: var(--primary); }

.brand--light { color: #fff; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav__link {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--primary); }
.navbar.is-scrolled .nav__link { color: var(--ink-soft); }
.navbar.is-scrolled .nav__link:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.navbar.is-scrolled .nav-toggle span { background: var(--deep); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 6rem;
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(22, 48, 40, 0.94) 0%, rgba(31, 61, 51, 0.86) 45%, rgba(31, 61, 51, 0.55) 100%),
    url("https://images.unsplash.com/photo-1547471080-7cc2caa01a7e?auto=format&fit=crop&w=1600&q=70") center/cover no-repeat;
  background-color: var(--deep-2);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, transparent 90%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 1.2rem;
}

.hero__lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 54ch;
  margin-bottom: 1.8rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.6rem;
}

.hero__stats {
  display: flex;
  gap: 2.6rem;
  list-style: none;
  flex-wrap: wrap;
}
.hero__stats li { display: grid; gap: 0.1rem; }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: #f4b183;
}
.hero__stats span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero__media { position: relative; }

.hero__photo {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
  background: var(--deep);
}
.hero__photo img {
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  width: 100%;
}

.hero__card {
  position: absolute;
  left: -1.6rem;
  bottom: 1.8rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 0.8rem 1.1rem;
  box-shadow: var(--shadow);
  max-width: 260px;
}
.hero__card-icon { font-size: 1.5rem; }
.hero__card strong { font-size: 0.92rem; display: block; }
.hero__card p { font-size: 0.8rem; color: var(--ink-soft); }

.hero__wave {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 90px; display: block; }

/* ============ Sections ============ */
.section { padding: 5.5rem 0; }
.section--tint { background: var(--bg-tint); }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.2rem;
}

/* ============ About ============ */
.about__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.about__media { position: relative; }
.about__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  background: var(--sand);
}

.about__badge {
  position: absolute;
  right: -1rem;
  bottom: -1.2rem;
  background: var(--deep);
  color: #fff;
  padding: 1rem 1.4rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.05rem;
}
.about__badge strong { font-family: var(--font-display); font-size: 1.25rem; }
.about__badge span { font-size: 0.8rem; color: rgba(255,255,255,0.75); }

.about__content p { color: var(--ink-soft); margin-bottom: 1.4rem; }

.checklist {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.32rem;
  width: 1.1rem; height: 1.1rem;
  background: var(--primary);
  border-radius: 4px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ============ Program cards ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: 0 6px 24px rgba(36, 29, 23, 0.06);
  border: 1px solid rgba(36, 29, 23, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(36, 29, 23, 0.12);
}

.card__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--tone, var(--primary));
  background: color-mix(in srgb, var(--tone, var(--primary)) 12%, white);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 28px; height: 28px; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ============ Impact ============ */
.impact {
  background:
    linear-gradient(120deg, rgba(22, 48, 40, 0.96), rgba(31, 61, 51, 0.9)),
    url("https://images.unsplash.com/photo-1542810634-71277d95dcbb?auto=format&fit=crop&w=1600&q=60") center/cover no-repeat;
  background-color: var(--deep-2);
  color: #fff;
}

.impact__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.impact__content p { color: rgba(255, 255, 255, 0.82); margin-bottom: 1.6rem; }

.quote {
  border-left: 3px solid var(--primary);
  padding: 0.4rem 0 0.4rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: #fff;
}
.quote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.impact__stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.impact__stats li {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: grid;
  gap: 0.2rem;
  backdrop-filter: blur(4px);
}
.impact__stats strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: #f4b183;
}
.impact__stats span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.78); }

/* ============ Get involved ============ */
.involve {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.involve__card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: 0 6px 24px rgba(36, 29, 23, 0.06);
  border: 1px solid rgba(36, 29, 23, 0.05);
}
.involve__card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.involve__card p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 1.4rem; }

.involve__card--featured {
  background: var(--deep);
  color: #fff;
  box-shadow: 0 18px 48px rgba(22, 48, 40, 0.35);
}
.involve__card--featured p { color: rgba(255, 255, 255, 0.82); }

.involve__amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.chip {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.chip:hover { border-color: var(--primary); }
.chip--active { background: var(--primary); border-color: var(--primary); }

.involve__note {
  margin-top: 0.9rem;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  text-align: center;
}

/* ============ Contact / Newsletter ============ */
.contact__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: start;
}
.contact__grid > div > p { color: var(--ink-soft); margin-bottom: 1.6rem; max-width: 48ch; }

.newsletter {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.newsletter input {
  flex: 1 1 240px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid rgba(36, 29, 23, 0.18);
  font: inherit;
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.newsletter input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232, 99, 10, 0.15);
}

.newsletter__msg {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--deep);
  min-height: 1.4em;
}

.contact__info {
  background: var(--bg-tint);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
}
.contact__info h3 {
  font-family: var(--font-display);
  margin-bottom: 1.1rem;
}
.contact__info ul { list-style: none; display: grid; gap: 1.1rem; }
.contact__info li { font-size: 0.95rem; }
.contact__info a { color: var(--primary); text-decoration: none; }
.contact__info a:hover { text-decoration: underline; }

.contact__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}

/* ============ Footer ============ */
.footer {
  background: var(--deep-2);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
}

.footer__brand { max-width: 320px; display: grid; gap: 0.9rem; }
.footer__brand p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.65); }

.footer__nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer__nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer__nav a:hover { color: var(--primary); }

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.3rem 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__media { max-width: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .involve { grid-template-columns: 1fr; }
  .about__grid,
  .impact__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 2.6rem; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(300px, 80vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.4rem;
    padding: 5.5rem 2rem 2rem;
    background: var(--deep-2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -12px 0 40px rgba(0,0,0,0.25);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { color: #fff !important; font-size: 1.05rem; }

  .nav-toggle { display: flex; z-index: 60; }
  .nav-toggle.is-open span { background: #fff; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .cards { grid-template-columns: 1fr; }
  .impact__stats { grid-template-columns: 1fr; }
  .hero { padding-top: 7rem; }
  .hero__stats { gap: 1.6rem; }
  .hero__card { left: 0.5rem; }
  .section { padding: 4rem 0; }
}
