html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrolling */
    font-family: "Poppins", sans-serif;
    background-color: #f3e9dc;
}

body {
    display: flex;
    flex-direction: column; /* Keep nav on top, main below */
    box-sizing: border-box;
}

::-webkit-scrollbar {
    display: none;
}

nav {
    background-color: #f3e9dc;
    padding: 10px 20px;
    border-bottom: 1px solid #cdcdcd;
    flex-shrink: 0; /* Prevent nav from shrinking */
    position: relative;
}

nav .mainNav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    padding-right: 20px;
    height: 4em;
    position: relative;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav p {
    font-size: 20px;
    color: rgb(0, 0, 0);
    margin: 0;
}

nav button:not(.hamburger) {
    border: none;
    padding: 8px 19px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s ease;
}

nav form {
    margin: 0;
}

#landingPageImage {
    background-color: blue;
    width: 100px;
    height: 100px;
}

/* Main fills the rest of the screen */
main {
    flex: 1;
    background-color: #f3e9dc;
    height: calc(100vh - 4em); /* adjust if nav height changes */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* ------------------- Landing Page Styles ------------------- */
.landing-container {
    max-width: 1400px; /* wider to fit image + text */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: left; /* text aligns better on the right */
}

.landing-text {
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.green,
.brown {
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.logo {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto 1.5rem auto;
    overflow: hidden; /* Ensures image doesn't spill out */
    border-radius: 12px; /* Optional: makes edges rounded */
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps image aspect ratio while filling container */
    display: block;
}
/* Brand Name */
.landing-container h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.landing-container h1 .green {
    color: #228b22;
}

.landing-container h1 .brown {
    color: #8b4513;
}

/* Description */
.landing-container p {
    font-size: 2rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

/* Button */
.landing-btn {
    display: inline-block;
    width: 150px;
    text-align: center;
    background: #a8c19a;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.landing-btn:hover {
    background: #95b087;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1200px) {
    .landing-container {
        max-width: 100%;
        padding: 1rem;
    }

    .logo {
        width: 400px;
        height: 400px;
    }

    .landing-text {
        padding: 0 1rem;
    }

    .landing-container h1 {
        font-size: 3rem;
    }

    .landing-container p {
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .landing-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .logo {
        width: 300px;
        height: 300px;
    }

    .landing-text {
        height: auto;
    }

    .landing-container h1 {
        font-size: 2rem;
    }

    .landing-container p {
        font-size: 1.2rem;
    }

    .landing-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav .mainNav {
        justify-content: flex-start;
        padding-right: 0;
    }

    .nav-items {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #f3e9dc;
        border: 1px solid #cdcdcd;
        border-top: none;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        min-width: 200px;
        z-index: 999;
    }

    .nav-items.mobile-open {
        transform: translateX(0);
    }

    /* Keep images beside text in mobile */
    .landing-container {
        flex-direction: row !important;
        align-items: center;
        text-align: left;
        gap: 1rem;
        padding: 1rem;
    }

    .logo {
        width: 120px;
        height: 120px;
        margin: 0;
        flex-shrink: 0;
    }

    .landing-text {
        height: auto;
        flex: 1;
        padding-left: 1rem;
    }

    .landing-container h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .green,
    .brown {
        font-size: 1.5rem;
    }

    .landing-container p {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        padding: 0;
    }

    .landing-btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        width: auto;
    }
}

@media (max-width: 576px) {
    nav .mainNav {
        padding-right: 0;
        height: 3.5em;
    }

    .hamburger {
        right: 15px;
        font-size: 20px;
    }

    .nav-items {
        padding: 15px;
        min-width: 180px;
    }

    nav p,
    nav button:not(.hamburger),
    nav a {
        font-size: 16px;
    }

    main {
        height: calc(100vh - 3.5em);
        padding: 1rem;
    }

    .landing-container {
        gap: 0.8rem;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .landing-container h1 {
        font-size: 1.2rem;
    }

    .green,
    .brown {
        font-size: 1.2rem;
    }

    .landing-container p {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .landing-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
}

@media (max-width: 420px) {
    .landing-container {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .landing-text {
        padding-left: 0.5rem;
    }

    .landing-container h1 {
        font-size: 1rem;
    }

    .green,
    .brown {
        font-size: 1rem;
    }

    .landing-container p {
        font-size: 0.7rem;
    }
}

/* Make any other images inside containers responsive */
img {
    max-width: 100%;
    height: auto;
}
