@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;
}

/* Botão toggle para mobile */
.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;
}

/* Conteúdo Principal */
main {
  flex: 1;
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

/* Seção Sobre */
.sobre {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background: linear-gradient(to bottom, #e8f7ec 2%, #d3f7da 98%);
  border-radius: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.sobre h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #205789;
  text-align: center;
}

.sobre h2 {
  font-size: 2rem;
  margin-top: 50px;
  margin-bottom: 20px;
  color: #2b9d38;
}

.sobre p {
  font-size: 1.1rem;
  color: #333;
  text-align: justify;
  margin-bottom: 25px;
  line-height: 1.8;
}

/* Footer */
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;
}

/* Responsividade */
@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;
  }
}

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

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