/* ========================
   Reset / Base Styles
======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
}

.container {
    display: grid;
    grid-template-areas:
        "header"
        "nav"
        "main"
        "footer";
    grid-template-columns: 1fr;
    grid-template-rows: auto 50px minmax(500px, auto) minmax(100px, auto);
    min-height: 100vh;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
}

/* ========================
   Header / Nav / Footer
======================== */
header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2.5%;
    background-color: white;
    box-shadow: 0 0.125em 0.5em rgba(0, 0, 0, 0.05);
}

nav {
    grid-area: nav;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5em;
    flex-wrap: nowrap;
    white-space: nowrap;
}

nav a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.5em 1%;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    color: #2f8d58;
}

nav a.active {
    border-bottom: 0.2em solid #2f8d58;
    padding-bottom: 0.25em;
}

footer {
    grid-area: footer;
    background-color: #2f8d58;
    color: white;
    text-align: center;
    padding: 1.5em 2%;
}

/* ========================
   Main Content
======================== */
main {
    grid-area: main;
    display: grid;
    grid-template-areas:
        "hero"
        "content";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
}



/* ========================
   Hero Section
======================== */
.hero {
    grid-area: hero;
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-text {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 1;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75em;
}

.hero-text p {
    font-size: 1.1rem;
}

/* ========================
   Info Section
======================== */
.info {
    grid-area: content;
    background-color: white;
    padding: 3% 2%;
    font-size: 1.2rem;
    text-align: center;
}

/* ========================
   About Page
======================== */
#about-page {
    display: grid;
    grid-template-areas:
        "banner"
        "article";
    grid-template-columns: 1fr;
    grid-template-rows: 25vh auto;
    width: 100%;
    background-color: #f0f4f2;
}

#about-page .banner {
    grid-area: banner;
    width: 100%;
    height: 100%;
    background-image: url('../img/forest-15-1.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#about-page .banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
}

#about-page .banner h1 {
    position: relative;
    color: white;
    font-size: 2.8rem;
    text-shadow: 0.125rem 0.125rem 0.3125rem rgba(0,0,0,0.7);
}

#about-page article {
    grid-area: article;
    width: 80%;
    background-color: white;
    padding: 2.5%;
    border-radius: 0.8rem;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0,0,0,0.1);
    margin: 2% auto;
}

#about-page article h2 {
    color: #2f8d58;
    margin: 1em 0 0.5em;
    font-size: 1.6rem;
}

#about-page article p,
#about-page article ul {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1em;
}

#about-page article ul {
    list-style: disc inside;
}

/* ========================
   Membership Page
======================== */
#membership-page {
    display: grid;
    grid-template-areas:
        "banner"
        "hero-text"
        "featured"
        "gallery";
    grid-template-columns: 1fr;
    grid-template-rows: 25vh auto auto auto;
    gap: 1.5rem;
    width: 100%;
    padding: 2% 0;
}

#membership-page .banner { grid-area: banner; }
#membership-page .hero-text { grid-area: hero-text; }
#membership-page .featured { grid-area: featured; }
#membership-page .gallery { grid-area: gallery; }

#membership-page .banner {
    width: 100%;
    height: 100%;
    background-image: url('../img/forest-15-1.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#membership-page .banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
}

#membership-page .hero-text {
    color: white;
    text-align: center;
    z-index: 1;
}

#membership-page .hero-text h2 {
    font-size: 2.5rem;
    margin: 0 auto;
}

#membership-page .featured {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#membership-page .featured h2,
#membership-page .featured p {
    background-color: #f7f9f8;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
}

#membership-page .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 0 2%;
}

#membership-page .gallery article {
    background-color: white;
    padding: 2rem;
    border-radius: 0.8rem;
    box-shadow: 0 0.3rem 0.9rem rgba(0,0,0,0.1);
    flex: 1 1 250px;
}

/* ========================
   Contact Page
======================== */
#contact-page {
    display: grid;
    grid-template-areas:
        "banner"
        "contact";
    grid-template-columns: 1fr;
    grid-template-rows: 25vh auto;
    width: 100%;
}

#contact-page .banner { grid-area: banner; }
#contact-page .contact { grid-area: contact; }

#contact-page .banner {
    width: 100%;
    height: 100%;
    background-image: url('../img/forest-15-1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#contact-page .banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
}

#contact-page .banner h1 {
    position: relative;
    color: white;
    font-size: 2.8rem;
    text-shadow: 0.125rem 0.125rem 0.3125rem rgba(0,0,0,0.7);
}

#contact-page .contact {
    background-color: white;
    padding: 5%;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

#contact-page form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 3%;
    background-color: #f7f9f8;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.1);
    max-width: 90%;
    margin: 2% auto;
}

#contact-page form input,
#contact-page form textarea {
    width: 100%;
    padding: 0.8% 1%;
    border: 0.15rem solid #88A61B;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
}

#contact-page .tick {
    display: none;
    color: #2f8d58;
}

#contact-page .tick.show {
    display: inline;
}

/* ========================
   Trails Page
======================== */
#trails-page {
    display: grid;
    grid-template-areas:
        "banner"
        "trails-content";
    grid-template-columns: 1fr;
    grid-template-rows: 25vh auto;
    width: 100%;
}

#trails-page .banner { grid-area: banner; }
#trails-page .trails-content { grid-area: trails-content; }

#trails-page .banner {
    width: 100%;
    height: 100%;
    background-image: url('../img/forest-15-1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#trails-page .banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
}

#trails-page .banner h2 {
    position: relative;
    color: white;
    font-size: 2.5rem;
    text-shadow: 0.125rem 0.125rem 0.3125rem rgba(0,0,0,0.7);
}

#trails-page .trails-content {
    background-color: #fff;
    padding: 5%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

#trails-page .trails-content img {
    flex: 1 1 250px;
    max-width: 100%;
    border-radius: 0.8rem;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.vcard {
    width: 30%;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
}

#theForm {
    width: 70%;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }

    .vcard,
    #theForm {
        width: 100%;
    }
}

/* ========================
   Media Queries
======================== */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero {
        height: 50vh;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .info {
        font-size: 1rem;
        padding: 5%;
    }

    #about-page article,
    #membership-page .featured,
    #membership-page .gallery,
    #contact-page form,
    #trails-page .trails-content {
        width: 95%;
        padding: 2%;
    }
}