@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-size: 12px;
    font-family: 'Open Sans', sans-serif;
}

i{
    color: #184892;
}

.nav__mobile-btn{
    display: none;
}

.mobile-title{
    display: none;
    color: white;
}

.navbar__logo-mobile{
    display: none;
}

/*Faixa azul de contatos*/
.info-contatos{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #dbf4fd;
    padding: 1rem 8rem;
    text-wrap: nowrap;
    flex-wrap: nowrap;
} 

.info__instagram, .info__linkedin{
    height: 100%;
    padding: 1rem;
}

.info__instagram:hover,
.info__linkedin:hover{
    background-color: #008698af;

}
.navbar{
    display: flex;
    align-items: center;
    padding-left: 4rem;
    width: 100%;
    background-color: white;
    height: 10rem;
    flex-direction: row;
    border-top: 1px solid #cfcfcf;
    border-bottom: 1px solid #cfcfcf;
}


.navbar__list{
    display: flex;
    align-items: center;
    list-style: none;
    text-wrap: nowrap;
    padding: 0 3rem;
}

.navbar__logo{
    width: 9rem;
    height: 9rem;
    margin-left: 12rem;
}


.navbar__btn{
    display: flex;
    text-decoration: none;
    margin: 0 1.3rem;
    color: rgb(0, 0, 0);
    font-weight: 600;
    font-size: 1.6rem;
    transition:0.3s ease;
}

.navbar__home{
    display: flex;
    text-decoration: none;
    margin: 0 1.3rem;
    color: rgb(255, 0, 0);
    font-weight: 600;
    font-size: 1.6rem;
    transition:0.3s ease;
}

.navbar__btn:hover{
    color: #008698af;
}

header{
    position: relative;
    width: 100%;
    height: 30rem;
    display: flex;
    align-items: flex-start;
    flex-direction: row;
}

header::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 28rem;
    background-image: url("../imagens/contatos-bg.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.header__guide{
    display: flex;
    flex-direction: row;
    position: absolute;
    font-size: 1.3rem;
    margin-left: 3.9rem;
    margin-top: 4rem;
}

.header__guide p{
    line-height: 1;
}

.header__title{
    color: #184892;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 4rem;
    font-size: 2rem;
}

main{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.main__form-area{
    display: flex;
    justify-content: center;
    width: 50vw;
    border-right: solid 1px #dddddd
}

.main__form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30rem;
}

.main__form-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40vw;
    margin: 2rem;
}

.main__email{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.main__envelope{
    color: #184892;
    font-size: 5rem;
}

.form__title{
    font-size: 3rem;
    text-align: center;
    text-wrap: nowrap;
    color: #184892;
}

.input__group{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 1.5rem 0;
}

.group__inputs{
    padding-left: 28px;
    height: 3rem;
    max-width: 14.9rem;
    gap: 0.4rem;
    border: solid 2px #ddebff;   
}

.group__inputs::placeholder{
    color: #ececec;
}

.group__inputs:focus{
    border: solid 2px #54cdd5;
    outline: none;
}

.input__group input{
    margin: 0.1rem;
}

.group__aligner{
    position: relative;
}

.input__icons{
    position: absolute;
    top: 50%;
    left: 0.5rem;
    transform: translateY(-50%);
}

.form__textarea{
    display: flex;
    position: relative;
    flex-direction: column;
}

.textarea__input{
    outline: none;
    border: solid 2px #ddebff;
    min-width: 15rem;
    max-width: 30rem;
    max-height: 20rem;
    min-height: 8rem;
    padding-top: 0.5rem;
    text-indent: 25px;
}

.textarea__input::placeholder{
    color: #ececec;
}

.textarea__input:focus{
    border: solid 2px #54cdd5;
}

.textarea-icon{
    position: absolute;
    top: 6%;
    left: 0.5rem;
    transform: translateY(-50%);
}

.form__submit{
    display: flex;
    align-self: center;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    width: 13rem;
    height: 3rem;
    border-radius: 13px;
    border: 0;
    background-color: #54cdd5;
    color: #fff;
    font-weight: 600;
    font-size: 1.4rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.25s ease-in-out;
}

.form__submit:hover{
    background-color: #00c3ddaf;
    cursor: pointer;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

footer{
    position: block;
    bottom: 0;
    right: 0;
    width: 100%;
    color: #fff;
    text-align: center;
    padding: 1.8rem 0;
    background-color: #0a004a;
}

@media screen and (max-width: 900px) {

    main{
        justify-content: center;
        justify-items: center;
        grid-template-columns: repeat(1, 1fr);
    }

    .main__form-area{
        border-right: 0;
        border-bottom: 2px solid #dddddd;
    }

}


@media screen and (max-width: 930px){

    html{
        font-size: 8px;
    }
    
  .navbar{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background-color: #184892;
    height: 10rem;
    border: 0;
  }

  .navbar__logo{
    margin-left: 0;
  }

  .nav__mobile-btn{
    position: absolute;
    right: 0;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .4rem;
    border-radius: 3px;
    margin: 3rem;
    border: 0;
    color: rgb(0, 0, 0);
    background-color: #fff;
  }

  .navbar__title-logo-mobile{
    display: flex;
    align-items: center;
    text-wrap: nowrap;
    font-size: 0.6rem;
  }

  .mobile-btn-fixed{
    position:fixed !important;
  }

  .mobile-title{
    display: block;
    margin: 1rem;
    font-size: 8px;
  }

  .navbar__list{
    display: flex;
    justify-items: center;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10;
    background-color: #184992b4;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    flex-direction: column;
    list-style: none;
    margin: 0;                /* evita “pulo” no layout */
    padding: 10rem 5rem;
    height: 100vh;
    width: 50vw;              /* 40vw pode ficar estreito no mobile */
    transform: translateX(100%);           /* começa fora da tela */
    transition: transform 0.3s ease;       /* anima o transform */
  }

  .navbar__list.navbar__list-mobile{
    transform: translateX(0);              /* entra */
  }

  .navbar__logo{
    width: 7rem; 
    height: 7rem; 
    margin-left: 1rem;
  }

  .navbar__logo-mobile{
    display: block;
    width: 20rem; 
    height: 20rem; 
    margin-left: 0;
    margin-bottom: 2rem;
  }

  .navbar__home{
    display: flex;
    text-decoration: none;
    margin: 1.2rem 0;
    font-weight: 600;
    font-size: 2rem;
    transition: color 0.3s ease;
    color: red;
  }

  .navbar__btn{
    display: flex;
    text-decoration: none;
    margin: 1.2rem 0;
    font-weight: 600;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    color: #fff;
  }

  .red-text{
    color: red;
}

}


@media screen and (max-width:400px){
        .info-contatos{
        padding: 1rem 3rem;
    }
}
