@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;
    text-wrap: nowrap;
    background-color: #dbf4fd;
    padding: 1rem 8rem;
} 

.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: flex;
    margin: 4rem auto;
    width: 80%;
    flex-direction: column;
    box-shadow: 10px 1px 10px #00000037, -10px -1px 10px #00000037;
}

.main__title{
    display: flex;
    flex-direction: column;
    align-self: center;
    justify-content: center;
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 2rem;
}

.main__grid{
    display: grid;
    justify-content: center;
    justify-items: center;
    grid-template-columns: repeat(3, 0.28fr);
    gap: 3rem;
    margin: 3rem;
    margin-bottom: 8rem;
}

.main__card{
    width: 23rem;
    min-height: 33rem;
    box-shadow: 1px 1px 10px #00000037, -1px -1px 10px #00000037;
    transition: background-color 0.15s ease;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.main__card:hover{
    background-color: #00c1db;
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.card__img-wrapper{
    position: relative;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
}

.card__roles{
    position: absolute;
    z-index: 3;
    bottom: 0;
    width: 100%;
    height: 24%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 1rem 0;
}

.role-box {
    width: auto;
    height: 4rem;
    padding: 0.3rem;
    margin-bottom: 0.3rem;
    border-radius: 0.5rem;
    background-color: #54cdd5;
    font-size: 1.3rem; /* Tamanho visível */
    text-wrap: nowrap; /* Impede quebra de linha */
    line-height: normal; /* Ou algo como 1.2 ou igual à altura */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; /* Centraliza horizontalmente caso tenha quebra */
    transform: scale(1);
    transition: transform 0.3s ease, margin-bottom 0.3s ease;
}

.main__card:hover .role-box{
    transform: scale(1.15);
    margin-bottom: 1rem;
    transition: transform 0.3s ease, margin-bottom 0.3s ease;
}

.main__card img{
    display: block;
    width: 100%;
    height: auto;
    width: 100%;
    height: 23rem;
    object-fit: cover;
    background: #fff; 
    border-bottom: 1px black solid;
}

.main__card:hover .card__name{
    color: #93f8ff;
}

.card__container{
    display: flex;
    flex-direction: column;
    padding: 3rem 1.7rem;
}

.card__name{
    font-size: 1.5rem;
    color: #184892;
    padding-bottom: 5%;
    transition: color 0.2s ease;
}

.card__details{
    font-size: 1.15rem;
    color: #000000c7;
    line-height: 1;
}

.main__card:hover .card__details, .main__card:hover .arrow-color{
    color: #fff;
    transition: color 0.15s ease;
}

.card__container h2,
.card__container p{
  margin: 0;
}

.red-text{
    color: red;
}

footer{
    color: #fff;
    text-align: center;
    padding: 1.8rem 0;
    background-color: #0a004a;
}

@media screen and (max-width:1200px){

.main__grid{
    display: grid;
    justify-content: center;
    justify-items: center;
    grid-template-columns: repeat(2, 0.4fr);
    gap: 2rem;
    margin-bottom: 8rem;
}

.navbar__logo{
    margin-left: 12rem;
}

}

@media screen and (max-width:930px){

  .navbar{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background-color: #184892;
    height: 10rem;
    border: 0;
  }

  .nav__mobile-btn{
    position: absolute;
    right: 0;
    z-index: 11;
    display: flex;
    text-align: center;
    padding: .4rem;
    border-radius: 3px;
    margin: 3rem;
    border: 0;
    color: rgb(0, 0, 0);
    background-color: #fff;
  }

  i{
    padding: 0;
  }

  .navbar__title-logo-mobile{
    display: flex;
    color: white;
    align-items: center;
    text-wrap: nowrap;
  }

  .mobile-btn-fixed{
    position:fixed !important;
  }

  .mobile-title{
    display: block;
    margin: 1rem;
  }

  .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: 9rem; 
    height: 9rem;
    margin-left: 1rem;
  }

.navbar__logo-mobile{
    display: block;
    width: 18rem; 
    height: 18rem; 
    margin-left: 0;
    margin-bottom: 2rem;
  }

  .navbar__btn{
    display: flex;
    text-decoration: none;
    margin: 1.5rem 0;
    font-weight: 600;
    font-size: 1.7rem;
    transition: color 0.3s ease;
    color: #fff;
  }

  .navbar__home{
    font-size: 2rem;
    margin: 1.3rem 0;
  }

}

@media screen and (max-width:800px) {
    
    html{
        font-size: 8px;
    }

    .main__grid{
    display: grid;
    justify-content: center;
    justify-items: center;
    grid-template-columns: repeat(1, 0.4fr);
    gap: 2rem;
    margin-bottom: 8rem;
}

}

@media screen and (max-height:500px){

    .navbar{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background-color: #184892;
    height: 10rem;
    border: 0;
  }

  .nav__mobile-btn{
    position: absolute;
    right: 0;
    z-index: 11;
    display: flex;
    text-align: center;
    padding: .4rem;
    border-radius: 3px;
    margin: 3rem;
    border: 0;
    color: rgb(0, 0, 0);
    background-color: #fff;
  }

  i{
    padding: 0;
  }

  .navbar__title-logo-mobile{
    display: flex;
    color: white;
    align-items: center;
    text-wrap: nowrap;
  }

  .mobile-btn-fixed{
    position:fixed !important;
  }

  .mobile-title{
    display: block;
    margin: 1rem;
    font-size: 10px;
  }

  .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: 5rem;
  }

.navbar__logo-mobile{
    display: block;
    width: 10rem; 
    height: 10rem; 
    margin-left: 0;
    margin-bottom: 2rem;
  }

  .navbar__btn{
    display: flex;
    text-decoration: none;
    margin: 1rem 0;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    color: #fff;
  }

}

@media screen and (max-width:500px){

    .navbar__logo{
        margin-left: 1rem;
    }

        .info-contatos{
        padding: 1rem 3rem;
    }

    .mobile-title{
        font-size: 1rem;
    }

}