/* Paleta de cores */
:root {
    --fundo: #fdf5e6;
    --texto-principal: #2c3e50;
    --texto-secundario: #555;
    --botao: #34495e;
    --hover-botao: #2c3e50;
    --card-bg: #ffffff;
    --card-border: #e0e0e0;
    --card-hover: #f0f0f0;
}

/* Reset de estilos padrões */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--fundo);
    color: var(--texto-principal);
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--fundo);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 80px; /* Altura fixa para o header */
}

.logo {
    height: 50px;
}

/* Menu Toggle */
.menu-toggle {
    display: none; /* Esconde no desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    height: 3px;
    background-color: var(--botao);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Transformar o toggle em "X" quando ativo */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0; /* Barra do meio desaparece */
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Nav Menu */
.nav-menu {
    display: flex; /* Exibido como barra horizontal no desktop */
    list-style: none;
    gap: 1rem;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--texto-principal);
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--hover-botao);
}

/* Fullscreen Menu no Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Exibe o toggle em dispositivos móveis */
    }

    .nav-menu {
        display: none; /* Esconde o menu por padrão */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--fundo);
        z-index: 999;
        gap: 2rem;
        font-size: 1.5rem;
    }

    .nav-menu.active {
        display: flex; /* Mostra o menu fullscreen ao ativar */
    }
}

/* Main */
main {
    background-color: #fff;
}

/* Estrutura da página */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 50px 0;
    text-align: center;
}

h1,
h2 {
    color: var(--texto-principal);
    margin-bottom: 20px;
}

/* Sobre */
#sobre {
    background: url('/static/img/background.webp') no-repeat center center/cover;
    color: var(--texto-principal);
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

#sobre::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85); /* Leve efeito de opacidade no fundo */
    z-index: 1;
}

.sobre-container {
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.sobre-container img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.sobre-texto {
    max-width: 600px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.sobre-texto h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--texto-principal);
    text-transform: uppercase;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.sobre-texto p {
    color: var(--texto-secundario);
    margin-bottom: 15px;
    text-align: justify;
}

.sobre-texto p:last-child {
    margin-bottom: 0;
}

.sobre-texto strong {
    color: var(--texto-principal);
}

@media (max-width: 768px) {
    .sobre-container {
        flex-direction: column;
        text-align: center;
    }

    .sobre-container img {
        max-width: 100%;
    }

    .sobre-texto h1 {
        font-size: 2rem;
    }
}

/** Transparencia */
#transparencia-intro {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria)); /* #091235 -> #14202E */
    color: var(--cor-clara-fundo); /* #eaeee2 */
    border-radius: 10px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#transparencia-intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--cor-destaque-suave); /* #d0d2de */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

#transparencia-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--cor-clara-fundo); /* #eaeee2 */
}

#transparencia-intro p strong {
    color: var(--cor-quartenaria); /* #88a9c3 */
}

#transparencia-intro .btn-transparencia {
    display: inline-block;
    padding: 15px 40px;
    background: var(--cor-terciaria); /* #2b4257 */
    color: var(--cor-clara-fundo); /* #eaeee2 */
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

#transparencia-intro .btn-transparencia:hover {
    background: var(--cor-quartenaria); /* #88a9c3 */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#transparencia-intro .btn-transparencia:focus {
    outline: 2px solid var(--cor-destaque-suave); /* #d0d2de */
    outline-offset: 2px;
}


/* Projetos */

.projetos-titulo {
    font-size: 2.5rem; /* Tamanho grande para destaque */
    color: #5d4f3a; /* Tonalidade marrom suave */
    text-align: center; /* Centraliza o texto */
    margin-bottom: 30px; /* Espaçamento abaixo do título */
    text-transform: uppercase; /* Letras maiúsculas para estilo */
    font-weight: bold; /* Negrito para destaque */
    animation: fade-in 1.5s ease-in-out; /* Animação para entrada suave */
}

.projetos-section {
    width: 90%;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    animation: fade-in 1s ease-in-out;
    padding: 30px;
    border-radius: 12px;
}

.projeto {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #f9e8d2; /* Bege uniforme */
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px ;
}

.p-texto {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 70%; /* Ajusta o texto para ocupar 70% da largura */
    margin: 0 auto 40px;
    color: var(--texto-secundario);
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: justify; /* Texto justificado */
}

.p-textoasd strong {
    color: var(--texto-principal);
    font-weight: bold;
}

.projeto:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: #f9e8d2; /* Mantém a cor uniforme no hover */
}

.projeto--invertido {
    flex-direction: row-reverse;
}

.projeto__imagem {
    flex: 1;
    max-width: 50%;
}

.projeto__imagem img {
    width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: cover;
    filter: brightness(0.95);
    transition: filter 0.3s;
}

.projeto__imagem img:hover {
    filter: brightness(1);
}

.projeto__conteudo {
    flex: 1;
    padding: 30px;
    text-align: justify;
    background-color: #f9e8d2; /* Mesma cor do elemento projeto */
    border-radius: 0 12px 12px 0;
}

.projeto__conteudo h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #d3a77c, #ba8e5e); /* Gradiente em tons terrosos */
    -webkit-background-clip: text;
    color: transparent;
}

.projeto__conteudo p {
    color: #5d4f3a; /* Tonalidade de marrom suave para texto */
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* Destaque para palavras importantes dentro do texto */
.projeto__conteudo p strong {
    color: var(--botao); /* Destaca palavras importantes com a cor do botão */
    font-weight: bold;
}

/* Estilização em hover para interação */
.projeto__conteudo:hover p {
    color: var(--texto-principal); /* Torna a cor mais intensa ao passar o mouse */
}

/* Animação */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .projeto {
        flex-direction: column;
    }
    .projeto--invertido {
        flex-direction: column;
    }
    .projeto__imagem,
    .projeto__conteudo {
        max-width: 100%;
    }

    .projeto__conteudo p {
        font-size: 1rem; /* Ajusta o tamanho da fonte para telas menores */
        line-height: 1.6; /* Ajusta o espaçamento entre linhas */
    }
}

/* Estilo específico para telas menores */
@media (max-width: 768px) {
    .p-texto {
        max-width: 95%; /* Aumenta a largura para 90% em dispositivos móveis */
        font-size: 1.4rem; /* Reduz o tamanho da fonte */
        padding: 15px; /* Ajusta o padding */
    }

    .projetos-titulo {
        font-size: 2rem; /* Reduz o tamanho do título */
    }
}

@media (max-width: 480px) {
    .p-texto {
        max-width: 98%; /* Ajusta ainda mais a largura para telas muito pequenas */
        font-size: 1.2rem; /* Reduz o tamanho da fonte */
    }

    .projetos-titulo {
        font-size: 1.8rem; /* Título menor para caber na tela */
    }
}

/* Footer */
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--texto-principal);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--botao);
}

.contact-item span {
    color: var(--texto-secundario);
    font-size: 1rem;
    line-height: 1.5;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    color: var(--botao); /* Ícones ajustados para a cor principal */
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--hover-botao);
}

.footer-bottom {
    border-top: 1px solid var(--card-border);
    margin-top: 20px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--texto-secundario);
}

/* Responsividade */
@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .footer-contact {
        align-items: flex-start;
    }
}