@import url('https://fonts.googleapis.com/css2?family=Krona+One&family=Montserrat:wght@400;600&display=swap');

:root {
    --fonte-primaria: 'Krona One', sans-serif;
    --fonte-secundaria: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('assets/fundo2.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    font-family: var(--fonte-secundaria);
}

/* MENU DE NAVEGAÇÃO */
.topnav {
    backdrop-filter: brightness(35%);
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 200px;
    z-index: 1000;
}

.topnav a {
    padding: 12px 16px;
    text-decoration: none;
    font-size: 16px;
    color: white;
    display: block;
    transition: 0.3s;
}

.topnav a:hover {
    background-color: #575757;
}

.topnav a.active {
    background-color: rgba(0, 0, 255, 0.507);
    color: white;
}

.icon {
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
}

.menu-img {
    width: 40px;
    height: auto;
}

.cabecalho {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1rem;
    text-align: center;
    color: white;
}

.cabecalho__titulo {
    font-family: var(--fonte-primaria);
    font-size: 3rem;
    margin-top: 3rem;
}

.corpo {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 2rem;
    margin: 1rem;
    flex-wrap: wrap;
}

.corpo__contato{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-content: center;

 }

 .corpo__img{
    display:flex;
    width: 65%;

 }

 .corpo__img__imagem__contato {
    max-width: 30rem;
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

.corpo__texto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    backdrop-filter: brightness(70%);
    border-radius: 1rem;
    max-width: 45rem;
    padding: 1rem;
    color: aliceblue;
}

.corpo__texto__titulo {
    font-family: var(--fonte-primaria);
    font-size: 1.5rem;
    text-align: center;
}

.corpo__texto__subtitulo,
.corpo__texto__paragrafo {
    font-family: var(--fonte-secundaria);
    font-size: 1rem;
    text-align: center;
}

.corpo__texto__paragrafo {
    text-align: left;
}



.corpo__imagem {
    display: flex;
    justify-content: center;
    align-items: center;
}

.corpo__img__imagem {
    max-width: 30rem;
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

.formulario {
    display: flex;
    justify-content: center;
    padding: 2rem;
    width: 100%;
}

.formulario form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    backdrop-filter: saturate(2);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1rem;
    max-width: 43rem;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.formulario__input,
.formulario__input__mensagem {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, 0.4); /* escurece o campo */
    color: white;
    font-size: 1rem;
}

.formulario__input::placeholder,
.formulario__input__mensagem::placeholder {
    font-family: var(--fonte-secundaria);
    color: rgba(255, 255, 255, 0.6);
}

.formulario__input__mensagem {
    height: 150px;
    resize: none;
}

.formulario__botao {
    align-self: flex-end;
    padding: 0.75rem 2rem;
    background: linear-gradient(45deg, #0066ff, #00ccff);
    color: white;
    font-family: var(--fonte-secundaria);
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.formulario__botao:hover {
    transform: scale(1.05);
}

.mensagem__status{
    font-family: var(--fonte-secundaria);
    font-size: 1rem;
    font-weight: bold;
    color: aliceblue;
    text-align: center;
    margin: 1rem;
}

/* RODAPÉ */
.rodape {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: right;
    gap: 1rem;
    backdrop-filter: brightness(70%);
    width: 100%;
    padding: 1rem;
    margin-top: 2rem;
    position: relative;
    bottom: -50px;
    left: 0;
    right: 0;
}




.texto__rodape {
    font-size: 1rem;
    color: aliceblue;
    text-align: center;
}

.rodape__icones {
    display: flex;
    gap: 1rem;
}

.rodape__icones__icone {
    max-height: 2rem;
    width: auto;
}

/* === MEDIA QUERIES === */

/* Tablets (≤1024px) */
@media (max-width: 1024px) {
    .corpo {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .corpo__contato{
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        margin: 0;
        justify-content: center;

    }

    .corpo__img{
        margin: 0;
        justify-content: center;
    }

    .corpo__img__imagem{        
        align-content: center;
        margin: 0;
        justify-content: center;
    }

    .corpo__texto__contato{
        font-size: 0.85rem;;
    }

    .mensagem__status{
        font-size: 0.75rem;
    }

    .formulario form {
    max-width: 100%;
  }

  .formulario__input,
  .formulario__input__mensagem {
    font-size: 0.75rem;
  }


    .corpo__texto {
        align-items: center;
        text-align: center;
    }

    .corpo__texto__paragrafo {
        text-align: left;
    }
}

/* Celulares (≤768px) */
@media (max-width: 768px) {
    .cabecalho__titulo {
        font-size: 2rem;
        margin-top: 2rem;
    }

    .corpo__img__imagem {
        max-width: 90%;
    }

    .corpo__texto {
        padding: 1rem;
    }

    .topnav {
        width: 100%;
        top: 60px;
    }

    .icon {
        top: 5px;
        left: 5px;
    }

    .rodape {
        flex-direction: row;
        align-items: center;
        text-align: center;
    }

    .texto__rodape {
        font-size: 0.9rem;
    }

    .rodape__icones {
        gap: 0.5rem;
    }
}

/* Dispositivos muito pequenos (≤480px) */
@media (max-width: 480px) {
    .cabecalho__titulo {
        font-size: 1.5rem;
    }

    .corpo__texto__titulo {
        font-size: 0.90rem;
    }

    .corpo__texto__subtitulo,
    .corpo__texto__paragrafo {
        font-size: 0.9rem;
    }

    .menu-img {
        width: 30px;
    }

    .rodape__icones__icone {
        max-height: 1.5rem;
    }
}
