/* ---- Tokens ---- */
:root {
  --green-900: #14432a;
  --green-800: #1d5c37;
  --green-700: #256e42;
  --green-600: #2f8a52;
  --green-100: #e7f2e5;
  --green-50: #f4f8f1;
  --cream: #fbfaf5;
  --ink: #1f2a20;
  --ink-soft: #4b5a4c;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 12px 30px -14px rgba(20, 67, 42, 0.35);
  --shadow-card: 0 8px 24px -12px rgba(20, 67, 42, 0.25);

  --font-heading: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--green-900); margin: 0 0 0.5em; line-height: 1.15; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--green-900);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 20px;
  top: 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--green-800); }

.btn-ghost {
  background: var(--white);
  color: var(--green-800);
  border: 2px solid var(--green-100);
}
.btn-ghost:hover { border-color: var(--green-600); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  font-size: 1.1rem;
  padding: 16px 32px;
  box-shadow: 0 12px 30px -14px rgba(37, 211, 102, 0.6);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-copy {
  background: var(--green-900);
  color: var(--white);
  padding: 10px 20px;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.btn-copy:hover { background: var(--green-800); }
.btn-copy.copied { background: var(--whatsapp); }

.btn-nav { display: none; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 245, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--green-100);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-900);
  text-decoration: none;
}
.brand-leaf { font-size: 1.3rem; }

.main-nav {
  display: none;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--green-800); }

@media (min-width: 800px) {
  .main-nav { display: flex; gap: 32px; }
  .btn-nav { display: inline-flex; }
}

/* ---- Hero ---- */
.hero {
  padding: 48px 0 44px;
  background:
    radial-gradient(circle at 15% 15%, rgba(47, 138, 82, 0.10), transparent 45%),
    linear-gradient(180deg, #eef4de 0%, #e6edd4 55%, #dfe7cb 100%);
}
.hero-inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 32px;
}
.hero-copy {
  text-align: center;
  max-width: 560px;
}
.eyebrow {
  display: inline-block;
  color: var(--green-700);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 800;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 16px 0 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero-media {
  width: 100%;
  max-width: 320px;
}
.hero-media img {
  width: 100%;
  display: block;
  border-radius: 40% 40% 18px 18px / 50% 50% 12px 12px;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 860px) {
  .hero-inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 48px;
  }
  .hero-copy {
    text-align: left;
    padding: 40px 0;
    flex: 1 1 50%;
  }
  .hero-actions { justify-content: flex-start; }
  .hero-media {
    flex: 0 0 auto;
    max-width: 380px;
  }
}

/* ---- Sections ---- */
.section {
  padding: 64px 0;
}
.section-alt {
  background: var(--green-50);
}
.section h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
}
.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.story p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 1.2em;
}
.story strong { color: var(--green-800); }

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
}
.card-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin: 0;
}

/* ---- Progress ---- */
.progress-box {
  margin-top: 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-card);
}
.progress-numbers {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.progress-raised {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--green-800);
}
.progress-goal {
  color: var(--ink-soft);
  font-size: 1rem;
}
.progress-bar {
  width: 100%;
  height: 16px;
  background: var(--green-100);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-600), var(--green-700));
  border-radius: 999px;
  transition: width 0.6s ease;
}
.progress-meta {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---- Donation box ---- */
.donation-box {
  margin-top: 32px;
  background: var(--green-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
}
.donation-label {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--green-100);
  font-size: 0.95rem;
}
.donation-alias {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
#alias-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  word-break: break-all;
}
.donation-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---- Document gallery ---- */
.doc-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 32px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 620px) {
  .doc-gallery { grid-template-columns: repeat(2, 1fr); }
}
.doc-item {
  background: var(--white);
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}
.doc-item:hover { transform: translateY(-2px); }
.doc-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--green-50);
}
.doc-caption {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green-800);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 18, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0;
  max-width: min(90vw, 720px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}
.lightbox-figure figcaption {
  color: var(--white);
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* ---- Share block ---- */
.share-block {
  margin-top: 32px;
  text-align: center;
}
.share-block p {
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---- Footer ---- */
.site-footer {
  padding: 40px 0 60px;
  background: var(--green-900);
  color: var(--green-100);
}
.site-footer p { margin: 0 0 6px; }
.fine-print {
  font-size: 0.85rem;
  color: rgba(231, 242, 229, 0.65);
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--green-900);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
