/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f7fafc;
  color: #2d3748;
  line-height: 1.6;
}

/* Header */
.header {
  background-color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 5px auto;
  padding: 0rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2563eb;
}
.logo img {
  height: 100px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: #2d3748;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #2563eb;
}

/* Hero */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  text-align: center;
  padding: 6rem 1.5rem 1.5rem;
  will-change: background-position; /* Otimiza para parallax */
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Sobreposição para legibilidade */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  background: linear-gradient(to right, #ffffff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  margin-bottom: 1rem;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3s steps(40, end) forwards;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.bold {
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(to right, #2563eb, #4f46e5);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
  background: linear-gradient(to right, #1e40af, #3730a3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Seções Gerais */
.section {
  padding: 5rem 1.5rem;
  background-color: #ffffff;
}

.section:nth-child(even) {
  background-color: #f7fafc;
}

.section-content {
  max-width: 1200px;
  margin: 0px auto;
  text-align: center;
}

.section-title {
  font-size: 2.25rem;
  letter-spacing: 0.02em;
  margin: 0 auto;
}

.section-text {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Grid de Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: linear-gradient(135deg, #f1f5f9 0%, #dbeafe 100%);
  color: #2d3748;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card.light {
  background: linear-gradient(135deg, #e2e8f0 0%, #bfdbfe 100%);
}

.grid .card:nth-child(1) { transition-delay: 0.1s; }
.grid .card:nth-child(2) { transition-delay: 0.2s; }
.grid .card:nth-child(3) { transition-delay: 0.3s; }
.grid .card:nth-child(4) { transition-delay: 0.4s; }
.grid .card:nth-child(5) { transition-delay: 0.5s; }
.grid .card:nth-child(6) { transition-delay: 0.6s; }
.grid .card:nth-child(7) { transition-delay: 0.7s; }
.grid .card:nth-child(8) { transition-delay: 0.8s; }

.card:hover {
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Parallax */
.parallax-bg {
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  padding: 2rem;
  will-change: background-position; /* Otimiza para parallax */
}

.parallax-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.parallax-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.parallax-content h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Parceiros */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  margin-top: 2rem;
}

.partners-grid img {
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
}

/* Footer */
.footer {
  background-color: #2d3748;
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #03b133;
  color: white;
  padding: 15px;
  border-radius: 50%;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.5s ease;
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  animation: none;
  transform: scale(0.9);
  background-color: #019022;
}

@keyframes pulse {
  0% { transform: scale(1); }
  10% { transform: scale(1.1); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Animações */
.animate-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.show {
  opacity: 1;
  transform: translateY(0px);
}

.partners-grid {
  overflow: hidden;
  width: 100%;
}

.partners-marquee {
  display: flex;
  flex-wrap: nowrap;
  gap: 5rem;
  animation: scroll-marquee 45s linear infinite;
}

.partners-marquee img {
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-180%);
  }
}

/* Fallback para dispositivos móveis */
@media (max-width: 768px) {
  .hero-section, .parallax-bg {
    background-attachment: scroll; /* Desativa parallax em dispositivos móveis */
  }
}