/* ECo-Development Organization - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

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

:root {
    --primary-50: #f0fdf4; --primary-100: #dcfce7; --primary-200: #bbf7d0;
    --primary-300: #86efac; --primary-400: #4ade80; --primary-500: #22c55e;
    --primary-600: #16a34a; --primary-700: #15803d; --primary-800: #166534;
    --primary-900: #14532d;
    --neutral-50: #f8fafc; --neutral-100: #f1f5f9; --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1; --neutral-400: #94a3b8; --neutral-500: #64748b;
    --neutral-600: #475569; --neutral-700: #334155; --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --font-sans: 'Inter', sans-serif; --font-display: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--neutral-800); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-py { padding: 80px 0; }
@media(max-width:768px) { .section-py { padding: 56px 0; } .container { padding: 0 16px; } }

/* Topbar */
.topbar { background: var(--primary-700); padding: 7px 0; font-size: 13px; color: #fff; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-socials { display: flex; gap: 16px; }

/* Navbar */
.navbar { position: fixed; top: 36px; left: 0; right: 0; z-index: 1000; transition: all .3s ease; }
.navbar.scrolled { top: 0; background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,.1); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.navbar-logo { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--primary-600),var(--primary-800)); display: flex; align-items: center; justify-content: center; }
.navbar-logo svg { width: 22px; height: 22px; color: #fff; }
.navbar-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.1; }
.navbar-brand-sub { font-size: 11px; letter-spacing: .05em; }
.navbar.scrolled .navbar-brand-name { color: var(--neutral-900); }
.navbar.scrolled .navbar-brand-sub { color: var(--neutral-500); }
.navbar:not(.scrolled) .navbar-brand-name { color: #fff; }
.navbar:not(.scrolled) .navbar-brand-sub { color: rgba(255,255,255,.8); }

.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-link { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; transition: all .2s ease; cursor: pointer; }
.navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,.92); }
.navbar.scrolled .nav-link { color: var(--neutral-700); }
.navbar:not(.scrolled) .nav-link:hover { background: rgba(255,255,255,.15); }
.navbar.scrolled .nav-link:hover { background: var(--primary-50); color: var(--primary-700); }
.nav-link.active { background: rgba(255,255,255,.15); }
.navbar.scrolled .nav-link.active { background: var(--primary-50); color: var(--primary-700); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.12); min-width: 200px; padding: 8px; z-index: 200; }
.dropdown:hover .dropdown-menu { display: block; animation: fadeIn .15s ease; }
.dropdown-item { display: block; padding: 8px 12px; font-size: 14px; color: var(--neutral-700); border-radius: 6px; transition: background .15s ease; }
.dropdown-item:hover { background: var(--primary-50); color: var(--primary-700); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.navbar:not(.scrolled) .nav-toggle { color: #fff; }
.navbar.scrolled .nav-toggle { color: var(--neutral-800); }
.mobile-nav { display: none; background: #fff; border-top: 1px solid var(--neutral-100); padding: 16px 0; }
.mobile-nav.open { display: block; }
.mobile-nav-link { display: block; padding: 11px 0; font-size: 15px; font-weight: 500; color: var(--neutral-800); border-bottom: 1px solid var(--neutral-100); }
.mobile-sub-link { display: block; padding: 9px 16px; font-size: 14px; color: var(--neutral-600); border-bottom: 1px solid var(--neutral-100); }
@media(min-width:1025px) { .nav-toggle { display: none !important; } }
@media(max-width:1024px) { .nav-list { display: none !important; } .nav-toggle { display: flex; } }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-600); color: #fff; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 15px; border: none; transition: all .2s ease; cursor: pointer; }
.btn-primary:hover { background: var(--primary-700); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,163,74,.3); color: #fff; }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--primary-600); padding: 11px 24px; border-radius: 8px; font-weight: 600; font-size: 15px; border: 2px solid var(--primary-600); transition: all .2s ease; cursor: pointer; }
.btn-secondary:hover { background: var(--primary-50); transform: translateY(-1px); }
.btn-white { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--primary-700); padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 15px; border: none; transition: all .2s ease; cursor: pointer; }
.btn-white:hover { background: var(--primary-50); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }

/* Badges */
.badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.badge-green { background: var(--primary-100); color: var(--primary-700); }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-orange { background: #fff7ed; color: #c2410c; }
.badge-purple { background: #f5f3ff; color: #7c3aed; }
.badge-gray { background: var(--neutral-100); color: var(--neutral-600); }
.badge-red { background: #fef2f2; color: #dc2626; }

/* Cards */
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: all .25s ease; }
.card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.12); transform: translateY(-3px); }
.card-body { padding: 24px; }

/* Section helpers */
.section-label { display: inline-block; color: var(--primary-600); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(28px,4vw,40px); font-weight: 700; color: var(--neutral-900); margin-bottom: 16px; }
.section-desc { font-size: 17px; color: var(--neutral-600); line-height: 1.7; max-width: 640px; }

/* Page header */
.page-header { background: linear-gradient(135deg,var(--primary-800),var(--primary-700),var(--primary-600)); padding: 120px 0 60px; color: #fff; position: relative; overflow: hidden; }
.page-header::before { content:''; position:absolute; inset:0; background:url('https://images.pexels.com/photos/1072824/pexels-photo-1072824.jpeg') center/cover; opacity:.1; }
.page-header-content { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(32px,5vw,52px); color: #fff; margin-bottom: 16px; }
.page-header p { font-size: 18px; color: rgba(255,255,255,.85); max-width: 600px; line-height: 1.7; }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 14px; font-weight: 500; color: var(--neutral-700); }
.form-control { padding: 10px 14px; border: 1.5px solid var(--neutral-200); border-radius: 8px; font-size: 15px; color: var(--neutral-800); transition: border-color .2s ease; outline: none; background: #fff; font-family: var(--font-sans); width: 100%; }
.form-control:focus { border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(34,197,94,.1); }
.form-control::placeholder { color: var(--neutral-400); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input { width: 18px; height: 18px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: var(--primary-50); color: var(--primary-700); border: 1px solid var(--primary-200); }
.alert-danger  { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 24px; }

/* Hero */
.hero { min-height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(15,52,24,.88),rgba(20,83,45,.75),rgba(21,128,61,.5)); }
.hero-content { position: relative; z-index: 1; padding: 120px 0 80px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); backdrop-filter: blur(4px); padding: 6px 16px; border-radius: 100px; color: rgba(255,255,255,.9); font-size: 13px; font-weight: 500; margin-bottom: 24px; border: 1px solid rgba(255,255,255,.2); }
.hero-title { font-size: clamp(38px,6vw,68px); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 24px; }
.hero-title span { color: var(--primary-300); }
.hero-desc { font-size: 18px; color: rgba(255,255,255,.85); line-height: 1.7; margin-bottom: 36px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Stats bar */
.stats-bar { background: var(--primary-700); padding: 48px 0; }
.stats-bar .stat-item { text-align: center; color: #fff; }
.stats-bar .stat-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.stats-bar .stat-value { font-size: 32px; font-weight: 700; font-family: var(--font-display); }
.stats-bar .stat-label { font-size: 14px; color: rgba(255,255,255,.8); margin-top: 4px; }

/* Program card */
.program-card img { width: 100%; height: 220px; object-fit: cover; }
.program-card .status-badge { position: absolute; top: 12px; right: 12px; }

/* Filter pills */
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-pill { padding: 8px 18px; border-radius: 100px; font-size: 14px; font-weight: 500; border: 1.5px solid var(--neutral-200); background: #fff; color: var(--neutral-600); cursor: pointer; transition: all .2s ease; }
.filter-pill:hover,.filter-pill.active { background: var(--primary-600); color: #fff; border-color: var(--primary-600); }
.filter-pill { text-decoration: none; display: inline-block; }

/* Gallery masonry */
.gallery-masonry { columns: 3; column-gap: 16px; }
.gallery-item { break-inside: avoid; margin-bottom: 16px; border-radius: 10px; overflow: hidden; cursor: pointer; position: relative; display: block; }
.gallery-item img { width: 100%; display: block; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,.7),transparent 50%); opacity: 0; transition: opacity .3s ease; display: flex; align-items: flex-end; padding: 16px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
@media(max-width:768px) { .gallery-masonry { columns: 2; } }
@media(max-width:480px) { .gallery-masonry { columns: 1; } }

/* Event card */
.event-card { display: grid; grid-template-columns: 100px 1fr; gap: 0; background: #fff; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--neutral-200); box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: box-shadow .2s ease; }
.event-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.event-date-block { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; padding: 20px 12px; }
.event-date-day { font-size: 36px; font-weight: 700; line-height: 1; font-family: var(--font-display); }
.event-date-month { font-size: 13px; opacity: .85; margin-top: 4px; }
.event-date-year { font-size: 13px; opacity: .75; }
.event-body { padding: 20px 24px; }

/* Donation amounts */
.amount-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 12px; }
.amount-btn { padding: 12px 8px; border-radius: 8px; font-size: 15px; font-weight: 600; border: 1.5px solid var(--neutral-200); background: #fff; color: var(--neutral-700); cursor: pointer; transition: all .15s ease; text-align: center; }
.amount-btn:hover,.amount-btn.selected { border-color: var(--primary-600); background: var(--primary-50); color: var(--primary-700); }

/* Footer */
footer { background: var(--neutral-900); color: var(--neutral-300); }
.footer-inner { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 48px; margin-bottom: 48px; }
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; }
.footer-desc { font-size: 14px; line-height: 1.7; color: var(--neutral-400); margin-bottom: 20px; }
.footer-heading { color: #fff; font-family: var(--font-sans); font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.footer-link { display: block; font-size: 14px; color: var(--neutral-400); margin-bottom: 10px; transition: color .2s ease; }
.footer-link:hover { color: var(--primary-400); }
.footer-social { display: flex; gap: 12px; }
.footer-social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: var(--neutral-400); transition: all .2s ease; }
.footer-social-btn:hover { background: var(--primary-600); color: #fff; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 14px; color: var(--neutral-400); }
.footer-contact-icon { color: var(--primary-400); margin-top: 2px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: var(--neutral-500); }
.footer-bottom a { font-size: 13px; color: var(--neutral-500); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollDot { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: .5; } }
.animate-fadeIn { animation: fadeIn .5s ease; }
.animate-fadeInUp { animation: fadeInUp .6s ease; }

/* Core values */
.value-card { padding: 28px; border-radius: 12px; border: 1.5px solid var(--neutral-200); background: #fff; transition: all .25s ease; }
.value-card:hover { border-color: var(--primary-300); box-shadow: 0 8px 24px rgba(22,163,74,.1); }
.value-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-100); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

/* CTA sections */
.cta-green { background: linear-gradient(135deg,var(--primary-800),var(--primary-700)); padding: 64px 0; text-align: center; color: #fff; }
.cta-green h2 { font-size: clamp(26px,4vw,36px); color: #fff; margin-bottom: 16px; }
.cta-green p { color: rgba(255,255,255,.85); margin-bottom: 32px; font-size: 17px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-outline-white { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 600; padding: 12px 24px; border: 2px solid rgba(255,255,255,.5); border-radius: 8px; transition: all .2s ease; }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.95); align-items: center; justify-content: center; }
.lightbox.open { display: flex; animation: fadeIn .2s ease; }
.lightbox-img { max-width: 80vw; max-height: 75vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,.1); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; }
.lightbox-prev,.lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
