:root {
    --halder: #009ee3;
    --halder-dark: #007eb6;
    --blue-light: #e9f9ff;
    --grey: #404a44;
    --grey-light: #eeeef4;
    
    --font: normal normal 1rem / 1 var(--font-main);
    --font-main: 'Sofia Sans', 'Arial Narrow', sans-serif;
    --font-main-vf: 'Sofia Sans VF', 'Arial Narrow', sans-serif;

    --desktop-viewport-width: 400px;
    --background: url(../images/background.jpg) 0 0 / 1920px fixed var(--grey-light);
}



@font-face {
    font-family: 'Sofia Sans';
    font-weight: 300;
    src: url(../fonts/sofia-sans-extra-condensed/sofia-sans-extra-condensed-light.ttf) format(truetype);
}

@font-face {
    font-family: 'Sofia Sans';
    font-weight: 400;
    src: url(../fonts/sofia-sans-extra-condensed/sofia-sans-extra-condensed-regular.ttf) format(truetype);
}

@font-face {
    font-family: 'Sofia Sans';
    font-weight: 500;
    src: url(../fonts/sofia-sans-extra-condensed/sofia-sans-extra-condensed-medium.ttf) format(truetype);
}

@font-face {
    font-family: 'Sofia Sans';
    font-weight: 600;
    src: url(../fonts/sofia-sans-extra-condensed/sofia-sans-extra-condensed-semi-bold.ttf) format(truetype);
}

@font-face {
    font-family: 'Sofia Sans VF';
    font-weight: 300 600;
    src: url(../fonts/sofia-sans-extra-condensed/sofia-sans-extra-condensed-variable.ttf) format(truetype);
}



html {
    font-size: 20px;
    box-sizing: border-box;
    scroll-behavior: smooth;
    background: white;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    user-select: none;
    -webkit-user-drag: none;
}



body {
    margin: 0;
    padding: 0;
    font: var(--font);
    color: var(--halder);
    background: white;
    word-spacing: 1px;

    &.no-scroll {
        overflow-y: hidden;
    }
    
    &::-webkit-scrollbar {
        width: 10px;
    }
    
    &::-webkit-scrollbar-track {
        background: white;
    }
    
    &::-webkit-scrollbar-thumb {
        background: #999;
    }
    
    
    /* BODY DESKTOP */
    
    @media (min-width: 800px) {
        display: flex;
        justify-content: center;
        background: var(--background);
        
        &.no-scroll {
            padding-right: 10px;

            & aside {
                right: calc(50vw - (var(--desktop-viewport-width) / 2) + 20px);
            }
        }
    }


    /* VARIABLE FONT SUPPORT CHECK */

    @supports (font-variation-settings: normal) {
        font-family: var(--font-main-vf);
    }
}



.no-content {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--halder), var(--halder-dark));
    z-index: 1000;

    & img {
        width: 60%;
        filter: grayscale(1) invert(1) brightness(3) drop-shadow(1px 1px 1px #0005);
    }


    /* LANDSCAPE MODE ON MOBILE */

    @media (max-width: 1000px) and (orientation: landscape) {
        display: flex;
    }
}



header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--halder);
    color: white;
    transition: height 0.6s;
    box-shadow: inset 0 -10px 20px -10px #0002;
    
    &.home {
        height: 80px;
    }

    & h1 {
        margin: 0;
        font-size: 24px;
        font-weight: 350;
        text-transform: uppercase;
        transition: all 0.6s;

        &.active {
            cursor: pointer;

            &:active {
                transition: all 0.1s;
                transform: scale(0.7);
            }
        }
    }
    
    &.home h1 {
        font-size: 36px;
        font-weight: 300;
    }


    /* HEADER DESKTOP */

    @media (min-width: 800px) {
        width: var(--desktop-viewport-width);
        top: 60px;
    }
}



main {
    margin: 40px 0 0;

    & h2 {
        margin: 120px 25px 0;
        font-size: 26px;
        font-weight: 400;
        color: var(--grey);
    }

    & p {
        margin: 10px 80px 0 25px;
        color: var(--grey);
        line-height: 1.2;
    }

    & .signature {
        text-align: center;
        background: var(--grey);
        color: white;
        font-weight: 300;
        line-height: 40px;
        position: relative;
        z-index: 18;
        margin-top: 70px;
    }

    & .list {
        display: grid;
        grid-template-columns: auto 1fr;

        & .spacer {
            height: 40px;
        }

        & sup {
            font-weight: 500;
            position: relative;
            top: -3px;
            right: 3px;
        }
    
        & div {
            grid-column: span 2;
            display: grid;
            grid-template-columns: subgrid;
            padding: 5px 60px 5px 20px;
            line-height: 20px;
            transition: all 0.3s;

            &.section {
                margin: 40px 0 10px;
            }

            &:hover {
                background: var(--blue-light);
            }

            &.spacer:hover,
            &.no-hover:hover {
                background: unset;
            }

            & span.title,
            & span.first,
            & span.second {
                margin-left: 15px;
            }
            
            & span:not(.first, .second, .title) {
                text-align: center;
            }
        }
    }

    & .first,
    & .second {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    & .second {
        color: var(--grey);
    }

    & .title {
        text-transform: uppercase;
        font-weight: 500;
        font-size: 22px;
        line-height: 22px;

        &.active {
            height: 38px;
            line-height: 38px;
            margin-top: 3px;
        }

        & i {
            font-style: normal;
            font-size: 18px;
            font-weight: 400;
            background: var(--halder);
            color: white;
            padding: 2px 4px 0;
            line-height: 18px;
            position: relative;
            top: -1px;
        }
    }

    & .flag {
        grid-row: span 2;
        width: 40px;
        filter: saturate(1.2);
        box-shadow: 0 0 15px #0002;
        padding: 1px;
        margin-top: 1px;
    }


    /* MAIN DESKTOP */

    @media (min-width: 800px) {
        margin: 0;
        padding: 100px 0 60px;

        & h2 {
            margin-top: 80px;
        }
    }
}



footer {
    position: fixed;
    z-index: 15;
    bottom: 0;
    height: 40px;
    width: 100%;
    transition: height 0.6s;
    overflow: hidden;
    box-shadow: 0 -10px 20px -10px #0002;

    &.intro,
    &.active {
        z-index: 19;
    }
    
    &.intro .container .middle,
    &.active .container .middle {
        background: var(--halder);
        box-shadow: inset 0 -10px 20px -10px #0002;
    }
    
    & .container {
        display: flex;
        width: fit-content;
        height: 100%;
        transition: transform 0.6s;
        transform: translateX(calc(-100% / 3));

        &.left {
            transform: translateX(0);
        }

        &.right {
            transform: translateX(calc(-100% / 3 * 2));
        }

        & > div {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 50px;
            width: 100vw;
            position: relative;
        }
        
        & .left {
            background: white;
            padding: 40px 0;
            box-shadow: inset 0 -10px 20px -10px #0002;

            & .hammer {
                position: absolute;
                width: 250px;
                margin-top: 30px;
                opacity: 0.03;
            }

            & .icon-logo {
                height: 26px;
            }

            & h3 {
                position: absolute;
                top: 0;
            }
        }

        & .middle {
            transition: background 0.6s;
            background: linear-gradient(0deg, white, #fffe);
            color: white;
        }
        
        & .right {
            background: white;
            color: var(--grey);
            justify-content: flex-start;
            box-shadow: inset 0 -10px 20px -10px #0002;
            gap: 0;
            
            & .partners {
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 80px 0 60px;
                overflow-y: auto;
                width: 100%;

                &::-webkit-scrollbar {
                    width: 5px;
                }
                
                &::-webkit-scrollbar-track {
                    background: white;
                }
                
                &::-webkit-scrollbar-thumb {
                    background: #999;
                }

                & > div {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    gap: 20px;
                    padding: 40px 0;
                }

                & img {
                    transition: all 0.2s ease-in-out;
                    filter: opacity(0.5) grayscale(1);
                }
                
                & > div:hover img {
                    transform: scale(1.5);
                    filter: none;
                }

                & a {
                    color: var(--halder);
                    font-size: 16px;
                    font-weight: 350;
                    text-decoration: none;
                    transition: all 0.2s ease-in-out;
                    opacity: 0;
                    transform: scale(1.5);
                    pointer-events: none;
                }
                
                & > div:hover a {
                    opacity: 1;
                    transform: scale(1);
                }

                & > div.active a {
                    pointer-events: all;
                }
            }
        }
    }

    .go {
        display: none;
        position: absolute;
        bottom: 0;
        cursor: pointer;
        transition: transform 0.1s;
        padding: 20px;
    }

    &.active .go {
        display: block;
    }

    .go:active {
        transform: scale(0.7);
    }

    .go-left,
    .go-left-back {
        left: 0;
    }
    
    .go-right,
    .go-right-back {
        right: 0;
    }
    
    &.intro,
    &.active {
        height: 100%;
    }

    
    
    & .logo {
        height: 20px;
        transition: height 0.6s, filter 0.3s, transform 0.1s;
        cursor: pointer;
        fill: white;

        &:active {
            transform: scale(0.7);
        }
    }

    &.active .logo,
    &.intro .logo {
        filter: grayscale(1) invert(1) brightness(3);
        height: 45px;
        cursor: default;
    }

    &.intro .logo:active,
    &.active .logo:active {
        transform: unset;
    }

    & .contact {
        display: none;
        flex-direction: column;
        align-items: center;
        font-size: 24px;
        line-height: 1.5;
        font-weight: 350;

        & a {
            display: block;
            text-decoration: none;
            color: white;
            position: relative;
            width: max-content;

            &::after {
                content: '';
                position: absolute;
                bottom: 5px;
                left: -2px;
                width: calc(100% + 4px);
                height: 1px;
                background: white;
                transition: transform 0.6s;
                transform-origin: right;
                transform: scaleX(0);
            }

            &:hover::after {
                transform-origin: left;
                transform: scale(1);
            }
        }
    }

    &.active .contact {
        display: flex;
    }

    & .social {
        display: none;
        position: absolute;
        bottom: 17px;
        gap: 15px;

        & img {
            height: 26px;
            transition: all 0.2s;
            padding: 5px;
            box-sizing: content-box;

            &:hover {
                transform: scale(1.5);
            }
        }
    }

    &.active .social {
        display: flex;
    }

    & .close {
        display: none;
        position: absolute;
        top: 0;
        padding: 20px;
    }

    &.active .close {
        display: block;
        cursor: pointer;
        transition: transform 0.1s;

        &:active {
            transform: scale(0.7);
        }
    }

    & .spinner {
        display: none;
    }

    &.intro .spinner {
        position: absolute;
        bottom: 40px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;

        & .outer {
            position: absolute;
            width: 40px;
            height: 40px;
            border: 2px solid white;
            border-bottom-color: transparent;
            border-radius: 20px;
            animation: spin 1.5s 1s 5 linear;
        }
        
        & .inner {
            position: absolute;
            width: 32px;
            height: 32px;
            border: 2px solid white;
            border-top-color: transparent;
            border-radius: 16px;
            animation: double-spin 1.5s 1s 5 alternate-reverse ease-in-out;
        }
    }

    & .about-us {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 54px;
        font-size: 24px;
        text-transform: uppercase;
        z-index: 1;
        margin-top: 50px;
        
        & div {
            color: black;
            transition: all 0.2s;
            letter-spacing: 0.5px;
            font-weight: 300;
            
            &:hover {
                transform: scale(1.5);
                text-transform: uppercase;
                font-weight: 350;
            }
        }
        
        & span {
            color: var(--halder);
            transition: color 0.6s;
        }
    }

    & h3 {
        font-size: 26px;
        font-weight: 350;
        width: 100%;
        background: var(--halder);
        color: white;
        text-align: center;
        line-height: 40px;
        margin: 0;
        box-shadow: inset 0 -10px 20px -10px #0002;
    }
    
    
    /* FOOTER DESKTOP */
    
    @media (min-width: 800px) {
        width: var(--desktop-viewport-width);
        bottom: 60px;

        & .container > div {
            width: var(--desktop-viewport-width);
        }
        
        & .container > div.left,
        & .container > div.right {
            box-shadow: none;
        }
        
        &.intro,
        &.active {
            height: calc(100% - 120px);
        }
    }
}

@keyframes spin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes double-spin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(720deg);
    }
}



aside {
    position: fixed;
    top: 0;
    right: 15px;
    z-index: 5;
    height: 100%;
    display: flex;
    align-items: center;
    transition: padding 0.6s;

    &.home {
        padding-top: 40px;
    }
    
    & div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        font-size: 16px;
        font-weight: 600;

        & span {
            padding: 5px;
            color: var(--grey);
            transition: all 0.2s;
            cursor: pointer;
            
            &:active {
                transform: scale(1.8);
            }
            
            &.active {
                color: var(--halder);
                transform: scale(1.8);
            }
        }
    }
    
    & .eye {
        height: 24px;
        fill: var(--grey);
        transition: all 0.2s;
        cursor: pointer;
        order: 1;
        
        &:hover {
            fill: var(--halder);
            transform: scale(1.6);
        }
    }


    /* ASIDE DESKTOP */

    @media (min-width: 800px) {
        right: calc(50vw - (var(--desktop-viewport-width) / 2) + 10px);

        & div span:hover {
            color: var(--halder);
            transform: scale(1.8);
        }
    }
}



/* ONLY ON DESKTOP */

@media (min-width: 800px) {
    .wrapper {
        width: var(--desktop-viewport-width);
        background: white;
        box-shadow: 30px 0 30px -30px #0002, -30px 0 30px -30px #0002;
    }

    .cover {
        background: var(--background);
        position: fixed;
        width: 100%;
        height: 60px;
        z-index: 20;

        &.top {
            top: 0;
        }

        &.bottom {
            bottom: 0;
        }
    }
}