/* =========================================================
   MEDLIFY - OUR CLIENTS
========================================================= */

.clients-section {

    width: 100%;

    background: #ffffff;

    padding: 35px 0 55px;

    overflow: hidden;
}


/* =========================================================
   CONTAINER
========================================================= */

.clients-container {

    width: min(1050px, calc(100% - 80px));

    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.clients-heading {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-bottom: 65px;
}


.clients-heading h2 {

    margin: 0;

    color: #050505;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 43px;

    line-height: 1;

    font-weight: 900;

    letter-spacing: -1.5px;
}


/* =========================================================
   HEART
========================================================= */

.clients-heart {

    position: relative;

    width: 70px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #ffd21c;

    font-size: 56px;

    line-height: 1;

    -webkit-text-stroke: 2px #111111;

    transform: rotate(-2deg);

    filter:
        drop-shadow(0 2px 0 rgba(0,0,0,.08));

    animation:
        clientHeart 2.8s ease-in-out infinite;
}


@keyframes clientHeart {

    0%,
    100% {
        transform:
            rotate(-2deg)
            scale(1);
    }

    50% {
        transform:
            rotate(2deg)
            scale(1.06);
    }

}


/* =========================================================
   CLIENT GRID
========================================================= */

.clients-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    column-gap: 55px;

    row-gap: 45px;

    align-items: center;
}


/* =========================================================
   LOGO BOX
========================================================= */

.client-logo {

    width: 100%;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        transform .3s ease;
}


.client-logo img {

    width: auto;

    max-width: 145px;

    height: auto;

    max-height: 45px;

    object-fit: contain;

    display: block;

    transition:
        transform .35s ease,
        filter .35s ease;
}


/* =========================================================
   HOVER
========================================================= */

.client-logo:hover {

    transform: translateY(-4px);
}


.client-logo:hover img {

    transform: scale(1.08);

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .clients-container {

        width: calc(100% - 50px);
    }


    .clients-heading {

        margin-bottom: 50px;
    }


    .clients-heading h2 {

        font-size: 38px;
    }


    .clients-heart {

        width: 48px;

        height: 48px;

        font-size: 49px;
    }


    .clients-grid {

        column-gap: 25px;

        row-gap: 35px;
    }


    .client-logo img {

        max-width: 125px;

        max-height: 40px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .clients-section {

        padding: 30px 0 40px;
    }


    .clients-container {

        width: calc(100% - 28px);
    }


    .clients-heading {

        gap: 8px;

        margin-bottom: 40px;
    }


    .clients-heading h2 {

        font-size: 32px;

        letter-spacing: -1px;
    }


    /* =========================================================
   3D HEART
========================================================= */

.clients-heart {

    position: relative;

    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: rotate(-4deg);

    filter:
        drop-shadow(0 7px 3px rgba(0, 0, 0, 0.22));

    animation: heartFloat 2.8s ease-in-out infinite;

}


/* Main Heart */

.clients-heart i {

    position: relative;

    z-index: 3;

    font-size: 61px;

    color: #ffd21a;

    -webkit-text-stroke: 2.5px #111;

    filter:
        drop-shadow(
            0 4px 0 #c79e00
        );

}


/* 3D depth */

.clients-heart::before {

    content: "";

    position: absolute;

    z-index: 1;

    width: 48px;
    height: 48px;

    background: #c79e00;

    border-radius: 50%;

    transform:
        translateY(7px)
        rotate(-4deg);

}


/* Highlight */

.clients-heart::after {

    content: "";

    position: absolute;

    z-index: 4;

    width: 11px;
    height: 6px;

    background: rgba(255,255,255,.75);

    border-radius: 50%;

    top: 18px;
    left: 19px;

    transform: rotate(-25deg);

}


/* Floating */

@keyframes heartFloat {

    0%,
    100% {

        transform:
            translateY(0)
            rotate(-4deg)
            scale(1);

    }

    50% {

        transform:
            translateY(-5px)
            rotate(3deg)
            scale(1.04);

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .clients-heart {

        width: 48px;
        height: 48px;

    }

    .clients-heart i {

        font-size: 47px;

        -webkit-text-stroke: 2px #111;

    }

    .clients-heart::before {

        width: 37px;
        height: 37px;

        transform:
            translateY(5px)
            rotate(-4deg);

    }

    .clients-heart::after {

        width: 8px;
        height: 5px;

        top: 13px;
        left: 14px;

    }

}

    .clients-grid {

        grid-template-columns:
            repeat(2, 1fr);

        column-gap: 18px;

        row-gap: 28px;
    }


    .client-logo {

        height: 50px;
    }


    .client-logo img {

        max-width: 120px;

        max-height: 38px;
    }


    .client-logo:hover {

        transform: none;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .clients-heading h2 {

        font-size: 28px;
    }


    .clients-heart {

        font-size: 37px;
    }


    .clients-grid {

        column-gap: 10px;

        row-gap: 25px;
    }


    .client-logo img {

        max-width: 105px;

        max-height: 34px;
    }

}

