/* SavilTech — FAQ premium: amarelo #FFD60A, animações dinâmicas */

.faq--premium {
  --gold: #ffd60a;
  --gold-light: #ffeb3b;
  --gold-dark: #e6b800;
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 110px) 0;
}

.faq--premium .text-gold {
  color: #ffd60a;
  text-shadow: 0 0 36px rgba(255, 214, 10, 0.35);
}

.faq--premium .faq__glow {
  width: 520px;
  height: 520px;
  bottom: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(255, 214, 10, 0.14) 0%, transparent 68%);
  animation: faqGlowPulse 7s ease-in-out infinite;
}

@keyframes faqGlowPulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.faq__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 214, 10, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 214, 10, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 15%, transparent 72%);
  pointer-events: none;
}

.faq__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.faq__particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd60a;
  box-shadow: 0 0 10px rgba(255, 214, 10, 0.8);
  opacity: 0.35;
  animation: faqParticleFloat 12s ease-in-out infinite;
}

.faq__particles span:nth-child(1) { left: 8%; top: 18%; animation-delay: 0s; }
.faq__particles span:nth-child(2) { left: 22%; top: 62%; animation-delay: 1.5s; width: 3px; height: 3px; }
.faq__particles span:nth-child(3) { left: 45%; top: 28%; animation-delay: 3s; }
.faq__particles span:nth-child(4) { left: 68%; top: 72%; animation-delay: 0.8s; width: 5px; height: 5px; }
.faq__particles span:nth-child(5) { left: 82%; top: 35%; animation-delay: 2.2s; }
.faq__particles span:nth-child(6) { left: 92%; top: 55%; animation-delay: 4s; width: 3px; height: 3px; }

@keyframes faqParticleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.25; }
  50% { transform: translate(12px, -24px) scale(1.4); opacity: 0.65; }
}

.faq--premium .section-tag {
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.35);
  color: #ffd60a;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.faq--premium .section-header:hover .section-tag {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(255, 214, 10, 0.25);
}

.faq--premium .section-title {
  background: linear-gradient(135deg, #fff 0%, #fff 50%, #ffd60a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.faq--premium .faq__grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.faq--premium .faq__columns {
  gap: clamp(16px, 2.5vw, 28px);
}

/* Accordion items */
.faq--premium .faq-item {
  position: relative;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 214, 10, 0.12);
  border-radius: 18px;
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: faqItemIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--faq-i, 0) * 0.07s + 0.1s);
}

@keyframes faqItemIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 214, 10, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.faq-item__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffd60a, #e6b800);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
  box-shadow: 0 0 16px rgba(255, 214, 10, 0.6);
}

.faq--premium .faq-item:hover,
.faq--premium .faq-item.is-hovered {
  border-color: rgba(255, 214, 10, 0.4);
  transform: translateX(6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 214, 10, 0.1);
}

.faq--premium .faq-item:hover .faq-item__glow,
.faq--premium .faq-item.is-hovered .faq-item__glow,
.faq--premium .faq-item.is-open .faq-item__glow {
  opacity: 1;
}

.faq--premium .faq-item.is-open {
  border-color: rgba(255, 214, 10, 0.55);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(255, 214, 10, 0.15);
  transform: translateX(8px);
}

.faq--premium .faq-item.is-open .faq-item__accent {
  transform: scaleY(1);
}

.faq--premium .faq-item__trigger {
  position: relative;
  z-index: 1;
  padding: 18px 20px;
  transition: background 0.3s ease;
}

.faq--premium .faq-item__trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 214, 10, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.faq--premium .faq-item:hover .faq-item__trigger::after,
.faq--premium .faq-item.is-open .faq-item__trigger::after {
  opacity: 1;
}

.faq--premium .faq-item__trigger:hover {
  background: rgba(255, 214, 10, 0.04);
}

.faq--premium .faq-item__icon {
  background: rgba(255, 214, 10, 0.1) !important;
  border: 1px solid rgba(255, 214, 10, 0.25);
  color: #ffd60a !important;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease;
}

.faq--premium .faq-item:hover .faq-item__icon {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 0 20px rgba(255, 214, 10, 0.3);
}

.faq--premium .faq-item.is-open .faq-item__icon {
  background: linear-gradient(135deg, #ffd60a, #e6b800) !important;
  color: #0a0a0a !important;
  transform: scale(1.12) rotate(0deg);
  box-shadow: 0 0 28px rgba(255, 214, 10, 0.45);
}

.faq--premium .faq-item__question {
  transition: color 0.3s ease, transform 0.35s ease;
}

.faq--premium .faq-item:hover .faq-item__question,
.faq--premium .faq-item.is-open .faq-item__question {
  color: #ffd60a;
}

.faq--premium .faq-item__toggle {
  background: rgba(255, 214, 10, 0.08) !important;
  border: 1px solid rgba(255, 214, 10, 0.2);
  color: #ffd60a !important;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.faq--premium .faq-item:hover .faq-item__toggle {
  box-shadow: 0 0 16px rgba(255, 214, 10, 0.25);
  transform: scale(1.08);
}

.faq--premium .faq-item.is-open .faq-item__toggle {
  transform: rotate(45deg) scale(1.1) !important;
  background: #ffd60a !important;
  color: #0a0a0a !important;
  box-shadow: 0 0 20px rgba(255, 214, 10, 0.5);
}

.faq--premium .faq-item__panel {
  transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq--premium .faq-item__answer {
  padding: 0 20px 20px 76px;
  border-top: 1px solid rgba(255, 214, 10, 0.08);
  margin-top: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.faq--premium .faq-item.is-open .faq-item__answer {
  opacity: 1;
  transform: translateY(0);
  animation: faqAnswerIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes faqAnswerIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq--premium .faq-item__answer p {
  position: relative;
  padding-left: 12px;
}

.faq--premium .faq-item__answer p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd60a;
  box-shadow: 0 0 8px rgba(255, 214, 10, 0.8);
}

/* CTA lateral */
.faq--premium .faq__aside {
  max-width: none;
  margin: 0;
  position: sticky;
  top: 100px;
}

.faq--premium .faq__cta {
  --cta-tilt-x: 0deg;
  --cta-tilt-y: 0deg;
  position: relative;
  padding: 36px 28px;
  background: linear-gradient(160deg, rgba(255, 214, 10, 0.1) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.85) 100%);
  border: 1px solid rgba(255, 214, 10, 0.3);
  border-radius: 24px;
  overflow: hidden;
  transform: perspective(800px) rotateX(var(--cta-tilt-x)) rotateY(var(--cta-tilt-y));
  transition: transform 0.35s ease, box-shadow 0.45s ease, border-color 0.35s ease;
}

.faq--premium .faq__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg at 50% 50%, transparent, rgba(255, 214, 10, 0.12), transparent 30%);
  animation: faqCtaSpin 8s linear infinite;
  pointer-events: none;
}

@keyframes faqCtaSpin {
  to { transform: rotate(360deg); }
}

.faq--premium .faq__cta:hover {
  transform: perspective(800px) rotateX(var(--cta-tilt-x)) rotateY(var(--cta-tilt-y)) translateY(-8px) scale(1.02);
  border-color: rgba(255, 214, 10, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(255, 214, 10, 0.15);
}

.faq__cta-rings {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  pointer-events: none;
}

.faq__cta-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 214, 10, 0.25);
  border-radius: 50%;
  animation: faqRingPulse 3s ease-out infinite;
}

.faq__cta-rings span:nth-child(2) {
  animation-delay: 1.5s;
}

@keyframes faqRingPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.faq--premium .faq__cta-icon {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #ffd60a, #e6b800) !important;
  color: #0a0a0a !important;
  box-shadow: 0 0 40px rgba(255, 214, 10, 0.4);
  animation: faqIconFloat 4s ease-in-out infinite;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.faq--premium .faq__cta:hover .faq__cta-icon {
  animation: none;
  transform: scale(1.12) rotate(-8deg);
  box-shadow: 0 0 56px rgba(255, 214, 10, 0.55);
}

@keyframes faqIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.faq--premium .faq__cta h3,
.faq--premium .faq__cta p {
  position: relative;
  z-index: 1;
}

.faq--premium .faq__cta h3 {
  color: #ffffff;
}

.faq--premium .faq__cta-btn {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #ffd60a, #e6b800) !important;
  color: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  font-weight: 700;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease;
}

.faq__cta-btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
}

.faq--premium .faq__cta-btn:hover .faq__cta-btn-shine {
  transform: translateX(130%);
}

.faq--premium .faq__cta-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 36px rgba(255, 214, 10, 0.4) !important;
}

.faq--premium .faq__cta-btn i {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq--premium .faq__cta-btn:hover i {
  transform: scale(1.15);
}

/* WhatsApp — amarelo (sem verde) */
.faq--premium .faq__cta-btn--alt {
  background: rgba(0, 0, 0, 0.5) !important;
  color: #ffd60a !important;
  border: 1px solid rgba(255, 214, 10, 0.45) !important;
}

.faq--premium .faq__cta-btn--alt:hover {
  background: rgba(255, 214, 10, 0.12) !important;
  color: #ffeb3b !important;
  border-color: #ffd60a !important;
  box-shadow: 0 12px 36px rgba(255, 214, 10, 0.25) !important;
}

.faq--premium .faq__cta-btn--whatsapp,
.faq--premium .faq__cta-btn--whatsapp:hover {
  background: linear-gradient(135deg, #ffd60a, #e6b800) !important;
  color: #0a0a0a !important;
  box-shadow: 0 12px 36px rgba(255, 214, 10, 0.4) !important;
}

@media (max-width: 1100px) {
  .faq--premium .faq__grid {
    grid-template-columns: 1fr;
  }

  .faq--premium .faq__aside {
    position: static;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .faq--premium .faq__columns {
    grid-template-columns: 1fr;
  }

  .faq--premium .faq-item:hover,
  .faq--premium .faq-item.is-open {
    transform: none;
  }

  .faq--premium .faq-item__answer {
    padding-left: 20px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq--premium .faq-item,
  .faq__particles span,
  .faq--premium .faq__cta-icon,
  .faq__cta-rings span,
  .faq--premium .faq__cta::before {
    animation: none;
  }

  .faq--premium .faq-item:hover,
  .faq--premium .faq-item.is-open {
    transform: none;
  }
}
