@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

*{

    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

h1,h2,h3,h4,h5,h6{
    font-family: 'Montserrat', sans-serif;
}
p,a, form{
    font-family: "Nunito Sans", serif;
}

:root{
    --first-color: #0f9fdb;
    --second-color: #49b758;
    --third-color: #f2f2f2;
    --fourth-color: #000;
    --fifth-color: #fff;
}

/*header*/
header{
    background-color: var(--first-color);
    color: var(--fifth-color);
    padding: 10px 30px;
    text-align: center;
}
header div{
    width: 80%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-inline: auto;
}
nav{
    margin-right: 50px;
}
nav ul{
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}
nav ul li a{
    text-decoration: none;
    color: var(--fifth-color);
}
.logo{
    width: 80px;
    height: auto;
}
.menu{
    width: 70vw;
    margin-block: auto;
}
.menu ul{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
    gap: 15px;

}
.menu ul li{
    list-style: none;
}
.menu ul li a{
    color: var(--fifth-color);
    font-weight: 700;
}
.menu-toggle {
    display: none; /* Escondido por padrão */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    transition:  0.3s ;
  }
  
  .bar {
    width: 25px;
    height: 3px;
    border-radius: 3px;
    background-color: #fff;
    transition:  0.3s linear;
    z-index: 100;
  }
  

.menu-toggle.active .bar:nth-child(1) {
 transform: translateY(8px) rotate(45deg); 
 }

.menu-toggle.active .bar:nth-child(2) {
 opacity: 0; 
}

.menu-toggle.active .bar:nth-child(3) {
 transform: translateY(-8px) rotate(-45deg);
}

  @media (max-width: 768px) {
    .menu {
      display: none; 
      width: 100%;
      background:var(--first-color);
      position: absolute;
      top: 0px;
      right: 0px;
      width: 50vw;
      z-index: 1;
      border-radius: 10px;
      margin-right: 0px;
    }
    .menu ul {
      flex-direction: column;
      width: 100%;
      text-align: center;
    }
  
    .menu li {
      margin: 10px 0;
    }
  
    .menu-toggle {
        display: flex;
        z-index: 10;
        position: absolute;
        top: 20px;
        right: 20px;
        transition: 0.3s;
        align-content: flex-end;
        flex-wrap: wrap;
    }
  
    .menu.active {
      display: block; 
    }
    .logo{
      margin-right: auto;
    }
  }
/*header*/
/*main*/
main{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}
.calcualdora{
    width: 430px;
    height: 320px;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 0px 10px #505050;

}
.calcualdora div, .calcualdora form{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}
.calcualdora p, .calcualdora input {
    width: 180px;
    height:25px;
    border: 1px solid #505050;
    border-radius: 5px;
    font-weight: 600;
    padding: 0px 10px;
}
.calcualdora button, .formulario button{
    margin: 10px;
    width: 100px;
    height: 30px;
    border-radius:5px;
    border: none;
    color: #fff;
    background-color: var(--second-color);
    font-weight: 700;
}
.calcualdora div p{
    margin-bottom: 10px;
}
.formulario{
    width: 430px;
    height: 320px;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 0px 10px #505050;
}
.formulario form{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}
.formulario input{
    width: 180px;
    height: 25px;
    border: 1px solid #505050;
    border-radius: 5px;
    font-weight: 600;
    padding: 0px 10px;
}

main h2{
    margin-bottom: 15px;
}
@media(max-width:768px){
    main{
        display: flex;
        flex-direction: column;
    }
    .calcualdora, .formulario{
        width: 90vw;
        height: auto;
    }
}
/*main*/
/*footer*/
footer{
    background-color: #272727;
    padding-top: 10px;
}
footer div{
 display: flex;
 flex-direction: row;
 flex-wrap: wrap;
 justify-content: space-around;
 padding: 20px;
 align-items: flex-start;
}

footer div div{
 display: flex;
 flex-direction: column;
 max-width: 400px;
}

footer img{
    width: 40px;
    margin: 0px 5px;
}
.social{
    display: inline;
    padding: 0px;
    margin: 15px auto;
}
.developed{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: var(--fourth-color);
    width: 100%;
}
footer h2, footer p, footer a{
    color: var(--fifth-color);

}
footer h2{
    margin-bottom: 15px;
}
footer ul{
    list-style: none;
    text-decoration: none;
}
footer p {
    color: #fff;
    font-weight: 500;
}
footer p a{
    color: var(--fifth-color);
    font-weight: 500;
}
footer p a:hover{
    text-decoration: underline;
}
/*footer*/