@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root{
    --corpadrao: rgb(253, 229, 11);
}

*{
    box-sizing: border-box;
    font-family: "Open Sans";
}

html{
height: 100%;
}

body{
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

main{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

header{
    width: 100%;
    background-color: rgb(253, 229, 11);
    height: auto;
    position: fixed;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img[alt='Logo usado pela corretora de camargo']{
    height: 10vh;
    margin-left: 20px;
}

header img[alt='ícone para fechar o header']{
    height: 3.4vh;
    margin-right: 20px;
    transform: rotate(180deg);
    border-radius: 50%;
    background-color: rgb(255, 230, 221);
    filter: invert();
    cursor: pointer;
    transition: 500ms ease-in-out;
}

header img[alt='ícone para fechar o header']:hover{
    background-color: rgb(206, 185, 178);;
}

#apresentacao{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap:wrap;
    gap: 4vw;
    margin-top: 15vh;
    transition: 500ms ease-in;
}

#apresentacao h1,p,a{
  margin: 10px;
}


#apresentacao h1{
    font-weight: 400;
    color: green;
    font-size: clamp(1rem,3vw,3rem);
}

#apresentacao video{
    width: 20vw;
    box-shadow: 0 0 10px rgb(152, 152, 152);
    border-radius: 10px;
}

#texto{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
}

#texto p{
    width: 40vw;
    font-size: 1.2vw;
}

#texto img{
    height: 15vw;
    filter: drop-shadow(2px 2px 5px rgba(12, 8, 87, 0.801));
}

#texto button{
    text-decoration: none;
    border: 2px solid green;
    padding: 10px;
    border-radius: 10px;
    color: green;
    font-weight: 600;
    transition: 400ms ease-in-out;
    cursor: pointer;
    font-size: 1.2vw;
    background-color: white;
}

#texto button:hover{
    background-color: green;
    color: white;
    transform: scale(1.1) translateX(5px);
}

#motivos{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 25px;
    padding: 10px;
}

#motivos h2{
    color: green;
    margin: 0;
}

.container-motivo{
    border-radius: 5px;
    display: flex;
    background-color: rgb(244, 244, 244);
    flex-direction: column;
    width: 50vw;
    box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.327);
}

.titulo-motivo{
    display: flex;
    justify-content: start;
    align-items: center;
    cursor: pointer;
}

.titulo-motivo img{
    position: absolute;
    margin-left: 47vw;
}

.titulo-motivo p{
    font-size: 1.2vw;
}

.texto-motivo{
    background-color: green;
    color: white;
    display: none;
    text-align: left;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

#contato{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--corpadrao);
    padding: 20px;
}

#contato h2{
    color: green;
    text-align: center;
}

#contato form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: white;
    align-items: start;
    gap: 20px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.256);
    padding: 20px;
    border-radius: 10px;
}

#contato form p{
    color: rgb(70, 70, 70);
    margin: 0;
}

#contato form input{
    width: 100%;
    background-color: rgb(241, 241, 241);
    height: 5vh;
    border: none;
    border-left: 2px solid rgb(120, 120, 120);
}

#contato form select{
    background-color: rgb(241, 241, 241);
    height: 5vh;
    border: none;
    border-left: 2px solid rgb(120, 120, 120);

}

#contato form textarea{
    background-color: rgb(241, 241, 241);
    height: 15vh;
    width: 100%;
    border: none;
    border-left: 2px solid rgb(120, 120, 120);
}

#contato form button{
    border: none;
    background-color: rgba(0, 128, 0, 0.264);
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    color: green;
    border: 2px solid green;
    font-weight: 600;
    cursor: pointer;
    font-size: 1vw;
    transition: 300ms ease-in-out;
}


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

    #apresentacao img{
        width: 90vw;
        height: auto;
    }
    
    #apresentacao #texto{
        justify-content: center;
        align-items: center;
    }

    #apresentacao #texto h1{
        font-size: 4vw;
    }
    
    #apresentacao #texto p{
        font-size: 3vw;
        width: 80vw;
        text-align: center;
    }

    #apresentacao #texto button{
        font-size: 4vw;
    }

    #apresentacao video{
        width: 70vw;
    }

    #motivos h2{
        font-size: 4vw
    }

    #motivos .container-motivo{
        width: 80vw;
    }

    #motivos .container-motivo .titulo-motivo img{
        margin: 0;
        position: static;
        margin-right: 5px;
    }

    #motivos .container-motivo .titulo-motivo{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #motivos .container-motivo .titulo-motivo p{
        font-size: 3vw;
        text-align: left;
    }

    #motivos .container-motivo .texto-motivo{
        font-size: 3vw;
    }

    #contato h2{
        font-size: 6vw;
    }

    #contato form button{
        font-size: 4vw;
    }
}