/* =======================================================
   GLOBAL RESETS
======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-width: 320px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =======================================================
   GLASS HEADER + STICKY SCROLL SYSTEM
======================================================= */
.header {
    position: fixed;
    /* FIXED = Sticky always */
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 0;
    z-index: 2000;

    background: rgba(255, 255, 255, 0.03);



    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Solid header when scrolling */
.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

/* Change text color on scroll for readability */
.header.scrolled .nav a,
.dropdown-content a,
.header.scrolled .logo span,
.header.scrolled .logo small,
.header.scrolled .dropbtn {
    color: #006B57 !important;
    text-shadow: none;
}

/* =======================================================
   HEADER INNER STRUCTURE
======================================================= */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.logo span {
    font-size: 15px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.logo small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* NAVIGATION */
.nav {
    display: flex;
    gap: 32px;
    align-items: center;
    overflow: visible;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    overflow: visible;
}

/* Mobile dropdown show */
.dropdown-content.active {
    display: block;
}

.nav a:hover {
    color: #d9fff1;
    transform: translateY(-2px);
}

/* =======================================================
   MOBILE MENU TOGGLE
======================================================= */
.menu-toggle {
    display: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* === DROPDOWN WRAPPER === */
.dropdown {
    position: relative;

}

/* === GET INVOLVED BUTTON === */
.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    color: #006B57;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s ease;
}

/* On hover (desktop) */
.dropbtn:hover {
    color: #d9fff1;
    transform: translateY(-2px);
}

/* === DROPDOWN MENU BOX === */
.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    /* Sits directly under the button */
    margin-top: 0;
    /* REMOVE ANY SPACING */
    background: white;
    min-width: 180px;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);

    z-index: 2000;
}

.dropdown-content a {
    padding: 10px 16px;
    display: block;
    color: #006B57;
    /* UNA green */
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}


.dropdown-content a:hover {
    background-color: #f0f8f7;
}

/* === SHOW DROPDOWN ON DESKTOP === */
.dropdown:hover .dropdown-content {
    display: block;
}

/* === WHEN HEADER SCROLLS (white background) === */
.header.scrolled .dropbtn {
    color: #006B57 !important;
    text-shadow: none;
}


/* MOBILE MENU */
@media (max-width: 968px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        flex-direction: column;
        gap: 20px;
        position: absolute;
        top: 90px;
        right: 24px;
        width: 70%;
        padding: 24px 30px;
        border-radius: 14px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(15px);
        animation: dropdown 0.3s ease forwards;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        font-size: 17px;
        color: white;
        text-shadow: none;
    }

    /* Scroll state overrides on mobile */
    .header.scrolled .nav a {
        color: #006B57 !important;
    }

    .logo img {
        width: 60px;
        height: 60px;
    }

    @keyframes dropdown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.logo-img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
}

.default-logo {
    opacity: 1;
}

.scrolled-logo {
    opacity: 0;
}

.header.scrolled .default-logo {
    opacity: 0;
    transform: scale(0.9);
}

.header.scrolled .scrolled-logo {
    opacity: 1;
    transform: scale(1);
}


/* =======================================================
   FOOTER
======================================================= */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        overflow: visible;
    }
}


.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.125rem;
}

.footer-col p {
    color: #aaa;
    line-height: 1.8;
    font-size: 0.875rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #009879;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: #009879;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 24px;
    text-align: center;
}

.sdg-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sdg-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.footer-bottom p {
    color: #aaa;
    font-size: 0.875rem;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 968px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        flex-direction: column;
        gap: 16px;
        background: white;
        /* Mobile menu background stays white */
        position: absolute;
        top: 72px;
        right: 24px;
        padding: 20px 28px;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav.active {
        display: flex;
    }

    /* IMPORTANT: Revert text color to green/dark for mobile menu */
    .nav a {
        color: #006B57;
        font-size: 16px;
        text-shadow: none;
    }

    .nav a:hover {
        color: #009879;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-grid,
    .programs-grid,
    .sdg-grid,
    .impact-grid,
    .events-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }
}

@media (min-width: 969px) and (max-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sdg-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}