/* ===== CSS RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a6b3c;
    --primary-dark: #0f4d2a;
    --primary-light: #2d9a56;
    --accent: #e8a838;
    --accent-light: #f5c563;
    --dark: #1a1a2e;
    --dark-soft: #2d2d44;
    --text: #333344;
    --text-light: #6b6b80;
    --bg: #fafbfc;
    --bg-warm: #f7f4ef;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: 50px; font-weight: 600;
    font-size: 0.95rem; cursor: pointer; transition: var(--transition);
    border: 2px solid transparent; font-family: inherit;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26,107,60,0.3); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }
.btn-glass { background: rgba(255,255,255,0.15); color: var(--white); border-color: rgba(255,255,255,0.4); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,0.3); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.8rem; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.3rem; color: var(--primary); line-height: 1.2; }
.logo-tagline { font-size: 0.7rem; color: var(--text-light); letter-spacing: 1.5px; text-transform: uppercase; }
.nav { display: flex; gap: 32px; }
.nav-link { font-weight: 500; font-size: 0.92rem; color: var(--text); transition: var(--transition); position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--primary); }
.header-actions { display: flex; gap: 10px; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 24px; position: relative; }
.mobile-toggle span { display: block; width: 100%; height: 2px; background: var(--dark); position: absolute; left: 0; transition: var(--transition); }
.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-toggle span:nth-child(3) { bottom: 0; }

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed; top: 0; right: -100%; width: 320px; height: 100vh;
    background: var(--white); z-index: 2000; padding: 80px 32px 32px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}
.mobile-menu.active { right: 0; }
.mobile-close {
    position: absolute; top: 20px; right: 20px; background: none;
    border: none; font-size: 2rem; cursor: pointer; color: var(--text);
}
.mobile-nav { display: flex; flex-direction: column; gap: 24px; }
.mobile-nav a { font-size: 1.2rem; font-weight: 500; color: var(--text); transition: var(--transition); }
.mobile-nav a:hover { color: var(--primary); padding-left: 8px; }

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,77,42,0.88) 0%, rgba(26,26,46,0.75) 50%, rgba(26,107,60,0.65) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 120px; max-width: 720px; }
.hero-badge {
    display: inline-block; padding: 8px 20px; border-radius: 50px;
    background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9);
    font-size: 0.85rem; font-weight: 500; margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px);
}
.hero h1 {
    font-family: 'Playfair Display', serif; font-size: 4rem; font-weight: 800;
    color: var(--white); line-height: 1.15; margin-bottom: 24px;
}
.text-accent { color: var(--accent-light); }
.hero-desc { font-size: 1.15rem; color: rgba(255,255,255,0.85); line-height: 1.8; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.6); font-size: 0.8rem; z-index: 2;
}
.scroll-indicator {
    width: 24px; height: 40px; border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px; position: relative;
}
.scroll-indicator::after {
    content: ''; width: 4px; height: 8px; background: rgba(255,255,255,0.6);
    border-radius: 2px; position: absolute; top: 8px; left: 50%;
    transform: translateX(-50%); animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--primary); padding: 48px 0; position: relative; z-index: 3;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item { color: var(--white); }
.stat-number { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 800; }
.stat-prefix { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; }
.stat-plus { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--accent-light); }
.stat-label { display: block; font-size: 0.9rem; opacity: 0.85; margin-top: 4px; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header.light h2 { color: var(--white); }
.section-header.light .section-desc { color: rgba(255,255,255,0.8); }
.section-badge {
    display: inline-block; padding: 6px 18px; border-radius: 50px;
    background: rgba(26,107,60,0.1); color: var(--primary);
    font-size: 0.85rem; font-weight: 600; margin-bottom: 16px;
    text-transform: uppercase; letter-spacing: 1px;
}
.section-header.light .section-badge { background: rgba(255,255,255,0.15); color: var(--accent-light); }
.section-header h2 {
    font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 700;
    color: var(--dark); line-height: 1.3; margin-bottom: 16px;
}
.section-desc { font-size: 1.1rem; color: var(--text-light); max-width: 640px; margin: 0 auto; }

/* ===== ABOUT ===== */
.about { padding: 100px 0; background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-image-col { display: flex; flex-direction: column; gap: 20px; }
.about-img-wrapper { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-img-wrapper img { width: 100%; height: 320px; object-fit: cover; transition: transform 0.6s ease; }
.about-img-wrapper:hover img { transform: scale(1.05); }
.about-img-wrapper.small img { height: 220px; }
.about-text-col { display: flex; flex-direction: column; gap: 24px; }
.about-card {
    background: var(--white); padding: 32px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: var(--transition);
    border-left: 4px solid transparent;
}
.about-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.about-card.mission { border-left-color: var(--primary); }
.about-card.vision { border-left-color: var(--accent); }
.about-card.why { border-left-color: #e74c3c; }
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.about-card h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--dark); margin-bottom: 12px; }
.about-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.8; }

/* ===== PROGRAMS ===== */
.programs { padding: 100px 0; background: var(--dark); }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.program-card {
    background: var(--dark-soft); border-radius: var(--radius-lg); overflow: hidden;
    transition: var(--transition);
}
.program-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.program-img { height: 240px; overflow: hidden; }
.program-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.program-card:hover .program-img img { transform: scale(1.1); }
.program-content { padding: 28px; }
.program-tag {
    display: inline-block; padding: 4px 14px; border-radius: 50px;
    background: rgba(232,168,56,0.15); color: var(--accent-light);
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 12px;
}
.program-content h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--white); margin-bottom: 12px; }
.program-content p { color: rgba(255,255,255,0.7); font-size: 0.92rem; line-height: 1.8; }

/* ===== GET INVOLVED ===== */
.involvement { padding: 100px 0; background: var(--bg-warm); }
.involve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.involve-card {
    background: var(--white); padding: 36px 28px; border-radius: var(--radius);
    text-align: center; transition: var(--transition); box-shadow: var(--shadow-sm);
}
.involve-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.involve-card.featured {
    background: var(--primary); color: var(--white);
    box-shadow: 0 12px 40px rgba(26,107,60,0.3);
}
.involve-card.featured h3, .involve-card.featured p { color: var(--white); }
.involve-icon { font-size: 2.5rem; margin-bottom: 16px; }
.involve-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--dark); margin-bottom: 12px; }
.involve-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.7; }
.involve-card.featured p { color: rgba(255,255,255,0.85); }

/* ===== COMMUNITY BANNER ===== */
.community-banner {
    position: relative; height: 450px; overflow: hidden;
}
.community-banner > img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(15,77,42,0.9), rgba(26,26,46,0.85));
    text-align: center; padding: 40px;
}
.banner-overlay h2 { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--white); margin-bottom: 16px; max-width: 700px; }
.banner-overlay p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 28px; }

/* ===== CONTACT ===== */
.contact { padding: 80px 0; background: var(--bg); }
.contact-cta { text-align: center; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.8fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; font-weight: 600; }
.footer-col p { font-size: 0.9rem; margin-bottom: 8px; line-height: 1.7; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .logo-icon { font-size: 1.6rem; }
.footer-logo .logo-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--white); font-weight: 700; }
.footer-desc { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-email {
    color: var(--accent-light) !important; font-size: 1.2rem; font-weight: 700;
    transition: var(--transition); display: inline-block; margin-top: 4px;
}
.footer-email:hover { color: var(--accent) !important; }
.legal-badge { color: var(--accent-light); font-weight: 600; font-size: 0.92rem; }
.footer-link {
    display: block; color: rgba(255,255,255,0.7); font-size: 0.9rem;
    margin-bottom: 10px; transition: var(--transition);
}
.footer-link:hover { color: var(--accent-light); padding-left: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
    text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px); z-index: 3000;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--white); border-radius: var(--radius-lg); padding: 48px;
    max-width: 560px; width: 100%; position: relative;
    box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto;
}
.modal-close {
    position: absolute; top: 16px; right: 20px; background: none;
    border: none; font-size: 2rem; cursor: pointer; color: var(--text-light);
    transition: var(--transition);
}
.modal-close:hover { color: var(--dark); }
.modal h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--dark); margin-bottom: 8px; }
.modal p { color: var(--text-light); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--dark); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 2px solid #e8e8ef;
    border-radius: 10px; font-family: inherit; font-size: 0.95rem;
    transition: var(--transition); background: var(--bg);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,107,60,0.1);
}
.thank-you { text-align: center; padding: 60px 48px; }
.thank-you-icon { font-size: 4rem; margin-bottom: 16px; }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    border-radius: 50%; background: var(--primary); color: var(--white);
    border: none; font-size: 1.5rem; cursor: pointer; z-index: 999;
    opacity: 0; visibility: hidden; transition: var(--transition);
    box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .programs-grid { grid-template-columns: 1fr; }
    .involve-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .nav, .header-actions { display: none; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2.4rem; }
    .hero-content { padding-top: 100px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stat-number { font-size: 2.2rem; }
    .section-header h2 { font-size: 2rem; }
    .involve-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .modal { padding: 32px 24px; }
    .community-banner { height: 350px; }
    .banner-overlay h2 { font-size: 1.6rem; }
    .about-img-wrapper img { height: 250px; }
    .about-img-wrapper.small img { height: 180px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-desc { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: 1.8rem; }
}
