﻿:root {
    --green: #0a3a22;
    --gold: #ffcc33;
    --light: #f4f8f6;
    --dark: #0d1b1e;
}

/* =============================
        TOP NAV BAR
============================= */
.topnav {
    position: relative; /* <-- not fixed anymore */
    width: 100%;
    padding: 1px 0;
    background: var(--green);
    z-index: 10;
    transition: background 0.3s ease-in-out, box-shadow 0.3s;
}



.nav-container {
    width: 100%;
    padding: 0 40px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-logo {
    width: 100px;
    margin-right: 12px;
}

.nav-title {
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
}

/* =============================
          NAV LINKS
============================= */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

    .nav-links a,
    .dropbtn {
        color: white;
        font-size: 1.05rem;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
    }

.nav-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    z-index: 1001;
}

/* =============================
          DROPDOWN MENU
============================= */
.dropdown {
    position: relative;
}

.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
}

/* Desktop dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: black;
    min-width: 220px;
    border-radius: 6px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 9999;
}

    .dropdown-content a {
        padding: 12px 16px;
        display: block;
        color: white;
    }

        .dropdown-content a:hover {
            background: grey;
        }

/* Desktop hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile manual open */
.dropdown-content.show-dropdown {
    display: block !important;
}

/* =============================
         MOBILE RESPONSIVE
============================= */
@media (max-width: 900px) {

    /* Always hidden on desktop */
    .nav-toggle {
        display: none;
        font-size: 2rem;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        z-index: 5000;
        position: relative;
        text-shadow: 0 0 4px black; /* ensures visibility on light images */
    }

    /* Show hamburger on mobile */
    @media (max-width: 900px) {
        .nav-toggle {
            display: block !important;
        }

        .nav-left {
            flex: 1;
        }

        /* Move menu items underneath */
        .nav-links {
            display: none;
            flex-direction: column;
            align-items: flex-start;
            width: 100%;
            background: var(--green);
            padding: 20px 40px;
            gap: 12px;
        }

            .nav-links.show {
                display: flex !important;
            }
    }


    /* Disable desktop hover behavior on mobile */
    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown {
        width: 100%;
    }

    .dropbtn {
        width: 100%;
        text-align: left;
        padding: 10px 0;
        font-size: 1.25rem;
    }

    .dropdown-content {
        position: relative;
        background: grey;
        width: 100%;
        padding-left: 15px;
        box-shadow: none;
    }

        .dropdown-content a {
            color: white;
            padding: 10px 0;
        }
}
