@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
  height: 100%;
}

body {
  background-image: linear-gradient(to bottom, rgba(195, 197, 196, 0.1), #e8f7ec), url('../assets/credito-de-carbono.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: #205789;
  line-height: 1.6;
  font-size: medium;
  display: flex;
  flex-direction: column;
}

header {
  background-color: #61d56e;
  padding: 15px 40px;
  z-index: 10;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.logo {
  background-color: #fff;
  border-radius: 12px;
  padding: 5px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 100px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav ul li a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #205789;
  color: #fff;
}

.conteudo-principal {
  background-color: #e8f7ec;
  text-align: center;
  padding: 80px 20px;
}

.conteudo-principal h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #205789;
}

.conteudo-principal p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #333;
}

.btn-central {
  background-color: #61d56e;
  color: #000;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn-central:hover {
  background-color: #2b9d38;
  color: #fff;
}

.info {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 10px auto;
  text-align: left;
  background: linear-gradient(to bottom, #e8f7ec8e 2%, #61d56e 98%);
  border-radius: 50px;
}

.info h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #205789;
}

.info p {
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: #444;
}

footer {
  background-color: #61d56e;
  text-align: center;
  padding: 30px 20px;
  color: #000;
  margin-top: 60px;
}

.logo-footer {
  height: 120px;
  margin-bottom: 7px;
}

footer a {
  color: #000;
  text-decoration: underline;
  font-weight: 500;
  margin: 0 8px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #205789;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  .logo img {
    height: 80px;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 25px;
    right: 20px;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1002;
  }

  .menu-toggle span {
    width: 30px;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  nav ul {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #61d56e;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: none;
    gap: 20px;
    z-index: 1001;
  }

  nav ul.show {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    font-size: 1.3rem;
    display: block;
    width: 100%;
    padding: 15px;
    color: #000;
    text-decoration: none;
  }

  nav ul li a:hover,
  nav ul li a.active {
    background-color: #205789;
    color: #fff;
  }

  .conteudo-principal {
    padding: 50px 15px;
  }

  .conteudo-principal h1 {
    font-size: 2rem;
  }

  .conteudo-principal p {
    font-size: 1rem;
  }

  .btn-central {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .info {
    padding: 40px 15px;
    border-radius: 30px;
  }

  .info h2 {
    font-size: 1.5rem;
  }

  .info p {
    font-size: 1rem;
  }

  .logo-footer {
    height: 80px;
  }

  footer {
    padding: 20px 15px;
  }

  /* 👇 Ajustes para responsividade do banner */
  .banner-animado {
    height: 200px;
  }

  .banner-conteudo {
    padding: 20px 15px;
  }

  .banner-conteudo h2 {
    font-size: 1.8rem;
  }

  .bg-video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-animado {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.5);
}

.banner-conteudo {
  position: relative;
  z-index: 2;
  color: #fff;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 20px;
  text-align: center;
}

.banner-conteudo h2 {
  font-size: 2.5rem;
  line-height: 1.4;
  max-width: 90%;
  color: #fff;
}

#typed-precisa {
  font-weight: bold;
  display: inline;
}

#typed-text {
  display: inline;
}

@media (max-width: 768px) {
  .banner-animado {
    height: 220px;
  }

  .banner-conteudo h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .banner-animado {
    height: 180px;
  }

  .banner-conteudo h2 {
    font-size: 1.3rem;
  }
}
