/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  text-align: justify;
  font-family: 'Verdana', Geneva, Tahoma, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Cabeçalho */
header {
  background-image: url('imagemnova.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

/* Top bar dentro do cabeçalho */
header .top-bar h1 {
  font-size: 2.5em;
  margin-bottom: 1em;
  text-shadow: 2px 2px 4px #000000;
  font-weight: 400;
}

header .top-bar p {
  font-size: 1.5em;
  text-shadow: 2px 1px 3px #000000;
  font-weight: 300;
}

/* Menu de navegação */
.nav-bar {
  background-color: #341c4d;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-bar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 10px;
  flex-wrap: wrap;
}

.nav-bar li {
  margin: 0 10px;
}

.nav-bar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
  font-size: 1em;
}

.nav-bar a:hover {
  color: #c1ffd7;
}

/* Conteúdo */
main {
  margin-top: 120px;
  padding: 20px;
  font-family: 'Montserrat', sans-serif;
}

section {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
}

h2 {
  margin-bottom: 20px;
  scroll-margin-top: 140px;
}

/* Rodapé */
footer {
  background-color: #341c4d;
  color: floralwhite;
  padding: 40px 20px;
  text-align: center;
}

.footer-logos {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}

.footer-logos img {
  height: 60px;
  max-width: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
  header {
    height: 400px;
    padding: 20px;
  }

  header .top-bar h1 {
    font-size: 1.5em;
    padding: 0 10px;
  }

  header .top-bar p {
    font-size: 1em;
  }

  .nav-bar ul {
    flex-direction: column;
    align-items: center;
  }

  .nav-bar li {
    margin: 10px 0;
  }

  .nav-bar a {
    font-size: 1.1em;
  }

  section {
    padding: 20px 10px;
  }

  h2 {
    font-size: 1.3em;
  }

  p {
    font-size: 1em;
  }

  .footer-logos {
    gap: 15px;
  }

  .footer-logos img {
    height: 50px;
  }
}

/* Botão do menu hambúrguer */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1100;
}

/* Esconde os links no mobile por padrão */
.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 10px;
}

/* Responsivo */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    background-color: #341c4d;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    display: none;
    transition: transform 0.3s ease;
    transform: translateX(100%);
  }

  .nav-links.active {
    display: flex;
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
  }
}
