/***************
    
    High Noon Interface
    2025 - Loop: Design fir Social Good
    https://weareloop.com/
 
    This file contains the styles for all parts related to 
    the header and footer interfaces. 
 
    @package High Noon Theme
    @version 1.0.0

***************/

:root {
    /* VARS */
     --header-height: 74px;
     --admin-bar-height: 32px;
}
a#fl-to-top {
    background: var(--Purple) !important;
    border-radius: 6px;
}
a#skip-to-content {
    background: var(--white);
    color: var(--black);
    font-size: 20px;
    font-size: 1.25rem;
    width: 100%;
    text-align: center;
    display: block;
    padding: 10px;
}

header.fl-page-header {
    background:transparent;
    height: calc(var(--header-height) + 16px);
    padding: 8px var(--content-padding);
    position: fixed;
    top:0;
    transition:all .25s ease;
    width: 100%;
    max-width: 100vw;
    z-index: 999;
}
header.fl-page-header .header_inner {
    max-width: 1366px;
    margin: auto;
    display: flex;
    gap: 0;
    align-content: flex-start;
    flex-wrap: wrap;

    align-items: flex-end;
    align-self: stretch;
    background: var(--Beige);
    border-radius: var(--border-radius-img);
    display: flex;
    flex-direction: column;
    padding: 0 10px 0 30px;
    box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.15);
}
header.fl-page-header.init {
    opacity:1;
}
body.admin-bar header.fl-page-header {
    margin-top: var(--admin-bar-height);
}

/*************/
/*************/
/* Menu Main */
/*************/
/*************/
nav ul {
    list-style-type: none;
}
#menu-main {
    background:transparent;
    height: 100%;
    position: relative;
    width:100%;
    z-index: 1;
}
#menu-mobile-primary {display:none}
#menu-main .menu-desktop {
    align-items: center;
    background: transparent;
    display: flex;
    flex-basis: 100%;
    gap: 35px;
    list-style: none;
    margin: auto;
    padding:0;
    position: relative;
}
/* spaces between logo and menu, menu and button */
#menu-main .menu-desktop >li.mainmenu_item:first-child {margin-right:auto}
#menu-main .menu-desktop >li.mainmenu_item:last-child {margin-left:auto}
#menu-main .menu-desktop >li.mainmenu_button a {
    display:block;
    text-decoration:none;
}
#menu-main .menu-desktop >.mainmenu_item:not(.mainmenu_home) {position:relative;}
#menu-main .menu-desktop >.mainmenu_item:not(.mainmenu_home):hover:after {opacity:1}
#menu-main .menu-desktop:not(#menu-simple) >.mainmenu_item:not(.mainmenu_home):after {
    content: "";
    position: absolute;
    background: var(--blood-red);
    width: calc(100% - 40px);
    height: 2px;
    left: 20px;
    bottom: 0px;
    transition: all 0.25s ease;
    opacity:0;
}
#menu-main .menu-desktop >li.mainmenu_item >a {
    background: transparent;
    background-image: linear-gradient(transparent, transparent);
    background-position: bottom left;
    background-repeat: no-repeat;
    background-size: 100% 6px;
    border-radius: 0;
    border: 0;
    color: var(--black);
    display:inline-block;
    font-family: var(--font-content);
    font-size: 17px;
    font-size: 1.06rem;
    font-weight: 600;
    height: 100%;
    line-height: 24px;
    line-height: 1.5rem;
    padding: 26px 0;
    position: relative;
    text-decoration:none;
    transition:all .25s ease;
}
#menu-main .menu-desktop > li:not(.button_cta, .mainmenu_home) > a:hover {
    animation: underline6 0.5s ease;
    background-image: linear-gradient(var(--blood-red), var(--blood-red));
}
@keyframes underline6 {
    from {background-size: 0% 6px;}
    to {background-size: 100% 6px;}
}
body:not(.fl-builder-edit) .nofocus:focus {box-shadow:initial !important}
#menu-main .menu-desktop li.mainmenu_item {    
    margin: 0;
    height: 100%;
    position: relative;
}
#menu-main .menu-desktop li.mainmenu_item {
    margin-bottom:0;
}
#menu-main .mainmenu_home {
    padding:0;
}
#menu-main .menu-desktop >li.current-menu-ancestor > a,
#menu-main .menu-desktop >li.current-menu-item:not(.mainmenu_home) > a{
    background-image: linear-gradient(var(--blood-red), var(--blood-red));
}

#menu-main .menu-desktop >li.mainmenu_item.mainmenu_home >a {
    padding: 0;
}
#menu-main .mainmenu_home >a img{
    height:100%;
    margin: 10px 0;
    max-height: 52px;
}
.menu_main_out header.fl-page-header {
    transform:translateY(calc(-48px - var(--header-height)));
}

/* Mobile menu */
#menu-main .menu-mobile {
    display: none;
}
#menu-main .button_cta:after {display:none}
#menu-main .button_cta button {
    align-items: center;
    background: var(--Blood-Red);
    border-radius: var(--border-radius-btn);
    border: 1px solid transparent;
    color: var(--white);
    display: flex;
    font-weight: 600;
    gap: 12px;
    justify-content: center;
    /* margin-bottom: 8px; */
    padding: 16px 30px;
    transition: all .25s ease;
}
#menu-main .button_cta button:hover {transform:scale(1.05)}

/**********/
/* Footer */
/**********/
footer {
    /* background: var(--black); */
    background: url('/wp-content/uploads/Background-Black.svg') var(--black) 50% / cover no-repeat;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    color: var(--Beige);
    margin-top: -30px;
    position: relative;
    z-index: 1;
}
.footer_row_wrapper {
    padding: var(--Sizing-Units-L) var(--content-padding);
}
.footer_row {
    align-items: stretch;
    display: flex;
    flex-direction: row;
    gap: 78px;
    justify-content: space-between;
    margin: auto;
    max-width: 1366px;
    padding-bottom: 0px;
}
.footer_row.row2 {
    align-items: flex-end;
}
.footer_col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: space-between;
    width: 100%;
}
.footer_row .col1 {   
    max-width: 430px;
}
.footer_row .col2 {   
    max-width: 383px; 
}
footer nav { 
    display: flex;
}
footer nav ul {
    align-content: space-between;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex: 1 0 0;
    gap: 34px;
    /* height: 169px; for 5 links in the footer nav  */
    height: 158px; /* for 4 links in the footer nav */ 
    list-style: none;
    padding-inline-start: 0;
}
footer nav ul a {
    font-weight: 700;
}
footer a:not(#menu--title) {
    background-color: inherit;
    background-image: linear-gradient(var(--pink), var(--pink));
    background-position: bottom left;
    background-repeat: no-repeat;
    background-size: calc(100%) 1px;
    border-radius: 0;
    border: none;
    color: var(--Beige);
    display: inline;
    font-weight: 600;
    line-height: normal;
    padding: 0;
    padding-bottom: 7px; /* lower underline */
    text-decoration: none;
    transition: background-size 250ms ease-in-out;
}
footer a:hover {
    text-decoration: none;
    background-size: 100% 1px;
}
.footer_row.row2 .small p a {
    font-weight: normal !important;
}

/***************************************************************/
/***************************************************************/
/* Responsive */
/***************************************************************/
/***************************************************************/

/*****************/
/* Large desktop */
/*****************/
@media only screen and (max-width: 1366px) {
    /* VARS */
    :root {
         /* --header-height: 100px; */
         --content-padding:60px;
    }
    /* Header */
    #menu-main .menu-desktop >li.mainmenu_item >a {
        font-size:16px;
        font-size:1rem;
        padding: 0;
    }
    #menu-main .menu-desktop li.mainmenu_item.menu_CTA {        margin: 0;    }
    #menu-main .menu-desktop li.mainmenu_item {        margin-bottom: 0;    }
    #menu-main .mainmenu_home >a img {        max-height: 52px;    }
    #menu-main .button_cta button {
        font-size: 17px;
        font-size: 1.06rem;
        letter-spacing: -0.34px;
    }
    /**********/
    /* Footer */
    /**********/
    .footer_row {
        gap: 60px;
    }
    footer nav ul {
        align-content: unset;
    }
}


/**********/
/* Tablet */
/**********/
@media only screen and (max-width: 992px) {
    /* VARS */
    :root {
        --admin-bar-height: 46px;
        --header-height: 74px;
        --content-padding:36px;
        --content-padding-top: 100px;
    }    
    header.fl-page-header .header_inner {
        height: var(--header-height);
        margin: auto;
        max-width: 100vw;
        overflow: hidden;
        padding: 0;
    }
    body.mobile_menu_open header.fl-page-header .header_inner {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        overflow: hidden;
    }
    #menu-main {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        justify-content: right;
        list-style: none;
        margin: 0;
        overflow: hidden;
        padding: 0;
        position: relative;
    }
    #menu-main #menu-main-desktop {display:none}
    #menu-mobile-primary {
        align-items: center;
        background: var(--Beige);
        display: flex;
        flex-basis: 100%;
        gap:24px;
        height:100%;
        justify-content: space-between;
        list-style: none;
        padding: 12px 26px;
        z-index:3;
    }
    #menu-mobile-primary .menu-mobile-home {
        margin-right: auto;
    }
    #menu-mobile-primary .menu-mobile-hamb {
        line-height: 0; /* removes extra space below button */
    }
    #menu-mobile-primary li img {
        height:100%;
        max-height: 52px;
    }
    #menu-mobile-primary li a {background:initial}
    #menu-mobile-primary .mobile_menu_toggle {
        background: transparent;
        border: 0;
        font-size: 0;
        height: 50px;
        padding: 0;
        position: relative;
        right: 0;
        width: 50px;
    }
    #menu-mobile-primary .mobile_menu_toggle:after {
        background:url(/wp-content/uploads/icon_mobile_hamb_open.svg) center right / contain no-repeat;
        content:"";
        display:inline-block;    
        height:50px;
        position: absolute;
        right: 0;
        top: 0;
        transition:all .25s ease;
        width:50px;
    }
    #menu-mobile-primary .mobile_menu_toggle[aria-pressed="true"]:after {
        background: url(/wp-content/uploads/icon_mobile_hamb_close.svg) center right / contain no-repeat;
        height: 38px;
        margin-top: 4px;
        right: 3px;
        transform: rotate(180deg) translate(-5px, -2px);
        width: 46px;
    }
    #menu-main-mobile {
        align-items: flex-start;
        align-self: stretch;
        background: var(--Beige);
        border-bottom-left-radius: var(--border-radius-img);
        border-bottom-right-radius: var(--border-radius-img);
        box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.20);
        display: flex;
        flex-direction: column;
        gap: 42px;
        /* height: calc(100vh - var(--header-height));
        height: calc(100lvh - var(--header-height)); */
        height: auto;
        left: 0;
        list-style: none;
        margin: 0 var(--content-padding) var(--content-padding);
        max-width: 100vw;
        overflow: auto;
        padding: 50px var(--Sizing-Units-XS) var(--Sizing-Units-XS);
        position: fixed;
        top: calc(var(--header-height) - 30px); /* 30px overlap to prevent border radius glitch on menu close */
        /* width: 100%; */
        width: calc(100lvw - (var(--content-padding) * 2));
        z-index: 1;
    }
    /* when wordpress admin bar is present */
    body.admin-bar #menu-main-mobile {
        /* height: calc(100vh - var(--header-height) - var(--admin-bar-height));
        height: calc(100lvh - var(--header-height) - var(--admin-bar-height)); */
        top: calc(var(--header-height) + var(--admin-bar-height) - 24px); /* 20px overlap to prevent border radius glitch on menu close */
    }
    #menu-main-mobile li {
        align-self: stretch;
    }
    #menu-main-mobile li a {
        background-image: none; /* disables animated underline */
    }
    #menu-main-mobile >li >button,
    #menu-main-mobile >li >a {
        align-items: center;
        align-self: stretch;
        background-color: transparent;
        border-color: transparent;
        color: var(--Purple);
        display: flex;
        font-size: 24px;
        font-size: 1.5rem;
        font-style: normal;
        font-weight: 600;
        justify-content: center;
        line-height: normal;
        padding: 0;
        width: 100%;
    }
    #menu-main-mobile >li >button[aria-expanded="true"]:after {
        transform: rotate(180deg);
    }
    #menu-main ul.menu-desktop {
        display:none;
    }
    #menu-main .menu-desktop .mainmenu_home {
        display:none;
    }
    body.mobile_menu_open  {overflow:hidden}
    /**********/
    /* Footer */
    /**********/
    footer {
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        margin-top: -24px;
    }
    .footer_row_wrapper {
        padding: var(--Sizing-Units-M) var(--content-padding);
    }
    .footer_row {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .footer_row.row1 .col1 {
        max-width: 220px;
    }
    .footer_row.row2 .col1 {
        max-width: 205px;
    }
    .footer_col.col2 .small p a,
    .footer_row.row2 .small p a {
        display: table !important;
    }
    footer nav ul {
        /* height: 169px; for 5 links in the footer nav  */
        height: 105px; /* for 4 links in the footer nav */ 
    }
}

/**********/
/* Mobile */
/**********/
@media only screen and (max-width: 768px) {
    /* VARS */
    :root {
        --admin-bar-height: 32px;
        --header-height: 66px;
        --content-padding:18px;
        --content-padding-top:80px;
    }
    header.fl-page-header {
        padding: calc(var(--content-padding) / 2) var(--content-padding);
    }
    body.admin-bar header.fl-page-header {
        margin-top: 46px;
    }
    body.admin-bar.menu_main_out header.fl-page-header {
        transform:translateY(-46px);
    }
    header.fl-page-header .header_inner {
        border-radius: var(--border-radius-img);
    }
    #menu-mobile-primary {
        height: auto;
        gap: 16px;
        padding: 14px 16px 16px;
    }
    #menu-mobile-primary li img {
        max-height: 34px;
    }
    #menu-mobile-primary .mobile_menu_toggle {
        height: 30px;
        width: 45px;
    }
    #menu-mobile-primary .mobile_menu_toggle:after {
        height: 30px;
        width: 45px;
    }
    #menu-mobile-primary .mobile_menu_toggle[aria-pressed="true"] {
        height: 35px;
        width: 45px;
    }
    #menu-mobile-primary .mobile_menu_toggle[aria-pressed="true"]:after {
        height: 37px;
        right: 0;
        width: 45px;
    }
    #menu-main-mobile {
        gap: 28px;
        margin: 0 var(--content-padding);
        padding: 50px 16px 21px;
        width: calc(100lvw - calc(var(--content-padding) * 2));
    }
    #menu-main .button_cta button {
        font-size: 18px;
        font-size: 1.13rem;
    }
    /* Footer */
    footer {
        padding-bottom: 0;
    }
    .footer_row_wrapper {
        padding: var(--Sizing-Units-S) var(--content-padding);
    }
    .footer_row {
        flex-direction: column;
        gap: var(--Sizing-Units-2XS);
    }
    .footer_row.row1 {
        gap: 36px;
    }
    .footer_col {
        width: 100%;
    }
    .footer_row.row2 .col1,
    .footer_row .col2  {
        max-width: 100%;
    }
    .row2 .col2  {
        margin-top: 36px;
    }
    footer nav ul {
        gap: 24px; 
        height: 138px;
    }
}

/* extra-small mobiles only */
@media only screen and (max-width: 400px) {
    footer a:not(#menu--title) {
        font-size: 16px;
        font-size: 1rem;
    }
}