/* ================================================================
   KAMU Green – Main Stylesheet
   Primary: #1a5d3a  |  Mid: #2d7a52  |  Pale: #f0f9f6
   ================================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green-dark:   #1a5d3a;
    --green-mid:    #2d7a52;
    --green-light:  #4a9b6f;
    --green-pale:   #f0f9f6;
    --green-border: #c8e6c9;
    --white:        #ffffff;
    --text:         #333333;
    --text-muted:   #666666;
    --shadow:       0 4px 20px rgba(26,93,58,.10);
    --shadow-lg:    0 10px 40px rgba(26,93,58,.18);
    --radius:       12px;
    --radius-sm:    8px;
    --transition:   .3s ease;
    --font:         'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --gray-light:   #f5f5f5;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--green-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-mid); }

/* ── Container ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Sections ── */
.section    { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-bg { background: var(--gray-light); }

.section-title {
    font-size: 36px; font-weight: 800; color: var(--green-dark);
    margin-bottom: 14px; display: inline-block;
}
.section-title::after {
    content: ''; display: block; width: 56px; height: 4px;
    background: var(--green-mid); margin-top: 10px; border-radius: 2px;
}
.section-subtitle { font-size: 17px; color: var(--text-muted); max-width: 620px; margin-bottom: 48px; line-height: 1.7; }
.text-center { text-align: center; }
.text-center .section-title::after { margin: 10px auto 0; }

/* ── Buttons ── */
.btn {
    display: inline-block; padding: 14px 36px; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 600; cursor: pointer; border: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    text-decoration: none; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    color: var(--white); box-shadow: 0 4px 16px rgba(26,93,58,.28);
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(26,93,58,.38); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--green-dark); }
.btn-outline-green { background: transparent; color: var(--green-dark); border: 2px solid var(--green-dark); }
.btn-outline-green:hover { background: var(--green-dark); color: var(--white); }
.btn-sm { padding: 10px 24px; font-size: 14px; }
.btn-footer {margin-top: 4px;
    background: var(--green-dark);
    border: 2px solid var(--green-border);
    color: var(--white);}
.btn-footer:hover { background: var(--green-mid); border-color: var(--green-dark); color: var(--white) }
/* ================================================================
   HEADER / NAVIGATION
   ================================================================ */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--white); box-shadow: 0 2px 14px rgba(0,0,0,.07);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.nav-logo { display: flex; align-items: center; text-decoration: none; padding: 4px 0; }
.nav-logo-img { height: 60px; width: auto; display: block; object-fit: contain; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; color: var(--text);
    transition: background var(--transition), color var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { background: var(--green-dark); color: var(--white); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--green-dark); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO SLIDER
   ================================================================ */
.hero { position: relative; height: 620px; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: transparent;
    display: flex; align-items: self-end; justify-content: center; text-align: center;
    margin-bottom: 100px;
}
.hero-content { color: var(--white); max-width: 510px; padding: 0 24px; }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4);
    color: var(--white); font-size: 11px; font-weight: 700;
    padding: 6px 18px; border-radius: 20px; margin-bottom: 22px;
    letter-spacing: 1.5px; text-transform: uppercase;
}
.hero-title { font-size: 40px; font-weight: 600; line-height: 1.15; margin-bottom: 18px; text-shadow: 0 2px 10px rgb(0 0 0 / 82%); }
.hero-subtitle { font-size: 18px; opacity: .9; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.45); border: none; cursor: pointer;
    transition: background var(--transition), transform var(--transition); padding: 0;
}
.hero-dot.active { background: var(--white); transform: scale(1.3); }

/* ================================================================
   MISSION STRIP
   ================================================================ */
.mission-strip {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    padding: 44px 0; color: var(--white); text-align: center;
}
.mission-strip p { font-size: 18px; max-width: 820px; margin: 0 auto; line-height: 1.8; opacity: .95; }

/* ================================================================
   FOCUS AREA CARDS
   ================================================================ */
.focus-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.focus-card {
    background: var(--white); border: 1px solid var(--green-border);
    border-top: 4px solid var(--green-dark); border-radius: var(--radius);
    padding: 32px 24px; text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.focus-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.focus-icon { font-size: 44px; margin-bottom: 16px; }
.focus-card h3 { font-size: 15px; color: var(--green-dark); font-weight: 700; margin-bottom: 10px; }
.focus-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ================================================================
   WHO WE ARE (2-col)
   ================================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.about-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 380px; object-fit: cover; object-position: center; }
.stat-row { display: flex; gap: 30px; margin-top: 24px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-size: 30px; font-weight: 800; color: var(--green-dark); display: block; }
.stat-label { font-size: 12px; color: var(--text-muted); }

/* ================================================================
   FOUNDER QUOTE
   ================================================================ */
.founder-section { background: var(--gray-light); padding: 80px 0; }
.founder-inner { display: grid; grid-template-columns: 220px 1fr; gap: 50px; align-items: center; max-width: 900px; margin: 0 auto; }
.founder-photo { text-align: center; }
.founder-photo img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: top; border: 5px solid var(--white); box-shadow: var(--shadow-lg); margin: 0 auto; }
.founder-name { font-weight: 700; color: var(--green-dark); margin-top: 12px; font-size: 15px; }
.founder-title { font-size: 13px; color: var(--text-muted); }
.founder-quote blockquote { font-size: 18px; font-style: italic; color: var(--text); line-height: 1.8; border-left: 4px solid var(--green-dark); padding-left: 24px; margin-bottom: 16px; }
.founder-quote cite { font-size: 14px; color: var(--text-muted); font-style: normal; }

/* ================================================================
   TEAM PREVIEW STRIP
   ================================================================ */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.team-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card-img { width: 100%; height: 240px; object-fit: cover; object-position: top; }
.team-card-placeholder {
    width: 100%; height: 240px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    display: flex; align-items: center; justify-content: center;
    font-size: 64px; color: rgba(255,255,255,.7);
}
.team-card-body { padding: 20px; }
.team-card-name { font-size: 17px; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.team-card-role { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.team-cta { text-align: center; margin-top: 40px; }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner { background: linear-gradient(135deg, var(--green-dark), var(--green-mid)); padding: 80px 0; text-align: center; color: var(--white); }
.cta-banner h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.cta-banner p { font-size: 17px; opacity: .9; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background:var(--gray-light); color: rgba(22, 22, 22, 0.82); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; font-weight: 600; }
.footer-about .footer-logo {
    font-size: 22px; font-weight: 800; color: var(--white);
    background: var(--green-mid); padding: 6px 16px; border-radius: var(--radius-sm);
    display: inline-block; margin-bottom: 16px; text-decoration: none;
}
.footer-about p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
    display: flex; align-items: center; justify-content: center; font-size: 14px;
    color: rgba(255,255,255,.7); transition: background var(--transition), color var(--transition);
    text-decoration: none;
}
.social-link:hover { background: var(--green-mid); color: var(--black); }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--black); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(17, 17, 17, 0.7); transition: color var(--transition); }
.footer-links a:hover { color: var(--black); }
.footer-contact p { font-size: 14px; color: rgba(17, 17, 17, 0.7); margin-bottom: 10px; display: flex; align-items: flex-start; gap: 8px; }
.footer-bottom { border-top: 1px solid rgb(17 17 17); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgb(17 17 17); }

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero { background: linear-gradient(135deg, var(--green-dark), var(--green-mid)); padding: 70px 0; color: var(--white); text-align: center; }
.page-hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 17px; opacity: .9; max-width: 580px; margin: 0 auto; line-height: 1.7; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 14px; }
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--white); font-weight: 600; }

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about-content p { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.about-content h2 { font-size: 28px; font-weight: 700; color: var(--green-dark); margin-bottom: 14px; margin-top: 32px; }
.mission-vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.mv-card { background: var(--green-pale); border-radius: var(--radius); padding: 30px; border-left: 4px solid var(--green-dark); }
.mv-card h3 { font-size: 18px; font-weight: 700; color: var(--green-dark); margin-bottom: 12px; }
.mv-card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

.founder-full-grid { display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: start; }
.founder-full-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); object-fit: cover; height: 360px; object-position: top; }
.founder-full-text h2 { font-size: 26px; color: var(--green-dark); font-weight: 700; margin-bottom: 4px; }
.founder-full-text .role { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; font-weight: 500; }
.founder-full-text p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }

/* ================================================================
   TEAM PAGE
   ================================================================ */
.team-full-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 70px; }
.team-full-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: box-shadow var(--transition); }
.team-full-card:hover { box-shadow: var(--shadow-lg); }
.team-full-card > img { width: 100%; height: 335px; object-fit: cover; object-position: top; display: block; }
.team-full-card-placeholder { width: 100%; height: 335px; background: linear-gradient(135deg, var(--green-dark), var(--green-mid)); display: flex; align-items: center; justify-content: center; font-size: 70px; color: rgba(255,255,255,.7); }
.team-full-card-body { padding: 20px 24px; text-align: center; }
.team-full-card-name { font-size: 18px; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.team-full-card-role { font-size: 12px; font-weight: 600; color: var(--white); background: var(--green-mid); display: inline-block; padding: 4px 12px; border-radius: 20px; }
.team-full-card-bio { font-size: 15px; color: var(--text-muted); line-height: 1.8; }

/* ================================================================
   PROGRAMS PAGE
   ================================================================ */
.programs-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.program-card { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); border-left: 5px solid var(--green-dark); transition: transform var(--transition), box-shadow var(--transition); }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.program-icon { font-size: 48px; margin-bottom: 18px; }
.program-card h3 { font-size: 21px; font-weight: 700; color: var(--green-dark); margin-bottom: 12px; }
.program-card p { font-size: 15px; color: var(--text-muted); line-height: 1.8; }

/* ================================================================
   GALLERY PAGE
   ================================================================ */
.gallery-filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
    padding: 9px 24px; border-radius: 20px; border: 2px solid var(--green-border);
    background: var(--white); color: var(--text-muted); font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-empty { text-align: center; color: var(--text-muted); padding: 80px 20px; font-size: 16px; }
.gallery-empty p { margin-top: 12px; font-size: 14px; }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: 24px; color: var(--green-dark); font-weight: 700; margin-bottom: 14px; }
.contact-info > p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 32px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-icon { width: 44px; height: 44px; background: var(--green-pale); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-detail-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--green-dark); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .5px; }
.contact-detail-text span, .contact-detail-text a { font-size: 14px; color: var(--text-muted); }
.contact-form { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 20px; font-weight: 700; color: var(--green-dark); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-control {
    width: 100%; padding: 12px 16px; border: 2px solid var(--green-border);
    border-radius: var(--radius-sm); font-size: 15px; font-family: var(--font); color: var(--text);
    background: var(--white); transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(26,93,58,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; }
.form-alert-success { background: #c8e6c9; color: #1b5e20; border: 1px solid #a5d6a7; }
.form-alert-error   { background: #ffcdd2; color: #b71c1c; border: 1px solid #ef9a9a; }

/* ================================================================
   DONATE PAGE
   ================================================================ */
.donate-intro { font-size: 16px; color: var(--text-muted); line-height: 1.8; max-width: 760px; margin: 0 auto 50px; text-align: center; }
.donate-intro h2 { font-size: 28px; font-weight: 700; color: var(--green-dark); margin-bottom: 12px; }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 40px; }
.donate-card { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); border-top: 4px solid var(--green-dark); }
.donate-card h3 { font-size: 20px; font-weight: 700; color: var(--green-dark); margin-bottom: 12px; }
.donate-card p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.impact-list { list-style: none; margin-bottom: 24px; }
.impact-list li { font-size: 14px; color: var(--text-muted); padding: 9px 0; border-bottom: 1px solid var(--green-border); display: flex; align-items: center; gap: 10px; }
.impact-list li:last-child { border-bottom: none; }
.impact-list li::before { content: '✓'; color: var(--green-dark); font-weight: 700; flex-shrink: 0; }
.bank-details { background: var(--green-pale); border-radius: var(--radius-sm); padding: 20px; font-size: 14px; color: var(--text); line-height: 2; }
.bank-details strong { color: var(--green-dark); }

/* ================================================================
   FLASH MESSAGES
   ================================================================ */
.flash-message { padding: 14px 20px; font-size: 15px; text-align: center; position: relative; }
.flash-success { background: #c8e6c9; color: #1b5e20; }
.flash-error   { background: #ffcdd2; color: #b71c1c; }
.flash-info    { background: #e3f2fd; color: #0d47a1; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .focus-cards  { grid-template-columns: repeat(2,1fr); }
    .footer-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        display: none; position: absolute; top: 70px; left: 0; right: 0;
        background: var(--white); flex-direction: column;
        padding: 16px; box-shadow: 0 8px 20px rgba(0,0,0,.1);
        gap: 4px; z-index: 999;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { display: block; padding: 12px 16px; }
    .hero { height: 480px; }
    .hero-title { font-size: 34px; }
    .hero-subtitle { font-size: 15px; }
    .section { padding: 50px 0; }
    .section-title { font-size: 28px; }
    .about-grid, .founder-inner, .founder-full-grid { grid-template-columns: 1fr; gap: 30px; }
    .founder-inner { text-align: center; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .team-full-grid { grid-template-columns: 1fr 1fr; }
    .team-full-card > img { height: 220px; }
    .team-full-card-placeholder { height: 220px; }
    .programs-grid { grid-template-columns: 1fr; }
    .mission-vision-grid { grid-template-columns: 1fr; }
    .contact-grid, .donate-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .cta-banner h2 { font-size: 28px; }
}

@media (max-width: 480px) {
    .hero { height: 400px; }
    .hero-title { font-size: 26px; }
    .focus-cards { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .contact-form { padding: 24px; }
    .page-hero h1 { font-size: 30px; }
}
