/* ============================================
   FAQ SECTION - DESIGN DARK PREMIUM
   ============================================ */

/* --- Container Principal --- */
.faq {
  padding: 80px 0;
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
}

/* --- Cabeçalho --- */
.faq-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.faq-header .section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.title-accent {
  font-size: 14px;
  letter-spacing: 4px;
  color: #ff0015;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(230, 57, 70, 0.1);
  padding: 5px 20px;
  border-radius: 20px;
  border: 1px solid rgb(255, 0, 21);
}

.title-main {
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-subtitle {
  color: #666666;
  font-size: 18px;
  margin-top: 10px;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Categorias --- */
.faq-categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.category-btn {
  padding: 12px 28px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: #666666;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.category-btn:hover {
  border-color: rgba(230, 57, 70, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
}

.category-btn:hover i {
  transform: rotate(10deg) scale(1.1);
}

.category-btn.active {
  background: linear-gradient(135deg, #ff0015, #be1111);
  color: #ffffff;
  box-shadow: 0 10px 40px rgba(230, 57, 70, 0.2);
}

.category-btn.active i {
  color: #ffffff;
}

/* --- Container FAQ --- */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- Lista de Perguntas --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================
   ITEM INDIVIDUAL - COM BORDER DIVIDER
   ============================================ */

.faq-item {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.faq-item:hover {
  border-color: rgba(230, 57, 70, 0.15);
  background: #0d0d0d;
}

/* Quando ativo, muda a borda geral */
.faq-item.active {
  background: #0d0d0d;
  box-shadow: 0 5px 30px rgba(230, 57, 70, 0.05);
}

/* --- BORDER DIVIDER (aparece só quando expandido) --- */
.faq-item .faq-divider {
  height: 0;
  width: 0;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, #ff0015, transparent);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  border-radius: 2px;
}

/* Divider aparece quando ativo */
.faq-item.active .faq-divider {
  height: 2px;
  width: 85%;
  opacity: 1;
  margin: 0 auto;
}

/* --- Pergunta --- */
.faq-question {
  background-color: #120909;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  cursor: pointer;
  user-select: none;
  transition: padding 0.3s ease;
  gap: 20px;
}

/* Quando ativo, reduz o padding inferior para dar espaço ao divider */
.faq-item.active .faq-question {
  padding-bottom: 18px;
}

.faq-question-content {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.faq-question-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: rgba(255, 0, 21, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff0015;
  font-size: 15px;
  transition: all 0.4s ease;
}

.faq-item.active .faq-question-icon {
  background: #ff0015;
  color: #ffffff;
  transform: scale(1.05);
}

.faq-question-text {
  color: #e8e8e8;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.faq-item.active .faq-question-text {
  color: #ffffff;
}

/* Ícone de expansão */
.faq-toggle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  color: #444444;
}

.faq-item:hover .faq-toggle {
  background: rgba(255, 255, 255, 0.06);
  color: #888888;
}

.faq-item.active .faq-toggle {
  background: #ff0015;
  color: #ffffff;
  transform: rotate(180deg);
}

.faq-toggle i {
  font-size: 14px;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --- Resposta --- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Quando ativo, a resposta aparece com delay para o divider aparecer primeiro */
.faq-item.active .faq-answer {
  max-height: 600px;
  transition-delay: 0.1s;
}

.faq-answer-inner {
  padding: 20px 28px 24px 28px;
  color: #888888;
  font-size: 15px;
  line-height: 1.8;
}

/* Anima a entrada da resposta */
.faq-item.active .faq-answer-inner {
  animation: fadeAnswerIn 0.5s ease forwards;
  opacity: 0;
}

@keyframes fadeAnswerIn {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer-inner strong {
  color: #ffffff;
  font-weight: 700;
}

.faq-answer-inner ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 5px 0;
}

.faq-answer-inner ul li {
  padding: 6px 0;
  padding-left: 28px;
  position: relative;
  color: #888888;
}

.faq-answer-inner ul li::before {
  content: '▸';
  position: absolute;
  left: 6px;
  color: #ff0015;
  font-weight: bold;
  font-size: 16px;
}

/* --- Estado Vazio --- */
.faq-empty {
  text-align: center;
  padding: 60px 20px;
  color: #555555;
}

.faq-empty i {
  font-size: 48px;
  color: #2a2a2a;
  margin-bottom: 15px;
  display: block;
}

.faq-empty p {
  font-size: 16px;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
  .faq-container {
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .faq {
    padding: 50px 0;
  }

  .faq-categories {
    gap: 10px;
    padding: 0 10px;
  }

  .category-btn {
    padding: 10px 18px;
    font-size: 12px;
    flex: 1;
    justify-content: center;
    min-width: 70px;
  }

  .category-btn span {
    display: none;
  }

  .faq-question {
    padding: 16px 18px;
  }

  .faq-item.active .faq-question {
    padding-bottom: 14px;
  }

  .faq-question-text {
    font-size: 14px;
  }

  .faq-answer-inner {
    padding: 16px 18px 18px 18px;
    font-size: 14px;
  }

  .faq-answer-inner ul li {
    padding-left: 22px;
  }

  .faq-answer-inner ul li::before {
    left: 2px;
  }

  .title-main {
    font-size: 28px;
  }

  .faq-subtitle {
    font-size: 15px;
    padding: 0 20px;
  }

  .faq-question-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 13px;
  }

  .faq-toggle {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  /* Divider mais estreito no mobile */
  .faq-item.active .faq-divider {
    width: 75%;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .faq-categories {
    gap: 6px;
    padding: 0 5px;
  }

  .category-btn {
    padding: 8px 12px;
    font-size: 11px;
    min-width: 55px;
  }

  .category-btn i {
    font-size: 13px;
  }

  .faq-question {
    padding: 14px 14px;
  }

  .faq-item.active .faq-question {
    padding-bottom: 12px;
  }

  .faq-question-text {
    font-size: 13px;
  }

  .faq-answer-inner {
    padding: 12px 14px 14px 14px;
    font-size: 13px;
  }

  .title-main {
    font-size: 24px;
  }

  .title-accent {
    font-size: 12px;
    padding: 4px 14px;
  }

  .faq-item.active .faq-divider {
    width: 65%;
  }
}