* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2D241E;
    --secondary: #C98245;
    --secondary-dark: #9A6338;
    --cta: #D99A5B;
    --default: #514239;
    --padding-section: 6rem 0 3rem;
    --background-section: #EFE3D6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    text-decoration: none;
}

.cta-whatsapp {
    background: var(--cta);
    padding: 14px 20px;
    border-radius: 60px;
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 320px;

    color: #3A2A20;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 8%;

    font-size: 0.9rem;
}
.cta-whatsapp::before{
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    transform: skewX(-25deg);

    background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: slowShimmer 4s infinite; 
}

@keyframes slowShimmer {
  0% { left: -150%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

.title-section {
    text-align: center;

    small {
        text-transform: uppercase;
        color: var(--secondary-dark);
        letter-spacing: 8%;
    }

    h2 {
        font-size: 2.6rem;
    }
}

h1 {
    font-size: clamp(2.7rem, 3vw + 0.8rem, 5rem);
    line-height: 1.1;
}

h2 {
    line-height: 1.2;
}

h2,
h3 {
    text-wrap: balance;
}

h1,
h2,
h3 {
    font-family: "DM Serif Display", serif;
    font-weight: 500;
    color: var(--primary);
}

p,
a,
button,
div,
small {
    font-family: "Montserrat", sans-serif;
    line-height: 1.4;
    color: var(--default);
}


body {
    min-height: 300dvh;
}

.contrast {
    color: var(--secondary);
    font-style: italic;
}

.bg-section {
    width: 100%;
    min-height: 600px;
    background: var(--background-section) url('../assets/bg-section.webp');
    background-size: cover;
    background-repeat: no-repeat;
}


/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(.22, 1, .36, 1);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-25px);
    transition:
        opacity 0.7s ease,
        transform 0.8s cubic-bezier(.22, 1, .36, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(25px);
    transition:
        opacity 0.7s ease,
        transform 0.8s cubic-bezier(.22, 1, .36, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}


/* All contents */
main {
    >section {
        padding: var(--padding-section);
    }
}


#hero {
    width: 100%;
    height: auto;
    background: #FFE9D2;

    .bg-and-fg {
        position: absolute;
        inset: 0;
        z-index: 1;
        overflow: hidden;

        .img-container {
            position: absolute;
            display: block;
            top: 0;
            z-index: 1;
        }

        .img-container::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 2;
        }

        .img-container.left::before {
            background:
                linear-gradient(to right, rgba(255, 233, 210, 0.60), #FFE9D2);
        }

        .img-container.right::before {
            background: linear-gradient(to left, rgba(255, 233, 210, 0.20), #FFE9D2);
        }

        .img-container.left {
            left: 0;
        }

        .img-container.right {
            right: 0;
        }

        .img-container.foreground {
            top: unset;
            bottom: 0;

            img {
                width: 100%;
                filter: blur(5px);
                display: block;
            }
        }
    }

    .hero-content {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        min-height: 100dvh;
        position: relative;
        z-index: 3;

        .hero-texts {
            align-self: center;
            flex-basis: 40%;

            .desc {
                margin: 1rem 0 1rem;
                font-size: 1.1rem;
            }
        }

        .hero-profissional {
            img {
                display: block;
                max-width: 580px;
                width: 100%;
            }
        }
    }
}

#why-hire-me {
    .cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1rem;
        margin: 3rem 0;

        .card {
            background: #fff url('../assets/card-bg.webp');
            padding: 1.8rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            border-radius: 20px;
            position: relative;
            z-index: 1;
            overflow: hidden;

            >* {
                position: relative;
                z-index: 3;
            }

            .indicator {
                --default-color: rgba(201, 130, 69, 0.40);
                font-size: 1.3rem;
                color: var(--default-color);
                font-family: "DM Serif Display", serif;
                position: relative;
            }

            .indicator::after {
                content: "";
                position: absolute;
                left: 28px;
                top: 50%;
                transform: translateY(-50%);
                display: inline-block;
                width: 38px;
                height: 1px;
                background: var(--default-color);
            }

            svg {
                flex-shrink: 0;
            }

            p {
                font-size: 1.1rem;
            }
        }

        .card::before {
            content: "";
            position: absolute;
            z-index: 2;
            inset: 0;
            background: rgba(255, 255, 255, .50);
        }
    }

    /* .cards{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 300px));
        gap: 1rem;
        margin: 3rem 0;
        
        .card{
            background-image: url('../assets/paper-benefts.webp');
            background-repeat: no-repeat;
            filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.10));
            padding: 3rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;

            .indicator{
                --default-color: rgba(201, 130, 69, 0.60);
                font-size: 1.3rem;
                color: var(--default-color);
                font-family: "DM Serif Display", serif;
                position: relative;
            }
            .indicator::after{
                content: "";
                position: absolute;
                left: 28px;
                top: 50%;
                transform: translateY(-50%);
                display: inline-block;
                width: 38px;
                height: 1px;
                background: var(--default-color);
            }

            svg{
                flex-shrink: 0;
            }

            p{
                font-size: 1.1rem;
            }
        }
    } */
}

#before-after {
    width: 100%;
    min-height: 600px;
    position: relative;
    background: #F8E5CF url('../assets/bg-before-after.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed;
    overflow: hidden;

    >* {
        position: relative;
        z-index: 3;
    }

    .cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1rem;
        margin: 3rem 0;

        .card {
            img {
                width: 100%;
                height: auto;
                object-fit: cover;
            }
        }
    }
}

#before-after::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(248, 229, 207, .80);
}

#services {

    .cards {
        margin: 3rem 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;

        .card {
            background: #FFFFFF;
            border-radius: 20px;
            overflow: hidden;
            max-width: 460px;

            display: flex;
            flex-direction: column;

            img {
                width: 100%;
                height: 240px;
                object-fit: cover;
                border-radius: 12px;
                display: block;
            }

            .content {
                padding: 1.4rem;
                display: flex;
                flex-direction: column;

                flex-grow: 1;

                h3 {
                    font-size: 1.5rem;
                    margin-bottom: 1rem;
                }

                p {
                    flex-grow: 1;
                    margin-top: auto;
                }

                .cta-whatsapp {
                    max-width: 100%;
                    margin-top: 1rem;
                    padding: 10px;
                }

            }

        }
    }
}

#cta-final {
    position: relative;
    width: 100%;
    background: #DFCFBE;
    min-height: 90dvh;
    overflow: hidden;
    display: flex;
    align-items: center;

    >* {
        position: relative;
        z-index: 3;
    }

    .bg-container {
        position: absolute;
        inset: 0;
        top: 0;

        .img-container.left {
            position: absolute;
            top: 0;
            left: 0;

            img {
                max-width: 580px;
                height: 90dvh;
                width: 100%;
                display: block;
            }
        }

        .img-container.left::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(to right,
                    rgba(223, 207, 190, 0.2), #DFCFBE);
        }

        .img-container.right {
            position: absolute;
            top: 0;
            right: 0;

            img {
                width: 100%;
                display: block;
            }
        }
    }

    .title-section {
        text-align: left;
        width: 60%;

        display: flex;
        flex-direction: column;
        gap: 1rem;

        p {
            width: 80%;
        }
    }
}

/* Responsive */
@media (max-width: 1366px) {
    #hero {
        .bg-and-fg {
            .img-container.foreground {
                display: none;
            }
        }

        .container {
            .hero-content {
                .hero-profissional {
                    img {
                        max-width: 420px;
                        width: 100%;
                    }
                }
            }
        }
    }
}

@media (max-width: 1120px) {
    #hero {
        .bg-and-fg {
            .img-container.left {
                display: none;
            }

            .img-container.right {
                right: unset;
                inset: 0;

                img {
                    width: 100%;
                }
            }

            .img-container.right::before {
                background: linear-gradient(to bottom, rgba(255, 233, 210, 0.10) 10%, #FFE9D2 60%);
            }
        }

        .container {
            .hero-content {
                flex-direction: column-reverse;
                align-items: center;
                text-align: center;
                padding: 2rem 1rem;

                .hero-texts {
                    .cta-whatsapp {
                        margin: 0 auto;
                    }
                }

                .hero-profissional {
                    position: relative;
                    z-index: 1;

                    img {
                        max-width: 100%;
                        width: 100%;
                    }
                }

                .hero-profissional::before {
                    content: "";
                    position: absolute;
                    inset: 0;
                    background: linear-gradient(to bottom,
                            transparent 90%,
                            #FFE9D2);
                }
            }
        }
    }

    #cta-final {
        .bg-container {

            .img-container.left {
                display: none;
            }

            .img-container.right {
                position: absolute;
                top: unset;
                right: unset;
                inset: 0;

                img {
                    width: 720px;
                    object-fit: cover;
                    display: block;
                }
            }

            .img-container.right::before {
                content: "";
                position: absolute;
                inset: 0;
                background: rgba(223, 207, 190, 0.8);
            }
        }

        .title-section {
            width: 100%;
        }
    }
}