/* =========================================================
   WAKHATI AGRI BUSINESS
   MAIN NAVIGATION
========================================================= */

* {
    box-sizing: border-box;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100px;

    padding: 0 6%;

    background: #123b24;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 4px solid #e8c84a;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.16);

    z-index: 99999;
}


/* =========================================================
   LOGO
========================================================= */

.navbar-logo a {
    display: flex;
    align-items: center;
    gap: 13px;

    text-decoration: none;
}


.navbar-logo img {
    width: 108px !important;
    height: 108px !important;

    object-fit: contain !important;

    display: block;
}


.navbar-logo span {
    color: #ffffff;

    font-size: 21px;
    font-weight: 800;

    letter-spacing: 0.3px;

    white-space: nowrap;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.navbar-links {
    display: flex;
    align-items: center;

    gap: 8px;
}


/* =========================================================
   NORMAL LINKS
========================================================= */

.navbar-links a {
    position: relative;

    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    padding: 11px 16px;

    border-radius: 7px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.navbar-links a:hover {
    background: rgba(232, 200, 74, 0.15);

    color: #e8c84a;

    transform: translateY(-1px);
}


/* =========================================================
   ACTIVE / CURRENT LINK
========================================================= */

.navbar-links a:not(.donate-button)::after {
    content: "";

    position: absolute;

    left: 16px;
    right: 16px;

    bottom: 5px;

    height: 2px;

    background: #e8c84a;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.25s ease;
}


.navbar-links a:not(.donate-button):hover::after {
    transform: scaleX(1);
}


/* =========================================================
   DONATE / SUPPORT BUTTON
========================================================= */

.donate-button {
    background: #e8c84a !important;

    color: #123b24 !important;

    padding: 12px 22px !important;

    margin-left: 8px;

    border-radius: 25px;

    font-weight: 800 !important;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease !important;
}


.donate-button:hover {
    background: #ffffff !important;

    color: #123b24 !important;

    transform: translateY(-2px);
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.mobile-menu-button {
    display: none;

    width: 46px;
    height: 46px;

    border: 2px solid #e8c84a;

    border-radius: 10px;

    background: #e8c84a;

    cursor: pointer;

    padding: 0;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.mobile-menu-button:hover {
    background: #ffffff;

    transform: scale(1.04);
}


.mobile-menu-button span {
    display: block;

    width: 24px;
    height: 3px;

    background: #123b24;

    border-radius: 5px;

    transition:
        transform 0.3s ease,
        opacity 0.2s ease;
}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 900px) {

    .navbar {
        height: 85px;

        padding: 0 22px;
    }


    /* -----------------------------------------
       LOGO
    ----------------------------------------- */

    .navbar-logo img {
        width: 62px !important;
        height: 62px !important;
    }


    .navbar-logo span {
        font-size: 17px;
    }


    /* -----------------------------------------
       SHOW MOBILE BUTTON
    ----------------------------------------- */

    .mobile-menu-button {
        display: flex;
    }


    /* -----------------------------------------
       HIDE DESKTOP LINKS
    ----------------------------------------- */

    .navbar-links {
        display: none;
    }


    /* =====================================================
       OPEN MOBILE MENU
    ===================================================== */

    .navbar-links.show {
        display: flex;

        position: absolute;

        top: 85px;
        left: 0;

        width: 100%;

        max-height: calc(100vh - 85px);

        overflow-y: auto;
        overflow-x: hidden;

        background: #123b24;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 12px 18px 25px;

        border-top: 1px solid rgba(232, 200, 74, 0.25);

        box-shadow:
            0 12px 25px rgba(0, 0, 0, 0.22);
    }


    /* -----------------------------------------
       MOBILE SCROLLBAR
    ----------------------------------------- */

    .navbar-links.show::-webkit-scrollbar {
        width: 5px;
    }


    .navbar-links.show::-webkit-scrollbar-thumb {
        background: #e8c84a;

        border-radius: 10px;
    }


    .navbar-links.show::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.06);
    }


    /* -----------------------------------------
       MOBILE LINKS
    ----------------------------------------- */

    .navbar-links.show a {
        display: block;

        width: 100%;

        padding: 15px 18px;

        margin: 2px 0;

        color: #ffffff;

        font-size: 16px;

        text-align: left;

        border-radius: 7px;

        border-bottom: none;
    }


    .navbar-links.show a:hover {
        background: rgba(232, 200, 74, 0.13);

        color: #e8c84a;

        transform: none;
    }


    /* Remove desktop underline on mobile */

    .navbar-links.show a:not(.donate-button)::after {
        display: none;
    }


    /* -----------------------------------------
       MOBILE DONATE
    ----------------------------------------- */

    .navbar-links.show .donate-button {
        width: 100%;

        margin: 12px 0 0;

        padding: 14px 18px !important;

        text-align: center;

        border-radius: 8px;
    }


    /* =====================================================
       BARS → X
    ===================================================== */

    .mobile-menu-button.open span:nth-child(1) {
        transform:
            translateY(8px)
            rotate(45deg);
    }


    .mobile-menu-button.open span:nth-child(2) {
        opacity: 0;
    }


    .mobile-menu-button.open span:nth-child(3) {
        transform:
            translateY(-8px)
            rotate(-45deg);
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media screen and (max-width: 480px) {

    .navbar {
        height: 78px;

        padding: 0 15px;
    }


    .navbar-logo img {
        width: 54px !important;
        height: 54px !important;
    }


    .navbar-logo span {
        font-size: 14px;
    }


    .mobile-menu-button {
        width: 42px;
        height: 42px;
    }


    .mobile-menu-button span {
        width: 22px;
        height: 3px;
    }


    .navbar-links.show {
        top: 78px;

        max-height: calc(100vh - 78px);
    }

}