* { box-sizing: border-box; }
html { font-family: 'DM Sans', sans-serif; }
body { overflow-x: hidden; }

/* Stagger animation helpers */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* Card hover lift */
.card-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(43,100,87,0.12); }

/* Accent underline */
.border-line::after {
  content: ''; display: block; height: 3px; width: 48px;
  background: #f9c57e; border-radius: 2px; margin-top: 10px;
}

/* Navbar backdrop */
.nav-scrolled { background: rgba(255,255,255,0.96) !important; backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }

/* FAQ accordion */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-answer.open { max-height: 400px; }
.faq-icon { transition: transform 0.3s ease; }
.faq-icon.open { transform: rotate(45deg); }

/* Slider range */
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; background: #eaf1f0; border-radius: 2px; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #2b6457; border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #2b6457; margin-top: -9px;
}
input[type=range]::-moz-range-track { height: 4px; background: #eaf1f0; border-radius: 2px; }
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #2b6457; border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #2b6457;
}

/* Mobile menu */
#mobile-menu { transition: max-height 0.4s ease, opacity 0.3s ease; max-height: 0; opacity: 0; overflow: hidden; }
#mobile-menu.open { max-height: 400px; opacity: 1; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 20px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  animation: pulseGlow-wa 2.5s ease-in-out infinite;
}
@keyframes pulseGlow-wa {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%      { box-shadow: 0 4px 40px rgba(37,211,102,0.75); }
}

/* Ticker */
.ticker-wrap { overflow: hidden; }
.ticker-inner { display: flex; white-space: nowrap; animation: ticker 30s linear infinite; }

/* Number counter animation */
.counter { transition: all 0.1s; }

/* Primary button */
.btn-primary {
  background: #2b6457; color: #ffffff; font-family: 'Syne', sans-serif;
  font-weight: 700; border-radius: 8px; transition: all 0.25s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: #448474; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(43,100,87,0.25); }
.btn-primary:active { transform: translateY(0); }

/* Outline button */
.btn-outline {
  border: 1.5px solid rgba(43,100,87,0.5); color: #2b6457;
  font-family: 'Syne', sans-serif; font-weight: 700; border-radius: 8px;
  transition: all 0.25s ease; display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: #2b6457; background: rgba(43,100,87,0.05); transform: translateY(-2px); }

/* Project card */
.project-card { transition: all 0.35s ease; }
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay { opacity: 0; transition: opacity 0.35s ease; }

@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  /* O segredo: movemos exatamente 50% para a esquerda (a metade duplicada) */
  100% { transform: translateX(-50%); } 
}

.animate-ticker {
  /* 40s é o tempo da volta completa. Aumente para ficar mais lento, diminua para mais rápido */
  animation: scroll-ticker 40s linear infinite; 
}

/* Bônus de design: pausa a esteira se o usuário colocar o mouse em cima */
.ticker-wrap:hover .animate-ticker {
  animation-play-state: paused;
}