@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');

.site-header {
    z-index: 999999;
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 10px;
    grid-template-columns: auto 1fr;

    .branding {
        img {
            width: auto;
            height: 50px;
        }
    }

    .mobile {
        display: none;
    }

    .mobile-toggle {
        display: none;
        gap: 7px;
        margin-left: auto;
        cursor: pointer;

        span {
            width: 18px;
            height: 2px;
            background: rgba(0, 0, 0, 0.3);
            transition: all 0.2s;
        }

         &:hover span {
            background: rgba(0, 0, 0, 0.6);
        }       
    }

    .facebook {
        margin-left: auto;
    }

    .mobile {
        display: none;
    }

    .mobile-handler,
    .handler {
        display: none;
        grid-template-columns: 1fr;
        gap: 8px;        
        cursor: pointer;

        &:hover span {
            background: #fff;
        }

        span {
            width: 16px;
            height: 2px;
            background: var(--site-text);
            display: block;
            transition: all 0.2s;
        }
    }

    .navigation a {
        font-family: var(--font-condensed);
    }

    @media only screen and (max-width: 980px) {
        top: 20px;
        left: 20px;
        right: 20px;
        grid-template-columns: 1fr;
        grid-template-columns: auto 1fr;

        .navigation {
            display: none;
        }

        .mobile-handler {
            display: grid;
            margin-left: auto;
            align-content: center;
        }

        &.open {
			padding: 20px;
            background: #000;
            grid-template-columns: auto 2fr;
            gap: 20px;
            position: fixed;
            left: 0px;
            right: 0px;
            bottom: 0;
            top: 0;
			
            .mobile-handler,
            .branding {
                display: none;
            }
                      
            .mobile {
                display: grid;
                gap: 20px;
                grid-template-columns: auto 1fr;
                height: 100%;
                overflow-x: hidden;
                overflow-y: auto;

                .wrap {
                    display: grid;
                    padding-right: 20px;
                    border-right: 1px solid rgba(255, 255, 255, 0.1);
                }

                .handler {
                    display: grid;
                    align-self: end;
                    justify-items: center;
                }

                a {
                    display: grid;

                    img {
                        height: 42px;
                    }
                }

                nav {
                    display: grid;

                    a {
                        color: #fff;
                        text-transform: uppercase;
                        font-size: 18px;
                        letter-spacing: 1px;
                        font-weight: bold;
                    }
                }

            }
        }
    }


   @media only screen and (min-width: 980px) {
        .navigation {
            display: flex;
            gap: 6px;
            background: rgba(255,255,255, 0.3);
            backdrop-filter: blur(15px);
            justify-content: center;
            align-items: center;
            transition: all 0.5s;
            box-sizing: border-box;
            line-height: 1;
            padding: 8px;
            border-radius: 250px;
            width: fit-content;

            a {
                color: #fff;
                font-size: 16px;
                transition: all 0.2s;
                padding: 8px 13px;
                border-radius: 150px;

                &:hover, &.active {
                    background: #fff;
                    color: #000;
                }
            }
        }
    }

}