/* ==========================================================================
   VARIÁVEIS E RESET
   ========================================================================== */
:root {
  --primary: #296f91;
  --primary-dark: #7cc8c6;
  --bg-soft: #f4f7f8;
  --text-main: #334155;
  --text-bold: #1e293b;
  --white: #ffffff;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-soft);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================================================
   HEADER & NAVEGAÇÃO
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-soft);
  color: var(--text-main);
  line-height: 1.6;
}

/* ================= HEADER & NAV ================= */
header {
  background: var(--white);
  padding: 1rem 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none; 
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.85; 
}

.logo-img {
  height: 60px; 
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.logo-highlight {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark); 
  letter-spacing: -0.5px;
}


.logo-text p {
  font-size: 0.75rem;
  color: #1e3a5f;
  margin: 0;

}


.logo-text p span {
  color: var(--text-bold);
}

@media (max-width: 480px) {
  
      .menu-mobile-btn { display: block; }
  .logo-img {
    height: 50px;
  }
  
  .logo-text p {
    font-size: 0.65rem; 
  }
  
  .logo-highlight {
    font-size: 1.1rem;
  }
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.btn-contact {
  background: var(--primary);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
}

.btn-contact:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}


/* ==========================================================================
   LINHAS DE PESQUISA 
   ========================================================================== */
.linhas-pesquisa {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.titulo-caixa h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 40px;
  font-size: 2rem;
}

.conteudo-grid-linhas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.linha-card {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid #eef2f6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.linha-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.linha-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.linha-header i {
  font-size: 2rem;
  color: var(--primary);
  background: rgba(41, 111, 145, 0.1);
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

/* ==========================================================================
   PROJETOS 
   ========================================================================== */
.projetos {
  padding: 60px 5%;
  background: var(--bg-soft);
}
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.tp {
    background: var(--white);
    padding: 30px;
    border-radius: 24px; /* Cantos mais arredondados para um ar moderno */
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
    position: relative;
}

.tp:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(41, 111, 145, 0.1);
}

.tp-icon {
    font-size: 2.2rem;
    color: var(--primary);
    background: rgba(41, 111, 145, 0.05);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 20px;
}

.tp h3 {
    font-size: 1.15rem;
    color: var(--text-bold);
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 20px;
}

.tp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.tp-footer p {
    font-size: 0.85rem;
    color: #64748b;
    max-width: 80%;
}

.tp-footer i {
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.tp:hover .tp-footer i {
    transform: scale(1.2);
}

.detalhes-inferior {
    grid-column: 1 / -1; 
    display: none;
    background: #fff;
    border-radius: 24px;
    margin-top: 15px;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03), 0 15px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.detalhes-inferior.active {
    display: block;
    animation: slideUpFade 0.5s ease forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.detalhes-inner {
    padding: 40px;
}

.detalhes-inner h3 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detalhes-inner h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.detalhes-inner p {
    color: var(--text-main);
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify;
}

.equipe-secao {
    margin-top: 30px;
    background: #f8fafc;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #edf2f7;
}

.equipe-secao strong {
    color: var(--text-bold);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 20px;
}

.lista-equipe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    list-style: none;
}

.lista-equipe li {
    background: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.lista-equipe li:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.lista-equipe li i {
    color: var(--primary);
    font-size: 1.1rem;
}

.tp.card-ativo {
    border-color: var(--primary);
    background-color: #f0f7fa; 
    box-shadow: 0 15px 30px rgba(41, 111, 145, 0.15);
    transform: translateY(-5px);
}


.tp.card-ativo h3 {
    color: var(--primary);
}

.tp.card-ativo .tp-icon {
    background: var(--primary);
    color: white;
}


.tp .bi-plus-circle-fill {
    transition: transform 0.4s ease, color 0.3s ease;
}

.tp.card-ativo .bi-plus-circle-fill {
    transform: rotate(135deg); 
    color: #ef4444; 
}
/* ==========================================================================
   FOOTER E RESPONSIVIDADE
   ========================================================================== */
footer {
  background: var(--text-bold);
  color: #94a3b8;
  padding: 4rem 5% 2rem;
  text-align: center;
}

.menu-mobile-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
}

@media (max-width: 900px) {
  .projeto-wrapper.active {
    grid-column: span 1;
    flex-direction: column; 
  }

    .detalhes-inner p {
        text-align: left; 
        font-size: 0.95rem;
    }
    
    .equipe-secao {
        padding: 20px;
    }

  .projeto-wrapper.active .detalhes-lateral {
    max-width: 100%;
    border-left: none;
    border-top: 5px solid var(--primary);
  }

  .tp {
    flex: 1;
    width: 100%;
  }

  .conteudo-grid-linhas {
    grid-template-columns: 1fr;
  }
  
 @media (max-width: 992px) {
     @media (max-width: 992px) {
    .menu-mobile-btn {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        display: flex; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 0; 
        gap: 0;
        

        max-height: 0; 
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        max-height: 500px; 
        opacity: 1;
        padding: 1.5rem 0;
        gap: 1rem;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 10px;
        width: 100%;
    }
  }
}

@media (max-width: 600px) {
    .projetos-grid {
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    .tp {
        padding: 20px; 
    }

    .detalhes-inner {
        padding: 20px; 
    }

    .detalhes-inner h3 {
        font-size: 1.3rem; 
    }

    .lista-equipe {
        grid-template-columns: 1fr; 
    }
}
}