/* Header
-------------------------------------------------------------- */
.header {
    position: relative;
    background-color: var(--theme-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 150px;
    padding-left: 60px;
    padding-right: 60px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    z-index: 10;
    transition: height 0.3s ease, background-color 0.3s ease;
}

/* Menu fixed and hidden */
header.fixed {
    position: fixed;
    top: -100px; 
    left: 0;
    width: 100%;
    height: 75px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: top 1s cubic-bezier(0.16, 1, 0.3, 1), all 1s ease;
}

/* Show Menu */
header.fixed.show{
    top: 0;
}

.header-menu__logo {
    height: 80px;
    width: auto;
}

.header-menu {
    display: flex;
    align-items: center;
    gap: 100px;
}

.header-menu__nav__list {
    display: flex;
    gap: 30px;
    list-style: none;
    text-transform: capitalize;
    height: 140px;
}

.header-menu__nav__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.header-menu__nav__item__link {
    position: relative;
    padding: 12px 1px;
    text-decoration: none;
    color: var(--secondary-text-color);
    font-size: var(--text-lg) !important;
    font-weight: var(--font-medium);
}

.header-menu__nav__item.selected .header-menu__nav__item__link,
.header-menu__nav__item.open .header-menu__nav__item__link,
.header-menu__nav__item:hover .header-menu__nav__item__link {
    color: var(--primary-text-color);
}

.header-menu__nav__item.selected > .header-menu__nav__item__link:before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 4px;
    background: var(--gradient-color);
    border-radius: 8px;
}

.header-menu__nav__item--submenu > .header-menu__nav__item__link:after {
    position: absolute;
    content: "expand_more";
    font-family: var(--font-icon-family);
    font-size: var(--text-lg);
    margin-left: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.header-menu__nav__item--submenu > .header-menu__nav__item__link {
    margin-right: var(--text-lg);
}

.header-menu__nav__item.active .header-menu__nav__item__link {
    color: var(--primary-text-color);
}          

.header-menu__nav__sublist {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    min-width: 300px;
    max-width: 400px;
    gap: 4px;
    padding: 16px 0;
    background-color: var(--auxiliary-color);
    background-color: #1f427b;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
    list-style: none;
}

.header-menu__nav__sublist:before {
    content: "";
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 17px solid transparent;
    border-right: 17px solid transparent;
    border-bottom: 17px solid #1f427b;
}

.header-menu__nav__sublist .header-menu__nav__item .header-menu__nav__item__link {
    color: var(--light-text-color); 
    opacity: 0.8;
    width: 100%;
    text-align: center;
}

.header-menu__nav__sublist .header-menu__nav__item.selected .header-menu__nav__item__link,
.header-menu__nav__sublist .header-menu__nav__item__link:hover {
    opacity: 1;
    font-weight: var(--font-semibold);
}

.header-menu__nav__item.open .header-menu__nav__sublist {
    display: flex;
    z-index: 1;
}

.header-menu__nav__item.open > .header-menu__nav__item__link:after {
    content: "expand_less";
}

.header-menu__button {
    width: 42px;
    height: 42px;
    display: none;
    place-content: center;
}

.header-menu__button.opened {
    background-color: var(--primary-color);
    color: var( --light-text-color);
}

.header-menu__button.opened:before {
    content: "close";
}

.header-menu__button:before {
    content: "menu";
    font-family: var(--font-icon-family);
    font-size: 2rem;
    line-height: 0;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-contact__phone {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-lg);
    color: var(--primary-text-color);
    font-weight: 500;
}

.header-contact__phone::before {
    font-family: var(--font-icon-family);
    content: "call";
    font-size: var(--text-xl);
}

@media screen and (max-width: 1268px) {
    .header {
        max-height: 100px;
        padding-left: 32px;
        padding-right: 32px;
    }

    .header-menu {
        width: 100%;
        justify-content: space-between;
        gap: 50px;
    }

    .header-menu__logo {
        height: 58px;
        width: auto;
    }

    .header-menu__nav__list {
        height: 75px;
    }

    .header-menu__nav__item.selected > .header-menu__nav__item__link:before {
        bottom: 6px;
        height: 3px;
    }

    .header-contact {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .header {
        height: 60px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-menu__logo {
        height: 40px;
        width: auto;
    }

    .header-menu__button {
        display: grid;
    }

    .header-menu__nav {
        /*opacity: 0;*/
        max-height: 0;
        overflow: hidden;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        transition: opacity 10ms linear, max-height 200ms ease-in-out 10ms;
    }

    .header-menu__nav.show {
        opacity: 1;
        max-height: 500px;
    }

    .header-menu__nav__list {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 16px 0;
        background-color: var(--primary-color);
        box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;   
        height: auto;
    }

    .header-menu__nav__item__link {
        width: 100%;
        text-align: center;
    }

    .header-menu__nav__item__link,
    .header-menu__nav__item.selected .header-menu__nav__item__link {
        color: var(--light-text-color);
    }

    .header-menu__nav__item.selected .header-menu__nav__item__link {
       
        color: var(--secondary-color);
        font-weight: var(--font-bold);
       
    }

    .header-menu__nav__item.selected > .header-menu__nav__item__link:before {
        content: unset;
    }

    .header-menu__nav__item {
        height: 50px;
    }
}

/* Footer
-------------------------------------------------------------- */
.footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 34px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--auxiliary-color-transparency);
}

.footer-contact__company {
    display: flex;
    flex-direction: row;
    gap: 48px;
    max-width: 50%;
}

.footer-contact__logo img {
    height: 80px;
    width: auto;
}

.footer-contact__address {
    display: flex;
    flex-flow: column nowrap;
    gap: 12px;
    font-size: .75rem;
    font-style: normal;
}

.footer-contact__address a {
    text-decoration: none;
    color: var(--light-text-color);
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-contact__address a::before {
    font-family: var(--font-icon-family);
    font-size: var(--text-xl);
    margin-right: 4px;
}

.footer-contact__address__location::before {
    content: "location_on";
}

.footer-contact__address__phone::before {
    content: "call";
}

.footer-contact__address__nmls::before {
    content: "link";
}

.footer-contact__nav{
    font-size: 1rem !important;
    display: flex;
    gap: 68px;
}

.footer-contact__nav > ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.footer-contact__nav > ul > li > a {
    text-decoration: none;
    font-size: .80em !important;
    color: var(--light-text-color);
    font-weight: 700;
}

.footer-contact__social-app{
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact__social,
.footer-contact__app {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.footer-contact__social a img{
    width: 32px;
    height: auto;
}

.footer-contact__app a img{
    width: auto;
    height: 38px;
}

.footer-additional {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-top: 44px;
    padding-bottom: 72px;
    font-size: var(--text-sm);
    gap: 48px;
}


.footer-additional__accessibility {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 37.5%;
    gap: 36px;
}

.footer-additional__equal-housing {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: var(--text-sm);
}

.footer-additional__equal-housing  img {
    height: 64px;
    width: auto;
}

.footer-additional__equal-housing p {
    font-size: .75em;
    font-weight: 700;
    line-height: 1.3;
} 

.footer-additional__accessibility__icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.footer-additional__accessibility__icons > span {
    font-size: var(--text-xl);
    border: 2px solid var(--light-text-color);
    padding: 8px 20px;
    border-radius: 4px;
}

.footer-additional__information {
    width: 57.5%;
    font-size: var(--text-sm);
}

.footer-additional__information h6 {
    font-size: 0.75em;
    font-weight: 700;
    margin-bottom: 2px;
}

.footer-additional__information p {
    font-size: 0.70em;
    line-height: 1.5;
    font-weight: var(--font-medium);
    margin-bottom: 20px;
    text-align: justify;
}

.footer-additional__information a  {
    color: var(--light-text-color);
    font-size: 1em !important;
    font-weight: var(--font-medium);
}

@media screen and (max-width: 1024px) {
    .footer-contact__logo {
        display: none;
    }
}

@media screen and (max-width: 660px) {
    .footer-additional{
        flex-direction: column;
    }

    .footer-additional__accessibility,
    .footer-additional__information {
        width: 100%;
    }
}

@media screen and (max-width: 597px ){
    .footer-contact{
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }

    .footer-contact__company {
        order: 2;
    }

    .footer-contact__nav {
        order: 1;
    }

    .footer-contact__nav > ul > li > a {
        font-size: 1em !important;
    }

}


/* Container
-------------------------------------------------------------- */
.container {
    max-width: 80%;
    margin: 0 auto;
}

@media screen and (max-width: 1600px) {
    .container {
        max-width: 90%;
    }
}

@media screen and (max-width: 768px){
    * {
        font-size: var(--font-size-mobile);
    }
}


/* Sections
-------------------------------------------------------------- */
.our-products {
    padding: 48px 0;
    background-color: var(--auxiliary-color);
}

