/* ============================================================
   Randos Go Green — field-journal design
   Palette: forest green leads, white breathes, red is action.
   No gradients, no shadows — depth comes from spacing, borders,
   colour blocks and type scale.
   ============================================================ */

:root {
  --green: #204E1F;      /* forest — brand lead */
  --deep: #11290E;       /* dark green — footer, deep blocks */
  --leaf: #76BC3B;       /* leaf green — accents, illustration */
  --leaf-tint: #E7F2DA;  /* leaf tint */
  --sky: #5FA7D3;        /* illustration only */
  --ocean: #1D68A4;      /* illustration only */
  --red: #F00E09;        /* action colour only */
  --red-deep: #C50B07;   /* red shade for small text/focus */
  --ink: #182512;
  --tint: #F2F6EC;       /* green-tinted paper */
  --line: #D5DFC8;       /* hairline */
  --white: #ffffff;

  --font: "Merriweather", Georgia, serif;
  --maxw: 72rem;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --gap: clamp(1rem, 3vw, 2rem);

  /* radius scale — mobile */
  --r-card: 6px;
  --r-btn: 4px;
  --r-chip: 3px;
  --tap: 44px;

  /* image slots — one variable each so real photos can re-crop */
  --ar-hero: 4 / 5;
  --ar-card: 3 / 2;
  --ar-split: 4 / 3;
  --ar-news: 16 / 9;
  --ar-update: 1 / 1;
}

/* ---------------------------------------------------------- base */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
}

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

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--deep); }

h1, h2, h3 { line-height: 1.2; color: var(--deep); font-weight: 900; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.9rem); margin: 0 0 .5em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
p { max-width: 68ch; margin: 0 0 1em; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--deep); color: var(--white);
  padding: .75rem 1.25rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

:focus-visible {
  outline: 3px solid var(--red-deep);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(2.5rem, 7vw, 5rem); }

.section-head { margin-bottom: 1.75rem; }
.section-head p { color: #44543c; margin: 0; }
.section-head-split {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}

.kicker {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--green); margin: 0 0 .5rem;
}

.lede { font-size: clamp(1.1rem, 2.6vw, 1.3rem); max-width: 34em; }

.crumb { font-size: .9rem; margin-bottom: 1rem; }
.body-copy { margin-bottom: 1.25rem; }

.empty-state {
  border: 2px dashed var(--line); padding: 2rem; border-radius: var(--r-card);
  color: #44543c; background: var(--tint);
}

.flash {
  background: var(--leaf-tint); border: 1px solid var(--leaf);
  color: var(--deep); padding: 1rem 1.25rem; border-radius: var(--r-card);
  margin: 1rem auto 0; font-weight: 700;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: .7rem 1.5rem;
  font-family: var(--font); font-size: 1.15rem; font-weight: 700;
  text-decoration: none; border-radius: var(--r-btn); cursor: pointer;
  border: 1.5px solid transparent; text-align: center;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-deep); color: var(--white); border-color: var(--red-deep); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--deep); }
.btn-ghost { background: var(--white); color: var(--green); border-color: var(--green); }
.btn-lg { font-size: 1.25rem; min-height: 56px; padding: .9rem 2rem; }
.btn-sm { font-size: .95rem; min-height: 40px; padding: .4rem 1rem; }

.text-link { font-weight: 700; }
.text-link::after { content: " →"; }

.hero-actions, .article-foot {
  display: flex; gap: .5rem; flex-wrap: nowrap;
}
.hero-actions .btn, .article-foot .btn {
  flex: 1 1 auto; white-space: nowrap;
  min-height: 44px; padding: .55rem .65rem;
  font-size: min(0.92rem, 3.7vw); font-weight: 700;
  letter-spacing: 0;
}

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex; align-items: center; gap: 1rem;
  min-height: 64px; padding-block: .4rem;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; height: 100%; text-decoration: none; }
.brand-logo {
  height: 100%; width: auto; max-height: 52px;
  display: block; object-fit: contain;
}
.brand-logo-footer {
  height: auto; width: auto; max-height: 64px; max-width: 220px;
  display: block; object-fit: contain;
  background: var(--white); padding: 8px 10px; border-radius: var(--r-btn);
}

.nav-toggle {
  margin-left: auto; width: var(--tap); height: var(--tap);
  background: var(--white); border: 1.5px solid var(--green);
  border-radius: var(--r-btn); display: grid; place-content: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  display: block; width: 22px; height: 3px; background: var(--green);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  flex-direction: column; padding: .5rem var(--pad) 1rem;
}
.site-nav.open { display: flex; }
.site-nav a {
  color: var(--deep); text-decoration: none; font-weight: 700;
  padding: .8rem .25rem; font-size: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--red-deep); }
.header-cta { display: none; margin-left: .5rem; }

/* ------------------------------------------------------------ hero */

.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: min(78vh, 560px); background: var(--deep); color: var(--white);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(17, 41, 14, 0.6);
}
.hero-in {
  position: relative; z-index: 1;
  padding-block: clamp(2.5rem, 8vw, 4rem);
}
.hero h1 { color: var(--white); }
.hero .lede { color: var(--leaf-tint); }
.hero .btn-outline { color: var(--white); border-color: var(--white); }
.hero .btn-outline:hover { background: var(--white); color: var(--deep); }

.mission-band { background: var(--tint); border-block: 1px solid var(--line); }
.mission-text {
  padding-block: 1.5rem; margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem); font-weight: 700;
  color: var(--deep); max-width: 46em;
}

/* ------------------------------------------------------------ impact */

.impact-strip { padding-block: 2rem; }
.impact-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap);
}
.impact-num {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.1rem 1rem; background: var(--white);
}
.impact-num strong {
  display: block; font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 900; color: var(--green); line-height: 1;
}
.impact-num span { font-weight: 700; }
.impact-num small { display: block; color: #44543c; margin-top: .3rem; }
.impact-note { font-size: .95rem; color: #44543c; margin-top: 1rem; }

.impact-ledger { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.ledger-row {
  display: grid; grid-template-columns: 1fr; gap: .5rem;
  padding: 1.25rem var(--pad); border-bottom: 1px solid var(--line);
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-num strong {
  display: block; font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900; color: var(--green); line-height: 1;
}
.ledger-num span { font-weight: 700; }
.ledger-meta p { margin: 0 0 .35rem; color: #44543c; font-size: .95rem; }

/* ------------------------------------------------------------ programmes */

.prog-grid { display: grid; gap: var(--gap); }
.prog-card { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--white); }
.prog-card img { width: 100%; aspect-ratio: var(--ar-card); object-fit: cover; background: var(--tint); }
.prog-body { padding: 1.25rem; }
.prog-body p { color: #44543c; }

.prog-list { display: grid; gap: 2.5rem; }
.prog-row { display: grid; gap: 1.25rem; }
.prog-row img {
  width: 100%; aspect-ratio: var(--ar-card); object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--tint);
}
.prog-row h2 a { color: var(--deep); text-decoration: none; }
.prog-row h2 a:hover { color: var(--green); text-decoration: underline; }

/* ------------------------------------------------------------ splits & bands */

.band-tint { background: var(--tint); border-block: 1px solid var(--line); }
.band-dark { background: var(--deep); color: var(--leaf-tint); }
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark p, .band-dark li { color: var(--leaf-tint); }

.split { display: grid; gap: 1.75rem; align-items: start; }
.split-img {
  width: 100%; aspect-ratio: var(--ar-split); object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--tint);
}
.mark-img { object-fit: contain; background: var(--white); padding: 1.5rem; }

/* field record — the ledger look */
.field-record { margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.field-record > div {
  display: grid; grid-template-columns: 8.5em 1fr; gap: .5rem;
  padding: .55rem .9rem; border-bottom: 1px solid var(--line);
}
.field-record > div:last-child { border-bottom: 0; }
.field-record dt { font-weight: 700; color: var(--green); font-size: .9rem; }
.field-record dd { margin: 0; }
.field-record.compact { font-size: .95rem; }

/* ------------------------------------------------------------ steps */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); counter-reset: step; }
.steps li {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1rem 1.1rem; background: var(--white);
}
.steps .ico { width: 40px; height: 40px; color: var(--green); margin-bottom: .6rem; }
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; color: #44543c; }

/* ------------------------------------------------------------ why / involved */

.why-grid { display: grid; gap: var(--gap); }
.why {
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--r-card);
  padding: 1rem 1.1rem;
}
.why p { margin: 0; }

.involved-grid { display: grid; gap: var(--gap); }
.involved-card {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.25rem; text-decoration: none; color: var(--ink);
  background: var(--white);
}
.involved-card:hover { background: var(--tint); border-color: var(--green); }
.involved-card h3 { color: var(--green); }
.involved-card p { color: #44543c; margin: 0 0 .5rem; }
.involved-card .text-link { color: var(--green); }

/* ------------------------------------------------------------ reviews */

.reviews { overflow: hidden; }
.review-belt {
  display: flex; width: max-content;
  animation: belt-scroll 60s linear infinite;
}
.review-belt:hover, .review-belt:focus-within { animation-play-state: paused; }
.review-track { display: flex; gap: 1rem; padding-right: 1rem; }
.review-card {
  width: 300px; flex: none; margin: 0;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--white); padding: 1.25rem;
  display: flex; flex-direction: column;
}
.review-card .stars { color: var(--leaf); font-size: 1rem; letter-spacing: 2px; }
.review-card blockquote {
  margin: .6rem 0 .9rem; font-size: .98rem; line-height: 1.55;
}
.review-card figcaption { margin-top: auto; font-weight: 700; color: var(--deep); }
.review-card figcaption span { font-weight: 400; color: #44543c; font-size: .9rem; }

@keyframes belt-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .review-belt { animation: none; width: auto; overflow-x: auto; }
  .review-track[aria-hidden="true"] { display: none; }
}

/* ------------------------------------------------------------ news */

.news-grid { display: grid; gap: var(--gap); }
.news-card {
  display: block; border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; background: var(--white);
  color: inherit; text-decoration: none;
}
.news-card:hover { border-color: var(--green); }
.news-card:hover h2, .news-card:hover h3 { color: var(--green); text-decoration: underline; }
.news-card:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.news-card img { width: 100%; aspect-ratio: var(--ar-news); object-fit: cover; display: block; background: var(--tint); }
.news-body { padding: 1.25rem; }
.news-meta { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: #44543c; font-weight: 700; }
.news-body h2, .news-body h3 { font-size: 1.25rem; margin: .3rem 0 .4rem; color: var(--deep); }
.news-body p { margin: 0; color: #44543c; }

.cat-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--gap); }
.pill {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: .35rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r-btn);
  background: var(--white); color: var(--ink);
  font-size: .9rem; text-decoration: none;
}
.pill:hover { border-color: var(--green); }
.pill.active { background: var(--green); border-color: var(--green); color: var(--white); font-weight: 700; }
.cat-badge {
  display: inline-block; padding: .1rem .55rem;
  background: var(--leaf-tint); color: var(--green);
  border-radius: var(--r-chip); font-size: .78rem; font-weight: 700;
  text-transform: capitalize;
}

/* rich-text body rendered from the admin editor */
.prose { max-width: 44rem; }
.prose h2, .prose h3, .prose h4 { color: var(--deep); line-height: 1.25; margin: 1.4em 0 .5em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4rem; }
.prose blockquote {
  margin: 1.2em 0; padding: .2rem 0 .2rem 1rem;
  border-left: 3px solid var(--leaf); color: #44543c; font-style: italic;
}
.prose a { color: var(--green); text-decoration: underline; }
.prose pre {
  background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: .8rem 1rem; overflow-x: auto;
}

/* ------------------------------------------------------------ FAQ */

.faq-block { max-width: 52rem; }
.faq-list { display: grid; gap: .75rem; }
.faq {
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--white); padding: 0;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--deep);
  padding: 1rem 1.25rem; list-style: none; min-height: 48px;
}
.faq summary::after { content: "+"; float: right; font-weight: 900; color: var(--green); }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 1.25rem 1rem; margin: 0; }

/* ------------------------------------------------------------ contact band */

.contact-band { background: var(--green); color: var(--white); }
.contact-band-in { padding-block: 2.5rem; }
.contact-band h2 { color: var(--white); }
.contact-band p { color: var(--leaf-tint); }

/* ------------------------------------------------------------ updates */

.update-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.update {
  display: grid; grid-template-columns: 84px 1fr; gap: 1rem;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--white); padding: 1rem; align-items: start;
}
.update img {
  width: 84px; aspect-ratio: var(--ar-update); object-fit: cover;
  border-radius: var(--r-chip); border: 1px solid var(--line);
  background: var(--tint);
}
.update time { font-size: .85rem; font-weight: 700; color: var(--green); }
.update h3 { font-size: 1.05rem; margin: .2rem 0; }
.update p { margin: 0; font-size: .95rem; color: #44543c; }

/* ------------------------------------------------------------ tables / map */

.table-scroll { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; min-width: 560px; }
.ledger th, .ledger td {
  text-align: left; padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
}
.ledger th { background: var(--green); color: var(--white); font-size: .9rem; }
.ledger tr:nth-child(even) td { background: var(--tint); }

.map-panel { display: grid; gap: 1.25rem; }
.impact-map {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--tint);
}
.map-legend { list-style: none; margin: 0; padding: 0; }
.map-legend li { padding: .6rem 0; border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------ gallery */

.gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--tint);
}
.gallery figcaption {
  font-size: .85rem; color: #44543c; padding-top: .35rem;
}
.gallery figure:nth-child(3n) img { aspect-ratio: 1 / 1; }

/* ------------------------------------------------------------ video */

/* field videos are phone-shot portrait (478x850); nothing downloads
   until the visitor presses play — only the poster shows. */
.video {
  display: block; width: 100%; aspect-ratio: 478 / 850;
  object-fit: cover; border: 1px solid var(--line);
  border-radius: var(--r-card); background: var(--deep);
}
.video-wrap { max-width: 340px; width: 100%; margin-inline: auto; }
.video-cap {
  font-size: .9rem; color: #44543c; margin-top: .5rem; text-align: center;
}

.season-card {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.5rem; background: var(--white);
}

/* ------------------------------------------------------------ forms */

.form-wrap { max-width: 42rem; }

.form-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tab-btn {
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  padding: .6rem 1.1rem; min-height: var(--tap); cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r-btn);
  background: var(--white); color: var(--green);
}
.tab-btn:hover { border-color: var(--green); }
.tab-btn.active { background: var(--green); color: var(--white); }

.field-form { display: grid; gap: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field input, .field select, .field textarea,
.status-form select, .nl-row input {
  width: 100%; font-family: var(--font); font-size: 1.05rem;
  padding: .7rem .8rem; border: 1.5px solid var(--line);
  border-radius: var(--r-btn); background: var(--white); color: var(--ink);
}
.field input, .field select { min-height: var(--tap); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--red-deep); outline-offset: 1px;
  border-color: var(--green);
}
.err { color: var(--red-deep); font-weight: 700; font-size: .95rem; margin: .3rem 0 0; }
.form-error {
  background: var(--red); color: var(--white); font-weight: 700;
  padding: .9rem 1.25rem; border-radius: var(--r-card); margin: 0;
}
.form-note { font-size: .9rem; color: #44543c; margin: .25rem 0 0; }
.check {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .95rem; cursor: pointer;
}
.check input { width: 22px; height: 22px; margin-top: .15rem; flex: none; }

.option-set { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.option-set legend { font-weight: 900; font-size: 1.2rem; color: var(--deep); margin-bottom: .6rem; }
.option {
  display: flex; gap: .8rem; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: var(--r-card);
  padding: .9rem 1rem; cursor: pointer; background: var(--white);
  min-height: var(--tap);
}
.option:hover { border-color: var(--green); }
.option:has(input:checked) { border-color: var(--green); background: var(--tint); }
.option input { width: 22px; height: 22px; margin-top: .2rem; flex: none; }
.option small { display: block; color: #44543c; font-size: .9rem; }
.inline-amount {
  width: 7em; font-family: var(--font); font-size: 1rem;
  padding: .35rem .5rem; border: 1.5px solid var(--line); border-radius: var(--r-btn);
}

.donate-grid { display: grid; gap: 2rem; }
.pay-card {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.5rem; background: var(--white); margin-bottom: 1.5rem;
}
.pay-steps { padding-left: 1.4rem; }
.pay-steps li { margin-bottom: .5rem; }
.warn {
  border: 2px solid var(--red); border-radius: var(--r-card);
  padding: .85rem 1rem;
  background: var(--tint); font-size: .95rem; margin: 1rem 0;
}
.honest-list { padding-left: 1.25rem; }
.honest-list li { margin-bottom: .5rem; }

.thanks-grid { display: grid; gap: 2rem; }
.certificate {
  border: 2px solid var(--green); border-radius: var(--r-card);
  padding: 2rem; background: var(--tint); text-align: center;
}
.cert-ref { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 900; color: var(--red); letter-spacing: .05em; margin: 0 0 .75rem; }
.cert-line { margin: 0 0 .5rem; }
.sprout-mark { color: var(--green); margin: 1rem auto 0; }
.track-result { margin-top: 2rem; text-align: left; }

.event-grid { display: grid; gap: var(--gap); }
.event-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.5rem; background: var(--white); }

/* ------------------------------------------------------------ pages */

.page-hero {
  position: relative; background: var(--deep); color: var(--white);
  overflow: hidden;
}
.page-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(17, 41, 14, 0.68);
}
.page-hero .wrap {
  position: relative; z-index: 1;
  padding-block: clamp(2.5rem, 8vw, 5rem);
}
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: var(--leaf-tint); }
.page-hero .crumb { color: var(--leaf-tint); }
.page-hero .crumb a { color: var(--white); }

.article { padding-block: clamp(2rem, 6vw, 3.5rem); max-width: 46rem; }
.article h2 { margin-top: 2rem; }
.article-meta { color: #44543c; font-weight: 700; margin-bottom: 1.5rem; }
.article-img {
  width: 100%; aspect-ratio: var(--ar-news); object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 1.5rem;
  background: var(--tint);
}
.article-foot { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }

.contact-grid { display: grid; gap: 2rem; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.25rem; text-decoration: none; color: var(--ink);
  background: var(--white);
}
.contact-card:hover { background: var(--tint); border-color: var(--green); }
.contact-card h2 { font-size: 1.05rem; margin-bottom: .25rem; }
.contact-big { font-weight: 900; font-size: 1.3rem; color: var(--green); margin: 0 0 .25rem; }
.contact-card p:last-child { margin: 0; font-size: .95rem; color: #44543c; }



.principles { display: grid; gap: var(--gap); }
.principle {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1rem 1.1rem; background: var(--white);
}
.principle p { margin: 0; color: #44543c; }

/* ------------------------------------------------------------ footer */

.site-footer { background: var(--deep); color: var(--leaf-tint); margin-top: 3rem; }
.footer-grid { display: grid; gap: 2rem; padding-block: 2.5rem; }
.footer-brand .brand { height: auto; margin-bottom: .75rem; }
.footer-brand .brand-logo-footer { display: block; }
.footer-mission { font-size: .95rem; max-width: 36ch; margin: 0; opacity: .85; }
.footer-col h2 { color: var(--white); font-size: 1rem; margin-bottom: .75rem; }
.footer-col a { display: block; color: var(--leaf-tint); padding: .35rem 0; text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.newsletter { margin-top: 1rem; }
.newsletter label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; }
.nl-row { display: flex; gap: .5rem; }
.nl-row input { border-color: var(--leaf); flex: 1 1 11rem; min-width: 0; }
.nl-row .btn { font-size: 1rem; min-height: var(--tap); padding: .5rem 1rem; }
.newsletter .check { margin-top: .6rem; }
.footer-base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.2); padding-block: 1.25rem;
  font-size: .9rem;
}
.footer-base p { margin: 0; }
.footer-base a { color: var(--leaf-tint); }

/* ------------------------------------------------------------ floating + sticky */

.float-actions {
  position: fixed; right: 12px; bottom: 16px; z-index: 60;
  display: grid; gap: .6rem;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-content: center;
  color: var(--white); border: 0;
}
.float-btn.wa { background: #25D366; }
.float-btn.call { background: var(--ocean); }

/* ------------------------------------------------------------ admin */

.admin h1 { margin-bottom: .25rem; }
.admin-head { margin-bottom: 1.75rem; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-bottom: 1.5rem; }
.admin-tile {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.25rem; text-decoration: none; color: var(--ink);
  background: var(--white);
}
.admin-tile:hover { border-color: var(--green); }
.admin-tile strong { display: block; font-size: 2rem; font-weight: 900; color: var(--green); }
.admin-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.sub-list { display: grid; gap: 1rem; }
.sub-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.25rem; background: var(--white); }
.sub-card header { display: flex; gap: .75rem; align-items: center; margin-bottom: .5rem; flex-wrap: wrap; }
.sub-card time { color: #44543c; font-size: .9rem; }
.status {
  display: inline-block; padding: .15rem .7rem; border-radius: var(--r-chip);
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
}
.s-new { background: var(--red); color: var(--white); }
.s-contacted { background: var(--ocean); color: var(--white); }
.s-confirmed { background: var(--leaf); color: var(--deep); }
.s-done, .s-planted { background: var(--green); color: var(--white); }
.s-pledged { background: var(--sky); color: var(--deep); }
.status-form { display: flex; gap: .5rem; align-items: center; margin-top: .75rem; }
.status-form select { width: auto; min-height: 44px; }
.counter-set { border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.25rem; margin: 0 0 1rem; }
.counter-set legend { font-weight: 900; padding: 0 .5rem; }
.counter-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.admin-login { padding-top: 3rem; }
.img-preview {
  width: 100%; max-width: 320px; aspect-ratio: var(--ar-card);
  object-fit: cover; border: 1px solid var(--line); border-radius: var(--r-card);
  margin-bottom: .5rem; background: var(--tint);
}

/* ============================================================
   Breakpoints — designed at 360, enhanced upward
   ============================================================ */

@media (min-width: 640px) {
  .hero-actions { gap: .75rem; flex-wrap: wrap; }
  .hero-actions .btn, .article-foot .btn {
    flex: 0 0 auto; font-size: 1.15rem;
    min-height: 48px; padding: .7rem 1.5rem;
  }
  .hero-actions .btn-lg {
    font-size: 1.25rem; min-height: 56px; padding: .9rem 2rem;
  }
  .article-foot { flex-wrap: wrap; gap: .75rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .prog-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .involved-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-row { grid-template-columns: repeat(4, 1fr); }
  .admin-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { min-height: min(72vh, 620px); }
}

@media (min-width: 900px) {
  :root { --r-card: 8px; --r-btn: 6px; }
  body { padding-bottom: 0; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; flex-direction: row;
    border: 0; padding: 0; margin-left: auto; gap: .25rem;
  }
  .site-nav a { border: 0; padding: .5rem .7rem; font-size: 1rem; border-radius: var(--r-btn); }
  .site-nav a:hover { background: var(--tint); }
  .header-cta { display: inline-flex; font-size: 1rem; min-height: 44px; padding: .5rem 1.1rem; }
  .float-actions { bottom: 16px; }

  .split { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
  .split-rev .split-img { order: -1; }
  .split-rev { grid-template-columns: 1fr 1.1fr; }
  .prog-row { grid-template-columns: 320px 1fr; align-items: start; gap: 2rem; }
  .ledger-row { grid-template-columns: 240px 1fr; align-items: center; }
  .map-panel { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .donate-grid { grid-template-columns: 1.2fr .8fr; align-items: start; }
  .thanks-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr .8fr .8fr 1.2fr; }
  .event-grid { grid-template-columns: repeat(3, 1fr); }
  .involved-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  :root { --maxw: 76rem; }
  .hero { min-height: min(78vh, 700px); }
  .gallery { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 1920px) {
  :root { --maxw: 84rem; }
  .hero { min-height: min(80vh, 780px); }
}

/* ============================================================
   Mobile card audit (<= 639px)
   Two-per-line where cards stay readable at half width;
   6px rhythm: edge == gap == card padding.
   Single-column card stacks get 8px edge-to-card.
   ============================================================ */
@media (max-width: 639px) {

  /* horizontal spacing layers — container edge, gap, card padding */
  :root { --pad: 6px; }

  /* readable at half width -> 2 per line */
  .impact-row, .involved-grid, .why-grid, .principles,
  .news-grid, .prog-grid, .contact-cards, .admin-grid, .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  /* card padding -> 6px horizontal */
  .involved-card, .contact-card, .impact-num, .admin-tile {
    padding: .85rem 6px;
  }
  .prog-body, .news-body { padding: .75rem 6px; }
  .gallery figure figcaption { padding-inline: 0; }
  .review-card { padding: .85rem 6px; }

  /* keep half-width cards readable */
  .prog-body p, .news-body p { font-size: .9rem; }
  .contact-big { font-size: 1.05rem; }
  .involved-card h3, .news-body h2, .news-body h3,
  .prog-body h3, .contact-card h2 { font-size: 1rem; }

  /* single-column card stacks -> 8px edge-to-card (6 + 2) */
  .prog-list, .update-list, .sub-list, .event-grid,
  .steps, .faq-list, .donate-side, .thanks-grid {
    margin-inline: 2px;
  }

  /* forms stay single-column */
  .counter-row { grid-template-columns: 1fr; }

  /* intentional mobile controls */
  .field-form .btn-primary { width: 100%; }
  .review-card { width: min(300px, 78vw); }
  .nl-row { flex-wrap: wrap; }
  .nl-row .btn { flex: 1 1 auto; }
  .footer-base { flex-direction: column; gap: .5rem; }
}
