/* Variáveis CSS */
:root {
  --primary-color: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #4caf50;
  --accent-color: #388e3c;
  --text-dark: #333;
  --text-light: #f4f4f4;
  --bg-light: #f8f9fa;
}

/* Reset e estilos básicos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 76px; /* Compensar a navbar fixa */
}

/* Navbar */
.navbar {
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?ixlib=rb-4.0.3&auto=format&fit=crop&w=1474&q=80");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 0;
  text-align: center;
  margin-top: -76px; /* Compensar o padding-top do body */
}

/* Títulos das seções */
.section-title {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-light);
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
}

.card-header {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  border: none;
}

/* Ícones de benefícios */
.benefit-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Categorias de materiais */
.material-category {
  border-left: 4px solid;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.material-paper {
  border-color: #2196f3;
}
.material-plastic {
  border-color: #f44336;
}
.material-glass {
  border-color: #4caf50;
}
.material-metal {
  border-color: #ffc107;
}
.material-organic {
  border-color: #795548;
}

/* Botões */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Botão Voltar ao Topo */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 1000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mapa */
#mapa {
  height: 400px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: white;
}

/* Formulário */
.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Status do formulário */
#form-status {
  display: none;
}

#form-status.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  padding: 1em;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

#form-status.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  padding: 1em;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

/* Listas */
.list-group-item {
  border: none;
  padding: 0.75rem 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .card {
    margin-bottom: 1rem;
  }
}

/* Animações suaves para scroll */
html {
  scroll-behavior: smooth;
}

/* Ajustes para imagens */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Espaçamentos para seções */
section {
  scroll-margin-top: 100px;
}
