@font-face {
    font-family: "GGX89";
    src: url("../fonts/GGX.woff") format("woff"),
         url("../fonts/GGX.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "NHaasGrotesk";
    src: url("../fonts/LinotypeRegular.woff") format("woff"),
         url("../fonts/LinotypeRegular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: "NHaasGrotesk";
    background-image: url("../img/Background.png");
    background-repeat: repeat;
    background-position: top;
    background-size: cover;
    color: #fff;
    margin: 0;
    padding: 0;
    background-color: #000;
}

body * {
    box-sizing: border-box;
}

#fm-content {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin: auto;
    padding-bottom: 40px;
    padding: 10px 16px 40px;
}

#top-part-video {
    width: 100%;
    height: auto;
}

#top-part-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#our-brands {
    font-family: 'GGX89';
    display: flex;
    flex-direction: column;
    gap: 34px;
    justify-content: center;
    align-items: center;
}

#our-brands-header {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 34px;
}

#fm-content h4 {
    font-family: 'GGX89';
    font-weight: normal;
    margin: 0;
    font-size: 60px;
    text-transform: uppercase;
    line-height: 0.8;
}

#brands-img-wrap {
    width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 19px;
    overflow: hidden;
}

.brand-card {
    position: relative;
}

.brand-card__logo {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 80%;
    padding: 24px;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    will-change: transform;
    transform-origin: center;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
}

.brand-card__img {
    filter: grayscale(1);
    z-index: 1;
    transition: filter 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.brand-card:hover .brand-card__img {
    filter: none;
}

.brand-card:hover .brand-card__logo {
    transform: translateY(-6px) scale(1.03);
}

#brands-img__overlay-links a {
    height: 100%;
}

#brands-img-wrap img {
    object-fit: contain;
    width: 100%;
    height: auto;
}

#our-brands span {
    font-size: 60px;
    text-transform: uppercase;
    line-height: 0.8;
}

#video-embed {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 15px;
}

#about-us {
    display: grid;
    grid-template-columns: 5fr 3fr;
    gap: 40px;
    margin-top: 34px;
}

#about-us img {
    width: 100%;
    height: auto;
}

#about-us__paragraph {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 16px;
    margin-top: 20px;
}

.address {
    text-align: center;
}

footer {
    border-top: 1px solid #fff;
    display: flex;
    align-items: center;
    gap: 80px;
    width: 100%;
    padding: 24px 66px;
    font-size: 12px;
    max-width: 1100px;
    margin: auto;
    margin-top: 40px;
}

#footer__fm-logo {
    height: 20px;
    filter: invert(1) brightness(1.2) contrast(1.1);
    width: auto;
}

#social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 99px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.social-link:hover {
    filter: brightness(.5);
}

.social-link img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.mobile-only {
    display: none;
}

@media (max-width: 650px) {
    body {
        background-image: url("../img/Background_Mobile.png");
    }

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    #fm-content h4,
    #our-brands span {
        font-size: 36px;
    }

    #our-brands {
        gap: 18px;
    }

    #brands-img-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        gap: 14px;
    }

    .brand-card__logo {
        padding: 20px 50px;
        max-height: 62px;
    }

    #about-us {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 18px;
        font-size: 14px;
        margin-top: 24px;
    }

    #about-us__paragraph {
        gap: 14px;
        font-size: 14px;
        margin-top: 0;
    }

    #our-brands-header {
        gap: 18px;
    }

    #our-brands-header,
    #our-brands span,
    #about-us {
        padding: 0 24px;
        text-align: center;
    }

    #youtube-embed {
        border-radius: 8px;
    }

    #social-links {
        gap: 8px;
    }

    footer {
        gap: 15px;
        justify-content: space-between;
        padding: 24px 14px;
        margin-top: 0;
    }

    .brand-card__img.mobile-only {
        animation: spotlight-once 40s cubic-bezier(0.21, 0.8, 0.35, 1) infinite both;
        transition: filter 0.5s linear;
        filter: grayscale(0);
    }

    #brands-img-wrap .brand-card:nth-child(1) .brand-card__img.mobile-only {
        animation-delay: 0s;
    }

    #brands-img-wrap .brand-card:nth-child(2) .brand-card__img.mobile-only {
        animation-delay: 10s;
    }

    #brands-img-wrap .brand-card:nth-child(3) .brand-card__img.mobile-only {
        animation-delay: 20s;
    }

    #brands-img-wrap .brand-card:nth-child(4) .brand-card__img.mobile-only {
        animation-delay: 30s;
    }

    @keyframes spotlight-once {

        0%,
        20%,
        100% {
            filter: grayscale(1);
        }

        5%,
        15% {
            filter: grayscale(0);
        }
    }
}
