:root{
  /*cores*/
  --charleston-green: hsl(206, 20%, 14%);
  --battleship-gray: hsl(0, 0%, 53%);
  --shamrock-green: hsl(54, 83%, 61%);
  --russian-violet: hsl(245, 97%, 13%);
  --yellow-orange: hsl(0, 61%, 62%);
  --green-pigment: hsl(108, 39%, 58%);
  --roman-silver: hsl(223, 6%, 55%);
  --sonic-silver: hsl(0, 0%, 45%);
  --eerie-black: hsl(210, 11%, 15%);
  --space-cadet: hsl(222, 36%, 22%);
  --light-gray: hsl(0, 0%, 82%);
  --mint-cream: hsl(96, 36%, 95%);
  --gunmetal-1: hsl(207, 21%, 17%);
  --gunmetal-2: hsl(206, 21%, 15%);
  --black_90: hsla(0, 0%, 0%, 0.9);
  --black_50: hsla(0, 0%, 0%, 0.5);
  --black_25: hsla(0, 0%, 0%, 0.25);
  --white_50: hsla(0, 0%, 100%, 0.50);
  --white_25: hsla(0, 0%, 100%, 0.25);
  --white_10: hsla(0, 0%, 100%, 0.1);
  --platinum: hsl(0, 0%, 92%);
  --cultured: hsl(0, 0%, 94%);
  --emerald: hsl(209, 99%, 33%);
  --emerald_70: hsla(212, 88%, 53%, 0.7);
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);
  --onyx: hsl(0, 0%, 27%);
  --jet: hsl(0, 0%, 20%);

  /*tipografia*/
  --ff-outfit: 'Outfit', sans-serif;

  --fs-1: 3rem;
  --fs-2: 2.4rem;
  --fs-3: 2rem;
  --fs-4: 1.8rem;
  --fs-5: 1.7rem;
  --fs-6: 1.5rem;
  --fs-7: 1.4rem;
  --fs-8: 1.3rem;
  --fs-9: 1rem;

  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;

  /*espaçamento*/
  --section-padding: 80px;

  /*radius*/
  --radius-4: 4px;
  --radius-6: 6px;

  /*shadow*/
  --shadow-1: 0 12px 25px -8px hsla(0, 0%, 0%, 0.2);
  --shadow-2: -12px 0 25px -8px hsla(0, 0%, 0%, 0.2);
  --shadow-3: 12px 0 25px -8px hsla(0, 0%, 0%, 0.2);

  /*transitions*/
  --transition-1: 0.05s ease;
  --transition-2: 0.25s ease;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);
}

/*reset*/
*,
*::before,
*::after{
  margin:0;
  padding:0;
  box-sizing: border-box;
}

li{ list-style: none;}

a{
  text-decoration: none;
  color:inherit;
}

a,
img,
span,
input,
button,
ion-icon{
  display: block;
}

img{height: auto;}

input,
button{
  background: none;
  border: none;
  font: inherit;
}

input{ width: 100%; }
button{cursor:pointer;}
ion-icon{pointer-events: none;}
address{font-style: normal;}
:focus-visible{outline-offset: 4px;}

::selection{
  background-color: var(--black_50);
  color: var(--white);   
}

html{
  font-size: 10px;
  font-family: var(--ff-outfit);
  scroll-behavior: smooth;
}

body{
  font-size: 1.6rem;
  background-color: var(--white);
}

.container {
  padding-inline: 10px ;
}

/*header*/
.header {
  width: 100%;
  top: 0;
  left: 0;
  position: sticky;
  background: var(--white);
  z-index: 1000;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar{
  background-color: var(--emerald_70);
  color: var(--white);
  font-size: var(--fs-8);
  font-weight: var(--fw-500) ;
  text-align: center;
  padding-block: 10px;
}

.logo{
  color:var(--roman-silver);
  font-family: var(--ff-outfit);
  font-size: 3rem;
  font-weight: bold;
}

.logo .span{
  display: inline-block;
  color: var(--emerald);
}

/*-----------------------------------
  MOBILE/TABLET (até 991px)
-----------------------------------*/
@media (max-width: 991px) {

  .nav-wrapper .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-inline: 5%;
    padding-block: 15px;
    gap: 15px;
  }

  /*Logo no topo, centralizado*/
  .nav-wrapper .h1 {
    order: 1;
    width: 100%;
    text-align: center;
  }

  /* Linha inferior: hambúrguer à esquerda, redes sociais à direita */
  .header-action {
    order: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Menu hambúrguer à esquerda */
  .nav-open-btn {
    font-size: 2.8rem;
    color: var(--black_50);
    transition: var(--transition-2);
    order: 1;
  }

  .nav-open-btn:hover {
    color: var(--emerald);
  }

  /* Redes sociais à direita */
  .socialmidia-list {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    order: 2;
  }

  /* Menu lateral */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    padding: 100px 30px 30px;
    background: var(--white);
    box-shadow: var(--shadow-3);
    z-index: 1000;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
  }

  .navbar.active {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-close-btn {
    color: var(--black);
    font-size: 2.8rem;
    border: 1px solid var(--black_25);
    padding: 5px;
    position: absolute;
    top: 30px;
    right: 30px;
    border-radius: 4px;
    transition: var(--transition-1);
  }

  .nav-close-btn:hover {
    color: var(--emerald);
    border-color: var(--emerald);
  }

  .navbar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .navbar-link {
    color: var(--black);
    font-size: var(--fs-6);
    font-weight: var(--fw-600);
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition-2);
  }

  .navbar-link:hover {
    color: var(--emerald);
  }

  /* SUBMENU MOBILE */
  .has-submenu {
    position: relative;
  }

  .submenu-toggle {
    background: none;
    border: none;
    font-size: var(--fs-6);
    color: var(--black);
    font-weight: var(--fw-600);
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-2);
  }

  .submenu-toggle:hover {
    color: var(--emerald);
  }

  .submenu {
    display: none;
    flex-direction: column;
    padding-left: 20px;
    margin-top: 5px;
    font-weight: var(--fw-600);
  }

  .submenu a {
    padding: 8px 15px;
    font-size: var(--fs-7);
    color: var(--onyx);
    border-radius: 6px;
    transition: var(--transition-2);
  }

  .submenu a:hover {
    color: var(--emerald);
  }

  /* QUANDO ATIVO NO MOBILE */
  .has-submenu.active .submenu {
    display: flex;
  }
}

/*-----------------------------------
  DESKTOP (>992px)
-----------------------------------*/
@media (min-width: 992px) {

  .nav-wrapper .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    padding-inline: 5%;
    padding-block: 15px;
  }

  /* Menu horizontal no centro */
  .navbar {
    position: static;
    transform: none;
    visibility: visible;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .navbar-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
  }

  .navbar-link {
    padding: 8px 16px;
    font-weight: var(--fw-600);
    color: var(--black);
    border-radius: 8px;
    transition: var(--transition-2);
  }

  .navbar-link:hover {
    background-color: var(--emerald_70);
    color: var(--white);
  }

  /* Esconder botões de menu mobile */
  .nav-open-btn,
  .nav-close-btn {
    display: none !important;
  }

  /* Redes sociais à direita */
  .header-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .socialmidia-list {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
  }

  /* SUBMENU DESKTOP */
  .has-submenu {
    position: relative;
  }

  .submenu-toggle {
    background: none;
    border: none;
    font-size: var(--fs-6);
    color: var(--black);
    font-weight: var(--fw-600);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-2);
  }

  .submenu-toggle:hover {
    background-color: var(--emerald_70);
    color: var(--white);
  }

  .submenu-toggle ion-icon {
    font-size: 1.2rem;
  }

  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 12px 20px 20px 12px hsla(0, 0%, 0%, 0.2);
    border-radius: 20px;
    margin-top: 5px;
    z-index: 100;
    font-weight: var(--fw-600);
  }

  .submenu a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
    color: var(--black);
    font-size: var(--fs-7);
    transition: var(--transition-2);
  }

  .submenu a:hover {
    background-color: var(--emerald_70);
    color: var(--white);
  }

  /* MOSTRAR SUBMENU NO HOVER */
  .has-submenu:hover .submenu {
    display: block;
  }

  /* MOSTRAR SUBMENU NO CLICK (classe active) */
  .has-submenu.active .submenu {
    display: block;
  }
}

/* redes sociais navbar*/
.socialmidia-list a {
  font-size: 2rem;
  color: var(--black_50);
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
}

.socialmidia-list a:hover {
  color: var(--emerald);
  transform: translateY(-2px);
}

html, body { height: 100%; margin: 0; }

/* ----------------------FOOTER-------------------------- */
.footer {
  background: var(--eerie-black);
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section h3.footer-title {
  font-size: var(--fs-2);
  font-weight: var(--fw-700);
  margin-bottom: 20px;
  color: var(--white);
}

.footer-section h3.footer-title .span {
  color: var(--emerald);
  display: inline-block;
}

.footer-section h4.footer-subtitle {
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  margin-bottom: 20px;
  color: var(--emerald);
}

.agradecimento-cnpq {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-agradecimento {
  font-size: var(--fs-7);
  line-height: 1.6;
  color: var(--light-gray);
}

.footer-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-image {
  max-width: 150px;
  height: auto;
}

.footer-social {
  display: flex;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social a {
  font-size: 2rem;
  color: var(--light-gray);
  transition: var(--transition-2);
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  color: var(--emerald);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: var(--fs-6);
  color: var(--light-gray);
  transition: var(--transition-2);
}

.footer-links a:hover {
  color: var(--emerald);
  padding-left: 5px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-6);
  color: var(--light-gray);
  margin: 0;
}

.footer-contact i {
  color: var(--emerald);
  width: 20px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--white_25);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: var(--roman-silver);
  font-size: var(--fs-7);
  margin: 0;
}

/* RESPONSIVE DESIGN - FOOTER */
@media (max-width: 768px) {

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-banner {
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 15px;
  }

  .footer-image {
    width: 20vh;
    height: auto;
  }

  .footer-agradecimento{
    text-align: left;
  }

  .footer-social {
    justify-content: center;
  }
}

.team-header {
  background:  var(--emerald);
  padding: 6rem 0 4rem;
  text-align: center;
  color: white;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.page-subtitle {
  font-size: 1.5rem;
  color: var(--white_50);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* RESPONSIVIDADE ATÉ 768PX - AJUSTES GERAIS */
@media (max-width: 768px) {

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--fs-3);
  }
  
  .page-title {
    font-size: 2.5rem;
  }
}

/* -----------------EQUIPE------------- */

/* -----------------FILTROS------------- */
/* EQUIPE - FILTROS */
.team-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--light-gray);
  background: var(--white);
  color: var(--eerie-black);
  border-radius: 25px;
  font-family: inherit;
  font-size: var(--fs-7);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--emerald);
}

.filter-btn.is-active {
  background: var(--emerald);
  color: var(--white);
  border-color: var(--emerald);
  box-shadow: 0 4px 15px hsla(212, 88%, 53%, 0.3);
}

/* GRID DE MEMBROS */
.team-section {
  padding: 4rem 0 6rem;
  background: var(--mint-cream);
}

.team-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

/* CARDS DE MEMBROS */
.team-member {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.member-photo {
  margin-bottom: 1.5rem;
}

.member-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid var(--emerald);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.member-info {
  width: 100%;
}

.member-name {
  font-size: var(--fs-4);
  font-weight: var(--fw-700);
  color: var(--eerie-black);
  margin-bottom: 0.5rem;
}

.member-role {
  font-size: var(--fs-7);
  color: var(--emerald);
  font-weight: var(--fw-600);
  margin-bottom: 1rem;
}

.member-description {
  color: var(--sonic-silver);
  font-size: var(--fs-7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.member-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.member-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--emerald);
  color: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1.6rem;
}

.member-social a:hover {
  background: var(--emerald_70);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px hsla(212, 88%, 53%, 0.4);
}

/* VISÃO AGRUPADA POR ESCOLA */
.team-grouped {
  padding: 2rem 60px;
}

.team-grouped.hidden {
  display: none;
}

.school-section {
  margin-bottom: 4rem;
}

.school-title {
  font-size: var(--fs-3);
  font-weight: var(--fw-700);
  color: var(--emerald);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--emerald);
  text-align: center;
}

.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* ESTADO OCULTO */
.team-member[hidden] {
  display: none !important;
}

.team-grid.hidden {
  display: none !important;
}

/* RESPONSIVO - EQUIPE */
@media (max-width: 768px) {
  .team-section .container {
    padding: 0 30px;
  }

  .team-grouped {
    padding: 2rem 30px;
  }

  .team-filters {
    gap: 0.75rem;
    padding: 0 30px;
  }

  .filter-btn {
    padding: 0.625rem 1.25rem;
    font-size: var(--fs-8);
  }

  .team-grid,
  .school-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }

  .team-member {
    padding: 2rem;
  }

  .school-title {
    font-size: var(--fs-4);
  }
}

@media (max-width: 480px) {
  .team-section .container {
    padding: 0 20px;
  }

  .team-grouped {
    padding: 2rem 20px;
  }

  .team-filters {
    gap: 0.5rem;
    padding: 0 20px;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: var(--fs-9);
  }

  .team-grid,
  .school-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-member {
    padding: 1.5rem;
  }

  .member-image {
    width: 120px;
    height: 120px;
  }

  .school-title {
    font-size: var(--fs-5);
  }
}
