header {
  background: 
    linear-gradient(-45deg, rgba(107, 124, 110, 0.7), rgba(95, 75, 59, 0.7), rgba(142, 177, 153, 0.7), rgba(127, 100, 73, 0.7)),
    url('../img/ui/banner-natal-jb-home-essence-homepage.png') center/cover no-repeat;
  background-size: 400% 400%, cover;
  background-blend-mode: overlay;
  animation: gradient 40s ease infinite;
  min-height: 100vh;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Alterado para alinhar conteúdo na parte inferior */
  align-items: center;
  padding: 120px 20px 100px; /* Aumentei o padding inferior para os botões */
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Aumentei a opacidade para melhor contraste */
  z-index: 0;
}

header.blog-header {
  min-height: auto;
  background: #6b7c6e;
  animation: none;
  padding: 0px;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%, center;
  }
  50% {
    background-position: 100% 50%, center;
  }
  100% {
    background-position: 0% 50%, center;
  }
}

.header-content {
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding-bottom: 0px; /* Espaço extra na parte inferior */
}

.header-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

.header-content a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #000000;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #000000;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 0; /* Removido border-radius para ficar quadrado */
  transition: all 0.6s ease;
  position: relative;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  text-align: center;
}

/* Removido o efeito de gradiente anterior */
.header-content a::before {
  display: none; /* Removido o pseudo-elemento anterior */
}

.header-content a:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
  header {
    min-height: 80vh;
    padding: 100px 20px 80px;
    background-position: center center;
    justify-content: flex-end;
  }
  
  .header-content {
    padding-bottom: 60px;
  }
  
  .header-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .header-content a {
    width: 90%;
    max-width: 280px;
    padding: 12px 24px;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
  }
}

@media (max-width: 480px) {
  header {
    min-height: 70vh;
    padding: 80px 15px 70px;
  }
  
  .header-content {
    padding-bottom: 50px;
  }
  
  .header-content a {
    width: 95%;
    max-width: 250px;
    padding: 10px 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    min-width: auto;
  }
}

/* Para telas muito grandes (acima de 1920px) */
@media (min-width: 1921px) {
  header {
    background-size: 400% 400%, 100% 100%;
  }
  
  .header-content a {
    padding: 16px 36px;
    font-size: 0.95rem;
  }
}

section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}



section h5 {
  color: var(--marrom);
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
}

section p, section li, section ol {
  max-width: 800px;
  margin: auto;
  text-align: center;
  font-size: 1.1rem;
}
/* Carousel styles moved to css/quem-somos.css to keep section-specific styles separated */

/* Para tablets */
@media (max-width: 768px) {
  .header-content h1 {
    font-size: 1rem; /* Tamanho legível */
    margin-bottom: 30px;
  }
  .header-content h2 {
    font-size: 3.2rem; /* Reduzido mas ainda maior que h1 */
  }
}

/* Para celulares */
@media (max-width: 480px) {
  .header-content h1 {
    font-size: 1.1rem; /* Menor que h2 */
    margin-bottom: 20px;
  }
  .header-content h2 {
    font-size: 2.8rem; /* Maior que h1 */
  }
}