* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  font-family: "Poppins", sans-serif;
  background-color: #0b2034;
  height: 8vh;
  box-shadow: 0 4px 10px #0b2034;
  position: relative;
  z-index: 10;
}

.nav__logo img {
  height: 30px;
  transition: all 0.3s ease;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-list li a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 20px;
}

.nav-list li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #f48835;
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}

.nav-list li a:hover {
  color: #f48835;
}

.nav-list li a:hover::after {
  width: 100%;
}

.mobile-menu {
  display: none;
  cursor: pointer;
}

.mobile-menu div {
  width: 32px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: 0.4s;
}

/* Responsivo */
@media (max-width: 999px) {
  nav {
    padding: 0 20px;
    height: 70px; /* Altura fixa para mobile */
    min-height: 70px;
  }

  .nav__logo img {
    height: 50px; /* Reduzindo a altura para mobile */
    margin-top: 0 !important; /* Remove o margin-top que estava cortando */
    max-height: 50px;
  }

  .nav-list {
    position: absolute;
    top: 70px; /* Ajustado para a altura da nav */
    right: 20px;
    width: 70vw;
    height: auto;
    background: #2c2c35;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 24px;
    border-radius: 12px;
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease;
    box-shadow: -5px 10px 20px #0b2034;
  }

  .nav-list.active {
    transform: translateX(0);
  }

  .nav-list li {
    opacity: 0;
    transform: translateX(30px);
    animation: navLinkFade 0.5s ease forwards;
    width: 100%;
    text-align: center;
  }

  .nav-list li a {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 16px;
    transition: background 0.3s ease;
  }

  .nav-list li a:hover {
    background-color: #f48835;
    color: #1a1a1d;
  }

  .nav-list.active li:nth-child(1) {
    animation-delay: 0.1s;
  }
  .nav-list.active li:nth-child(2) {
    animation-delay: 0.2s;
  }
  .nav-list.active li:nth-child(3) {
    animation-delay: 0.3s;
  }
  .nav-list.active li:nth-child(4) {
    animation-delay: 0.4s;
  }
  .nav-list.active li:nth-child(5) {
    animation-delay: 0.5s;
  }

  .mobile-menu {
    display: block;
    z-index: 11;
  }

  .mobile-menu div {
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .mobile-menu.active .line1 {
    transform: rotate(-45deg) translate(-6px, 6px);
  }

  .mobile-menu.active .line2 {
    opacity: 0;
  }

  .mobile-menu.active .line3 {
    transform: rotate(45deg) translate(-6px, -6px);
  }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
  nav {
    padding: 0 15px;
    height: 60px;
    min-height: 60px;
    margin-top: 5px;
  }

  .nav__logo img {
    height: 70px; /* Logo ainda menor para telas muito pequenas */
    max-height: 70px;
  }

  .nav-list {
    top: 60px; /* Ajustado para a altura reduzida */
  }
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.login-suggestion a{
  text-decoration: none;
  color: cadetblue;
}

/* Footer */
footer {
  background-color: var(--darker);
  padding: 70px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-section h3 {
  color: var(--light);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-logo {
  height: 70px;
  margin-bottom: 20px;
}

.footer-section p {
  color: var(--gray);
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary);
}

.footer-section i {
  margin-right: 10px;
  color: var(--primary);
  width: 20px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--secondary);
  padding-top: 20px;
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
}