@import 'init';

@media only screen and (min-width: 992px) {
    .mobile {
        display: none;
    }
    .navbar-toggler {
        display: none;
    }
}
@top-height: 45px;
.top-bar {
    height: @top-height;
    color: white;
    display: flex;
    a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 33.3%;
        height: 100%;
        text-align: center;
        text-transform: uppercase;
        text-decoration: none;
        font-weight: 800;
        font-size: 1.22em;
        &:hover {
            text-decoration: underline;
        }
    }
}
header.member-area {
    #header-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-block: 1.75rem;
    }
}
#header-wrapper {
    position: fixed;
    top: @top-height;
    width: 100%;
    transition:all .3s;
    z-index:1000;
    background-color: white;
    color: white;
    &.sticky {
        top: 0;
    }
    .header-desktop-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-block: 12px;
        gap: 3rem;
    }
    
    .brand-logo {
        width: 188px;
    }
    .navbar {
    /*    padding: 1rem;*/
        margin-left: auto;
    }
    .navbar-nav {
    /*    gap: 4.5rem;*/
        width: 100%;
        justify-content: space-between;
        gap: 3rem;
    }
    .header-buttons {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

a.nav-link {
    font-weight: 600;
    &:focus, &:hover {
/*        font-weight: 800;*/
    }
}

.member-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    span {
        font-size: 0.89em;
        opacity: 0.73;
    }
    &:hover {
        .btn-icon {
            border-color: @main-color;
            background-color: @main-color;
        }
        span {
            text-decoration: underline;
            opacity: 1;
        }
    }
}
/*@media only screen and (min-width: 1700px) {
    .container-wide {
        max-width: 1640px;        
    }
}*/
.navbar .nav-item .dropdown-menu {
    background-color: @nav-bg-color;
    border: none;   
}
.dropdown-item {
    color: white;
    font-weight: 400;
    position: relative;
    &:hover, &.active {
        color: white;
/*        background-color: @nav-bg-color;*/
        background-color: unset;
        font-weight: 600;
    }
    &:not(:last-child)::after {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        content: '';
        height: 1px;
        background-color: white;
        opacity: .25;
    }
}
@media all and (min-width: 992px) {
    .navbar .nav-item .dropdown-menu{ display: none; }
    .navbar .nav-item .dropdown-menu.show{ display: block; }
/*    .navbar .nav-item:hover .nav-link{   }*/
/*    .navbar .nav-item:hover .dropdown-menu{ display: block; }*/
    .navbar .nav-item .dropdown-menu{ margin-top:0; }
}
header .nav-item.active .nav-link {
/*    text-transform: uppercase;*/
    text-decoration: underline;
}
.nav-link:focus,
.dropdown-item:focus{

    outline:3px solid #005fcc;

    outline-offset:2px;

}
@footer-col-gap: 4rem;
@footer-row-gap: 1.5rem;
footer {
/*    background-color: @main-color;*/
/*    color: white;*/
    .f-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        padding-top: 3rem;
        padding-bottom: 3rem;
        gap: @footer-col-gap;
    }
    .f-left {
        width: 260px;
    }
    .brand-logo {
        width: 215px;
    }
    .f-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 2rem;
        a, button {
            text-transform: uppercase;
            text-align: center;
            text-decoration: none;
            font-size: 1.22em;
            font-weight: 800;
            padding-block: 10px;
        }
    }
    .navbar-nav {
        flex-direction: column;
        flex-wrap: wrap;
        height: 540px;
        column-gap: 100px;
        margin-right: auto;
    }
    .nav-item > .nav-link {
        font-weight: 700;
        color: @second-color;
    }
    .nav-link {
        padding: 0.5rem;
        font-weight: 600;
        margin-bottom: 4px;
    }
    .sub-menu {
        margin-bottom: 1.5rem;
    }
    .sub-item {
        padding-block: 0;
        font-weight: 400;
        font-size: 0.9em;
        max-width: 240px;
        line-height: 1.1;
        &:hover {
            font-weight: 400;
            text-decoration: underline;
        }
    }
    .footer-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
/*        gap: 1rem;
/*        margin-left: auto;*/
    }
    .social-buttons {
        display: flex;
        gap: 12px;
        margin-bottom: 1.5rem;
    }
    .social-title {
        font-weight: 600;
    }
}

.copyright {
    background-color: white;
    color: #2F4D3A;
    text-align: center;
    padding: 1rem;
    font-size: 0.78em;
}
#header-wrapper .navbar-collapse {
    @media only screen and (min-width: 992px) {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .socials {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 12px;
    }
}
#subscribe {
    margin-top: -3rem;
    order:10;
    #contact_form {
        display: none;
    }
    .subscribe-wrapper {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
    }
    input {
        padding: 11px 1rem;
    }
}
@media only screen and (max-width: 1599px) {
    #header-wrapper {
        .header-desktop-wrapper {
            gap: 1rem;
        }
        .brand-logo {
            width: 200px;
        }
        .navbar-nav {
            gap: 1rem;
        }
    }
    .btn-icon {
        width: 42px;
        height: 42px;
    }
    footer {
        .f-wrapper {
            gap: 2rem;
        }
        .f-left {
            width: 190px;
        }
        .brand-logo {
            width: 190px;
        }
        .navbar-nav {
            gap: 1rem;
        }
    }
}
@media only screen and (max-width: 1199px) {
    #header-wrapper {
        .header-desktop-wrapper {
            padding-block: 0;
        }
        .brand-logo {
            width: 140px;
        }
        .navbar-nav {
            gap: 0;
        }
    }
    footer {
        .f-wrapper {
            gap: 1rem;
        }
        .f-left {
            width: 146px;
        }
        .brand-logo {
            width: 140px;
        }
        .navbar-nav {
            gap: 0.5rem;
            height: 470px;
        }
        .sub-item {
            max-width: 206px;
        }
        .footer-right {
            margin-left: auto;
        }
    }
    #subscribe {
        margin-top: -2rem;
    }
}
.mobile {
    .sub-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
}
@media only screen and (max-width: 991px) {
    .top-bar {
        justify-content: space-between;
        a {
            width: auto;
            flex-grow: 1;
        }
    }
    .mobile-top {
        display: flex;
        align-items: center;
        gap: 2rem;
        .socials {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 1rem;
        }   
    }
    #header-wrapper {
        position: relative;
/*        background-color: @second-color;*/
        top: 0;
        .navbar {
            width: 100%;
        }
        .header-buttons {
            margin-top: 1.5rem;
            margin-bottom: 1rem;
            justify-content: flex-end;
        }
    }
    .desktop {
        display: none !important;
    }
    .navbar {
        padding: 0;
    }
    #nav-wrapper {
        padding: 0.75rem;
    }
    .dropdown-menu {
        display: block;
    }
    footer {
        .f-wrapper {
            padding-block: 2rem;
        }
        .f-left {
            width: 70%;
            display: flex;
            gap: 1rem;
        }
        .brand-logo {
            width: 200px;
        }
        .f-buttons {
            margin-top: 0;
            a, button {
                padding-inline: 1rem;
            }
        }
        .navbar-nav {
            order: 2;
/*            height: 324px;*/
        }
    }
    #subscribe {
        margin-top: -1rem;
        order: 1;
    }
}
@media only screen and (max-width: 767px) {
    .top-bar {
        flex-direction: column;
        padding-block: 0;
        height: auto;
        .container {
            flex-wrap: wrap;
        }
        a {
            width: 100%;
            padding-block: 0.5rem;
        }
        span {
            display: none;
        }
    }
    #header-wrapper {
        .header-desktop-wrapper {
            justify-content: center;
        }
        #nav-wrapper {
            padding: 0;
            padding-bottom: 0.5rem;
        }
        .navbar-nav {
            gap: 0;
        }
        .header-buttons {
            margin-block: 0.5rem;
        }
    }
    footer {
        .f-wrapper {
            padding-block: 1rem;
        }
        .f-left {
            width: 47%;
            flex-direction: column;
            gap: 0.5rem;
        }
        .brand-logo {
            width: 100%;
        }
        .f-buttons {
            gap: 0.5rem;
            a, button {
                padding: 4px 6px;
            }
        }
        .navbar-nav {
            height: auto;
            gap: 4px;
        }
        .nav-link {
            font-size: 0.9em;
            margin-bottom: 0;
            padding: 0.3rem;
        }
        .sub-menu {
            margin-bottom: 0;
        }
        .sub-item {
            line-height: 1;
            margin-bottom: 0;
            width: 100%;
            max-width: unset;
        }
    }
    #subscribe {
        width: 100%;
        margin-top: 0;
        .subscribe-wrapper {
            flex-direction: column;
            align-items: flex-end;
        }
        input:not([type="submit"]) {
            width: 100%;
        }
    }
}
