/* media queries, from wide to narrow*/

@media all and (max-width: 1200px) {
  /* about */

  /* team */

  .about-team {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .team-img {
    width: 20vw;
    height: 20vw;
  }
}

@media all and (max-width: 1000px) {
  :root {
    --fs-0: 0.8rem;
    --fs-1: 1rem;
    --fs-2: 1.5rem;
    --fs-3: 3rem;
  }
  section {
    width: 90vw;
  }
  main h1 {
    font-size: 18vw;
    line-height: 17vw;
  }
  main h1 br {
    display: none;
  }
  .line-break-big {
    display: inline;
  }
  .line-break-small {
    display: block;
  }

  .text-container {
    max-width: 80vw;
  }

  /* NAV */

  nav {
    padding: 2rem 10vw 2rem;
  }

  /* HOME */

  #searchInput {
    height: 3rem;
    padding: 1rem;
  }
  #searchInput::placeholder {
    color: transparent;
    font-size: var(--fs-2);
  }

  .search-icon {
    position: relative;
  }
  .search-icon::after {
    right: 1rem;
    background-size: 20px 20px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(34.4vw, 1fr));
  }
  .card-img {
    height: 34.4vw;
  }
  .card-title {
    font-size: var(--fs-2);
  }
  .card-subtitle {
    font-size: var(--fs-0);
  }
  .card-tags {
    font-size: var(--fs-0);
  }
  .card-content .card-tags {
    font-size: 0.7rem;
  }
  .grid.modo-destaque a:nth-of-type(n + 5) {
    display: none !important;
  }
  /* about */

  /* nav */

  /* Mostra o botão hambúrguer */
  .hamburger-btn {
    display: flex;
  }
  .hamburger-line {
    height: 1px;
    width: 1.5rem;
  }

  /* dropdown */
  .nav-links {
    display: none; /* Escondido por padrão */
    position: absolute;
    top: 50px; /* Distância do topo (ajuste se precisar) */
    right: 0;
    flex-direction: column;
    background-color: var(--focus-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    gap: 1rem;
    min-width: 200px;
    z-index: 999;
  }

  /* Esta classe é acionada pelo JavaScript para mostrar o menu */
  .nav-links.menu-aberto {
    display: flex;
  }

  /* profile */

  .profile-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: auto;
  }
  .profile-header-container {
    align-items: center;
  }
  .profile-img {
    max-width: 60vw;
    max-height: 60vw;
  }
  .profile-title,
  .profile-subtitle {
    justify-self: center;
  }
  .profile-name-subtitle {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .profile-name {
    text-align: center;
    line-height: 4rem;
  }
  .profile-btns {
    max-width: 40vw;
    min-width: 35vw;
  }

  /* footer */

  .footer-logo {
    align-self: center;
    height: 6rem;
    width: auto;
  }
  .footer-content {
    display: none;
  }
  .footer-content-mobile {
    border-left: 1px var(--border-color) solid;
    height: auto;
    min-height: 6rem;
    padding-left: 1rem;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media all and (max-width: 700px) {
  .text-container {
    max-width: 80vw;
  }

  /* Limita a 4 cards na vitrine inicial */
  #pesquisadorasGrid.modo-destaque > a:nth-child(n + 5) {
    display: none;
  }
}

@media all and (min-width: 500px) and (max-width: 999px) {
}
