:root {
  --blue: #1E4F9A;
  --blue-dark: #0F3C82;
  --navy: #0b2a5b;
  --green: #1E7F3F;
  --green-2: #26a150;
  --green-light: #e8f5ec;
  --gold: #c9a24b;
  --gold-soft: #f3e3b5;
  --gold-light: #fbf6ea;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #17213a;
  --muted: #5f6b80;
  --border: #e3e8f0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 42, 91, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: clamp(1.3rem, 3.5vw, 1.6rem); margin: 0 0 16px; color: var(--navy); }
h3 { font-size: 1rem; margin: 24px 0 10px; color: var(--navy); }
p { margin: 0 0 8px; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: var(--green); margin: 0 0 6px; }
.link { color: var(--blue); font-weight: 500; }

main { max-width: 960px; margin: 0 auto; padding: 0 16px 96px; }
main > section { margin-top: 48px; }

/* ---------- preview banner (data: "apercu": true) ---------- */
.preview-banner { background: #fff4d6; color: #7a5a12; text-align: center; font-size: .85rem; font-weight: 600; padding: 8px 16px; }

/* ---------- hero ---------- */
.hero-band {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(201, 162, 75, .18), transparent 40%),
    linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--green) 100%);
  padding-bottom: 44px;
}
.hero-band::after { /* subtle star pattern */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .15;
  background-image: radial-gradient(#fff 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.hero-deco { position: absolute; top: 56px; right: -30px; width: 200px; color: var(--gold); opacity: .3; }

.topbar {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 960px; margin: 0 auto; padding: 14px 16px;
}
.brand { display: inline-flex; }
.brand img { display: block; height: 48px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .2)); }
.tag { font-size: .8rem; font-weight: 600; color: var(--gold-soft); border: 1px solid rgba(243, 227, 181, .4); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

.hero {
  position: relative; z-index: 1;
  max-width: 960px; margin: 0 auto; padding: 20px 16px 0;
  display: grid; gap: 26px; align-items: center;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { font-size: clamp(1.75rem, 5.5vw, 2.6rem); margin: 0 0 14px; }
.hero .lead { color: rgba(255, 255, 255, .88); font-size: 1.05rem; max-width: 520px; }
.trust { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trust li { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: 5px 12px; border-radius: 999px; font-size: .85rem; }
.hero-home { padding-bottom: 8px; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.1fr .9fr; padding-top: 40px; }
  .hero-home { grid-template-columns: 1fr; }
  .hero-deco { width: 280px; right: 36%; top: 30px; opacity: .16; }
}

/* ---------- donate card ---------- */
.donate-card {
  background: var(--card); color: var(--text); border-radius: 22px; padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  scroll-margin-top: 16px;
}
.price { font-size: .95rem; color: var(--muted); margin-bottom: 14px; }
.price strong { font-size: 1.9rem; color: var(--green); margin-right: 4px; }
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.choices button {
  font: inherit; cursor: pointer; padding: 10px 4px; border-radius: 14px;
  border: 2px solid var(--border); background: var(--card); color: var(--text);
  display: flex; flex-direction: column; align-items: center; line-height: 1.2;
  transition: border-color .15s, background .15s, transform .15s;
}
.choices button strong { font-size: 1.25rem; }
.choices button span { font-size: .75rem; color: var(--muted); }
.choices button small { font-size: .78rem; font-weight: 600; margin-top: 4px; }
.choices button:hover { transform: translateY(-1px); }
.choices button[aria-checked="true"] { border-color: var(--green); background: var(--green-light); color: var(--green); }
.amount-hint { color: var(--muted); margin: 12px 0; font-size: .9rem; text-align: center; }
.amount-hint strong { color: var(--text); }
.secure { text-align: center; color: var(--muted); margin: 10px 0 0; }
.cagnotte-info { color: var(--muted); margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--border); }
.daira .cagnotte-info { border-top: 0; padding-top: 0; margin-top: 4px; }

.progress { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 16px; }
.progress-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.progress-head strong { font-size: 1.35rem; color: var(--navy); }
.pill { font-size: .78rem; font-weight: 600; background: var(--gold-light); color: #8a6a1f; padding: 4px 10px; border-radius: 999px; }
.bar { height: 10px; background: #edf0f5; border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--green), var(--green-2), var(--gold)); border-radius: 999px; transition: width .8s ease; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #fff; box-shadow: 0 8px 20px rgba(30, 127, 63, .35); }
.btn-whatsapp { background: #1fa855; color: #fff; box-shadow: 0 8px 20px rgba(31, 168, 85, .3); }
.btn-outline { background: transparent; border: 2px solid var(--blue); color: var(--blue); padding: 12px 22px; }
.btn-disabled { background: var(--border); color: var(--muted); cursor: default; }
.btn-disabled:hover { transform: none; }

/* ---------- impact ---------- */
main > .impact { margin-top: -22px; position: relative; z-index: 2; }
.impact {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  background: var(--card); border-radius: var(--radius); padding: 18px 10px; box-shadow: var(--shadow);
  text-align: center;
}
.impact div { display: flex; flex-direction: column; align-items: center; }
.impact .ico { font-size: 1.4rem; }
.impact strong { font-size: 1.6rem; color: var(--navy); line-height: 1.2; }
.impact span:last-child { font-size: .8rem; color: var(--muted); }

/* ---------- basket ---------- */
.basket { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.products { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.products li { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 12px; padding: 10px 12px; font-weight: 500; }
.products li span { font-size: 1.4rem; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.steps .n { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--green-light); display: grid; place-items: center; font-size: 1.4rem; }
.steps small { color: var(--green); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.steps strong { display: block; }
.steps p { color: var(--muted); margin: 2px 0 0; font-size: .9rem; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { flex-direction: column; }
}

/* ---------- partner ---------- */
.partner {
  background: linear-gradient(180deg, var(--gold-light), var(--card) 220px);
  border: 1px solid var(--gold-soft); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow);
}
.partner-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.partner-logo { flex: none; width: 58px; height: 58px; border-radius: 16px; background: var(--green); display: grid; place-items: center; font-size: 1.8rem; }
.partner h2 { margin: 0; }
.partner .ar { margin: 2px 0 0; font-size: 1.25rem; color: var(--green); font-weight: 600; }
.partner blockquote {
  margin: 18px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--card);
  border-left: 4px solid var(--gold); font-size: 1.05rem; font-style: italic; color: #5b4a1f;
}
.partner blockquote::before { content: "« "; }
.partner blockquote::after { content: " »"; }
.actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.actions > div { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; background: var(--card); }
.actions p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.partner-cols { display: grid; gap: 0 24px; }
@media (min-width: 760px) { .partner-cols { grid-template-columns: 1.2fr 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-light); color: var(--green); font-weight: 700; font-size: .75rem; display: grid; place-items: center; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--card); border: 1px solid var(--gold-soft); padding: 7px 14px; border-radius: 999px; font-weight: 500; font-size: .9rem; }

/* ---------- transparency ---------- */
.flow { display: grid; gap: 14px; }
.flow-step {
  position: relative; background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.flow-step .ico { font-size: 1.5rem; }
.flow-step small { color: var(--muted); font-size: .8rem; }
.flow-step strong { font-size: 1.3rem; color: var(--navy); }
.flow-step span:last-child { font-size: .82rem; color: var(--muted); }
.flow-step + .flow-step::before {
  content: "↓"; position: absolute; top: -19px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font-size: .8rem; display: grid; place-items: center;
}
@media (min-width: 640px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow-step + .flow-step::before { content: "→"; top: 50%; left: -19px; transform: translateY(-50%); }
}

.timeline { list-style: none; margin: 0 0 10px 14px; padding: 0; border-left: 2px solid var(--border); display: grid; gap: 14px; }
.timeline li { position: relative; padding-left: 28px; }
.timeline .dot { position: absolute; left: -17px; top: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--card); border: 2px solid var(--border); display: grid; place-items: center; font-size: .95rem; }
.timeline .pay .dot { border-color: var(--blue); }
.timeline .deliver .dot { border-color: var(--green); }
.event { background: var(--card); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); }
.event-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.event p { margin: 2px 0 6px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 8px 0; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.empty { background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius); padding: 20px; text-align: center; color: var(--muted); margin-bottom: 10px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--card); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 10px 0 0; font-size: .93rem; }

/* ---------- share & organiser ---------- */
.share { text-align: center; }
.share-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }

.organiser {
  display: grid; gap: 18px; align-items: center;
  border-radius: 22px; padding: 26px 22px; color: #fff;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  box-shadow: var(--shadow);
}
.organiser h2 { color: #fff; }
.organiser .eyebrow { color: var(--gold-soft); }
.organiser p { color: rgba(255, 255, 255, .92); margin: 0; }
.organiser .link { color: #fff; }
.organiser-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
@media (min-width: 760px) { .organiser { grid-template-columns: 1.5fr 1fr; } }

/* ---------- home ---------- */
.dairas { display: grid; gap: 12px; }
@media (min-width: 640px) { .dairas { grid-template-columns: repeat(2, 1fr); } }
.daira { display: block; text-decoration: none; color: inherit; background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border: 2px solid transparent; }
.daira:hover { border-color: var(--green); }
.daira .bar { margin: 12px 0 8px; }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 36px 16px 110px; background: var(--card); border-top: 1px solid var(--border); }
.footer img { height: 48px; width: auto; margin-bottom: 10px; }
.footer p { max-width: 520px; margin: 0 auto 8px; }
.footer .btn { margin-top: 8px; }

/* ---------- sticky donate bar ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10;
  max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 8px 8px 8px 20px; box-shadow: 0 12px 30px rgba(11, 42, 91, .2);
  transform: translateY(150%); transition: transform .25s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta strong { color: var(--green); font-size: 1.1rem; }
.sticky-cta .btn { padding: 10px 18px; font-size: .95rem; }

/* ---------- motion ---------- */
.hero, main > section { animation: rise .4s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 420px) {
  .tag { font-size: .7rem; padding: 5px 9px; }
  .brand img { height: 36px; }
  .impact strong { font-size: 1.3rem; }
  .choices button strong { font-size: 1.1rem; }
  .donate-card { padding: 18px; }
}
