:root {
    --primary-dark-green: #1a3a24;
    --accent-yellow: #f8d13e;
    --text-light: #f0f0f0;
    --text-white: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --section-padding: 60px 0;
}

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

*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    background-color: var(--primary-dark-green);
    color: var(--text-light);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.siteheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background-color: #2e7d32cf;
    color: white;
    position: relative;
    z-index: 1000;
}

#logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    z-index: 1001;
}

#logo span {
    color: white;
    font-style: normal;
}

.menuToggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.menuToggle .bar {
    background: white;
    height: 3px;
    width: 25px;
    margin: 3px 0;
    transition: all 0.3s ease-in-out;
}

.menuToggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menuToggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menuToggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

#mainNav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    align-items: center;
}

#mainNav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1.2em;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease;
}

#mainNav ul li a:hover {
    color: var(--accent-yellow);
}

.cta {
    color: #000;
    font-family: inherit;
    display: inline-block;
    padding: 10px 20px;
    overflow: hidden;
    cursor: pointer;
    font-size: 17px;
    z-index: 1;
    border-radius: 15px;
    border: none;
    position: relative;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta::before {
    position: absolute;
    content: "";
    background: #5CE65C;
    width: 190px;
    height: 200px;
    z-index: -1;
    border-radius: 50%;
    top: 100%;
    left: 100%;
    transition: all 0.3s ease;
}

.cta:hover {
    color: var(--primary-dark-green);
}

.cta:hover::before {
    top: -30px;
    left: -30px;
}

.maincontent {
    padding-top: 20px;
}

.section {
    padding: var(--section-padding);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section:last-of-type {
    border-bottom: none;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Default for larger screens */
    gap: 50px;
    /* Default gap */
    align-items: center;
}

.grid.reversed {
    grid-template-columns: 1.5fr 1fr;
    /* Default for larger screens, reversed order */
}

/* Ensure consistent order for text/image on larger screens when reversed */
.grid.reversed .text {
    grid-column: 1;
    grid-row: 1;
}

.grid.reversed .image {
    grid-column: 2;
    grid-row: 1;
}

.image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image img {
    max-height: 300px;
    width: auto;
    object-fit: contain;
}

.text h2 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-white);
    line-height: 1.3;
}

.text p,
.text ul {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.text ul {
    list-style: circle;
    padding-left: 20px;
}

.sitefooter {
    background-color: var(--primary-dark-green);
    color: #c0c0c0;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footercontent {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 40px;
    flex-wrap: wrap;
}

.footerabout,
.footerlinks,
.footercontact {
    flex: 1;
    min-width: 200px;
}

.footerlogo {
    margin-bottom: 15px;
    font-size: 2em;
    color: var(--accent-yellow);
    font-weight: 700;
}

.footerabout p {
    font-size: 0.9em;
    line-height: 1.7;
}

.footerlinks h4,
.footercontact h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--text-white);
}

.footerlinks ul {
    padding-left: 0;
    list-style-type: none;
}

.footerlinks ul li {
    margin-bottom: 8px;
}

.footerlinks a,
.footercontact p {
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.footerlinks a:hover {
    color: var(--accent-yellow);
}

.footercontact p {
    margin-bottom: 5px;
}

.footerbottom {
    background-color: #132f1c;
    padding: 15px 0;
    text-align: center;
    font-size: 0.9em;
}

.footerbottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footerbottom p {
    color: #aaa;
}

.footerbottom ul {
    display: flex;
    padding-left: 0;
    list-style-type: none;
}

.footerbottom ul li {
    margin-left: 15px;
}

.footerbottom a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footerbottom a:hover {
    color: var(--accent-yellow);
}

@media (max-width: 1024px) {
    .siteheader {
        padding: 16px 20px;
    }

    .menuToggle {
        display: flex;
    }

    #mainNav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #256a28ea;
        padding-top: 90px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #mainNav.active {
        transform: translateX(0);
    }

    #mainNav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        width: 100%;
        padding: 20px;
    }

    #mainNav ul li {
        width: 100%;
        text-align: center;
    }

    #mainNav ul li a {
        font-size: 1.5em;
        padding: 15px 0;
    }

    .cta {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    .cta::before {
        width: 180px;
        height: 180px;
    }

    .cta:hover::before {
        top: -25px;
        left: -25px;
    }
}

@media (max-width: 992px) {

    .grid,
    .grid.reversed {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .grid .image,
    .grid.reversed .image {
        order: -1;
        margin-bottom: 20px;
    }


    .grid.reversed .text,
    .grid .text {
        grid-column: auto;
        grid-row: auto;
    }

    .text h2 {
        font-size: 2.2em;
    }

    .image img {
        max-height: 250px;
    }

    .text ul {
        text-align: center;
        display: inline-block;
        margin: 0 auto;
        padding-left: 20px;
    }

    .text ul li {
        list-style: circle;
        text-align: center;
    }
}


@media (max-width: 768px) {

    .grid,
    .grid.reversed {
        gap: 20px;
    }

    .text h2 {
        font-size: 2em;
    }

    .text p,
    .text ul {
        font-size: 1em;
    }

    .image img {
        max-height: 200px;
    }

    .text ul {
        padding-left: 15px;
    }

    .footercontent {
        flex-direction: column;
        text-align: center;
    }

    .footerabout,
    .footerlinks,
    .footercontact {
        min-width: unset;
        width: 100%;
        margin-bottom: 20px;
    }

    .footerabout:last-child,
    .footerlinks:last-child,
    .footercontact:last-child {
        margin-bottom: 0;
    }

    .footerlinks ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .footerlinks ul li {
        margin-bottom: 0;
    }

    .footerbottom .container {
        flex-direction: column;
    }

    .footerbottom ul {
        margin-top: 10px;
        justify-content: center;
    }

    .footerbottom ul li {
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    #logo {
        font-size: 1.4em;
    }

    .text h2 {
        font-size: 1.8em;
    }

    .image img {
        max-height: 150px;
    }

    .text ul {
        padding-left: 10px;
    }

    .siteheader {
        padding: 12px 15px;
    }
}
