html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* --- Cabeçalho fixo --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4%;
  background-color: #007A3D;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  height: 130px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.spacer {
  height: 130px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.logo {
  height: 120px;
  width: auto;
  display: block;
}

.slogan {
  color: white;
  font-size: 1.9em;
  font-weight: 600;
  margin: 0;
  line-height: 1.2em;
  white-space: pre-line;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  white-space: nowrap;
}

nav a:hover { color: #d4ffd4; }

.btn {
  background-color: white;
  color: #007A3D;
  border: none;
  padding: 9px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn:hover { background-color: #e2e2e2; }

/* --- Hero --- */
.hero {
  background-color: #0E8B45;
  color: white;
  padding: 60px 5%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hero h1 {
  font-size: 2.5em;
  margin-top: 0;
}

.hero p {
  max-width: 600px;
  font-size: 1.1em;
  line-height: 1.5em;
}

.info-box {
  background-color: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  font-size: 0.95em;
  color: white;
}

section {
  padding: 60px 5%;
  background-color: #fdfdfd;
}

/* --- Cards e Portfólio --- */
.services, .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card, .project {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card h3, .project h3 {
  color: #0E8B45;
  margin-top: 0;
}

/* --- Rodapé --- */
footer {
  background-color: #007A3D;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

/* --- Transição suave entre páginas --- */
body {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}
body.loaded {
  opacity: 1;
}

/* --- Botão flutuante WhatsApp --- */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  text-decoration: none;
  z-index: 1000;
  transition: transform 0.2s ease-in-out;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* --- Responsividade --- */
@media (max-width: 1000px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 12px 5%;
    height: auto;
  }
  .header-left {
    flex-direction: column;
    align-items: center;
  }
  .logo { height: 100px; }
  .slogan { font-size: 1.4em; text-align: center; }
  nav ul {
    flex-direction: column;
    gap: 12px;
  }
  .spacer { height: 200px; }
}
