/*=========================================
    GENERAL
=========================================*/

:root{

    --green:#054240;
    --light-green:#9ED255;
    --dark:#2d2d2d;
    --light:#f8f8f8;
    --text:#555;

}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins',sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: #fff;
}

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

a {
    text-decoration: none;
}

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

section {
    padding: 90px 0;
}

h1 {
    font-size: 52px;
    line-height: 1.2;
}

h2 {
    font-size: 42px;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    font-size: 30px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
}

h2 span,
h3 span,
h4 span,
h5 span,
p span {
    color: var(--light-green);
}

.alert a {
    color: var(--light-green);
}

.alert a:hover {
    color: var(--green);
    opacity: .6;
}

/*=========================================
    BUTTONS
=========================================*/

.btn {
    display: inline-block;
    padding: 14px 34px;
    background: var(--light-green);
    color: #fff;
    border-radius: 12px;
    transition: .3s;
    cursor: pointer;
    border: none;
    font-weight: 600;
}

.btn:hover {
    background: var(--light-green);
    opacity: .85;
    color: var(--light);
}

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

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    background: var(--green);
    box-shadow: 0 3px 12px rgba(0,0,0,.15);
}

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

.logo {
    width: 80px;
}

.logo-footer {
    width: 100px;
}

.nav {

    display: flex;
    gap: 40px;

}

.nav a {
    color: white;
    transition: .3s;
}

.nav a:hover,
.nav a.active {
    color: var(--light-green);
}

/*=========================================
    MOBILE MENU
=========================================*/

.menu-toggle {
    display: none;
    font-size: 34px;
    color: white;
    cursor: pointer;
}

.offcanvas-body {
    background-color: var(--light);
}

/*=========================================
    HERO
=========================================*/
.hero {
    background: var(--green);
    color: var(--light );
    padding-top: 160px;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.hero h1 span, h2 span {
    color: var(--light-green);
}

.hero img {
    border-radius: 25px;
}

.hero p {
    margin: 30px 0;
}

/*=========================================
    SERVICES
=========================================*/

#services {
    background: var(--light);
}

.services-intro {
    max-width: 900px;
    text-align: center;
    margin: auto auto 50px;
}

.service-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}

.service-tab {
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: .3s;
    border: none;
    color: var(--text);
}

.service-tab.active {
    background: var(--light-green);
    color: var(--light);
}

.service-tab:not(.active):hover {
    background: #e4e4e4;
}

.service-content {
    display: none;
    animation: fade .35s ease;
}

.service-content.active {
    display:block;
}

.service-subtitle {
    color: var(--light-green);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 18px;
}

.service-heading {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: (var(--green));
    margin-bottom: 25px;
}

.service-description {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 35px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    font-size: 1rem;
    color: var(--text);
}

.service-list i {
    color: var(--light-green);
    margin-right: 14px;
    font-size: 1.1rem;
    align-self: flex-start;
}

i {
    font-size: 1.1rem;
    color: var(--light-green);
}

.service-image {
    /* border-radius: 22px; */
    box-shadow: 0 18px 45px rgba(0,0,0,.15);
    transition: .4s;
}

.service-image:hover{
    transform: translateY(-8px);
}

/*=========================================
    ABOUT
=========================================*/
h1 i {
    font-size: 4rem;
}

.about h4 {
    margin-bottom: 5px !important;
}

.about li {
    margin-bottom: 5px;
    text-align: left;
}

/*=========================================
    GRANTS
=========================================*/
.grants {
    background: var(--green);
    color: white;
}

.how-grants {
    background: var(--light-green);
    color: white;
}

.span-green {
    color: var(--green);
}

.grants h2 {
    color: white;
}

.card-notes {
    background: rgba(255, 255, 255, .8);
    color: #555;
    border-radius: 18px;
    padding: 30px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: #f7f7f3;
    color: #555;
    border-radius: 18px;
    text-align: center;
    padding: 30px;
    transition: .35s;
}

.card img {
    height: 75px;
    object-fit: contain;
    margin: 0 0 25px;
}

.card h4 {
    color: var(--text);
    margin-bottom: auto;
}

.card h4 span {
    color: var(--light-green);
}

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

/*=========================================
    CONTACT
=========================================*/

.contact {
    background: var(--light);
}

.contact form {
    display: flex;
    flex-direction: column;
}

.contact input,
.contact textarea {
    width: 100%;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.contact input:focus,
.contact textarea:focus {
    border-color: var(--light-green);
    box-shadow: 0 0 0 .25rem rgba(158, 210, 85, 0.5);
}

.contact textarea {
    min-height: 220px;
    resize: vertical;
}

/*=========================================
    FOOTER
=========================================*/

footer {
    background: #363636;
    color: var(--light);
    padding: 60px 0;
}

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

.footer-grid h4 {
    margin-bottom:15px;
}

.footer-grid a {
    display:block;
    color:#ddd;
    margin-bottom:10px;
}

.footer-bottom {
    margin-top:40px;
    text-align:center;
    color:#aaa;
    font-size:14px;
}

footer a {
    color: var(--light);
}

footer a:hover {
    color: #7a7a7a;
}

.copyright {
    font-size: .9rem;
}

/*=========================================
    MODAL
=========================================*/

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--light);
    border-radius: 18px;
    padding: 40px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
}

.modal-header {
    color: var(--light-green);
}

/*=========================================
    SCROLL ANIMATION
=========================================*/
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity .8s,
        transform .8s;
}

.revealH {
    opacity: 0;
    transform: translateX(40px);
    transition:
        opacity .8s,
        transform .8s;
}

.reveal.visible,
.revealH.visible {
    opacity: 1;
    transform: none;
}

/*=========================================
    TABLET
=========================================*/

@media(max-width:992px) {

    .hero-wrapper,
    .service-wrapper {
        grid-template-columns: 1fr;
    }

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

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

    .service-heading {
        font-size: 2rem;
    }

    .service-description {
        font-size: 1rem;
    }

    .service-image {
        margin-top: 40px;
    }
}

/*=========================================
    MOBILE
=========================================*/

@media(max-width:768px) {

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--green);
        padding: 25px;
        flex-direction: column;
        gap: 20px;
    }

    .nav.show {
        display: flex;
    }

    .hero {
        text-align: center;
    }

    .hero img {
        margin: auto;
    }

    .grants-grid {
        grid-template-columns: 1fr;
    }

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

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 32px;
    }

    .service-buttons {
        flex-direction: column;
        align-items: center;
    }

    .card-notes {
        width: 100%;
    }
}

header {
    transition:.35s;
}

header.scrolled {
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
}

.nav-link.active{
    color:var(--bs-success);
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(15px);
    } to {
        opacity: 1;
        transform: none;
    }
}