/* ==============================================================
   MENU
================================================================ */

.menu {
    background:
        radial-gradient(
            circle at 20% 30%,
            #60371f,
            transparent 25%
        ),
        #21110b;

    padding: 130px 0;
}


/* ==============================================================
   MENU HEADER
================================================================ */

.menu-header {
    text-align: center;
    margin-bottom: 100px;
}

.menu-header p {
    max-width: 500px;
    margin: 30px auto 0;
}


/* ==============================================================
   DESKTOP FOOD GRID
================================================================ */

.food-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}


/* ==============================================================
   FOOD CARD
================================================================ */

.food-card {
    min-width: 0;

    background: #342017;

    padding: 15px;

    opacity: 0;

    transform:
        translate3d(0, 100px, 0);

    transition:
        opacity .9s ease,
        transform .9s cubic-bezier(.2, .8, .2, 1);
}

.food-card.visible {
    opacity: 1;

    transform:
        translate3d(0, 0, 0);
}


/*
 * Desktop hover only.
 */

@media (min-width: 801px) {

    .food-card:hover {
        transform:
            translate3d(0, -15px, 0);
    }

}


/* ==============================================================
   FOOD IMAGE
================================================================ */

.food-image {
    height: 350px;

    overflow: hidden;
}

.food-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .8s ease;

    will-change: transform;
}


/*
 * Image hover only on desktop.
 */

@media (min-width: 801px) {

    .food-card:hover .food-image img {
        transform:
            scale(1.08);
    }

}


/* ==============================================================
   EMPTY IMAGE
================================================================ */

.food-image-empty {
    display: flex;

    align-items: center;
    justify-content: center;

    background: #21110b;

    color: #c99762;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* ==============================================================
   FOOD INFO
================================================================ */

.food-info {
    padding:
        25px
        10px
        15px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

.food-info h3 {
    margin: 0;

    font-size: 24px;

    font-weight: 400;
}

.food-description {
    margin-top: 8px;

    font-size: 13px;

    line-height: 1.6;
}

.price {
    flex-shrink: 0;

    color: #c99762;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* ==============================================================
   ADD TO CART
================================================================ */

.add-to-cart {
    width: 80%;

    margin-top: 18px;

    padding:
        14px
        18px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    border:
        1px solid #222;

    border-radius: 0;

    background: #222;

    color: #fff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        transform .2s ease;
}

.add-to-cart:hover {
    background: #fff;
    color: #222;
}

.add-to-cart:active {
    transform:
        scale(.98);
}

.add-to-cart-icon {
    width: 25px;
    height: 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid currentColor;

    border-radius: 50%;

    font-size: 18px;

    font-weight: 400;

    line-height: 1;
}


/* ==============================================================
   FULL MENU BUTTON
================================================================ */

.menu-more {
    display: flex;

    justify-content: center;

    margin-top: 70px;

    opacity: 0;

    transform:
        translate3d(0, 40px, 0);

    transition:
        opacity .9s ease,
        transform .9s cubic-bezier(.2, .8, .2, 1);
}

.menu-more.visible {
    opacity: 1;

    transform:
        translate3d(0, 0, 0);
}

.menu-button {
    display: inline-block;

    padding:
        16px
        30px;

    border:
        1px solid #c99762;

    color: #f8ead8;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    letter-spacing: 3px;

    text-transform: uppercase;

    text-decoration: none;

    transition:
        background .35s ease,
        color .35s ease,
        transform .35s ease;
}

.menu-button:hover {
    background: #c99762;

    color: #21110b;

    transform:
        translateY(-2px);
}


/* ==============================================================
   EMPTY MENU
================================================================ */

.menu-empty {
    padding:
        80px
        20px;

    text-align: center;
}

.menu-empty h3 {
    margin-bottom: 15px;

    font-size: 30px;

    font-weight: 400;
}


/* ==============================================================
   TABLET
   481px — 800px

   HORIZONTAL CAROUSEL
================================================================ */

@media (max-width: 800px) {

    .menu {
        padding:
            100px 0;
    }


    /* --------------------------------
       HEADER
    -------------------------------- */

    .menu-header {
        margin-bottom: 60px;
    }


    /* --------------------------------
       CAROUSEL
    -------------------------------- */

    .food-grid {
        display: flex;

        gap: 20px;

        width: 100%;

        overflow-x: auto;
        overflow-y: hidden;

        padding:
            5px
            5px
            25px;

        scroll-snap-type:
            x mandatory;

        scroll-padding-left: 5px;

        -webkit-overflow-scrolling:
            touch;

        overscroll-behavior-x:
            contain;

        scrollbar-width:
            none;

        /*
         * Important for touch dragging.
         */

        touch-action:
            pan-x;
    }

    .food-grid::-webkit-scrollbar {
        display: none;
    }


    /*
     * JavaScript adds clones.
     * Cards themselves determine their
     * width through flex-basis below.
     */

    .food-card {
        flex:
            0 0
            calc(50% - 10px);

        scroll-snap-align:
            start;

        
    }


    /*
     * Remove reveal movement after the
     * card becomes visible.
     */

    .food-card:hover {
        transform:
            translate3d(0, 0, 0);
    }

    .food-card:hover .food-image img {
        transform:
            none;
    }


    /* --------------------------------
       IMAGE
    -------------------------------- */

    .food-image {
        height: 400px;
    }

}


/* ==============================================================
   SMALL TABLETS
   601px — 800px
================================================================ */

@media (min-width: 601px) and (max-width: 800px) {

    .food-card {
        flex:
            0 0
            calc(55% - 10px);



    }

}


/* ==============================================================
   MOBILE
   480px AND BELOW
================================================================ */

@media (max-width: 480px) {

    .menu {
        padding:
            80px 0 90px;
    }


    /* --------------------------------
       HEADER
    -------------------------------- */

    .menu-header {
        margin-bottom: 45px;
    }


    /* --------------------------------
       CAROUSEL
    -------------------------------- */

    .food-grid {
        gap: 16px;

        /*
         * Allows the next card to peek
         * into view.
         */

        margin-right: -5%;

        padding:
            5px
            5px
            22px;

        scroll-snap-type:
            x mandatory;

        scroll-padding-left: 5px;
    }


    .food-card {
        flex:
            0 0
            86%;

        scroll-snap-align:
            center;

        height: 350px;
    }


    /* --------------------------------
       IMAGE
    -------------------------------- */

    .food-image {
        height: 200px;
    }


    /* --------------------------------
       INFO
    -------------------------------- */

    .food-info {
        padding:
            22px
            8px
            14px;

        gap: 12px;
    }

    .food-info h3 {
        font-size: 22px;
    }

    .food-description {
        font-size: 12px;
    }

    .price {
        font-size: 13px;
    }


    /* --------------------------------
       ADD TO CART
    -------------------------------- */

    .add-to-cart {
        width: 80%;

        padding:
            13px
            15px;

        font-size: 11px;

        border-radius: 0;
    }


    /* --------------------------------
       FULL MENU
    -------------------------------- */

    .menu-more {
        margin-top: 50px;
    }

    .menu-button {
        width: 100%;

        text-align: center;
    }

}


/* ==============================================================
   VERY SMALL PHONES
================================================================ */

@media (max-width: 360px) {

    .food-card {
        flex:
            0 0
            90%;
    }

    .food-image {
        height: 320px;
    }

    .food-info h3 {
        font-size: 21px;
    }

}


/* ==============================================================
   MENU HEADER REVEAL
================================================================ */

.menu-header .reveal {
    opacity: 0;

    transform:
        translate3d(0, 50px, 0);

    transition:
        opacity .9s ease,
        transform .9s cubic-bezier(.2, .8, .2, 1);
}

.menu-header .reveal.visible {
    opacity: 1;

    transform:
        translate3d(0, 0, 0);
}


/* ==============================================================
   REDUCED MOTION
================================================================ */

@media (prefers-reduced-motion: reduce) {

    .menu .food-card,
    .menu-header .reveal,
    .menu-more,
    .food-image img,
    .add-to-cart,
    .menu-button {
        transition: none !important;
    }

    .menu .food-card,
    .menu-header .reveal,
    .menu-more {
        opacity: 1;

        transform: none;
    }

    .food-card:hover {
        transform: none;
    }

    .food-card:hover .food-image img {
        transform: none;
    }

    .food-image img {
        will-change: auto;
    }
}
