:root {
    --forest-green: #2E7D32;
    --sage-green: #A5D6A7;
    --crisp-white: #F5F5F5;
    --ivory-white: #FFFDE7;
    --golden-yellow: #FFCA28;
    --muted-ochre: #FFC107;
}

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

html, body {
    height: 100%;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

body {
    /* font-family: Arial, sans-serif; */
    font-family: 'Marcellus', serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    background: var(--crisp-white);
    color: var(--forest-green);
}

/* Placeholder for the menu */
#menu-placeholder {
    min-height: 60px; /* Approximate height of the header to prevent jumping */
}

/* Header Styles */
header {
    background: var(--forest-green);
    color: var(--crisp-white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.forest-header {
    position: relative;
    background-image: url('../img/ForestMenu.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 0;
    color: white;
}
.forest-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.forest-header .container,
.forest-header .nav-container,
.forest-header .logo,
.forest-header .hamburger,
.forest-header nav {
    position: relative;
    z-index: 2;
}

.forest-footer {
    background-image: url('../img/ForestGrass.jpg');
}

/* Main Content */
main {
    padding: 0rem 0 2rem 0; /* Ensure padding at top and bottom */
    flex: 1 0 auto;
    background: var(--crisp-white);
    margin-top: 2rem; /* Height of the header */
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

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

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

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    color: var(--golden-yellow);
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.1;
}

section {
    margin-bottom: 2rem;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    color: var(--forest-green);
}

h1 {
    font-size: 3rem;
    font-family: "Cal Sans", sans-serif;
    letter-spacing: 0.03em;
    line-height: 1;
    padding-bottom: 1rem;
}

h2 {
    display: inline-block;
    padding: 12px 8px;
    background-color: var(--sage-green);
    background-color: white;
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

h3 {
    font-size: 1.25rem;
    text-transform: uppercase;
    margin-left: 1.5rem;
}

h4 {
    font-size: 1.1rem;
    font-weight: bold;
}

p {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

ul {
    /* padding-top: 1rem; */
    margin-bottom: 1rem;
    padding-left: 3.5rem;
}

ul li {
    margin-bottom: 0.5rem;
}

/* Sector Cards */
.sector-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.sector-card {
    flex: 0 0 15%;
    text-align: center;
    /* background: var(--crisp-white); */
    background-color: white;
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sector-icon {
    font-size: 2.5rem;
    color: var(--golden-yellow);
    margin-bottom: 0.625rem;
    display: block;
}

.flex-stacked {
    flex-direction: column;
}

/* Strategy Cards */
.strategy-cards {
    display: flex;
    flex-wrap: wrap;
    /* flex-direction: column; */
    gap: 1.25rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.strategy-card {
    flex: 0 0 49%;
    text-align: center;
    background-color: white;
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.strategy-icon {
    font-size: 2.5rem;
    color: var(--golden-yellow);
    margin-bottom: 0.625rem;
    display: block;
}

/* Team Cards */
.team-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
}

.team-card {
    flex: 0 0 300px;
    text-align: center;
    /* background: var(--crisp-white); */
    background: white;
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-card:hover {
    background: var(--ivory-white);
    border-color: var(--muted-ochre);
}

.team-image {
    width: 112.5px;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin: 0 auto 0.625rem;
    display: block;
    /* border: 2px solid var(--sage-green); */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mission Items (for consistency, though not used in new content) */
.mission-items {
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
}

.mission-item {
    flex: 1;
    text-align: center;
    background: var(--crisp-white);
    padding: 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--sage-green);
}

.mission-item:hover {
    background: var(--ivory-white);
    border-color: var(--muted-ochre);
}

.mission-item__icon {
    font-size: 2.5rem;
    margin-bottom: 0.625rem;
    color: var(--golden-yellow);
}

.mission-item__header {
    background: var(--forest-green);
    color: var(--crisp-white);
    padding: 0.625rem;
    margin-bottom: 0.625rem;
    border-radius: 0.25rem;
}

.mission-item__description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--forest-green);
}

/* Footer */
footer {
    background: var(--forest-green);
    color: var(--crisp-white);
    padding: 1.5rem 0;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    font-family: 'Marcellus', serif;
    color: white;
    font-size: 1.75rem;
    font-weight: bold;
    line-height: 1.1;
    text-align: left;
}

.footer-contact {
    text-align: right;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 1);
}

.footer-contact a {
    color: var(--crisp-white);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--golden-yellow);
}

/* Back to Top Button */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    background: var(--golden-yellow);
    color: var(--forest-green);
    padding: 0.625rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-size: 1rem;
    z-index: 1002;
    cursor: pointer;
}

.back-to-top:hover {
    background: var(--ivory-white);
    color: var(--forest-green);
}

.back-to-top.visible {
    display: block !important; /* Ensure visibility when .visible is added */
}

.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
textarea {
    height: 150px;
    resize: vertical;
}
button {
    background-color: var(--forest-green);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}
button:hover {
    background: var(--golden-yellow);
    color: var(--forest-green);
}
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 0 auto;
}

.contact-info {
    margin-top: 30px;
    text-align: center;
}
.contact-info p {
    margin: 10px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.partner-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 15rem; /* Ensures consistent card height */
}

.partner-card:hover {
    scale: 1.05;
    transition: background 0.3s ease;
    background-color: var(--sage-green);
}

.partner-logo {
    max-width: 150px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
}

.partner-card h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.partner-card p {
    margin: 0 0 15px;
    line-height: 1.4;
}

.partner-link {
    display: inline-block;
    padding: 10px 20px;
    background: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.partner-link:hover {
    background: #0056b3;
}

/* Logo text styling for contrast */
.logo-text span {
    font-family: 'Marcellus', serif;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Shadow for readability */
    font-size: 1.5em;
    display: block;
}


/* Responsive Non-Navigation Styles */
@media (max-width: 48rem) {
    /* Adjust Back to Top Button for Mobile */
    .back-to-top {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    /* Stack Mission Items in Mobile (for consistency) */
    .mission-items {
        flex-direction: column;
        gap: 1rem;
    }

    .mission-item {
        padding: 1rem;
    }

    /* Adjust List Styling for Mobile */
    ul {
        padding-left: 1.5rem;
    }

    /* Adjust Logo for Mobile */
    /* .logo-image {
        width: 30px;
        height: 30px;
    } */

    .logo-text {
        font-size: 1rem;
    }

    /* Stack Sector Cards in Mobile */
    .sector-cards {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .sector-card {
        width: 300px;
        flex: 0 0 auto;
        padding: 1rem;
    }

    /* Strategy Cards in Mobile */
    .strategy-cards {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .strategy-card {
        flex: 0 0 100%;
        width: 300px;
        flex: 0 0 auto;
        padding: 1rem;
    }

    /* Stack Team Cards in Mobile */
    .team-cards {
        flex-direction: column;
        gap: 1rem;
    }

    .team-card {
        flex: 0 0 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 1rem;
    }

    .team-image {
        width: 90px;
        height: 120px;
    }

    /* Stack Footer Content in Mobile */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }

    /* Adjust main margin for mobile header height */
    main {
        margin-top: 1rem; /* Slightly smaller header height on mobile */
        padding: 0rem 0 2rem 0; /* Ensure padding at top and bottom */
    }

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