.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 12px 0px;
}

//home background

.bg-home {
    position: relative;

    &::before {
        content: "";
        display: block;
        position: absolute;
        background: linear-gradient(to bottom, rgba(6, 18, 30, 0.1), #06121e),
            url("../Assets/bg.svg") no-repeat 50% 0 / cover;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        opacity: 0.9;
    }
}

//main content

.main {
    color: $white-normal;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;

    h1 {
        text-align: center;
        line-height: 150%;
        max-width: 940px;
        font-size: 45px;
    }
    p {
        text-align: center;
        margin: 14px 0;
    }
    .button-contact {
        padding: 14px 20px;
        color: $white-normal;
        background-color: $red-normal;
        font-weight: 600;
        border: 0;
        font-size: 18px;
        margin: 14px 0;
        transition: animation 0.2s;
        transition: box-shadow 0.8s;

        &:hover {
            animation: scaleButton 0.8s alternate infinite;
            box-shadow: 0 0 10px 0 $red-normal;
        }
    }

    @keyframes scaleButton {
        from {
            transform: scale(1);
        }
        to {
            transform: scale(1.07);
        }
    }
}

//breakpoints

@media screen and (max-width: 768px) {
    .main {
        min-height: 60vh;

        h1 {
            font-size: 38px;
            padding: 0 14px;
            width: 100%;
        }

        p {
            font-size: 14px;
        }
    }
}

@media screen and (max-width: 480px) {
    .main h1 {
        font-size: 24px;
    }
}

//about

.about {
    background-color: $primary-normal;
    overflow: hidden;
    color: $white-normal;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 34px 14px 64px 14px;

    img {
        max-width: 570px;
        transition: filter 0.6s;

        &:hover {
            filter: grayscale(100);
        }
    }

    div {
        flex: 1;
    }
}


.about-description {
    h2 {
        font-size: 38px;
        margin-bottom: 24px;
    }

    p {
        margin-bottom: 14px;
        line-height: 150%;
    }
}

.about-description p{
    transition: text-shadow 0.8s;
    &:hover{
        text-shadow: 0 0 14px #e0115f;
    }
}

.about-description h2{
    transition: text-shadow 0.8s;
    &:hover{
        text-shadow: 0 0 14px #e0115f;
    }
}

@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
}

//services

.services {
    background-color: $white-normal;
    color: $black-normal;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 54px 14px;
    
    h2{
        transition: text-shadow 1s;
        &:hover{
            text-shadow: 0 0 19px palevioletred;
        }
    }
        transition: text-shadow 1s;

    .services-content {
        h2 {
            text-transform: uppercase;
            text-align: center;
            margin-bottom: 14px;
            font-size: 38px;
            transition: text-shadow 1s;

            &:hover{
                text-shadow: 0 0 19px palevioletred;
            }
        }

        p {
            text-align: center;
            max-width: 780px;
            line-height: 150%;
            margin-bottom: 20px;
        }
    }

    .haircuts {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
        padding: 0 44px 34px 44px;

        .haircut {
            display: flex;
            flex-direction: column;
            background-color: $white-normal;
            flex: 1;
            border-radius: 8px;
            box-shadow: 0px -1px 17px -4px rgba(0, 0, 0, 0.45);
            overflow: hidden; /*o que estiver fora será escondido, ou seja, a imagem fica arredondada*/

            img {
                width: 100%;
                max-width: 354px;
                transition: transform 0.2s;

                &:hover {
                    transform: scale(1.2);
                    z-index: 1;
                }
            }

            .haircut-info {
                width: 100%;
                display: flex;
                justify-content: space-between;
                padding: 14px;
                background-color: $white-normal;
                z-index: 2;

                button {
                    color: $white-normal;
                    background-color: $red-normal;
                    padding: 14px 8px;
                    border-radius: 4px;
                    border: 0;
                    cursor: default;
                }
            }
        }

        @media screen and (max-width: 760px) {
            flex-direction: column;
        }
    }
}

//footer

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 54px 0 35px;
    gap: 45px;
    color: $white-normal;
    text-align: center;

    p{
        transition: text-shadow 0.5s;
        &:hover{
            text-shadow: 0 0 14px #e0115f;
        }
        @media (max-width: 545px){
            margin: 0 15px;
        }
    }

    .footer-icons {
        display: flex;
        color: $white-normal;
        gap: 10px;

        a:hover {
            i {
                animation: translateY 0.8s infinite alternate;
                color: $red-light;
                text-shadow: 0 0 13px #e0115f;
            }
        }
    }
}

#logo{
    transform: translateY(0) scale(1);
    transition: transform 0.3s;
}

#logo:hover{
    transition: transform 0.2s;
    transform: translateY(0) scale(1.1);
}

// botão

.btn-wpp {
    position: fixed;
    bottom: 15px;
    right: 25px;
    z-index: 99;
    
    img {
        max-width: 74px;
        transition: transform 0.3s;

        &:hover {
            transform: scale(1.1);
        }
    }
    
    .tooltip-text {
        visibility: hidden;
        position: absolute;
        width: 120px;
        top: 7px;
        right: 100px;
        background-color: $black-normal;
        color: $white-normal;
        padding: 6px;
        border-radius: 8px;
        text-align: center;
        opacity: 0;
        transition: opacity 0.5s;
    }
    
    &:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }
}

@media screen and (max-width: 760px) {
    .btn-wpp {
        img {
            max-width: 60px;
        }
    }
}
