/* =====================================================
   GLOBAL
===================================================== */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    color:#2b2b2b;
    background:#fafafa;
    line-height:1.7;
    overflow-x:hidden;
    animation:pageFadeIn .55s ease both;
}

img{
    display:block;
    max-width:100%;
}

a{
    text-decoration:none;
    color:inherit;
}

.container{
    width:min(1200px,90%);
    margin:auto;
}

.section{
    padding:100px 0;
}

/* =====================================================
   HEADER
===================================================== */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:999;
    background:#fff;
    transition:.35s;
}

header.scrolled{
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(15px);
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:70px;
}

.logo{
    display:flex;
    align-items:center;
}

.logo img{
    width:86px;
    max-height:50px;
    object-fit:contain;
}

nav ul{
    display:flex;
    list-style:none;
    gap:28px;
    align-items:center;
}

nav ul li{
    position:relative;
}

nav ul li a,
.dropdown-toggle{
    font:inherit;
    font-weight:600;
    position:relative;
    transition:.3s;
}

.dropdown-toggle{
    appearance:none;
    border:0;
    background:transparent;
    color:#2b2b2b;
    cursor:pointer;
}

.dropdown-toggle span{
    font-size:10px;
    margin-left:4px;
}

nav ul li a:hover,
.dropdown-toggle:hover,
.dropdown-toggle:focus,
.active-link{
    color:#1ba64b;
}

nav ul li a::after,
.dropdown-toggle::after{
    content:"";
    position:absolute;
    width:0;
    left:0;
    bottom:-8px;
    height:2px;
    background:#22b24f;
    transition:.3s;
}

nav ul li a:hover::after,
.dropdown-toggle:hover::after,
.active-link::after{
    width:100%;
}

.dropdown-menu{
    position:absolute;
    top:calc(100% + 18px);
    left:50%;
    min-width:180px;
    transform:translate(-50%,10px);
    display:flex;
    flex-direction:column;
    gap:0;
    padding:10px;
    background:#fff;
    border:1px solid rgba(21,125,55,.12);
    border-radius:8px;
    box-shadow:0 18px 40px rgba(0,0,0,.12);
    opacity:0;
    visibility:hidden;
    transition:.25s;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu{
    opacity:1;
    visibility:visible;
    transform:translate(-50%,0);
}

.dropdown-menu a{
    display:block;
    padding:9px 12px;
    border-radius:6px;
    color:#444;
}

.dropdown-menu a:hover{
    background:#eefaf2;
}

.dropdown-menu a::after{
    display:none;
}

.hamburger{
    display:none;
    flex-direction:column;
    cursor:pointer;
    gap:6px;
}

.hamburger span{
    width:28px;
    height:3px;
    background:#157d37;
    border-radius:10px;
}

.overlay-menu{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    opacity:0;
    visibility:hidden;
    transition:.35s;
    z-index:998;
}

.overlay-menu.show{
    opacity:1;
    visibility:visible;
}

/* =====================================================
   PROJECTS HERO
===================================================== */

.projects-hero{
    padding:130px 0 80px;
    background:linear-gradient(135deg,rgba(238,250,242,.98),rgba(255,255,255,.96));
}

.projects-hero-grid{
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
    gap:56px;
    align-items:center;
}

.projects-hero-content{
    color:#183b24;
    animation:heroContentIn .75s ease both;
}

.hero-tag{
    display:inline-block;
    padding:10px 20px;
    border-radius:40px;
    background:#fff;
    color:#157d37;
    box-shadow:0 8px 24px rgba(21,125,55,.10);
    margin-bottom:30px;
    font-size:14px;
}

.projects-hero h1{
    font-size:56px;
    line-height:1.1;
    color:#0f5c2a;
    margin-bottom:24px;
}

.projects-hero p{
    max-width:640px;
    color:#52615a;
    font-size:18px;
    margin-bottom:34px;
}

.hero-buttons{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.btn{
    padding:15px 34px;
    border-radius:50px;
    font-weight:600;
    transition:.35s;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.btn-primary{
    background:#22b24f;
    color:white;
}

.btn-primary:hover{
    background:#157d37;
    transform:translateY(-3px);
}

.btn-outline{
    border:2px solid white;
    color:white;
}

.project-outline{
    color:#157d37;
    border-color:#157d37;
}

.project-outline:hover{
    background:#157d37;
    color:#fff;
}

.projects-hero-image{
    border-radius:8px;
    overflow:hidden;
    background:#f8fff9;
    box-shadow:0 24px 60px rgba(21,125,55,.18);
    animation:heroImageIn .8s ease .08s both;
}

.projects-hero-image img{
    width:100%;
    aspect-ratio:4/3;
    object-fit:contain;
}

/* =====================================================
   PROJECT CARDS
===================================================== */

.section-title{
    text-align:center;
    margin-bottom:54px;
}

.section-title span{
    color:#22b24f;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:2px;
}

.section-title h2{
    font-size:48px;
    color:#157d37;
    margin:18px 0;
}

.section-title p{
    max-width:750px;
    margin:auto;
    color:#666;
}

.project-filter-bar{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
    margin:-18px 0 36px;
}

.project-filter-bar span{
    padding:9px 16px;
    border:1px solid rgba(21,125,55,.18);
    border-radius:30px;
    background:#fff;
    color:#157d37;
    font-size:14px;
    font-weight:600;
}

.project-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
    transition:opacity .28s ease, transform .28s ease;
}

.project-grid.is-changing{
    opacity:0;
    transform:translateY(14px);
}

.project-card{
    background:#fff;
    border:1px solid rgba(21,125,55,.10);
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 14px 32px rgba(0,0,0,.07);
    display:flex;
    flex-direction:column;
    transition:.35s;
}

.project-card.reveal-item{
    opacity:0;
    transform:translateY(24px);
}

.project-card.reveal-item.is-visible{
    opacity:1;
    transform:translateY(0);
    transition:opacity .55s ease, transform .55s ease, box-shadow .35s ease;
}

.project-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 44px rgba(0,0,0,.12);
}

.project-card.reveal-item.is-visible:hover{
    transform:translateY(-6px);
}

.project-image{
    position:relative;
    overflow:hidden;
    background:#eefaf2;
}

.project-image img{
    width:100%;
    aspect-ratio:16/11;
    object-fit:cover;
    transition:.45s;
}

.project-card:hover .project-image img{
    transform:scale(1.04);
}

.challenge-status{
    position:absolute;
    top:14px;
    right:14px;
    padding:6px 12px;
    border-radius:30px;
    color:white;
    font-size:13px;
    font-weight:600;
    backdrop-filter:blur(10px);
}

.challenge-status.active{
    background:#16a34a;
}

.challenge-status.previous{
    background:#2563eb;
}

.challenge-status.upcoming{
    background:#f59e0b;
}

.project-card-content{
    padding:24px;
    display:flex;
    flex:1;
    flex-direction:column;
}

.project-category{
    color:#22b24f;
    font-size:13px;
    font-weight:700;
    letter-spacing:.8px;
    text-transform:uppercase;
    margin-bottom:8px;
}

.project-card h3{
    color:#157d37;
    font-size:22px;
    line-height:1.25;
    margin-bottom:12px;
}

.project-card p{
    color:#606a65;
    font-size:15px;
}

.project-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:20px 0 22px;
}

.project-meta span{
    padding:6px 10px;
    border-radius:30px;
    background:#eefaf2;
    color:#157d37;
    font-size:12px;
    font-weight:600;
}

.project-link{
    margin-top:auto;
    padding-top:18px;
    border-top:1px solid #ececec;
    color:#157d37;
    font-weight:700;
}

.project-pagination{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:36px;
}

.project-pagination:empty{
    display:none;
}

.project-page-btn{
    width:42px;
    height:42px;
    border:1px solid rgba(21,125,55,.20);
    border-radius:8px;
    background:#fff;
    color:#157d37;
    font:inherit;
    font-weight:700;
    cursor:pointer;
    transition:.28s;
}

.project-page-btn:hover,
.project-page-btn:focus{
    border-color:#22b24f;
    box-shadow:0 10px 24px rgba(21,125,55,.16);
    transform:translateY(-2px);
}

.project-page-btn.active{
    background:#157d37;
    border-color:#157d37;
    color:#fff;
}

.reveal-item{
    opacity:0;
    transform:translateY(24px);
}

.reveal-item.is-visible{
    opacity:1;
    transform:translateY(0);
    transition:opacity .55s ease, transform .55s ease;
}

@keyframes pageFadeIn{
    from{
        opacity:0;
    }

    to{
        opacity:1;
    }
}

@keyframes heroContentIn{
    from{
        opacity:0;
        transform:translateY(24px);
    }

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

@keyframes heroImageIn{
    from{
        opacity:0;
        transform:translateY(26px) scale(.98);
    }

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

@media(prefers-reduced-motion:reduce){
    *,
    *::before,
    *::after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        scroll-behavior:auto !important;
        transition-duration:.01ms !important;
    }

    .reveal-item,
    .project-card.reveal-item{
        opacity:1;
        transform:none;
    }
}

/* =====================================================
   SUPPORTING SECTIONS
===================================================== */

.project-stats{
    background:#0b3c1b;
    color:#fff;
    padding:46px 0;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.stats-grid div{
    text-align:center;
    padding:18px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:8px;
}

.stats-grid strong{
    display:block;
    font-size:34px;
    line-height:1;
    margin-bottom:10px;
}

.stats-grid span{
    color:#d9f7df;
    font-weight:500;
}

.resource-section{
    background:#fff;
}

.resource-grid{
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:50px;
    align-items:start;
}

.eyebrow{
    color:#22b24f;
    font-weight:700;
    letter-spacing:2px;
}

.resource-grid h2{
    color:#157d37;
    font-size:42px;
    line-height:1.18;
    margin:16px 0;
}

.resource-grid p{
    color:#606a65;
}

.resource-list{
    display:grid;
    gap:16px;
}

.resource-list a{
    display:block;
    padding:22px;
    border:1px solid rgba(21,125,55,.12);
    border-radius:8px;
    background:#f8fcf9;
    transition:.3s;
}

.resource-list a:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 30px rgba(0,0,0,.08);
}

.resource-list strong{
    display:block;
    color:#157d37;
    font-size:20px;
    margin-bottom:5px;
}

.resource-list span{
    color:#606a65;
}

.join{
    background:linear-gradient(rgba(14,82,36,.90),rgba(14,82,36,.92)),url("walk4healthhero.png");
    background-size:cover;
    background-position:center;
    color:white;
    padding:120px 0;
    text-align:center;
}

.join-content{
    max-width:800px;
    margin:auto;
}

.join span{
    display:inline-block;
    margin-bottom:20px;
    color:#b7ff8f;
    font-weight:600;
    letter-spacing:2px;
}

.join h2{
    font-size:52px;
    margin-bottom:25px;
}

.join p{
    color:#ececec;
    margin-bottom:20px;
}

footer{
    background:#0b3c1b;
    color:white;
    padding:70px 0 25px;
}

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

.footer-grid h3,
.footer-grid h4{
    margin-bottom:18px;
}

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

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

.footer-grid a{
    transition:.3s;
}

.footer-grid a:hover{
    color:#84ff61;
}

.copyright{
    border-top:1px solid rgba(255,255,255,.15);
    display:block;
    padding-top:20px;
    text-align:center;
    color:#bbb;
    transition:.3s;
}

.copyright:hover,
.copyright:focus{
    color:#84ff61;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media(max-width:900px){
    nav{
        position:fixed;
        left:-320px;
        top:0;
        width:300px;
        height:100vh;
        background:white;
        box-shadow:10px 0 40px rgba(0,0,0,.15);
        transition:.35s;
        z-index:999;
        display:flex;
        align-items:center;
        justify-content:center;
    }

    nav.active{
        left:0;
    }

    nav ul{
        flex-direction:column;
        gap:24px;
        text-align:center;
    }

    nav ul a,
    .dropdown-toggle{
        font-size:20px;
    }

    .hamburger{
        display:flex;
        z-index:1000;
    }

    .dropdown-menu{
        position:static;
        min-width:0;
        transform:none;
        opacity:1;
        visibility:visible;
        box-shadow:none;
        border:0;
        background:#f5fbf7;
        margin-top:14px;
    }

    .has-dropdown:hover .dropdown-menu,
    .has-dropdown:focus-within .dropdown-menu{
        transform:none;
    }

    .projects-hero{
        padding:110px 0 70px;
    }

    .projects-hero-grid,
    .resource-grid{
        grid-template-columns:1fr;
    }

    .projects-hero h1{
        font-size:42px;
    }

    .project-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .footer-grid{
        grid-template-columns:1fr;
        text-align:center;
    }

    .section-title h2,
    .join h2{
        font-size:38px;
    }
}

@media(max-width:600px){
    .projects-hero{
        text-align:center;
    }

    .projects-hero h1{
        font-size:34px;
    }

    .projects-hero p{
        font-size:16px;
    }

    .hero-buttons{
        justify-content:center;
    }

    .section{
        padding:80px 0;
    }

    .project-grid,
    .stats-grid{
        grid-template-columns:1fr;
    }

    .project-filter-bar{
        justify-content:flex-start;
    }

    .project-card-content{
        padding:22px;
    }

    .resource-grid h2{
        font-size:32px;
    }
}
