/**
 * FAQ — BRUXÃO MENU (cabeçalho premium + accordion)
 */

.faq-section {
  position: relative;
  padding: 5.5rem 0 4rem;
  background: transparent;
  font-family: "Inter", "Poppins", system-ui, sans-serif;
  overflow: hidden;
}

.faq-section__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.faq-section__grid-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(hsl(var(--primary) / 0.09) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--primary) / 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, #000 12%, transparent 82%);
  opacity: 0.5;
}

.faq-section__particles {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    radial-gradient(circle, #a855f7 1px, transparent 1px),
    radial-gradient(circle, hsl(var(--primary) / 0.4) 1px, transparent 1px);
  background-size: 120px 120px, 180px 180px;
  background-position: 0 0, 60px 40px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, #000 18%, transparent 78%);
}

.faq-section__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.faq-section__glow--left {
  width: 28rem;
  height: 28rem;
  top: 6%;
  left: -10%;
  background: radial-gradient(circle, #a855f7 0%, hsl(var(--primary) / 0.35) 40%, transparent 70%);
}

.faq-section__glow--right {
  width: 32rem;
  height: 32rem;
  bottom: 0;
  right: -8%;
  background: radial-gradient(circle, hsl(var(--primary) / 0.32), transparent 70%);
}

.faq-section__glow--top {
  width: 40rem;
  height: 16rem;
  top: -4rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  background: radial-gradient(ellipse, hsl(var(--primary) / 0.28), transparent 72%);
}

.faq-section__inner {
  position: relative;
  z-index: 1;
}

.faq-section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 0 auto 4rem;
}

.faq-section__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c084fc;
  background: rgb(124 58 237 / 0.12);
  border: 1px solid #a855f7;
  box-shadow:
    0 0 0 1px rgb(168 85 247 / 0.12) inset,
    0 0 28px rgb(168 85 247 / 0.28);
}

.faq-section__title {
  margin: 0 0 1.5rem;
  width: 100%;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.15rem, 6.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-align: center;
}

@media (min-width: 1024px) {
  .faq-section__title {
    font-size: clamp(3.5rem, 4vw, 4.5rem);
  }
}

.faq-section__title-accent {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 52%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgb(168 85 247 / 0.45));
}

.faq-section__title-plain {
  color: #ffffff;
}

.faq-section__lead {
  margin: 0 auto;
  max-width: 43.75rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: #a1a1aa;
}

.faq-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.faq-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.faq-item {
  border-radius: 0.85rem;
  border: 1px solid hsl(var(--primary) / 0.22);
  background: rgb(var(--muted-solid) / 0.55);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: hsl(var(--primary) / 0.38);
}

.faq-item[open] {
  border-color: hsl(var(--primary) / 0.45);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.04),
    0 8px 28px rgb(0 0 0 / 0.28),
    0 0 24px hsl(var(--primary) / 0.1);
}

.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item__trigger::-webkit-details-marker {
  display: none;
}

.faq-item__trigger::marker {
  content: "";
}

.faq-item__question {
  font-family: "Kanit", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: hsl(var(--foreground));
  text-align: left;
  line-height: 1.35;
}

.faq-item__chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.12);
  transition: transform 0.25s ease, background 0.2s ease;
}

.faq-item[open] .faq-item__chevron {
  transform: rotate(180deg);
  background: hsl(var(--primary) / 0.2);
}

.faq-item__body {
  padding: 0 1.15rem 1.1rem;
}

.faq-item__answer {
  margin: 0;
  padding-top: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgb(var(--muted-foreground));
  border-top: 1px solid rgb(var(--border));
}

.faq-section__cta {
  margin: 2rem auto 0;
  max-width: 72rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

.faq-section__cta-link {
  display: inline;
  margin-left: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: hsl(var(--primary));
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.faq-section__cta-link:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 3.75rem 0 3rem;
  }

  .faq-section__head {
    margin-bottom: 2.5rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

@media (max-width: 640px) {
  .faq-item__trigger {
    padding: 0.9rem 1rem;
  }

  .faq-item__body {
    padding: 0 1rem 1rem;
  }

  .faq-item__question {
    font-size: 0.9rem;
  }
}
