:root {
    --primary: #A67C52;
    --secondary: #D4A574;
    --tertiary: #C9A961;
    --quaternary: #F5E6D3;
    --highlight3: #E8B4C0;
    --gradient-qtry-hl3: linear-gradient(135deg, var(--quaternary), color-mix(var(--highlight3) 50%, transparent));
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: .7; }
    100% { opacity: 1; }
}
.blinking { animation: blink 1.5s infinite; }

#header .content {
    .main .texts .tag {
        padding: .3rem .6rem;
        border-left: 4px solid var(--secondary);
    }

    .infos {
        --qtd-info: 4;

        background-color: rgba(239, 215, 209, .15);
        border: 2px solid var(--secondary);

        .info {
            width: calc((100% - (1rem * (var(--qtd-info) - 1))) / var(--qtd-info));
        }
    }
}

#about .content {
    .image {
        width: 40%;

        .flag {
            bottom: -1rem;
            right: -1rem;
        }
    }

    .subcontent { width: 60%; }
}

#growth .content {
    .items .item {
        --qtd-growth-items: 3;

        width: calc((100% - (2.5rem * (var(--qtd-growth-items) - 1))) / var(--qtd-growth-items));
        padding: 0 1rem;

        .bar {
            width: 100%;
            background-color: rgba(255, 255, 255, .2);

            &, .progress {
                border-radius: 24px;
                height: 10px;
            }

            .progress {
                background: linear-gradient(90deg, var(--secondary), var(--highlight3), var(--tertiary));
            }
        }

        .texts {
            .big-number, .name {
                text-align: center;
            }

            .big-number {
                font-size: 36px;
                font-family: var(--font-poppins);
                color: var(--secondary);
            }

            .name {
                font-size: 15px;
                color: var(--clr-light-paragraph);
                line-height: 22px;
            }
        }
    }

    .info {
        padding: 1.5rem;
        background-color: rgba(255, 255, 255, .2);
        border: 2px solid var(--secondary);
    }
}

#calc .content .subcontent {
    padding: 2.5rem 2.5rem 2rem;
    box-shadow: 0 0 10px 3px rgba(0, 0, 0, .1);
    border: 1px solid var(--secondary);
    background: var(--gradient-qtry-hl3);

    &>.items {
        .fields .field-group {
            display: flex;
            flex-direction: column;
            gap: .8rem;

            .name {
                font-size: 15px;
                font-weight: 500;
                font-family: var(--font-poppins);
            }

            .input-range {
                display: flex;
                gap: .8rem;

                .slider {
                    display: flex;
                    align-items: center;
                    gap: 1rem;
                    width: 100%;

                    .mark {
                        font-size: 16px;
                        font-weight: 600;
                        transition: none;
                        white-space: nowrap;
                        padding: .4rem 1rem;
                        border-radius: 8px;
                        background-color: var(--white);

                        &, .value {
                            color: var(--tertiary);
                            font-family: var(--font-poppins);
                        }
                    }

                    /* Barra */
                    input[type="range"] {
                        -webkit-appearance: none;
                        width: 100%;
                        height: 12px;
                        background: linear-gradient(90deg, var(--black), var(--secondary));
                        border-radius: 5px;
                        outline: none;
                    }

                    /* Bolinha */
                    input[type="range"]::-webkit-slider-thumb {
                        -webkit-appearance: none;
                        width: 18px;
                        height: 18px;
                        background: var(--white);
                        border: 2px solid var(--black);
                        border-radius: 50%;
                        cursor: pointer;
                    }

                    /* Para navegadores baseados em Firefox */
                    input[type="range"]::-moz-range-track {
                        width: 100%;
                        height: 12px;
                        background: linear-gradient(90deg, var(--black), var(--secondary));
                        border-radius: 5px;
                        outline: none;
                    }
                    input[type="range"]::-moz-range-thumb {
                        width: 18px;
                        height: 18px;
                        background: var(--white);
                        border: 2px solid var(--black);
                        border-radius: 50%;
                        cursor: pointer;
                    }
                }
            }
        }
    }

    .results {
        box-shadow: 0 0 6px 3px rgba(0, 0, 0, .1);
    
        .top .numbers {
            --gap-numbers: .6rem;

            gap:var(--gap-numbers);

            .number:last-child {
                padding-top: calc(var(--gap-numbers) + .4rem);
                border-top: 1px solid rgba(0, 0, 0, .2);
            }
        }

        .details {
            padding: 1rem 1.2rem;
            border: 1px solid var(--secondary);
            background-color: color-mix(var(--quaternary) 50%, transparent);

            .items li {
                list-style-type: disc;
                list-style-position: inside;
                font-size: 14px;
                font-family: var(--font-poppins);
            }
        }
    }
}

#content .content .carousel .swiper .swiper-slide {
    height: auto;

    .item {
        padding: 5rem 1.2rem 1.2rem;
        display: flex;
        flex-direction: column;
        gap: .6rem;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        position: relative;
        height: 100%;
        
        &, &::before { border-radius: 16px; }
        &::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .9));
        }

        &>* { z-index: 9; }
        
        .title {
            font-size: 14px;
            font-weight: 600;
            font-family: var(--font-poppins);
            color: var(--white);
        }

        .items {
            display: flex;
            flex-direction: column;
            gap: .3rem;

            li {
                font-size: 14px;
                font-family: var(--font-poppins);
                color: var(--clr-light-paragraph);
                list-style-type: disc;
                list-style-position: inside;
            }
        }
    }
}

#place .content {
    .items .item {
        --qtd-place-items: 2;

        width: calc((100% - (1.5rem * (var(--qtd-place-items) - 1))) / var(--qtd-place-items));
        position: relative;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        min-height: 350px;
        padding: 1.3rem;
        display: flex;
        flex-direction: column;
        justify-content: end;
        gap: .3rem;
        
        &, &::before { border-radius: 16px; }
        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .9));
        }
        &>* { z-index: 9; }

        .title {
            font-family: var(--font-poppins);
            font-weight: 600;
            font-size: 17px;
            color: var(--white);
        }

        .desc {
            font-size: 14px;
            font-family: var(--font-poppins);
            color: var(--clr-light-paragraph);
        }
    }

    .advantages {
        --gap-advantages: 1.5rem;
        --qtd-advantages-items: 3;

        border: 1px solid var(--secondary);
        gap: var(--gap-advantages);
        padding: 2rem;
        background: var(--gradient-qtry-hl3);

        .item {
            width: calc((100% - (var(--gap-advantages) * (var(--qtd-advantages-items) - 1))) / var(--qtd-advantages-items));
            padding: 0 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: .8rem;

            .icon { font-size: 32px; }

            .texts {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: .3rem;

                .title, .desc { text-align: center; }

                .title {
                    font-size: 16px;
                    font-weight: 600;
                    font-family: var(--font-poppins);
                }

                .desc {
                    color: var(--clr-dark-paragraph);
                    font-size: 15px;
                    line-height: 22px;
                }
            }
        }
    }
}

#feedbacks .content .carousel .swiper .swiper-slide {
    height: auto;

    .item {
        height: 100%;
        background-color: rgba(255, 255, 255, .1);
        border-radius: 16px;
        border: 1px solid var(--secondary);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 1.5rem;

        .top {
            display: flex;
            flex-direction: column;
            gap: 1rem;

            .stars {
                display: flex;
                gap: .3rem;

                svg {
                    width: 17px;
                    height: 17px;
                    fill: var(--secondary);
                }
            }

            p {
                font-size: 15px;
                line-height: 24px;
                color: var(--clr-light-paragraph);
            }
        }

        .person {
            padding-top: 1rem;
            border-top: 1px solid rgba(255, 255, 255, .2);

            .name {
                font-size: 15px;
                font-weight: 500;
                color: var(--white);
            }
        }
    }
}

#plans .content {
    .carousel .swiper .swiper-slide {
        padding: 1rem 1rem 0 0;
        height: auto;

        .item {
            height: 100%;
            padding: 2rem 1rem 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            gap: 2.5rem;
            position: relative;
            border: 2px solid var(--secondary);
            border-radius: 16px;
            background-color: rgba(255, 255, 255, .1);

            &.highlight {
                background: linear-gradient(180deg, var(--secondary), var(--primary) 90%);

                .actions a {
                    background-color: var(--white);
                    color: var(--primary);
                }
            }

            &:not(.soldout) .flag {
                animation: blink 1.5s infinite;
            }

            &.soldout {
                border-color: rgba(255, 255, 255, .05);
                cursor: not-allowed;

                &::before {
                    content: '';
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    left: 0;
                    top: 0;
                    background-color: var(--black);
                    opacity: .8;
                    border-radius: 16px;
                }

                .flag {
                    transform: rotateZ(20deg);
                    transform-origin: left;
                }

                .actions a {
                    background-color: rgba(255, 255, 255, .25);
                }
            }

            .flag {
                position: absolute;
                top: -1rem;
                right: -1rem;
                background: linear-gradient(45deg, #fb6b0a, #e62e30);
                padding: .5rem 1rem;
                border-radius: 24px;
                color: var(--white);
                font-size: 12px;
                font-family: var(--font-poppins);
                font-weight: 500;
            }

            .content {
                display: flex;
                flex-direction: column;
                gap: 1.5rem;
                width: 100%;

                .top {
                    display: flex;            
                    flex-direction: column;
                    gap: 1.5rem;

                    .infos {
                        display: flex;
                        flex-direction: column;
                        gap: .6rem;

                        .title {
                            font-size: 18px;
                            font-weight: 600;
                            font-family: var(--font-poppins);
                            color: var(--white);
                            text-transform: uppercase;
                            text-align: center;
                        }

                        .group {
                            display: flex;
                            flex-direction: column;
                            align-items: center;
                            gap: .5rem;

                            span {
                                font-size: 13px;
                                font-family: var(--font-poppins);
                                color: var(--clr-light-paragraph);
                                text-align: center;
                                display: flex;
                                align-items: center;
                                gap: .5rem;

                                svg { fill: var(--white); }
                            }
                        }
                    }

                    .price {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        gap: .3rem;

                        .old {
                            font-size: 14px;
                            font-family: var(--font-poppins);
                            text-align: center;
                            color: var(--clr-light-paragraph);
                            text-decoration: line-through;
                        }

                        .current {
                            display: flex;
                            flex-direction: column;

                            .value {
                                font-size: 40px;
                                font-family: var(--font-poppins);
                                font-weight: 600;
                                color: var(--white);
                                text-align: center;
                            }

                            .card {
                                font-size: 13px;
                                font-family: var(--font-poppins);
                                color: var(--clr-light-paragraph);
                                text-align: center;
                            }
                        }
                    }
                }

                .included {
                    display: flex;
                    flex-direction: column;
                    gap: .5rem;

                    li {
                        font-size: 13px;
                        font-family: var(--font-poppins);
                        color: var(--white);
                        display: flex;
                        gap: .5rem;
                        line-height: 24px;

                        svg {
                            width: 19px;
                            height: 19px;
                            padding-top: 3px;
                            fill: var(--white);
                        }
                    }
                }
            }

            .actions {
                &, a { width: 100%; }

                a {
                    font-size: 15px;
                    font-family: var(--font-poppins);
                    font-weight: 600;
                    color: var(--white);
                    background-color: var(--secondary);
                    border-radius: 12px;
                    padding: .6rem 1rem;
                    display: block;
                    text-align: center;
                }
            }
        }
    }

    .info {
        border: 1px solid var(--highlight3);
        background-color: color-mix(var(--secondary) 25%, transparent);
    }
}

#instructor .content {
    .image {
        width: 40%;
        
        .flag {
            top: 1rem;
            left: 1rem;
        }
    }

    .subcontent {
        width: 60%;

        .big-numbers-animation .item {
            --qtd-big-numbers-items: 2;

            width: calc((100% - (1rem * (var(--qtd-big-numbers-items) - 1))) / var(--qtd-big-numbers-items));
            display: flex;
            flex-direction: column;
            gap: .6rem;
            padding: 1.2rem;
            border: 1px solid var(--secondary);
            border-radius: 16px;
            background-color: rgba(255, 255, 255, .1);

            .icon svg {
                width: 32px;
                height: 32px;
                fill: var(--secondary);
            }

            .cnt {
                display: flex;
                flex-direction: column;
                gap: .2rem;

                .count {
                    display: flex;
                    align-items: center;
                    gap: .3rem;

                    div, span {
                        font-size: 20px;
                        font-family: var(--font-poppins);
                        font-weight: 500;
                        color: var(--white);
                    }
                }

                p {
                    font-size: 15px;
                    font-family: var(--font-poppins);
                    color: var(--clr-light-paragraph);
                }
            }
        }

        .message {
            border: 1px solid var(--secondary);
            background: color-mix(var(--secondary) 25%, transparent);
        }
    }
}

#faq .content .items .item {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    background-color: var(--black);
    border-radius: 12px;
    width: 100%;    
    padding: 1.2rem;
    cursor: pointer;

    &.active {
        .question svg { transform: rotateZ(180deg); }

        .answer { display: flex; }
    }

    .question {
        display: flex;
        gap: 1.2rem;
        justify-content: space-between;
        font-size: 15px;
        font-family: var(--font-poppins);
        font-weight: 500;
        color: var(--white);

        svg {
            width: 18px;
            height: 18px;
            fill: var(--white);
            transition: all .3s;
        }
    }

    .answer {
        display: none;
        flex-direction: column;
        gap: .8rem;
        padding-top: 1.1rem;
        border-top: 1px solid rgba(255, 255, 255, .4);

        p {
            font-size: 15px;
            color: var(--clr-light-paragraph);
            line-height: 24px;
        }
    }
}

#footer .content {
    padding: 2rem 1rem 1.5rem;

    .top>div {
        width: calc((100% - (3rem * 2)) / 3);

        &.d1 a {
            padding: .3rem .6rem;
            border-left: 4px solid var(--secondary);
        }

        &.contact ul li a svg { margin-top: 3px; }   

        &.social-media ul li a {
            padding: .7rem;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, .2);
            border: 1px solid var(--secondary);
            display: flex;
            align-items: center;
            justify-content: center;

            svg { display: flex; }
        }
    }

    .bottom {
        padding-top: 1.2rem;
        border-top: 1px solid var(--secondary);
    }
}

#modal-form {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
    z-index: 999;
    padding: 0 1rem;

    &.active { display: flex; }

    .close-modal {
        position: absolute;
        top: 1rem;
        right: 1rem;
        padding: .2rem;
        background-color: rgba(255, 255, 255, .2);
        border-radius: 50%;
        cursor: pointer;

        svg {
            width: 32px;
            height: 32px;
            fill: var(--white);
            display: flex;
        }
    }

    .content {
        .heading { border-radius: 16px 16px 0 0; }
        #form-contact { border-radius: 0 0 16px 16px; }
    }
}

#loading-screen {
    top: 0;
    left: 0;
    z-index: 9999;

    &.active { display: flex; }
}

@media (max-width: 1024px) {
    #header .content {
        .main {
            flex-direction: column;
            align-items: center;
            gap: 2rem;

            .texts {
                width: 100%;
                align-items: center;

                .tag {
                    p { text-align: center; } 
                }

                .subcontent {
                    align-items: center;

                    .h1, p { text-align: center; }

                    .flag p { text-align: center; }

                    .action {
                        align-items: center;
                    }
                }
            }

            .media {
                width: 90%;
            }
        }

        .infos {
            --qtd-info: 2;

            gap: 1.5rem 1rem;
        }
    }

    #about .content {
        flex-direction: column;
        gap: 2.5rem;

        .image { width: 70%; }

        .subcontent {
            width: 100%;
            
            &, .texts, .title-heading, .paragraphs {
                align-items: center;
            }

            .h2, p, span { text-align: center; }
        }
    }

    #growth .content .items .item {
        --qtd-growth-items: 2;
    }

    #calc .content {
        gap: 2rem;

        .subcontent {
            padding: 2rem 1.5rem 1rem;

            &>.items {
                flex-direction: column;
                align-items: center;
                gap: 2rem;

                .fields, .results { width: 100%; }

                .fields .field-group { gap: .5rem; }
            }
        }
    }

    #place .content {
        .items {
            flex-direction: column;
            gap: 1rem;

            .item { --qtd-place-items:1; }
        }

        .advantages { --qtd-advantages-items: 2; }
    }

    #instructor .content {
        .part.image {
            width:  70%;
        }

        .subcontent {
            width: 100%;

            &, .texts, .title-heading, .paragraphs {
                align-items: center;
            }

            .h2, .title-heading span, .texts p {
                text-align: center;
            }

            .texts { gap: 2rem; }

            .message { padding: 1.1rem; }
        }
    }

    #footer .content {
        .top {
            flex-direction: column;
            align-items: center;
            gap: 2rem;

            &>div {
                width: 100%;
                align-items: center;
                gap: .7rem;

                &.d1 p { text-align: center; }

                ul {
                    align-items: center;
                    justify-content: center;
                }
            }
        }

        .bottom {
            flex-direction: column-reverse;
            align-items: center;
            gap: 1.5rem;

            .about {
                align-items: center;

                p { text-align: center; }
            }
        }
    }
}

@media (max-width: 768px) {
    #header .content .infos { --qtd-info: 1; }

    #growth .content .items .item { --qtd-growth-items: 1; }

    #place .content .advantages {
        --qtd-advantages-items: 1;

        padding: 1.5rem;
    }

    #plans .content { gap: 2rem; }

    #instructor .content {
        .part.image .flag {
            padding: .7rem;

            .desc { font-size: 13px; }
            .title { font-size: 15px; }
        }

        .subcontent .big-numbers-animation .item {
            --qtd-big-numbers-items: 1;

            &, .cnt { align-items: center; }

            .cnt {
                .count { justify-content: center; }
                p { text-align: center; }
            }
        }
    }

    #modal-form .content #form-contact .fields {
        width: 100%;
    }
}

@media (max-width: 500px) {
    #plans .content .carousel .swiper .swiper-slide .item {
        .content .top .price .current .value {
            font-size: 32px;
        }

        .actions a { font-size: 14px; }
    }
}