/* Fonte e cores gerais */
html, body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
  padding: 0;
}

/* Banner principal */
.hero-banner {
  min-height: clamp(320px, 55vh, 560px);
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("assets/banner-sustentabilidade.png") center 40% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.hero-overlay {
  text-align: center;
  color: #fff;
  max-width: 760px;
  padding: 20px;
  border-radius: 12px;
}

.hero-overlay h1 {
  margin: 0 0 10px;
  line-height: 1.15;
}

.hero-overlay p {
  margin: 0 0 18px;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-btn {
  display: inline-block;
  background: #228b22;
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-btn:hover {
  background: #4caf50;
  transform: translateY(-1px);
}

/* Acessibilidade: foco visível para teclado */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #1b5e20;
  outline-offset: 2px;
}

/* Container de cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px auto;
  max-width: 1000px;
  padding: 0 15px;
}

/* Estilo dos cards */
.card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 45%;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
}

.card h2 {
  color: #2e7d32;
  margin-bottom: 10px;
}

.card p {
  color: #555;
}

/* Botão */
.card button {
  background: #228b22;
  color: white;
  border: none;
  padding: 10px 15px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.card button:hover {
  background: #4caf50;
}

/* Conteúdo oculto/expansível */
.card-content {
  display: none;
  margin-top: 15px;
  text-align: left;
}

.card-content ul {
  list-style: none;
  padding: 0;
}

.card-content li {
  margin: 8px 0;
}

.card-content a {
  text-decoration: none;
  color: #1b5e20;
  font-weight: bold;
}

.card-content a:hover {
  color: #4caf50;
}

/* Rodapé */
footer {
  text-align: center;
  background: #2e7d32;
  color: white;
  padding: 15px;
  font-size: 14px;
  line-height: 1.6;
  width: 100%;
  margin-top: auto;
}

/* ===== Seção de Recursos Sustentáveis ===== */
.resources-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 15px;
  margin: 20px auto;
  padding: 12px;
  background: #e8f5e9;
  border: 2px solid #2e7d32;
  border-radius: 10px;
  max-width: 1000px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* Correção: removido max-height fixo para evitar corte de conteúdo */
}

.resources-container h2 {
  width: 100%;
  text-align: center;
  color: #2e7d32;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: bold;
}

.resources-container .card {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 260px;
  background: #ffffff;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: transform 0.3s ease;
  margin: 0 auto;
}

.resources-container .card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.resources-container .card h2 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #1b5e20;
}

.resources-container .card p {
  font-size: 13px;
  margin-bottom: 8px;
}

.resources-container .card button {
  background: #2e7d32;
  color: white;
  border: none;
  padding: 8px 12px;
  margin-top: 8px;
  border-radius: 5px;
  cursor: pointer;
}

.resources-container .card button:hover {
  background: #4caf50;
}

/* ========================= */
/* Responsividade para mobile */
/* ========================= */
@media (max-width: 768px) {
  .hero-banner {
    min-height: 42vh;
    background-position: center 35%;
    padding: 16px 0;
  }

  .hero-overlay {
    width: 100%;
    max-width: 100%;
    padding: 14px 12px;

  }

  .hero-overlay h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .hero-overlay p {
    font-size: 0.98rem;
  }

  .hero-btn {
    width: 100%;
    max-width: 260px;
  }

  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 95%;
    max-width: 700px;
  }

  .resources-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow: visible;
  }

  .resources-container .card {
    width: 95%;
    max-width: 700px;
    margin: 0 0 15px 0;
    box-sizing: border-box;
    min-width: auto;
  }

  footer {
    font-size: 12px;
    padding: 10px;
  }
}