@import 'init';

@media only screen and (min-width: 992px) {
    .mobile {
        display: none;
    }
    .navbar-toggler {
        display: none;
    }
}
@top-height: 44px;
.top-bar {
    background-color: @main-color;
    height: @top-height;
    color: white;
    .container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: 100%;
    }
    .top-right, .socials {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .socials {
        margin-left: auto;
    }
    span {
        font-size: 0.78em;
    }
}
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: @nav-bg-color;
    color: white;
    &.sticky {
        top: 0;
    }
    .header-desktop-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-block: 1rem;
        gap: 4rem;
    }
    .brand-logo {
        width: 363px;
    }
    .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 {
    color: white;
    &:focus, &:hover {
        color: white;
        font-weight: 600;
    }
}

.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;
        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: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;
}
@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: 3.25rem;
        padding-bottom: 3.25rem;
        gap: @footer-col-gap;
    }
    .brand-logo {
        width: 500px;
        img {
            width: 100%;
        }
    }
    .navbar-nav {
        flex-direction: row;
        gap: 3rem;
        margin-left: auto;
    }
    .sub-item, .social-title {
        font-size: 0.78em;
    }
    .nav-item > .nav-link {
        font-weight: 700;
    }
    .nav-link {
        padding: 0.5rem;
    }
    .sub-item {
        padding-block: 0;
    }
    .footer-right {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        margin-left: auto;
    }
    .social-wrapper {
        
    }
    .member-icon {
        width: 186px;
    }
    .social-buttons {
        text-align: right;
    }
    .social-title {
        font-weight: 600;
        margin-top: 1rem;
    }
    /*.footer-left, .footer-right {
        flex: 0 0 auto;
    }
    .footer-left {
        display: flex;
        flex-direction: column;
        gap: @footer-row-gap;
        hr {
            border-top: 2px solid white;
            opacity: 1;
        }
    }
    .footer-contact {
        font-size: 0.78em;
        font-weight: 700;
    }
    .menu-wrapper {
        flex: 1 1 auto;
        min-width: 0;
    }
    .menus {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: flex-start;
        list-style: none;
        gap: @footer-row-gap @footer-col-gap;
        height: 350px;
    }
    .nav-link {
        padding-top: 4px;
        padding-bottom: 4px;
        font-size: 0.89em;
        font-weight: 700;
        color: white;
        margin-bottom: 0.5rem;
    }
    .nav-item.active .nav-link {
        color: white;
        text-decoration: underline;
    }
    .sub-menu {
        display: flex;
        flex-direction: column;
    }
    .sub-item {
        font-size: 0.78em;
        text-decoration: none;
    }
    .sub-item.active {
        text-decoration: underline;
    }
    .footer-right {
        text-align: right;
    }
    .hours-title {
        margin-bottom: 1rem;
        font-size: 0.89em;
    }
    .hours {
        font-size: 0.78em;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        strong {
            font-weight: 700;
        }
    }
    .navbar .nav-item .dropdown-menu {
        background-color: white;
        .dropdown-item {
            &:hover {
                background-color: white;
            }
        }
    }*/
}

.copyright {
    background-color: white;
    color: #2F4D3A;
    text-align: center;
    padding: 1rem;
    font-size: 0.78em;
}
@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;
        }
        .brand-logo {
            width: 190px;
        }
        .navbar-nav {
            gap: 1rem;
        }
    }
}
@media only screen and (max-width: 1199px) {
    footer {
        .brand-logo {
            width: 140px;
        }
        .navbar-nav {
            gap: 0.5rem;
        }
        .footer-right {
            margin-left: auto;
        }
    }
}
.mobile {
    .sub-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
}
@media only screen and (max-width: 991px) {
    .top-bar {
        height: auto;
        padding-block: 0.5rem;
        .container {
            justify-content: space-between;
        }
        .brand-logo {
            width: 200px;
        }
    }
    .top-right {
        display: flex;
    }
    #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;
    }
    .top-bar {
    }
    .navbar {
        padding: 0;
    }
    #nav-wrapper {
        padding: 0.75rem;
    }
    .dropdown-menu {
        display: block;
    }
    @footer-col-gap: 1rem;
    @footer-row-gap: 1rem;
    footer {
        .f-wrapper, .footer-left {
            gap: @footer-col-gap;
        }
        .f-wrapper {
            padding-block: 1rem;
        }
        .footer-left {
            gap: @footer-row-gap;
        }
        .menus {
            row-gap: @footer-row-gap;
            column-gap: @footer-col-gap;
            height: 600px;
        }
        .footer-right {
            margin-left: auto;
        }
    }
}
@media only screen and (max-width: 767px) {
    .top-bar {
        .container {
            flex-wrap: wrap;
        }
        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 {
        .footer-left {
            gap: 0;
        }
        .menu-wrapper {
            order: 1;
            border-top: 2px solid white;
            padding-top: 4px;
        }
        .nav-link {
            font-size: 0.9em;
        }
        .sub-item {
            line-height: 1;
            margin-bottom: 0.5rem;
        }
    }
}
