/* Global Styles */

*{
    padding: 0;
    margin: 0;
}

@font-face {
    font-family: Roboto;
    font-weight: 100;
    font-display: swap;
    src: url(/content/sources/fonts/Roboto-Thin.ttf) format('truetype');
  }

@font-face {
    font-family: Roboto;
    font-weight: 300;
    font-style: lighter;
    font-display: swap;
    src: url(/content/sources/fonts/Roboto-Light.ttf) format('truetype');
  }

  @font-face {
    font-family: Roboto;
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url(/content/sources/fonts/Roboto-Regular.ttf) format('truetype');
  }

  @font-face {
    font-family: Roboto;
    font-weight: 500;
    font-display: swap;
    src: url(/content/sources/fonts/Roboto-Medium.ttf) format('truetype');
  }

  @font-face {
    font-family: Roboto;
    font-weight: 700;
    font-style: bold;
    font-display: swap;
    src: url(/content/sources/fonts/Roboto-Bold.ttf) format('truetype');
  }

  @font-face {
    font-family: Roboto;
    font-weight: 900;
    font-style: bolder;
    font-display: swap;
    src: url(/content/sources/fonts/Roboto-Black.ttf) format('truetype');
  }

:root{
    --black: #070707;
    --gray: #3E3E3E;
    --light-gray: #A5A3A3;
    --white: #ffffff;
    font-family: "Roboto", sans-serif;
    font-size: 20px;
    font-weight: 300;
    scroll-behavior: smooth;
}


/* ------------------------------------------- */
/* Header */

header{
    position: sticky;
    top: 0;
    z-index: 98;
    & .header__first{
        max-width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 30px 60px;
        box-shadow: 0 1px 5px var(--light-gray);
        background-color: var(--white);
        transform: translateY(-100%);
        overflow: hidden;
        animation: slide-down 0.4s ease forwards;
    
        & .site-logo{
            width: 40px;
        }
    }
    
}

@keyframes slide-down {
    from{
        transform: translateY(-100%);
    }

    to{
        transform: translateY(0%);
    }
}

.primary-menu{
    display: flex;
    justify-content: center;
    gap: 3rem;

    & .primary-menu__item{
        font-size: 15px;
        text-transform: uppercase;
        color:var(--black);
        font-weight: 500;
    }
}

.secondary-menu-toggle{
    min-width:24px;
    height: 17px;
    background-color: aliceblue;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;

    & .secondary-menu-toggle__line{
        background-color: var(--black);
        width: 100%;
        height: 3px;
    }
}

.secondary-menu-background{
    background-color: var(--black);
    opacity: 0;
    position: fixed;
    max-width: 100vw;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99;
    transition: opacity .5s ease;

    &.active{
        opacity: 0.5;
        pointer-events: all;
    }
}

.secondary-menu{
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 330px;
    width: 80vw;
    padding: 60px 30px;
    box-sizing: border-box;
    transform: translateX(100%);
    z-index: 100;
    transition: transform .5s ease;

    & .secondary-menu__item{
        font-size: 20px;
        color:var(--black);

        font-weight: 400;
        border-bottom: 0.5px solid #E5E5E5;
        padding-bottom: .5rem;
    }

    &.active{
        transform: translateX(0%);
    }
}

/* ------------------------------------------- */
/* Content & Elements */

body{
    max-width: 100%;
    position: relative;
}

.content{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 62vh;
}

section{
    width: 100%;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: inherit;
    scroll-margin-top: 4rem;
    opacity: 0;
    transition: opacity .5s ease-in;
}

@keyframes opacity {
    from{
        opacity: 0;
    }

    to{
        opacity: 1;
    }
}

.container{
    width: 100%;
    max-width: 1200px;
    box-sizing: inherit;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

h1, h2, h3{
    text-transform: uppercase;
}

h1, h2{
    font-size: 60px;  
}

h3{
    font-size: 30px;
}

p{
    line-height: 1.8em;
}

a{
    color: var(--black);
    text-decoration: none;
}

img{
    max-width: 100%;
    width: 100%;
    height: auto;
}

.filli__button{
    background-color: var(--black);
    width: fit-content;
    padding: 15px 20px;
    color: var(--white);
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 8px;
}

/* ------------------------------------------- */
/* Footer */

footer{
    box-sizing: border-box;
    background-color: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;

    & .container{
        flex-direction: row;
        justify-content: flex-start;
        gap: 5rem;
        padding: 100px 20px 50px;
    }

    & .footer-logo {
        width: 60px;
        & img{
            filter: brightness(10);
        }
    }

    & .footer-menu{
        width: 100%;
        display: flex;
        gap: 3rem;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        
        & .footer-menu__item{
            color: var(--white);
    
            font-weight: 400;
        }
    }

    & .copyright{
        border-top: 1px solid var(--gray);
        width: 100%;
        display: flex;
        justify-content: center;
        
        & .container{
            width: 100%;
            max-width: 1400px;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 30px 20px;
        }

        & .copyright__first{
            font-size: 14px;
            color: var(--light-gray);
            display: flex;
            gap: 1rem;
            & .copyright-menu{
                display: flex;
                align-items: center;
                gap: 1rem;
                & .copyright-menu__item{
                    color: var(--light-gray);
                }
            }
        }

        & .copyright__last{
            & .social-icons{
                display: flex;
                gap: 0.5rem;

                & .social-icons__icon{
                    width: 40px;
                    & img{
                            filter: contrast(0);
                        }
                    }
                }
            }
        }
        
    }

/* ------------------------------------------ */
/* Responsive */

@media screen and (max-width: 768px) {
    header{
        & .header__first{
            padding: 15px 30px;
        } 
    }
    
    .primary-menu{
        display: none;
    }

    h1, h2{
        font-size: 45px;
    }

    h3{
        font-size: 25px;
    }

    .content {
        & section{
            & .container{
                flex-direction: column;
            }
        }
    }

    section{
        scroll-margin-top: 2rem;
    }

    footer{
        & .container{
            align-items: center;
            flex-direction: column;
            gap: 2rem;
            padding-top: 3rem;
        }
        
        & .footer-menu{
            flex-direction: column;
            gap: 1rem;
        }

        & .copyright, .copyright__first{
            flex-direction: column;
        }
    }
}
