/* ==================================================
   Office MK Software
   File        : responsive.css
   Version     : 1.0
   Build       : 0002 RC1

   Description : Responsive Style

   Copyright (C) Office MK
   All Rights Reserved.
================================================== */


/* ==================================================
   Tablet
================================================== */

@media screen and (max-width:1024px){

    :root{

        --space-section:4rem;

    }

    .hero-content{

        grid-template-columns:1fr;

        gap:3rem;

        text-align:center;

    }

    .hero-description{

        max-width:100%;

        margin-inline:auto;

    }

    .hero-image{

        order:-1;

    }

    .products .container{

        grid-template-columns:
            repeat(
                auto-fit,
                minmax(280px,1fr)
            );

    }

}


/* ==================================================
   Mobile
================================================== */

@media screen and (max-width:768px){

    :root{

        --header-height:64px;

        --space-section:3.5rem;

        --font-size-xxl:2rem;

        --font-size-xl:1.5rem;

        --font-size-lg:1.15rem;

    }

    .container{

        width:min(
            calc(100% - 1.5rem),
            var(--container-width)
        );

    }


    /* ===== Header ================================ */

    .site-header .container{

        flex-direction:column;

        justify-content:center;

        gap:1rem;

        padding:
            1rem
            0;

    }

    .site-header nav ul{

        flex-wrap:wrap;

        justify-content:center;

        gap:
            .8rem
            1.2rem;

    }


    /* ===== Hero ================================= */

    .hero{

        padding-top:4rem;

    }

    .hero h1{

        line-height:1.4;

    }

    .button-primary{

        width:100%;

        max-width:320px;

    }


    /* ===== Products ============================= */

    .products .container{

        grid-template-columns:1fr;

    }

    .product-card{

        padding:1.5rem;

    }

    .product-icon{

        width:64px;
        height:64px;

        margin-bottom:1rem;

    }


    /* ===== Footer =============================== */

    .site-footer ul{

        flex-direction:column;

        gap:1rem;

    }

}


/* ==================================================
   Small Mobile
================================================== */

@media screen and (max-width:480px){

    :root{

        --space-section:3rem;

        --font-size-xxl:1.8rem;

    }

    .hero{

        padding-top:3rem;

    }

    .hero-label{

        font-size:var(--font-size-xs);

    }

    .hero-description{

        font-size:var(--font-size-sm);

    }

    .quality li{

        padding-left:1.6rem;

    }

    .news p{

        padding:1rem;

    }

}


/* ==================================================
   Large Desktop
================================================== */

@media screen and (min-width:1440px){

    .container{

        max-width:1200px;

    }

}


/* ==================================================
   Reduced Motion
================================================== */

@media (prefers-reduced-motion:reduce){

    *{

        transition:none !important;

        animation:none !important;

        scroll-behavior:auto !important;

    }

}