/* --- Variáveis de Cor (Baseadas no seu logo) --- */
:root {
  --cor-fundo: #111111; /* Preto (do fundo do logo) */
  --cor-laranja: #FFA500; /* Laranja (do logo) */
  --cor-amarelo: #FFD700; /* Amarelo (das batatas) */
  --cor-texto: #f4f4f4;
  --fonte-principal: 'Montserrat', sans-serif;
}

/* --- Reset e Configurações Globais --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* Habilita o scroll suave */
}

body {
  font-family: var(--fonte-principal);
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--cor-laranja);
  margin-bottom: 1.5rem;
  text-align: center;
}

section {
  padding: 5rem 0;
}

.btn {
  display: inline-block;
  background-color: var(--cor-laranja);
  color: var(--cor-fundo);
  font-weight: 700;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--cor-amarelo);
}

/* --- Navbar --- */
.navbar {
  background-color: rgba(17, 17, 17, 0.7); /* Fundo semi-transparente */
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  border-bottom: 2px solid var(--cor-laranja);
  transition: background-color 0.4s ease-out;
}

.navbar.scrolled {
  background-color: rgba(17, 17, 17, 0.98);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 55px;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--cor-laranja);
}

.navbar .nav-links {
  display: flex;
  list-style: none;
}

.navbar .nav-links li {
  margin-left: 1.5rem;
}

.navbar .nav-links a {
  color: var(--cor-texto);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
  color: var(--cor-laranja);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px; /* Compensa a navbar fixa */
  position: relative;
  overflow: hidden;
}

/* Vídeo de fundo do Hero */
.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 0;
}

/* Overlay escuro sobre o vídeo */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

/* Container do conteúdo acima do overlay */
.hero .container {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 3.5rem;
}

.hero h3 {
  font-size: 2.5rem;
  color: var(--cor-amarelo);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ======================================= */
/* ✅ SEÇÃO "SOBRE NÓS" (Mantida)         */
/* ======================================= */
.sobre {
  background-color: #1a1a1a;
}

.sobre .container {
  /* Regras de max-width e text-align removidas */
}

.sobre-content {
  display: flex;
  align-items: center;
  gap: 3rem; 
  margin-top: 2.5rem; 
}

.sobre-image {
  flex: 1; 
}

.sobre-image img {
  width: 100%;
  max-width: 450px; 
  height: auto;
  border-radius: 8px; 
}

.sobre-text {
  flex: 1; 
  text-align: left; 
}

.sobre-text h3 {
  font-size: 1.8rem;
  color: var(--cor-amarelo);
  margin-bottom: 1rem;
  font-weight: 700;
}

.sobre-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ======================================= */
/* ✅ NOVOS ESTILOS - SEÇÃO SABORES (MINI-HERO) */
/* ======================================= */
.sabores {
  position: relative; /* Âncora para o vídeo e overlay */
  overflow: hidden; /* Garante que o vídeo não vaze */
  
  /* Altura retangular (menor que 100vh do hero) */
  height: 60vh; 
  min-height: 450px; /* Altura mínima para mobile */
  
  padding: 0; /* Remove o padding padrão da 'section' */

  /* Centraliza o conteúdo de texto */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sabores-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  /* Atrás do overlay */
  object-fit: cover;
  z-index: 0;
}

/* Overlay escuro (igual ao do Hero) */
.sabores::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45); 
  z-index: 1; /* Entre o vídeo e o texto */
}

/* Container do texto (para garantir que fique na frente) */
.sabores-content-overlay {
  position: relative;
  z-index: 2;
  max-width: 800px; /* Limita a largura do texto */
}

/* Estiliza o H3 "Sinta a Crocância" (baseado no H3 do Hero) */
.sabores-content-overlay h3 {
  font-size: 2.5rem;
  color: var(--cor-amarelo);
  margin-bottom: 1rem;
}

/* Estiliza os parágrafos (baseado no P do Hero) */
.sabores-content-overlay p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
/* ======================================= */
/* FIM DOS NOVOS ESTILOS                 */
/* ======================================= */


/* --- Contato --- */
.contato {
  background-color: #1a1a1a;
}

.contato .container {
  max-width: 700px;
  text-align: center;
}

.contact-form {
  margin-top: 2rem;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #555;
  background-color: #222;
  color: var(--cor-texto);
  border-radius: 5px;
  font-family: var(--fonte-principal);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cor-laranja);
}

/* Estilos para mensagem de erro */
.error-message {
  display: block;
  color: #ff4444;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  min-height: 1.2rem;
}

.form-group input.invalid {
  border-color: #ff4444;
}

.form-group input.valid {
  border-color: #44ff44;
}

/* --- Rodapé --- */
.footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

.footer p {
  margin-bottom: 0.5rem;
}

/* --- Responsividade (Mobile) --- */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
  }

  .logo-container {
    margin-bottom: 1rem;
  }

  .navbar .nav-links li {
    margin: 0 0.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero h3 {
    font-size: 1.8rem;
  }

  /* ✅ ADIÇÕES RESPONSIVAS PARA "SOBRE NÓS" */
  .sobre-content {
    flex-direction: column; /* Coloca a imagem em cima do texto */
    gap: 2rem;
    text-align: center; /* Centraliza no mobile */
  }

  .sobre-text {
    text-align: center; /* Garante que o texto fique centralizado no mobile */
  }

  .sobre-image img {
    max-width: 350px; /* Limita o tamanho da imagem no mobile */
  }
  /* FIM DAS ADIÇÕES RESPONSIVAS */

  /* ================================================ */
  /* ✅ ADIÇÕES RESPONSIVAS PARA "SABORES" (MINI-HERO) */
  /* ================================================ */
  .sabores {
    height: 70vh; /* Aumenta um pouco a altura no mobile */
    min-height: 400px;
  }
  
  .sabores-content-overlay h3 {
    font-size: 1.8rem; /* Reduz o H3 no mobile (igual ao hero) */
  }
  
  .sabores-content-overlay p {
    font-size: 1rem; /* Reduz um pouco o parágrafo no mobile */
  }
  /* ======================================= */
  /* FIM DAS ADIÇÕES RESPONSIVAS           */
  /* ======================================= */
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.whatsapp-float img {
  width: 32px;
  height: 32px;
  filter: invert(1);
}
.whatsapp-float:hover {
  transform: scale(1.05);
}


/* Carousel Styles */
.carousel-container {
  position: relative;
  overflow: hidden;
}
.carousel-wrapper {
  display: flex;
  transition: transform .5s ease;
}
.carousel-slide {
  min-width: 100%;
  position: relative;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 3;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }


/* Fix video aspect in sabores carousel */
#sabores video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Round carousel arrows */
.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}


/* FORCE FULL SECTION HEIGHT */
#sabores {
  height: 100vh !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* each slide full viewport */
.carousel-slide {
  height: 100vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#sabores video {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}


/* adjust hero to 75vh and centered text */
#sabores {
  height: 75vh !important;
}
.carousel-slide {
  height: 75vh !important;
  position: relative;
}
#sabores .text-area, #sabores h2, #sabores p {
  align-self: center;
}



/* vidro negro obrigatório */
.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 1;
}
.sabores-content-overlay, .sabores-content-overlay * {
  position: relative;
  z-index: 3 !important;
}

/* === FIX: vidro por slide, sem blur e sem bug de empilhamento === */
.sabores::after { 
  display: none !important; 
} /* desativa overlay do section que cobria o texto após navegação */
.carousel-slide { 
  position: relative; 
  z-index: 0; 
}
.carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* vidro negro */
  z-index: 1;
  pointer-events: none; /* não bloqueia cliques nos botões */
}
.sabores-content-overlay, .sabores-content-overlay * {
  position: relative;
  z-index: 3 !important; /* garante texto acima do vidro */
}
.sabores-bg-video { 
  z-index: 0 !important; 
} /* vídeo sempre no fundo */
/* botões sempre acima de tudo */
.carousel-btn { 
  z-index: 4 !important; 
}
