/* Brand and base */
:root {
  --orange: #F4A261;
  --green: #2A9D8F;
  --bg: #ffffff;
  --text: #33373A;
  --muted: #5f6b6b;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
  --grad-primary: linear-gradient(135deg, #2A9D8F 0%, #3ec4b5 50%, #F4A261 100%);
  --grad-footer: linear-gradient(135deg, rgba(42,157,143,0.08) 0%, rgba(244,162,97,0.08) 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; letter-spacing: 0.01em; }
h1, h2, h3 { font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; margin: 0 0 .5rem 0; color: #1f2d2d; letter-spacing: 0.005em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 2.75rem 0; }
.section h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); margin-bottom: 1rem; }
.page-head { padding: 1.25rem 0; border-bottom: 1px solid #f0f0f0; margin-bottom: 1rem; }
.page-head h1 { font-size: clamp(1.8rem, 3vw, 2.2rem); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Header */
header { position: sticky; top: 0; backdrop-filter: blur(6px); background: transparent; transition: background .25s ease, box-shadow .25s ease; z-index: 100; }
.scrolled header { background: rgba(255,255,255,0.92); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--green); }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.nav ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; padding: .5rem .75rem; border-radius: 8px; }
.nav a::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px; background: var(--green); transition: width .2s ease-in-out, left .2s ease-in-out; }
.nav a:hover::after, .nav a.active::after { width: 70%; left: 15%; }
.menu-btn { display: none; }
@media (max-width: 768px) {
  .nav ul { display: none; position: fixed; right: 0; top: 0; height: 100vh; width: 70vw; max-width: 340px; background: #fff; box-shadow: -6px 0 24px rgba(0,0,0,0.1); border-radius: 0 0 0 16px; flex-direction: column; padding: 1rem; transform: translateX(100%); transition: transform .25s ease; }
  .menu-btn { display: block; background: var(--green); color: #fff; border: none; padding: .5rem .75rem; border-radius: 12px; }
  .nav.open ul { display: flex; transform: translateX(0); }
}

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; padding: 2.75rem 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url('IMG-20251024-WA0133.jpg') center/cover no-repeat; filter: blur(6px) brightness(0.95); opacity: 0.15; }
.hero .card { background: #fff; padding: 2rem; border-radius: 20px; box-shadow: var(--shadow); position: relative; }
.hero h1 { font-size: clamp(2.5rem, 4vw, 3.5rem); }
.hero p { color: var(--muted); margin: .75rem 0 1.25rem; }
.hero .cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: .8rem 1.15rem; border-radius: 12px; font-weight: 700; transition: transform .2s ease-in-out, box-shadow .2s ease-in-out, filter .2s ease-in-out; }
.btn.primary { background-image: var(--grad-primary); color: #fff; box-shadow: 0 8px 16px rgba(42,157,143,0.25); }
.btn.primary:hover { transform: scale(1.05); filter: brightness(1.03); }
.btn.secondary { background: #e9f7f5; color: var(--green); }
.btn.join { background: #fff; color: var(--green); border: 1px solid #dbeeee; }
.hero-img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); height: 100%; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* hero load animation */
.hero .card { opacity: 0; transform: translateY(12px); animation: heroIn .8s ease .2s forwards; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* Cards and grids */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { background: #fff; padding: 1.25rem; border-radius: 14px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: #fff; padding: 1.25rem; border-radius: 14px; box-shadow: var(--shadow); text-align: center; }
.stat .num { font-size: 1.6rem; color: var(--green); font-weight: 700; }
.stat .label { color: var(--muted); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Programs preview */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.program-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }
.program-card .meta { margin-top: .75rem; }
.program-card a { color: var(--green); font-weight: 600; }
@media (max-width: 900px) { .programs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .programs-grid { grid-template-columns: 1fr; } }

/* Donation banner */
.cta-banner { background: linear-gradient(135deg, #e9f7f5 0%, #fff 100%); border: 1px solid #d9ece9; padding: 1.5rem; border-radius: 20px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
@media (max-width: 768px) { .cta-banner { flex-direction: column; align-items: flex-start; } }

/* Footer */
.social { display: flex; gap: .5rem; align-items: center; }
footer { background: var(--grad-footer); border-top: 1px solid #eee; padding: 1.75rem 0; color: #506a6a; }
.footer-inner { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.footer-col h4 { margin-bottom: .5rem; }
.footer-col a { color: var(--green); }

/* Forms */
.form { background: #fff; padding: 1.25rem; border-radius: 14px; box-shadow: var(--shadow); }
.form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea { width: 100%; padding: .65rem .75rem; border-radius: 10px; border: 1px solid #e3e3e3; }
.form textarea { min-height: 140px; }
.form .actions { margin-top: 1rem; }
@media (max-width: 700px) { .form .grid { grid-template-columns: 1fr; } }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.gallery-grid img { width: 100%; height: 240px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.gallery-grid img.in-view { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Media grids for program sections */
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.media-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }
@media (max-width: 700px) { .media-grid { grid-template-columns: 1fr; } }

/* Accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus { outline: 2px solid #2A9D8F; outline-offset: 2px; border-color: #2A9D8F; }
/* Lightbox styles */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox[aria-hidden="false"] { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-caption { color: #fff; margin-top: .75rem; text-align: center; max-width: 80vw; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}

/* Hero operating areas small text */
.hero .operating-areas {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: #444;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #2A9D8F;
  color: #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.scroll-top.show { opacity: 1; pointer-events: auto; }
