/* ==========================================================================
   1. ESTILOS GLOBAIS E VARIÁVEIS
   ========================================================================== */
:root {
    --cor-principal: #2b99d9;
    --cor-destaque: #0d507a;
    --cor-secundaria: #dbf8fc;
    --cor-fundo: #a4d1e3;
    --cor-texto-claro: #000626;
    --cor-texto-escuro: #333333;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto-claro);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.page-header {
    background-color: var(--cor-secundaria);
    padding: 2rem 1rem;
    text-align: center;
}

.page-header h1 {
    color: var(--cor-principal);
    font-size: 2.5rem;
    margin: 0;
}

.page-header .logo {
    height: 100px;
}

.container > h2 {
    color: var(--cor-principal);
    border-bottom: 3px solid var(--cor-destaque);
    padding-bottom: 0.5rem;
    margin: 2rem 0;
    text-align: center;
    font-size: 2rem;
}

section {
    background-color: var(--cor-secundaria);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

section h2 {
    color: var(--cor-principal);
    border-bottom: 2px solid var(--cor-destaque);
    padding-bottom: 0.5rem;
    margin-top: 0;
    font-size: 1.8rem;
}

/* ==========================================================================
   2. BARRA DE NAVEGAÇÃO (NAVBAR)
   ========================================================================== */
.navbar {
    background-color: var(--cor-secundaria);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative; /* Necessário para o menu mobile */
}

.navbar .logo-nav {
    height: 30px;
    z-index: 10; /* Garante que o logo fique acima do menu mobile */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--cor-principal);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--cor-destaque);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--cor-destaque);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Botão do menu hambúrguer (inicialmente escondido) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--cor-destaque);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}


/* ==========================================================================
   3. ESTILOS ESPECÍFICOS DAS PÁGINAS
   ========================================================================== */

/* --- Página: Nossa Equipe --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* style.css */

/* ... (outros estilos) ... */

/* --- Página: Nossa Equipe (ESTILOS NOVOS E ATUALIZADOS) --- */
.team-section {
    margin-bottom: 3rem; /* Adiciona um espaço entre as seções de equipe */
}

.team-title {
    font-size: 1.8rem;
    color: var(--cor-principal);
    border-bottom: 2px solid var(--cor-destaque);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* ... (o resto dos estilos, como .team-member-card, continua o mesmo) ... */

.team-member-card {
    background-color: var(--cor-secundaria);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--cor-destaque);
    margin-bottom: 1rem;
}

.team-member-card h3 {
    margin: 0;
    color: var(--cor-principal);
}

.team-member-card .role {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
}

/* --- Página: Projetos (Grid) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    justify-items: center;
    gap: 2rem;
}

.project-card {
    background-color: var(--cor-secundaria);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Garante que os cards tenham a mesma altura */
    max-width: 500px;
}
.projects-grid a {
    text-decoration: none; /* Remove sublinhado do link que envolve o card */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--cor-destaque);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--cor-destaque);
}

.project-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-content h3 {
    margin-top: 0;
    color: var(--cor-principal);
}

.project-card-content p {
    font-size: 1rem;
    color: var(--cor-texto-claro);
    flex-grow: 1;
}

.project-card-footer {
    margin-top: 1rem;
}

/* --- Página: Detalhes do Projeto --- */
.project-header {
    text-align: center;
    border-bottom: 3px solid var(--cor-destaque);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.project-header h1 {
    font-size: 2.8rem;
}

.main-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 2rem;
}


.imagem-gallery {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	justify-content: space-evenly;
}
.imagem-gallery > img {
	width: auto;
	border-radius: 6px;
	max-width: 291px;
	transition: transform 0.3s ease;
}
.imagem-gallery img:hover {
    transform: scale(1.06);
}

/*codigo da galeria de imagens antiga*/
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.image-gallery img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.image-gallery img:hover {
    transform: scale(1.05);
}



.back-link-container {
    text-align: center;
    margin: 2rem 0;
}

.back-link {
    color: var(--cor-destaque);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--cor-destaque);
    border-radius: 25px;
    transition: background-color 0.3s, color 0.3s;
}

.back-link:hover {
    background-color: var(--cor-destaque);
    color: var(--cor-secundaria);
}


/* --- Estilos de Status (Projetos) --- */
.status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--cor-texto-escuro);
    margin-top: 0.5rem;
}

.status-completed { background-color: var(--cor-destaque); }
.status-inprogress { background-color: #FFD700; }


/* --- Página: Contato e Sobre Nós --- */
.google-form-container,
.map-container {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
}
.google-form-container iframe,
.map-container iframe {
}
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--cor-secundaria);
    color: var(--cor-destaque);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--cor-destaque);
    border-radius: 50px;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background-color: var(--cor-destaque);
    color: var(--cor-secundaria);
}
.social-links svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}


/* ==========================================================================
   4. RODAPÉ
   ========================================================================== */
.footer {
    background-color: var(--cor-secundaria);
    color: var(--cor-principal);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .language-switcher-container {
        display: list-item; 
    }

    .nav-links.active + .language-switcher-container {

    }
}

/* Garante que o item da lista não tenha marcadores (bolinhas) */
.nav-links .language-switcher-item {
    list-style: none;
}

/* Remove a margem extra do container que não é mais necessária */
.language-switcher-container {
    margin-left: 0; 
}

#language-switcher {
    background-color: var(--cor-secundaria);
    color: var(--cor-destaque);
    border: 1px solid var(--cor-principal);
    padding: 0.5rem;
    border-radius: 5px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    height: 100%; /* Alinha a altura com os links */
}

#language-switcher:focus {
    outline: 2px solid var(--cor-destaque);
}

/* Na media query, ajuste o alinhamento do seletor dentro do menu mobile */
@media (max-width: 768px) {
   .nav-links .language-switcher-item {
       margin-top: 2rem; /* Adiciona um espaço acima do seletor no menu aberto */
   }
}
/* 1. Adicione estas classes de visibilidade no início ou em uma seção de utilitários */
.desktop-only {
    display: block; /* ou flex, dependendo do elemento */
}
.mobile-only {
    display: none;
}

/* 2. Atualize o estilo da sua navbar para desktop */
.navbar {
    background-color: var(--cor-secundaria);
    display: flex;
    justify-content: space-between; /* A MÁGICA ACONTECE AQUI */
    align-items: center;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* 3. Ajuste a media query para telas pequenas */
@media (max-width: 768px) {
    /* Esconde o seletor de desktop e mostra o de mobile */
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: list-item; /* Faz o item da lista aparecer */
    }

    /* Remove o space-between para o layout mobile */
    .navbar {
        justify-content: space-between; 
    }

    /* Garante que o seletor dentro do menu mobile tenha um bom espaçamento */
    .nav-links .language-switcher-item {
        margin-top: 2rem;
        list-style: none;
    }
}

/* 4. Garanta que o estilo do seletor se aplique a ambos */
#language-switcher-desktop,
#language-switcher-mobile {
    background-color: var(--cor-secundaria);
    color: var(--cor-destaque);
    border: 1px solid var(--cor-principal);
    padding: 0.5rem;
    border-radius: 5px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
}



/* ==========================================================================
   5. MEDIA QUERIES PARA RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 768px) {
    /* --- Ajustes Gerais --- */
    .page-header h1 {
        font-size: 2rem;
    }
    .container > h2 {
        font-size: 1.7rem;
    }
    section h2 {
        font-size: 1.5rem;
    }
    .container {
        padding: 0 1rem;
    }

    .desktop-only {
        display: none; /* Esconde elementos de desktop */
    }
    .mobile-only {
        display: list-item; /* Mostra elementos de mobile */
    }

    /* --- Menu Hambúrguer --- */
    .nav-links {
        display: none; /* Esconde os links por padrão */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Ocupa a tela inteira */
        background-color: var(--cor-fundo);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-links.active {
        display: flex; /* Mostra o menu quando a classe 'active' é adicionada */
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hamburger-menu {
        display: flex; /* Mostra o botão do hambúrguer */
    }

    /* Garante que o item da lista do seletor de idioma não tenha marcador e tenha espaçamento */
    .nav-links .language-switcher-item {
        list-style: none;
        margin-top: 2rem;
    }

    /* --- Grid de Projetos --- */
    .projects-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas pequenas */
    }
    
    /* --- Página de Detalhes do Projeto --- */
    .project-header h1 {
        font-size: 2.2rem;
    }
}



/* --- Estilo da Grade de Membros da Equipe --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member-card {
    background-color: var(--cor-secundaria);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(50, 205, 50, 0.2);
}

.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--cor-destaque);
    margin-bottom: 1rem;
}

.team-member-card h3 {
    margin: 0;
    color: var(--cor-principal);
    font-size: 1.4rem;
}

.team-member-card .role {
    color: #aaa;
    font-size: 1rem;
    margin: 0.5rem 0 1rem;
}

.team-member-card .description {
    font-size: 1rem;
    color: var(--cor-texto-claro);
}



