/*
 * Chef cards style for barone template.
 * Round chef photos with DOWNLOAD CV button.
 */

section#chefCards {
    background-color: #fff;
    padding: 8em 8% 3.5em;
    text-align: center;
}

.chef-cards-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3%;
    flex-wrap: wrap;
}

.chef-card {
    width: 28%;
    text-align: center;
    margin-bottom: 2.5em;
    background-color: #f2f2f2;
    border-radius: 20px;
    padding: 2em 1.5em 1.8em;
    box-sizing: border-box;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: default;
}

.chef-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
}

.chef-card-img {
    position: relative;
    width: 70%;
    padding-top: 70%;
    margin: 0 auto;
    border-radius: 50px;
    background-color: #e0e0e0;
    background-size: cover;
    background-position: center top;
    overflow: hidden;
}

.chef-card-img-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity .4s ease;
}

.chef-card:hover .chef-card-img-color {
    opacity: 1;
}

.chef-card-role {
    font-size: .7em;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 1.2em;
    letter-spacing: 1.5px;
    color: #1c1c1e;
}

.chef-card-name {
    font-size: .9em;
    font-weight: 400;
    margin-top: .2em;
    margin-bottom: .8em;
    letter-spacing: .5px;
    line-height: 1.3em;
    color: #666;
}

.chef-cv-btn {
    display: inline-flex !important;
    align-items: center;
    gap: .5em;
    font-size: .75em !important;
    padding: .6em 1.6em !important;
    text-decoration: none !important;
    border: 2px solid #1c1c1e !important;
    color: #1c1c1e !important;
    background-color: transparent !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 0;
    transition: background-color .2s ease, color .2s ease;
    cursor: pointer;
}

.chef-cv-btn:hover {
    background-color: #1c1c1e !important;
    color: #fff !important;
}

.chef-cv-btn i {
    font-size: .9em;
}

@media screen and (max-width: 780px) {
    .chef-cards-row {
        gap: 4%;
    }

    .chef-card {
        width: 40%;
        margin-bottom: 2em;
    }
}

@media screen and (max-width: 500px) {
    section#chefCards {
        padding: 8em 5% 2.5em;
    }

    .chef-cards-row {
        gap: 6%;
    }

    .chef-card {
        width: 70%;
        margin-bottom: 2em;
    }

    .chef-card-role {
        font-size: 1em;
    }

    .chef-card-name {
        font-size: 1.2em;
    }

    .chef-cv-btn {
        font-size: 1em !important;
    }
}
