/* Dream Projects Edu. Foundation — public site styles */
:root {
  --green: #1d5c47;
  --green-dark: #123d2f;
  --green-soft: #e4efe9;
  --amber: #f0a830;
  --amber-dark: #c9851a;
  --cream: #fbf7ef;
  --ink: #1e2a25;
  --muted: #5d6b65;
  --line: #e3ddd0;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 61, 47, .10);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--amber-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--green-dark); font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, color .15s;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--amber); color: var(--green-dark); }
.btn-accent:hover { background: var(--amber-dark); color: var(--white); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--green-dark); }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }

/* Top bar & header */
.topbar { background: var(--green-dark); color: #d6e6de; font-size: .85rem; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--amber); }
.topbar-inner { display: flex; gap: 22px; align-items: center; padding: 8px 0; }
.topbar-social { margin-left: auto; display: flex; gap: 12px; }
.topbar-social a { display: inline-flex; }

.site-header { background: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-dark); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand strong { display: block; font-family: var(--font-head); font-size: 1.25rem; line-height: 1; }
.brand small { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand-light, .brand-light small { color: var(--white); }
.brand-light small { opacity: .7; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .96rem;
}
.site-nav a:not(.btn):hover { background: var(--green-soft); color: var(--green-dark); }
.site-nav a.is-active { color: var(--green); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.nav-donate { margin-left: 10px; padding: .6em 1.3em; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 24px; height: 2px; background: var(--green-dark); margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: var(--green-dark);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,61,47,.95) 30%, rgba(18,61,47,.35)); }
.hero-inner { position: relative; z-index: 1; padding: clamp(80px, 12vw, 150px) 0; max-width: 680px; }
.hero h1 { color: var(--white); }
.hero p { font-size: 1.15rem; color: #e3eee8; max-width: 560px; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--amber); margin-bottom: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Page banner */
.page-banner { background: var(--green-dark); color: var(--white); padding: 70px 0 60px; position: relative; overflow: hidden; }
.page-banner::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: var(--amber); opacity: .14;
}
.page-banner h1 { color: var(--white); margin-bottom: .2em; }
.page-banner p { color: #cfe0d7; max-width: 640px; margin: 0; font-size: 1.1rem; }
.crumbs { font-size: .88rem; color: #a9c4b7; margin-bottom: 10px; }
.crumbs a { color: var(--amber); text-decoration: none; }

/* Sections */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section-alt { background: var(--white); }
.section-green { background: var(--green); color: var(--white); }
.section-green h2, .section-green h3 { color: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); }
.section-head .eyebrow { color: var(--amber-dark); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--green-soft); }
.prose p { color: #34423c; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--amber); line-height: 1.1; }
.stat span { color: #d6e6de; font-size: .95rem; }

/* Cards */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }
.card-img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--green-soft); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-body .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card-meta { font-size: .84rem; color: var(--amber-dark); font-weight: 600; margin-bottom: 6px; }
.card-num {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); font-family: var(--font-head); font-weight: 700; margin-bottom: 14px;
}

/* Mission / values */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: var(--white); border-radius: var(--radius); padding: 30px; border-top: 4px solid var(--amber); box-shadow: var(--shadow); }
.values { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.values li { background: var(--green-soft); color: var(--green-dark); padding: 10px 22px; border-radius: 999px; font-weight: 600; }

/* Team */
.team-card { text-align: center; background: var(--white); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); }
.team-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; background: var(--green-soft); }
.team-card .role { color: var(--amber-dark); font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.team-card p { color: var(--muted); font-size: .94rem; margin: 0; }

/* CTA band */
.cta-band { background: var(--amber); padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 6px; }
.cta-inner p { margin: 0; color: #3b3220; }

/* Gallery */
.gallery-grid { columns: 3 260px; column-gap: 16px; }
.gallery-grid figure { margin: 0 0 16px; break-inside: avoid; border-radius: 12px; overflow: hidden; position: relative; background: var(--white); box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; cursor: zoom-in; }
.gallery-grid figcaption { padding: 10px 14px; font-size: .9rem; color: var(--muted); }
.lightbox { position: fixed; inset: 0; background: rgba(10, 25, 20, .94); display: none; place-items: center; z-index: 200; padding: 20px 64px; }
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 8px; margin: 0 auto; }
.lightbox figcaption { color: #e3eee8; margin-top: 12px; font-size: .95rem; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; line-height: 1; }
.lb-close { top: 14px; right: 18px; font-size: 2.6rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 10px 14px; opacity: .8; }
.lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-prev { left: 6px; } .lb-next { right: 6px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* Clickable photos */
img.zoomable { cursor: zoom-in; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 6px; }
.thumb { position: relative; display: block; }
.thumb.is-extra { display: none; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--green-soft); transition: opacity .15s; }
.thumb img:hover { opacity: .85; }
.thumb .plus { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(18, 61, 47, .6); color: #fff; font-weight: 700; font-size: 1.2rem; border-radius: 8px; pointer-events: none; }
.photo-hint { font-family: var(--font-body); font-size: .9rem; font-weight: 400; color: var(--muted); }

/* Albums */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: -12px 0 40px; }
.chips a { padding: 8px 18px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.chips a:hover { border-color: var(--green); color: var(--green); }
.chips a.on { background: var(--green); border-color: var(--green); color: var(--white); }
.album-card { text-decoration: none; color: inherit; }
.album-card:hover { color: inherit; }
.album-card h3 { margin-bottom: .3em; }
.album-cover { position: relative; }
.album-count { position: absolute; right: 12px; bottom: 12px; background: rgba(18, 61, 47, .85); color: #fff; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.card-meta .tag { display: inline-block; background: var(--green-soft); color: var(--green-dark); padding: 1px 10px; border-radius: 999px; margin-left: 6px; font-size: .78rem; }
.album-info { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.album-info a { color: var(--amber); text-decoration: none; }
.album-desc { max-width: 760px; margin: 0 auto 44px; font-size: 1.08rem; text-align: center; }
.prog-albums { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.prog-albums ul { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.prog-albums li a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); padding: 6px; border-radius: 10px; }
.prog-albums li a:hover { background: var(--white); }
.prog-albums li img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--green-soft); }
.prog-albums small { display: block; color: var(--muted); font-size: .84rem; }
.prog-albums .more { font-weight: 600; text-decoration: none; }

/* Article */
.article { max-width: 760px; margin: 0 auto; }
.article-img { border-radius: var(--radius); margin-bottom: 32px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article .prose { font-size: 1.08rem; }

/* Donate */
.donate-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.pay-box { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-bottom: 22px; }
.pay-box h3 { display: flex; align-items: center; gap: 10px; }
.pay-box pre { font-family: inherit; white-space: pre-wrap; margin: 0; color: #34423c; }
.big-number { font-family: var(--font-head); font-size: 1.8rem; color: var(--green); font-weight: 700; letter-spacing: .03em; }
.tiers { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.tiers li { background: var(--green); color: var(--white); padding: 18px 22px; border-radius: 12px; font-weight: 500; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--green-dark); }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: var(--white); color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.form textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.human-check { background: var(--green-soft); border-radius: 10px; padding: 14px 16px; }
.human-check input { max-width: 220px; }
.human-check small { display: block; margin-top: 6px; color: var(--muted); }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.notice-success { background: var(--green-soft); color: var(--green-dark); }
.notice-error { background: #fde8e4; color: #8a2a17; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; flex-shrink: 0; font-size: 1.2rem; }
.contact-list strong { display: block; color: var(--green-dark); }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Footer */
.site-footer { background: var(--green-dark); color: #bcd2c7; padding-top: 64px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #bcd2c7; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer .brand { margin-bottom: 16px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); place-items: center; justify-content: center; align-items: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; font-size: .85rem; }

/* Responsive */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.08); display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px; }
  .site-nav a.is-active { box-shadow: inset 3px 0 0 var(--amber); }
  .nav-donate { margin: 8px 0 0; justify-content: center; }
  .grid-3, .grid-4, .pillars { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .donate-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .lightbox { padding: 16px 8px; }
  .lb-prev, .lb-next { font-size: 2.6rem; padding: 6px; background: rgba(0,0,0,.3) !important; border-radius: 8px; }
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .split, .grid-2, .grid-3, .grid-4, .pillars, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .split .split-media { order: -1; }
}

.wa-link { color: #128c4a; font-weight: 600; text-decoration: none; }
.wa-link:hover { color: #0b6b37; text-decoration: underline; }

/* Floating WhatsApp button */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: flex; align-items: center; gap: 10px; background: #25d366; color: #fff; text-decoration: none; border-radius: 999px; padding: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); font-weight: 600; transition: transform .15s, background .15s; }
.wa-float:hover { background: #1ebe5b; color: #fff; transform: translateY(-2px); }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s, margin .25s; }
.wa-float:hover span, .wa-float:focus span { max-width: 140px; margin-right: 6px; }
@media (max-width: 680px) { .wa-float { right: 14px; bottom: 14px; padding: 12px; } }
@media print { .wa-float { display: none; } }
