:root {
  --player-height: 400px; /* ajuste conforme necessário */
  --primary-color: #003366;
  --secondary-color: #B3A200;
  --accent-color: #FFCC00;
  --text-color: #EEEEEE;
  --background-color: #111111;
  --light-gray: #333333;
  --dark-gray: #000000;
  /* --black-color removida por ser redundante */
  --whatsapp-green: #25D366;
}

body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

header.navbar {
  position: fixed; /* NOVO */
  top: 0;           /* NOVO */
  left: 0;          /* NOVO */
  width: 100%;      /* NOVO */
  z-index: 1000;    /* NOVO */
 }

header.navbar span {
  color: white;
  display: inline-block;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-weight: bold;
  will-change: transform; /* Melhora a performance da animação */
}

@keyframes marquee {
  0% {
    transform: translateX(260%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: #006644;
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
}

.hero {
  background-color: var(--dark-gray);
  color: white;
  text-align: center;
  padding: 0;
  height: auto;
  transition: transform 0.3s;
}

/* Adiciona espaçamento para telas menores */
@media (max-width: 768px) {
  .hero {
    padding: 2rem;
  }
}

.swiper-container {
  width: 100%;
  height: auto;
  position: relative;
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-size: cover;
  background-position: center;
}

.swiper-slide img {
  width: 100%;
  height: auto;
}

.swiper-pagination {
  bottom: 10px;
}

/* Consolidado: removida a declaração duplicada e mantendo o estilo desejado */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color);
  width: 44px;
  height: 44px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-prev {
  left: 10px;
}

.swiper-button-next {
  right: 10px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: var(--accent-color);
}

.featured-products {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: var(--light-gray);
}

.product-card {
  color: #222222;
  background-color: #E6F7FF;
  border: 2px solid #B3E5FC;
  border-radius: 0.75rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
  padding: 1.5rem;
  max-width: 100%;
  box-sizing: border-box;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-card img {
  border-radius: 0.75rem;
  height: auto;
  object-fit: cover;
  margin-bottom: 1rem;
  width: 100%;
}

@media (max-width:768px) {
  .product-card img {
    width: 90%;
    height: auto;
    margin: 0 auto 1rem;
  }
  .product-card {
    padding: 1rem;
  }
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.testimonials {
  background-color: var(--light-gray);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.testimonials .grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.testimonial-card {
  background-color: #E6F7FF;
  color: #222222;
  border: 2px solid #B3E5FC;
  border-radius: 0.75rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: left;
  padding: 1.5rem;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  background-color: #D0EFFF;
}

.testimonial-card p {
  color: #222222;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.testimonial-card .font-semibold {
  font-weight: 600;
  font-size: 1.125rem;
  color: #222222;
}

footer {
  background-color: var(--dark-gray);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

footer h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  color: var(--accent-color);
}

.footer-icon {
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease;
}

.footer-icon:hover {
  transform: scale(1.25);
}

footer .flex.space-x-4 {
  gap: 20px;
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.whatsapp-button {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background-color: var(--whatsapp-green);
  color: white;
  border-radius: 50%;
  padding: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #128C7E;
  transform: translateY(-5px);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-button svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
}

.contact-us {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.whatsapp-icon {
  width: 48px;
  height: 48px;
  fill: currentColor;
}

@media (min-width: 1024px) {
  .videos-swiper .swiper-button-next,
  .videos-swiper .swiper-button-prev {
    display: block;
  }
}

.videos-section {
  min-height: calc(var(--player-height) * 1.2);
}

.video-player {
  width: 83.33%;
  max-width: 360px;
  height: var(--player-height);
  margin: 0 auto 40px auto; /* Topo 0, esquerda e direita auto, inferior 40px */
  position: relative;
}

  
.video-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* exibe o vídeo inteiro, sem cortes */
}

/* Cursor de mão e zoom suave em banners clicáveis */
.swiper-slide a {
  cursor: pointer;
  display: block;
}

.swiper-slide a picture,
.swiper-slide a img {
  transition: transform 0.3s ease;
}

.swiper-slide a:hover picture,
.swiper-slide a:hover img {
  transform: scale(1.03);
}



.anchor-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 2rem;
}

.anchor-menu li a {
  font-size: 1.25rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.anchor-menu li a:hover {
  color: var(--accent-color);
}

/* FIXA O HEADER COMPLETO NO TOPO (inclui a navbar e o menu) */
header.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--accent-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ESTILO DO MENU DENTRO DO HEADER */
.anchor-menu {
  background-color: var(--dark-gray);
  padding: 1rem 0;
  text-align: center;
}

/* GARANTE ESPAÇO PARA O HEADER FIXO */
main {
  padding-top: 140px; /* Ajuste se o header for maior ou menor */
}

#inicio {
  scroll-margin-top: 140px; /* mesma altura do header fixo */
}
