/* Forje Prime v5 - Non-Critical CSS */
/* Carregado de forma assíncrona após o inline critical */

/* ===== GLOW EFFECTS (desktop only, non-critical) ===== */
.glow-effect{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:80%;height:80%;background:radial-gradient(circle,rgba(201,169,97,.3),transparent 70%);filter:blur(40px);animation:glowPulse 3s infinite;will-change:opacity}
@keyframes glowPulse{0%,100%{opacity:.5}50%{opacity:1}}
.team-glow{position:absolute;top:-10px;left:-10px;right:-10px;bottom:-10px;background:radial-gradient(circle,rgba(201,169,97,.3),transparent 70%);border-radius:50%;animation:rotate 10s linear infinite;z-index:-1;will-change:transform}
@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}

/* ===== RESPONSIVE ===== */
@media(max-width:992px){
  .solution-grid,.team-grid,.footer-grid{grid-template-columns:1fr}
  .niches-carousel-track{grid-template-columns:repeat(2,1fr)}
  .services-grid{grid-template-columns:1fr}
  .solution-card.featured{transform:scale(1)}
  .solution-card.featured:hover{transform:scale(1) translateY(-10px)}
  .process-timeline{flex-direction:column}
  .process-arrow{transform:rotate(90deg);animation:pulseArrowVertical 2s infinite}
  @keyframes pulseArrowVertical{0%,100%{opacity:.5;transform:rotate(90deg) translateX(0)}50%{opacity:1;transform:rotate(90deg) translateX(10px)}}
  .pain-grid{display:flex;flex-direction:column;gap:40px}
  .pain-visual.mobile-first{display:block;order:-1;margin-bottom:20px}
  .pain-visual.desktop-only{display:none}
  .pain-content{order:1}
  .pain-points{margin-top:20px}
  .section-title{font-size:1.8rem}
  .cta-content h2{font-size:2rem}
  .results-grid{grid-template-columns:1fr}
}

@media(max-width:768px){
  .niches-carousel-wrapper{position:relative;margin-top:40px;width:100%;overflow:hidden}
  .niches-carousel-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;padding:10px 0 30px;margin-top:0;scrollbar-width:none;-ms-overflow-style:none}
  .niches-carousel-track::-webkit-scrollbar{display:none}
  .niche-item{min-width:75%;max-width:280px;flex-shrink:0;scroll-snap-align:center;padding:28px 20px;margin:0}
  .niche-item:hover{transform:none;box-shadow:none}
  .niche-icon{width:56px;height:56px}
  .carousel-dots{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:10px}
  .carousel-dot{width:8px;height:8px;border-radius:50%;background:rgba(201,169,97,.3);border:none;cursor:pointer;transition:all .3s ease;padding:0}
  .carousel-dot.active{background:#C9A961;box-shadow:0 0 10px rgba(201,169,97,.5);transform:scale(1.2)}
  .team-grid{gap:40px}
  .whatsapp-float{width:50px;height:50px;bottom:20px;right:20px}
}

/* ===== MOBILE PERFORMANCE: Disable heavy animations ===== */
@media(max-width:768px){
  .glow-effect{display:none}
  .team-glow{display:none}
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .glow-effect, .team-glow { display: none; }
}