/*   M A I N   S E C T I O N   */
main {
    display: flex;
    flex-direction: column;
    color: var(--light-color);
}

main section {
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
}

main section:nth-of-type(1) {
    height: calc(100vh - 100px);
    background-image: url(../img/background-index.webp);
    background-repeat: no-repeat;
}

main section:nth-of-type(2) {
    background-image: url(../img/bg.webp);
    background-repeat: no-repeat;
}

main section:nth-of-type(3) {
    color: var(--dark-color);
}

section h1,
section p {
    width: 40%;
}

section h1 {
    padding-bottom: 25px;
}

/*   S E C T I O N   2   */
section:nth-of-type(2) .limit-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20%;
}

section:nth-of-type(2) .limit-container img {
    width: 30%;
}

.left-inner-div {
    width: 80%;
}

.left-inner-div h1,
.left-inner-div p {
    width: 100%;
}

/*   S E C T I O N   3   */
section:nth-of-type(3) .limit-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

main article {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;

    border-radius: 5px;
    padding: 50px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;

    min-height: 500px;
    max-width: 400px;
}

.inner-plan-div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 50px;
}

.inner-plan-div a {
    padding: 20px;
    background-color: var(--primary-color);
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s ease-in-out;

    text-decoration: none;
    color: var(--light-color);
}

.inner-plan-div a:hover {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.inner-plan-div p {
    width: 100%;
}

.inner-plan-div p:last-of-type {
    font-weight: 600;
    font-size: 1.5em;
    color: var(--primary-color);

    margin-block: 0;
}

.inner-plan-div p:last-of-type::before {
    content: 'R$';

    display: block;
    float: left;

    position: relative;
    left: 20%;
    transform: translate(-50%, -10%);

    font-size: 2em;
    text-align: center;
}

.inner-plan-div p:last-of-type::after {
    content: '/ao mês';

    display: block;

    font-size: 0.5em;
}

main article:nth-of-type(1) {
    background-color: var(--light-color);
}

main article:nth-of-type(2) {
    background-color: #EAEAC7;
}

main article:nth-of-type(3) {
    background-color: #A4DB90;
}

@media (max-width: 975px) {

    main section:nth-of-type(1) .limit-container h1,
    main section:nth-of-type(1) .limit-container p {
        display: flex;
        justify-self: center;
        text-align: center;

        width: 70%;
    }

    main section:nth-of-type(2) .limit-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    main section:nth-of-type(2) .left-inner-div {
        width: 80%;
    }

    main section:nth-of-type(3) .limit-container {
        flex-direction: column;
    }
}