/* ================= VARIÁVEIS ================= */
:root {
--primary:  #296f91;
  --primary-dark: #7cc8c6;
  --bg-soft: #f4f7f8;
  --text-main: #334155;
  --text-bold: #1e293b;
  --white: #ffffff;
  --transition: all 0.3s 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;
}

/* ================= 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) {
  .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);
}
/* ================= CONTEÚDO HISTÓRIA ================= */

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.historia-section { padding: 80px 0; }
.titulo-central { text-align: center; margin-bottom: 50px; }
.titulo-central h2 { font-size: 2.5rem; color: var(--primary); }
.titulo-central h2 span { color: var(--accent); }
.divisor { width: 60px; height: 4px; background: var(--accent); margin: 15px auto; border-radius: 2px; }

.historia-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.historia-foto img { width: 100%; border-radius: 20px; box-shadow: 15px 15px 0px var(--accent); }
.historia-texto p { margin-bottom: 1.5rem; font-size: 1.1rem; text-align: justify; }

/* ================= CARROSSEL ================= */
.integrantes-section { padding: 80px 0; background: var(--white); }
.carrossel-wrapper { display: flex; align-items: center; gap: 20px; }
.carrossel-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    cursor: grab;
    user-select: none;
    padding: 20px 5px; 
}

.carrossel-viewport.dragging {
    cursor: grabbing;
}

.carrossel-barra {
    width: 100%;
    max-width: 300px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 20px auto 0;
    overflow: hidden;
}

.carrossel-progresso {
    display: block;
    height: 90%;
    width: 25%; 
    
    background: var(--primary, #2563eb);
    border-radius: 10px;
    transition: width 0.3s ease, transform 0.3s ease;
}



.membros-track {
    display: flex;
    gap: 20px; 
    transition: transform 0.2s ease-out;
    will-change: transform;
}

.membro-card {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: calc((100% - 60px) / 4);
    background: var(--white);
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.membro-card img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    pointer-events: none; 
}

@media (max-width: 1024px) {
    .membro-card {
        flex: 0 0 calc((100% - 40px) / 3); 
        min-width: calc((100% - 40px) / 3);
    }
}

@media (max-width: 768px) {
    .membro-card {
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 480px) {
    .membro-card {
        flex: 0 0 85vw; 
        min-width: 85vw;
    }
}
.seta {
    display: none !important;
}

.membro-card img {
    pointer-events: none;
}
.membros-track { display: flex; gap: 20px; transition: transform 0.5s ease; }

.membro-card {
  min-width: 230px;
  background: var(--bg-body);
  padding: 30px 20px;
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid #e2e8f0;
}

.membro-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(41, 111, 145, 0.1);
}

.membro-card img {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--accent); margin-bottom: 15px;
}

.membro-card h3 { font-size: 1rem; color: var(--primary); margin-bottom: 5px; }
.membro-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 15px; }
.profile-link { font-size: 0.7rem; font-weight: 800; color: var(--accent); text-transform: uppercase; }


/* ================= POPUP ================= */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(26, 45, 58, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup.hidden {
    display: none;
}
.popup-content {
  background: white; padding: 40px; border-radius: 20px; width: 90%; max-width: 400px;
  text-align: center; position: relative; border-top: 8px solid var(--accent);
}
.close-btn { position: absolute; top: 15px; right: 15px; border: none; background: none; font-size: 1.5rem; cursor: pointer; }
.popup-img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 4px solid var(--bg-body); }
.popup-social { margin-top: 20px; display: flex; justify-content: center; gap: 15px; }
.popup-social a { text-decoration: none; color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* ================= FOOTER ================= */
footer {
  background: var(--text-bold);
  color: #94a3b8;
  padding: 4rem 5% 2rem;
  text-align: center;
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a { color: white; font-size: 1.5rem; }

/* ================= MOBILE ================= */
/* ================= RESPONSIVIDADE GERAL ================= */
.menu-mobile-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
}

@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%;
    }
  }
    .nav-links.active { display: flex; } /* Mostra quando clicado */

    .historia-grid {
        grid-template-columns: 1fr; /* Empilha a foto e o texto */
        gap: 30px;
    }

    .titulo-central h2 { font-size: 2rem; }
}

@media (max-width: 600px) {
    .carrossel-wrapper {
        position: relative;
    }
    
    .seta {
        display: none;
    }

    .membro-card {
        flex: 0 0 85vw;
        width: 85vw;
    }

    .carrossel-viewport {
        padding: 10px 5px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 30px 20px;
        width: 95%;
    }
    .popup-img {
        width: 100px;
        height: 100px;
    }
}