:root {
  --green: #2f9e44;
  --green-deep: #1b6f30;
  --green-soft: #e8f6ea;
  --orange: #ef5a1a;
  --orange-deep: #c4450b;
  --ink: #141414;
  --muted: #5c574e;
  --cream: #f4f0e6;
  --paper: #fbfaf6;
  --white: #ffffff;
  --soil: #1a120c;
  --line: rgba(20, 20, 20, 0.1);
  --shadow: 0 24px 50px rgba(20, 20, 20, 0.12);
  --radius: 1.5rem;
  --header-h: 5.25rem;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.85rem);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.site-nav a:not(.btn)[aria-current="true"] {
  color: var(--green-deep);
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1rem;
  z-index: 100;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.85rem;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-head.light,
.section-head.light h2,
.section-head.light p {
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1.02rem;
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
}

.btn-orange:hover {
  background: var(--orange-deep);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--white);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.28em;
  font-family: "Fredoka", var(--font);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  white-space: nowrap;
}

.word-plant {
  color: var(--green);
}

.word-mzansi {
  color: var(--orange);
}

.wordmark-dark {
  font-size: 1.7rem;
  margin: 0.15rem 0 0.55rem;
}

.wordmark-dark .word-plant,
.wordmark-dark .word-mzansi {
  color: #f7f1e6;
  paint-order: stroke fill;
}

.wordmark-dark .word-plant {
  -webkit-text-stroke: 2.5px var(--green);
}

.wordmark-dark .word-mzansi {
  -webkit-text-stroke: 2.5px var(--orange);
}

.brand strong {
  display: flex;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.05rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--green-deep);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 18, 12, 0.18) 0%, rgba(15, 18, 12, 0.72) 62%, rgba(15, 18, 12, 0.88) 100%),
    linear-gradient(90deg, rgba(27, 111, 48, 0.28), rgba(239, 90, 26, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4.2rem;
  max-width: 52rem;
}

.hero .eyebrow {
  color: #d7f5d8;
}

.hero h1 em {
  font-style: italic;
  color: #ffd3b8;
}

.lede {
  font-size: 1.15rem;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.88);
}

.lede-local {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  color: #ffd3b8;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.ticker {
  background: var(--green-deep);
  color: var(--white);
  overflow: hidden;
  padding: 0.95rem 0;
  border-bottom: 4px solid var(--orange);
}

.ticker-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

.ticker-track span::before {
  content: "●";
  color: var(--orange);
  margin-right: 2.4rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.about {
  background: var(--cream);
}

.about-grid,
.how-grid,
.donate-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-row div {
  background: var(--white);
  border-radius: 1.1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
}

.stat-row strong {
  display: block;
  color: var(--orange);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.stat-row span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.about-media img,
.how-media img,
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-media img {
  height: 560px;
  object-position: center 18%;
}

.about-media figcaption,
.gallery-grid figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.mission {
  background: var(--paper);
  padding-top: 0;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.panel {
  border-radius: calc(var(--radius) + 0.2rem);
  padding: 2.3rem;
  color: var(--white);
  min-height: 280px;
}

.panel h3,
.panel p {
  color: var(--white);
}

.panel-green {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 40%),
    var(--green-deep);
}

.panel-orange {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), transparent 42%),
    var(--orange);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.donate-card .btn {
  width: 100%;
}

.card:hover {
  border-color: rgba(47, 158, 68, 0.35);
  transform: translateY(-3px);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-deep);
  margin-bottom: 1rem;
}

.icon-wrap svg {
  width: 24px;
  height: 24px;
}

.how {
  background: var(--cream);
}

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.steps span {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--orange);
  font-weight: 700;
}

.how-media {
  position: relative;
  min-height: 520px;
}

.how-media img:first-child {
  height: 430px;
}

.how-media-secondary {
  position: absolute;
  width: 58% !important;
  height: 250px !important;
  right: -1rem;
  bottom: 0;
  border: 6px solid var(--cream);
  box-shadow: var(--shadow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 1rem;
}

.gallery-grid figure:first-child {
  grid-row: span 2;
}

.gallery-grid figure:first-child img {
  height: 100%;
}

.gallery-grid img {
  height: 230px;
}

.involve {
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.35), rgba(20, 20, 20, 0.72)),
    url("../images/team.jpg") center 40%/cover;
  background-color: var(--soil);
}

.involve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.involve-grid article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.involve-grid a {
  color: #ffd3b8;
  font-weight: 700;
  text-decoration: none;
}

.donate-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.85rem;
}

.check-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 0.55rem 0 0.55rem 1.8rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  position: absolute;
  left: 0;
  top: 0.9rem;
}

.contact {
  background: var(--cream);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-list span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.contact-list a,
.contact-list address {
  font-style: normal;
  font-weight: 600;
  text-decoration: none;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid var(--line);
  display: grid;
  gap: 0.95rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

label {
  font-size: 0.88rem;
  font-weight: 700;
}

input,
select,
textarea {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.8rem 0.9rem;
  background: var(--paper);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--green);
  border-color: transparent;
}

.form-status {
  min-height: 1.4rem;
  color: var(--green-deep);
  font-weight: 600;
}

.site-footer {
  background: var(--soil);
  color: #efe8dc;
  padding: 3.5rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 18px;
  margin-bottom: 0.35rem;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.site-footer a {
  display: block;
  text-decoration: none;
  margin-bottom: 0.45rem;
  color: #d8d0c4;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  color: #b7aea2;
  font-size: 0.9rem;
  display: grid;
  gap: 0.35rem;
}

.trust {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.trust-grid strong {
  display: block;
  color: var(--green-deep);
  margin-bottom: 0.3rem;
}

.trust-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.care {
  background: var(--paper);
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.team {
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 0;
}

.team-copy {
  padding: 1.2rem 1.3rem 1.5rem;
}

.team-copy span {
  display: block;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.gallery-grid figure {
  margin: 0;
  height: 100%;
}

.gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
}

.gallery-grid figure:first-child .gallery-open {
  height: 100%;
}

.gallery-open img {
  height: 100%;
}

.faq {
  background: var(--white);
}

.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 46rem;
}

.faq-list details {
  background: var(--cream);
  border-radius: 1rem;
  padding: 0.2rem 1.1rem;
  border: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.95rem 0;
}

.faq-list details p {
  padding-bottom: 0.95rem;
  color: var(--muted);
}

.field-error {
  margin: 0;
  color: var(--orange-deep);
  font-size: 0.85rem;
  font-weight: 600;
}

.privacy-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-actions {
  display: grid;
  gap: 0.7rem;
}

.form-success {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.contact-list address a {
  font-weight: 600;
  text-decoration: none;
}

.float-actions {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  display: grid;
  gap: 0.7rem;
  justify-items: end;
}

.donate-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.donate-float:hover {
  background: var(--orange-deep);
}

.whatsapp-float {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.mobile-dock {
  display: none;
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(920px, calc(100vw - 2rem));
}

.lightbox::backdrop {
  background: rgba(12, 10, 8, 0.82);
}

.lightbox-inner {
  background: var(--soil);
  color: var(--white);
  border-radius: 1.2rem;
  padding: 1rem;
}

.lightbox-inner img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 0.8rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  font: inherit;
  font-weight: 700;
  border: 0;
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
}

.form-success[hidden],
.form-fields[hidden] {
  display: none !important;
}

.lightbox-nav {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.lang-switch button {
  font: inherit;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--white);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--white);
  color: var(--green-deep);
  border-color: var(--white);
}

.fruit-facts {
  background: var(--cream);
  padding: 1.1rem 0 1.3rem;
  border-bottom: 1px solid var(--line);
}

.fruit-facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.fruit-chip {
  font: inherit;
  font-weight: 700;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.fruit-chip[aria-pressed="true"] {
  background: var(--green-deep);
  color: var(--white);
  border-color: var(--green-deep);
}

.fruit-fact-copy {
  margin: 0;
  color: var(--green-deep);
  font-weight: 600;
  min-height: 1.4em;
}

.story {
  background: var(--cream);
}

.story-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.story-rail img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.story-rail figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.story-rail strong {
  display: block;
  color: var(--orange);
  margin-bottom: 0.25rem;
}

.steps {
  position: relative;
}

.steps li.reveal.is-in {
  transform: none;
  opacity: 1;
}

.match,
.where {
  background: var(--paper);
}

.match {
  background: var(--cream);
}

.match-grid,
.where-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.match-card,
.map-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.match-card fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.match-card legend {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.match-card label {
  font-weight: 500;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.match-result {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.7rem;
}

.match-result[hidden] {
  display: none !important;
}

.match-tree {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--green-deep);
}

.season {
  margin-top: 2.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.season-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 1rem;
}

.season-tabs button {
  font: inherit;
  font-weight: 700;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.season-tabs button[aria-selected="true"] {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.season-panel {
  color: var(--muted);
  font-weight: 600;
}

.where-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.5rem;
  display: grid;
  gap: 0.8rem;
}

.where-list strong {
  display: block;
  color: var(--orange);
}

.sa-map {
  width: 100%;
  height: auto;
}

.sa-land {
  fill: var(--green-deep);
}

.sa-lesotho {
  fill: var(--cream);
}

.sa-pin {
  fill: var(--orange);
}

@keyframes pin-pulse {
  50% {
    r: 12;
    opacity: 0.7;
  }
}

.js .sa-pin {
  animation: pin-pulse 2.2s ease-in-out infinite;
}

.sa-pin-core {
  fill: var(--white);
}

.sa-label,
.sa-sub {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  fill: var(--soil);
}

.sa-sub {
  font-weight: 600;
  font-size: 10px;
}

.map-card p {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.share-btn {
  margin-top: 1rem;
}

.reveal {
  opacity: 1;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .about-grid,
  .how-grid,
  .donate-grid,
  .contact-grid,
  .mission-grid,
  .card-grid,
  .care-grid,
  .trust-grid,
  .involve-grid,
  .team-grid,
  .match-grid,
  .where-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .care-grid,
  .trust-grid,
  .story-rail {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-grid figure:first-child {
    grid-row: auto;
    grid-column: span 2;
  }

  .about-media img,
  .how-media img:first-child {
    height: 380px;
  }

  .how-media {
    min-height: 0;
  }

  .how-media-secondary {
    position: static;
    width: 100% !important;
    height: 240px !important;
    margin-top: 1rem;
    border: 0;
  }
}

@media (max-width: 1120px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.4rem;
    border-bottom: 1px solid var(--line);
    gap: 0.9rem;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 4.15rem;
    --radius: 1.15rem;
  }

  .container {
    width: min(1160px, calc(100% - 1.5rem));
  }

  h1 {
    font-size: 2.05rem;
    letter-spacing: -0.04em;
  }

  h2 {
    font-size: 1.65rem;
  }

  h3 {
    font-size: 1.18rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-head {
    margin-bottom: 1.4rem;
  }

  .header-inner {
    min-height: var(--header-h);
  }

  .brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .wordmark {
    font-size: 1.12rem;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    max-height: calc(100dvh - var(--header-h) - 5.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    padding: 2.6rem 0 1.8rem;
    max-width: none;
  }

  .lede {
    font-size: 0.98rem;
  }

  .lede-local {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .hero-actions {
    display: grid;
    width: 100%;
    gap: 0.65rem;
    margin-top: 1.2rem;
  }

  .hero-actions .btn,
  .donate-card .btn,
  .form-actions .btn {
    width: 100%;
  }

  .ticker {
    padding: 0.7rem 0;
  }

  .ticker-track {
    font-size: 0.7rem;
    gap: 1.5rem;
  }

  .trust {
    padding: 1.1rem 0;
  }

  .trust-grid,
  .stat-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .trust-grid span {
    font-size: 0.8rem;
  }

  .card-grid,
  .care-grid,
  .team-grid,
  .field-row,
  .gallery-grid,
  .story-rail {
    grid-template-columns: 1fr;
  }

  .gallery-grid figure:first-child {
    grid-column: auto;
  }

  .panel {
    min-height: 0;
    padding: 1.35rem;
  }

  .about-media img,
  .how-media img:first-child {
    height: 220px;
  }

  .how-media-secondary {
    height: 180px !important;
  }

  .stat-row {
    margin-top: 1.2rem;
  }

  .stat-row div {
    padding: 0.8rem 0.85rem;
  }

  .team-card {
    display: grid;
    grid-template-columns: 108px 1fr;
    min-height: 0;
  }

  .team-card img {
    height: 100%;
    min-height: 148px;
    object-position: center 12%;
  }

  .team-copy {
    padding: 0.85rem 0.95rem 1rem;
  }

  .team-copy p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .gallery-grid img {
    height: 180px;
  }

  .contact-form,
  .donate-card {
    padding: 1.15rem;
  }

  .faq-list details {
    padding: 0.1rem 0.9rem;
  }

  body {
    padding-bottom: calc(4.6rem + env(safe-area-inset-bottom));
  }

  .float-actions {
    display: none;
  }

  .mobile-dock {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: var(--soil);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.45rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom));
  }

  .mobile-dock a {
    color: #efe8dc;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.72rem 0.3rem;
    border-radius: 0.8rem;
  }

  .mobile-dock .dock-donate {
    background: var(--orange);
    color: var(--white);
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 1.78rem;
  }

  .hero-content {
    padding-top: 2.1rem;
  }

  .trust-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .team-card {
    grid-template-columns: 88px 1fr;
  }

  .team-card img {
    min-height: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .sa-pin,
  .js .reveal {
    animation: none;
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}
