﻿/* ======================================================
   FVA MOBILE-ONLY HEADER
   Desktop remains completely untouched
====================================================== */

.fva-mobile-header{
    display:none;
}


@media(max-width:768px){

    /*
       Hide ONLY desktop title/navigation on mobile.
       Banner remains visible.
    */

    #masthead .site-branding,
    .site-header .site-branding,
    #masthead .fva-clean-nav,
    .site-header .fva-clean-nav{
        display:none !important;
    }


    /* MOBILE HEADER */

    .fva-mobile-header{
        display:block !important;

        width:calc(100% - 16px);

        margin:8px auto 10px;

        position:relative;

        background:#fff;

        border:1px solid #e1e7dd;
        border-radius:16px;

        box-shadow:
            0 8px 26px rgba(35,45,28,.08);

        overflow:hidden;

        box-sizing:border-box;

        z-index:100000;
    }


    /* TOP BRAND ROW */

    .fva-mobile-brand{
        min-height:78px;

        display:flex;
        align-items:center;
        justify-content:space-between;

        gap:12px;

        padding:15px 14px 15px 17px;

        box-sizing:border-box;

        background:
            radial-gradient(
                circle at 15% 0%,
                rgba(91,109,70,.10),
                transparent 45%
            ),
            #fff;
    }


    .fva-mobile-brand-text{
        min-width:0;

        display:flex;
        flex-direction:column;

        gap:5px;
    }


    .fva-mobile-brand-text strong{
        display:block;

        color:#202620;

        font-size:18px;
        line-height:1.18;
        font-weight:800;

        letter-spacing:-.025em;
    }


    .fva-mobile-brand-text span{
        color:#657756;

        font-size:8px;
        line-height:1.2;
        font-weight:800;

        text-transform:uppercase;

        letter-spacing:.11em;
    }


    /* HAMBURGER */

    .fva-mobile-menu-btn{
        flex:0 0 44px;

        width:44px;
        height:44px;

        display:flex;

        flex-direction:column;
        align-items:center;
        justify-content:center;

        gap:5px;

        padding:0;

        background:#415033;

        border:0;
        border-radius:11px;

        box-shadow:
            0 5px 14px rgba(52,65,40,.18);

        cursor:pointer;
    }


    .fva-mobile-menu-btn span{
        display:block;

        width:20px;
        height:2px;

        border-radius:10px;

        background:#fff;

        transition:
            transform .2s ease,
            opacity .2s ease;
    }


    .fva-mobile-header.menu-open
    .fva-mobile-menu-btn span:nth-child(1){
        transform:translateY(7px) rotate(45deg);
    }

    .fva-mobile-header.menu-open
    .fva-mobile-menu-btn span:nth-child(2){
        opacity:0;
    }

    .fva-mobile-header.menu-open
    .fva-mobile-menu-btn span:nth-child(3){
        transform:translateY(-7px) rotate(-45deg);
    }


    /* MENU */

    .fva-mobile-menu{
        display:none;

        padding:7px;

        border-top:1px solid #e8ece5;

        background:#fbfcfa;
    }


    .fva-mobile-header.menu-open
    .fva-mobile-menu{
        display:block;
    }


    .fva-mobile-menu > a,
    .fva-mobile-parent > button{
        width:100%;

        min-height:47px;

        display:flex;

        align-items:center;
        justify-content:space-between;

        margin:0 0 5px;
        padding:11px 13px;

        box-sizing:border-box;

        background:#fff;

        color:#202620;

        border:1px solid #e5eae2;
        border-radius:9px;

        text-decoration:none;

        font-family:inherit;
        font-size:14px;
        line-height:1.2;
        font-weight:700;

        text-align:left;

        cursor:pointer;
    }


    .fva-mobile-parent > button span{
        width:27px;
        height:27px;

        display:flex;
        align-items:center;
        justify-content:center;

        flex:0 0 27px;

        margin-left:10px;

        border-radius:50%;

        background:#edf2e9;
        color:#526247;

        font-size:17px;

        transition:transform .18s ease;
    }


    .fva-mobile-parent.open > button span{
        transform:rotate(180deg);
    }


    /* SUBMENU */

    .fva-mobile-submenu{
        display:none;

        margin:-1px 0 6px;
        padding:5px;

        background:#f0f4ed;

        border-radius:9px;
    }


    .fva-mobile-parent.open
    .fva-mobile-submenu{
        display:block;
    }


    .fva-mobile-submenu a{
        display:block;

        padding:11px 12px;

        margin:0 0 3px;

        background:#fff;

        color:#344128;

        border-radius:7px;

        text-decoration:none;

        font-size:13px;
        line-height:1.25;
        font-weight:650;
    }


    .fva-mobile-submenu a:last-child{
        margin-bottom:0;
    }


    /* banner directly below mobile header */

    #masthead,
    .site-header{
        margin-top:0 !important;
    }


    /*
       Ensure desktop nav cannot create blank space
       while hidden.
    */

    #masthead .fva-clean-nav,
    .site-header .fva-clean-nav{
        margin:0 !important;
        padding:0 !important;
        height:0 !important;
        min-height:0 !important;
        border:0 !important;
    }

}


/* Smaller phones */

@media(max-width:380px){

    .fva-mobile-brand{
        min-height:72px;

        padding-left:13px;
        padding-right:11px;
    }

    .fva-mobile-brand-text strong{
        font-size:16px;
    }

    .fva-mobile-brand-text span{
        font-size:7px;
        letter-spacing:.07em;
    }

    .fva-mobile-menu-btn{
        width:40px;
        height:40px;
        flex-basis:40px;
    }

}

/* =====================================================
   STRICT MOBILE-ONLY HEADER
===================================================== */

.fva-mobile-header{
    display:none !important;
    visibility:hidden !important;
    pointer-events:none !important;
}

@media(max-width:768px){

    .fva-mobile-header{
        display:block !important;
        visibility:visible !important;
        pointer-events:auto !important;
    }

}

@media(min-width:769px){

    .fva-mobile-header{
        display:none !important;
        visibility:hidden !important;
        pointer-events:none !important;
    }

}


/* =====================================================
   CLEAN MOBILE DROPDOWN CHEVRON
===================================================== */

@media(max-width:768px){

    .fva-mobile-parent > button > span{
        font-size:0 !important;
        position:relative !important;

        width:30px !important;
        height:30px !important;

        flex:0 0 30px !important;

        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        border-radius:50% !important;

        background:#edf2e9 !important;
    }

    .fva-mobile-parent > button > span::before{
        content:"" !important;

        width:8px !important;
        height:8px !important;

        border-right:2px solid #526247 !important;
        border-bottom:2px solid #526247 !important;

        transform:rotate(45deg) translate(-1px,-1px) !important;

        transition:transform .2s ease !important;
    }

    .fva-mobile-parent.open > button > span::before{
        transform:rotate(225deg) translate(-1px,-1px) !important;
    }

}


@media(max-width:768px){

    .fva-mobile-brand-text strong{
        font-family:Georgia,"Times New Roman",serif !important;
    }

    .fva-mobile-brand-text span{
        letter-spacing:.08em !important;
    }

}

