/* SERVIÇOS */

.services {
    background: var(--color-primary);
    padding: 100px 0;
}

.services-container {
    width: min(90%, 1200px);
    margin: 0 auto;
}

.services-container h2 {
    text-align: center;
    color: var(--color-white);
    font-size: 2.5rem;
}

.services-container > p {
    text-align: center;
    color: var(--color-white);
    margin-top: 10px;
}

/* CARD PRINCIPAL */

.services-grid-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 60px;
}

.imgServices {
    flex: 1.5;
}

.imgServices img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.infoCardTop {
    background: var(--color-primary-light);
    width: 30%;
    max-height: 450px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);

    position: relative;
    left: -50px;
    z-index: 1;
}

.infoCardTop h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.infoCardTop p {
    color: var(--color-text-dark);
}

.espacoBtn {
    display: flex;
    justify-content: flex-end;
}

.btnInfoCardTop,
.btnInfoCardBottom {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: .3s;
    font-weight: bold;
    margin: 10px;
    text-decoration: none;
}

.btnInfoCardTop {
    padding: 12px 24px;
    font-size: 1rem;
}

.btnInfoCardBottom {
    margin: 10px 20px;
    padding: 12px 20px;
    font-size: 1.05rem;
    width: 150px;
}

.btnInfoCardTop:hover,
.btnInfoCardBottom:hover {
    opacity: .9;
}

/* CARDS INFERIORES */

.services-grid-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.infoCardBottom {
    background: var(--color-light-bg);
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.infoCardBottom img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.infoCardBaixo {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.infoCardBaixo h3 {
    padding: 20px 20px 10px;
    color: var(--color-primary);
}

.infoCardBaixo p {
    padding: 0 20px;
    color: var(--color-text-dark);
}

.espacoBtnBottom {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 20px;
}

/* RESPONSIVO SERVIÇOS */

@media(max-width: 1024px) {
    .services {
        padding: 80px 0;
    }

    .services-grid-top {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        margin-top: 50px;
    }

    .imgServices {
        width: 100%;
        flex: none;
    }

    .infoCardTop {
        width: 100%;
        max-height: none;
        left: 0;
        padding: 28px;
    }

    .services-grid-bottom {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .infoCardBottom {
        max-width: 100%;
    }

    .infoCardBottom img {
        height: 190px;
    }

    .infoCardBaixo {
        min-height: 320px;
    }
}

@media(max-width: 768px) {
    .services {
        padding: 70px 0;
    }

    .services-container h2 {
        font-size: 2.2rem;
    }

    .services-container > p {
        font-size: 1rem;
    }

    .services-grid-top {
        margin-top: 40px;
    }

    .infoCardTop {
        padding: 24px;
    }

    .services-grid-bottom {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 40px;
    }

    .infoCardBottom {
        width: 100%;
    }

    .infoCardBottom img {
        height: 220px;
    }

    .infoCardBaixo {
        min-height: auto;
        height: auto;
        padding-bottom: 20px;
    }

    .espacoBtn,
    .espacoBtnBottom {
        justify-content: flex-start;
    }

    .btnInfoCardBottom {
        width: auto;
        margin: 20px;
    }
}

@media(max-width: 480px) {
    .services-container h2 {
        font-size: 2rem;
    }

    .infoCardTop h3,
    .infoCardBaixo h3 {
        font-size: 1.4rem;
    }

    .infoCardBottom img {
        height: 190px;
    }

    .btnInfoCardTop,
    .btnInfoCardBottom {
        width: 100%;
        text-align: center;
    }

    .espacoBtn,
    .espacoBtnBottom {
        justify-content: center;
    }
}