/* --- CSS Variables & Reset --- */
:root {
    --primary-green: #2E7D32;
    --secondary-orange: #F57C00;
    --accent-brown: #5D4037;
    --footer-bg: #3E2723;
    --footer-bottom-bg: #2C1A15;
    --footer-heading: #FFD54F;
    --footer-text: #EFEBE9;
    --footer-link: #FFCC80;
    --light-bg: #F9F9F9;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography & Buttons --- */
h1, h2, h3, h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-orange);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e65100;
    transform: translateY(-2px);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 50px;
    width: auto;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-orange);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-green);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 45%, rgba(245, 124, 0, 0.12), transparent 29rem),
        linear-gradient(135deg, #fffdf7, #f5f8ef);
    display: flex;
    align-items: center;
    padding: 120px 0 70px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.hero-eyebrow {
    color: var(--primary-green);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-eyebrow span {
    color: var(--secondary-orange);
    padding: 0 4px;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.08;
    color: var(--primary-green);
    margin-bottom: 24px;
}

.hero-content > p:not(.hero-eyebrow) {
    font-size: 1.1rem;
    margin-bottom: 32px;
    color: var(--text-light);
    max-width: 570px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-btns .btn {
    border-radius: 999px;
    padding: 13px 28px;
}

.hero-visual {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-visual-glow {
    position: absolute;
    width: min(85%, 390px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(46, 125, 50, 0.14), rgba(245, 124, 0, 0.2));
}

.hero-logo-card {
    position: relative;
    width: min(100%, 450px);
    padding: 20px;
    background: var(--white);
    border: 1px solid rgba(46, 125, 50, 0.08);
    border-radius: 30px;
    box-shadow: 0 24px 65px rgba(46, 75, 35, 0.16);
    transform: rotate(2deg);
}

.hero-logo-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.hero-note {
    position: absolute;
    right: 0;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 260px;
    padding: 14px 18px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(46, 75, 35, 0.14);
    color: var(--accent-brown);
    font-size: 0.88rem;
    font-weight: 600;
}

.hero-note-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f5e9;
    color: var(--primary-green);
}

/* --- Sections General --- */
.section {
    padding: 80px 0;
}

.about { background-color: var(--white); }
.programs { background-color: var(--light-bg); }
.impact { background-color: var(--white); }
.contact { background-color: var(--light-bg); }
.leadership,
.projects { background-color: var(--white); }
.livelihood { background-color: #f5f8ef; }

.section-kicker {
    color: var(--secondary-orange);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.profile-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 36px;
    background: var(--white);
    border: 1px solid #e9eee4;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.profile-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e9eee4;
}

.profile-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #e8f5e9;
    color: var(--primary-green);
    font-size: 1.7rem;
}

.profile-heading h3 {
    color: var(--primary-green);
    font-size: 1.6rem;
    margin-bottom: 2px;
}

.profile-heading p {
    color: var(--text-light);
    margin: 0;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 36px;
}

.profile-details h4 {
    color: var(--accent-brown);
    margin-bottom: 10px;
}

.profile-details h4 i {
    color: var(--secondary-orange);
    margin-right: 8px;
}

.profile-details p {
    color: var(--text-light);
    margin-bottom: 8px;
}

.profile-details a,
.contact-info a {
    color: var(--primary-green);
    text-decoration: none;
}

.profile-details a:hover,
.contact-info a:hover {
    text-decoration: underline;
}

.livelihood-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    align-items: center;
    gap: 60px;
}

.livelihood-copy .section-kicker,
.livelihood-copy .section-title {
    text-align: left;
}

.livelihood-copy .section-title {
    margin-bottom: 24px;
}

.livelihood-copy > p:not(.section-kicker) {
    color: var(--text-light);
    margin-bottom: 16px;
}

.livelihood-highlight {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 34px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
    color: var(--accent-brown);
}

.livelihood-highlight > i {
    color: var(--secondary-orange);
    font-size: 2.4rem;
}

.livelihood-highlight strong {
    color: var(--primary-green);
    font-size: 1.35rem;
    line-height: 1.4;
}

.livelihood-highlight span {
    color: var(--text-light);
}

.table-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid #e9eee4;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.projects-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    text-align: left;
}

.projects-table caption {
    padding: 16px;
    color: var(--text-light);
    text-align: left;
}

.projects-table th,
.projects-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e9eee4;
    vertical-align: top;
}

.projects-table thead {
    background: var(--primary-green);
    color: var(--white);
}

.projects-table thead th {
    font-weight: 600;
}

.projects-table tbody tr:nth-child(even) {
    background: #f8faf6;
}

.projects-table tbody tr:hover {
    background: #eef5e9;
}

.projects-table td:nth-last-child(-n+2),
.projects-table tfoot td {
    font-weight: 600;
    text-align: center;
}

.projects-table tfoot {
    background: #fff6e9;
    color: var(--accent-brown);
}

.projects-table tfoot th,
.projects-table tfoot td {
    border-bottom: 0;
}

/* --- About Grid --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
    border-top: 4px solid var(--primary-green);
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-card i {
    font-size: 3rem;
    color: var(--secondary-orange);
    margin-bottom: 20px;
}

/* --- Programs Grid --- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.program-card i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* --- Impact & Stats --- */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 60px;
    text-align: center;
}

.stat-box {
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-box p {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

.awards-section {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.awards-section h3 {
    color: var(--accent-brown);
    margin-bottom: 20px;
}

.awards-section h3 i {
    color: var(--secondary-orange);
    margin-right: 8px;
}

.awards-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.awards-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.awards-list i {
    color: var(--secondary-orange);
    margin-right: 10px;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-green);
    background: #e8f5e9;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.contact-info a {
    color: inherit;
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* ============================================
   FOOTER - WAVES TRUST STYLE
   ============================================ */

.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 0;
}

.footer-main {
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.footer-main::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-col {
    padding: 10px 0;
}

/* Footer Brand Column */
.footer-logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white);
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.footer-logo-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.footer-brand-name {
    color: var(--footer-heading) !important;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: 1px;
}

.footer-tagline {
    color: var(--footer-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-desc {
    color: var(--footer-text);
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* Footer Headings */
.footer-heading {
    color: var(--footer-heading) !important;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-orange);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    color: var(--secondary-orange);
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.footer-links a:hover {
    color: var(--footer-heading);
    padding-left: 5px;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

/* Footer Address */
.footer-address p {
    color: var(--footer-text);
    font-size: 0.95rem;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-address p i {
    color: var(--secondary-orange);
    font-size: 1.1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* --- Footer Contact Fixes (Perfect Alignment) --- */
.footer-contact {
    display: flex;
    flex-direction: column;
}

.contact-person-info {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.c-name {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.c-role {
    color: var(--footer-text);
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.9;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--footer-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item i {
    color: var(--secondary-orange);
    font-size: 1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.item-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-content span {
    display: block;
}

.item-content a {
    color: var(--footer-text);
    text-decoration: none;
}

.item-content a:hover {
    color: var(--footer-heading);
    text-decoration: underline;
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: var(--footer-bottom-bg);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom .dev-link {
    color: var(--footer-heading);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-bottom .dev-link:hover {
    color: var(--secondary-orange);
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--white);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-links.active { display: flex; }
    
    .hero {
        padding: 115px 0 60px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero h1 { font-size: 2.6rem; }

    .hero-content > p:not(.hero-eyebrow) {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns { justify-content: center; }

    .hero-visual {
        min-height: 340px;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-note {
        right: 0;
        bottom: 4px;
    }

    .profile-details,
    .livelihood-grid {
        grid-template-columns: 1fr;
    }

    .livelihood-grid {
        gap: 30px;
    }

    .livelihood-copy .section-kicker,
    .livelihood-copy .section-title {
        text-align: center;
    }
    
    .contact-wrapper { grid-template-columns: 1fr; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-main::before,
    .footer-main::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-eyebrow {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
    }

    .hero-visual {
        min-height: 280px;
    }

    .hero-logo-card {
        width: 88%;
        padding: 12px;
        border-radius: 22px;
    }

    .hero-note {
        max-width: 220px;
        padding: 10px 12px;
        font-size: 0.78rem;
    }

    .profile-card {
        padding: 24px 18px;
    }

    .profile-heading {
        gap: 12px;
    }

    .profile-icon {
        width: 52px;
        height: 52px;
    }

    .livelihood-highlight {
        padding: 26px;
    }

    .footer-logo-box {
        flex-direction: column;
        text-align: center;
    }

    .contact-person-info {
        align-items: center;
        text-align: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-heading {
        text-align: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-address p,
    .contact-item {
        justify-content: center;
        text-align: center;
    }
}