@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: "Poppins", sans-serif;
    background-color: #f9f9f9;
}

.section{
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;

    & .title{
        font-weight: 200;
        font-size: 1.4rem;
    }

    & .subtitle{
        font-weight: 600;
        font-size: 1.4rem;
        margin-bottom: 20px;
        color: hsl(234, 12%, 34%);
    }

    & .paragraph{
        font-weight: 400;
        font-size: .9rem;
        margin-bottom: 40px;
    }

    & .cards{
        display: grid;
        --gridColumn: 1fr;
        --gridRow: repeat(4, 1fr);
        --colorBorde: hsl(180, 62%, 55%);
        grid-template-columns: var(--gridColumn);
        grid-template-rows: var(--gridRow);
        gap: 20px;

        & .card{
            background-color: #fff;
            padding: 20px 20px 40px;
            border-radius: 10px;
            position: relative;
            box-shadow: 0px 3px 5px 0px rgba(10,10,10,0.5);
            overflow: hidden;
            border-top: 5px solid var(--colorBorde);

            & .card-title{
                color: hsl(234, 12%, 34%);
            }

            & .card__image {
                display: flex;
                width: 100%;

                & img{
                    margin-left: auto;
                }
            }
        }
    }
}

.cards .card:nth-of-type(2){
    --colorBorde: hsl(0, 78%, 62%);
}

.cards .card:nth-of-type(3){
    --colorBorde: hsl(34, 97%, 64%);
}

.cards .card:nth-of-type(4){
    --colorBorde: hsl(212, 86%, 64%);
}

@media screen and (width > 600px){

    .section__texts{
        width: 70%;
        max-width: 440px;
        margin: 0 auto;
        text-align: center;

        & .title{
            font-size: 2.2rem;
        }

        & .subtitle{
            font-size: 2.2rem;
        }
    }

    .section{
        & .cards{
            --gridColumn: repeat(6, 1fr);
            --gridRow: repeat(4, 1fr);
        }
    }

    .card{
        height: fit-content;
    }

    .cards .card:first-of-type{
        grid-column: 1 / span 2;
        grid-row: 2 / span 2;
    }
    
    .cards .card:nth-of-type(2){
        grid-column: 3 / span 2;
        grid-row: 1 / span 2;
    }

    .cards .card:nth-of-type(3){
        grid-column: 3 / span 2;
        grid-row: 3 / span 2;
    }

    .cards .card:nth-of-type(4){
        grid-column: 5 / span 2;
        grid-row: 2 / span 2;
    }

}
