:root {
  --bg: #ffffff;
  --text: #1b1b1b;
  --muted: #555;
  --primary: #07743d;
  --accent: #FFD100;
  --panel: #f9f9f9;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
}

.containe {
  max-width: 800px;
  margin: 0 auto;
  padding: 18px 24px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 20px;
}

.logo-img {
  max-width: 120px;
  height: auto;
  display: block;
}

/* Animação de sublinhado centralizado na navbar */
nav#nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav#nav-menu a {
  position: relative;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.3s;
}

nav#nav-menu a:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 3px;
  width: 0%;
  background: var(--accent);
  border-radius: 12px;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

nav#nav-menu a:hover:before,
nav#nav-menu a.active:before {
  width: 100%;
}

#sobre p {
  text-align: justify;
}


/* Hamburger menu */
.hamburger {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1000;
}

.hamburger input {
  display: none;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span:nth-of-type(1) {
  top: 0;
}

.hamburger span:nth-of-type(2) {
  top: 10px;
}

.hamburger span:nth-of-type(3) {
  top: 20px;
}

/* Estado ativo do hamburger (X) */
.hamburger input:checked ~ span:nth-of-type(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger input:checked ~ span:nth-of-type(2) {
  opacity: 0;
}

.hamburger input:checked ~ span:nth-of-type(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  padding: 100px 24px;
  background: #065020;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: .2s;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
}

.btn-primary:hover {
  background: #f0f0f0;
}

.hero img.bg-map {
  position: absolute;
  bottom: -40px;
  right: 0;
  width: 380px;
  opacity: 0.2;
  z-index: 0;
}

/* Sections */
section {
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}

h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--primary);
  text-align: center;
}


.grid {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: .3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}

.card h3 {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.card p {
  color: var(--muted);
}

.services {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.about img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.highlights {
  background: #f5fff7;
}

.highlight-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.highlight {
  padding: 20px;
  border-left: 4px solid var(--primary);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.highlight-box h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: center;
  margin-top: 30px;
}

.team-member {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.team-member img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.team-member h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* Projects */
.projects {
  background: #fafafa;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.project {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project .info {
  padding: 20px;
}

.project h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.contact {
  background: #065020;
  color: #fff;
}

.contact h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
}

.contact form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
}

button {
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #f0f0f0;
}

footer {
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid #eaeaea;
}

/* Publicações */
.publicacoes {
  background: #f9f9f9;
  padding: 80px 24px;
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.pub-card {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.pub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}

.pub-card .categoria {
  display: inline-block;
  font-size: 20px;
  color: #FFD100;
  font-weight: 700;
  margin-bottom: 8px;
}

.pub-card h3 {
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}

.publicacoes .pub-card h3 a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.publicacoes .pub-card h3 a:hover {
  color: var(--accent);
}

.pub-card .meta {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* Lista e artigos */
.lista-setas {
  list-style: none;
  padding: 0;
}

.lista-setas li {
  position: relative;
  padding-left: 25px;
  margin: 8px 0;
  font-size: 18px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

.lista-setas li::before {
  content: "➜";
  position: absolute;
  left: 0;
  color: #2c7a7b;
  font-weight: bold;
}

.artigos-lista {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.artigos-lista li {
  margin: 12px 0;
}

.artigos-lista a {
  display: inline-block;
  background: #f9f9f9;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  color: #07743d;
  transition: all 0.3s ease;
}

.artigos-lista a:hover {
  background: #07743d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.social-icons a {
  text-decoration: none;
  color: white;
  margin: 10px;
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  text-align: center;
  font-size: 22px;
  transition: 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav#nav-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    border-radius: 0 0 14px 14px;
    z-index: 999;
  }

  /* Exibir o nav quando a classe .active é adicionada pelo JavaScript */
  nav#nav-menu.active {
    display: flex;
  }

  nav a {
    margin: 10px 0;
    text-align: center;
  }

    .about {
      grid-template-columns: 1fr;
    }
  }