/* ═══════════════════════════════════════════════
   FAQ — Perguntas Frequentes
   ═══════════════════════════════════════════════ */

.faq-main {
  padding: 100px 0 60px;
  min-height: 100vh;
  background: var(--bg);
}

/* Hero */
.faq-hero {
  text-align: center;
  margin-bottom: 40px;
}
.faq-hero-icon {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 12px;
}
.faq-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
}
.faq-hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.faq-search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}
.faq-search-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 14px;
}
.faq-search {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.faq-search:focus {
  outline: none;
  border-color: var(--primary);
}

/* Category tabs */
.faq-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}
.faq-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.faq-cat:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.faq-cat.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.faq-cat i { font-size: 12px; }

/* Section */
.faq-section {
  margin-bottom: 32px;
}
.faq-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.faq-section-title i {
  color: var(--primary);
  font-size: 16px;
}

/* FAQ item */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover {
  border-color: #cbd5e1;
}

/* Question button */
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 12px;
}
.faq-q:hover {
  color: var(--primary);
}
.faq-arrow {
  font-size: 12px;
  color: var(--text-secondary);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

/* Answer */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}
.faq-item.open .faq-a {
  max-height: 800px;
  padding: 0 20px 20px;
}
.faq-a p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.faq-a ul, .faq-a ol {
  margin: 0 0 10px;
  padding-left: 20px;
}
.faq-a li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.faq-a strong {
  color: var(--text);
}
.faq-a code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary-dark);
}

/* Table inside FAQ */
.faq-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 13px;
}
.faq-table th {
  background: #f8fafc;
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.faq-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

/* Gravity badges */
.faq-grav {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  display: inline-block;
}
.faq-grav.leve { background: #dbeafe; color: #1d4ed8; }
.faq-grav.media { background: #fef3c7; color: #b45309; }
.faq-grav.grave { background: #ffedd5; color: #c2410c; }
.faq-grav.gravissima { background: #fee2e2; color: #dc2626; }

/* Status badges in FAQ */
.faq-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  display: inline-block;
  white-space: nowrap;
}
.faq-badge.yellow { background: #fef3c7; color: #b45309; }
.faq-badge.blue { background: #dbeafe; color: #1d4ed8; }
.faq-badge.green { background: #d1fae5; color: #065f46; }
.faq-badge.green-strong { background: #15803d; color: #fff; }
.faq-badge.red { background: #fee2e2; color: #dc2626; }

/* Note box */
.faq-note {
  background: #f0fdf4;
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin-top: 8px;
}
.faq-note i {
  color: var(--primary);
  margin-right: 4px;
}

/* Empty state */
.faq-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 16px;
}
.faq-empty i {
  font-size: 40px;
  opacity: 0.3;
}

/* CTA */
.faq-cta {
  text-align: center;
  margin-top: 40px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.faq-cta-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 12px;
}
.faq-cta h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.faq-cta p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 20px;
}
.faq-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.faq-cta-btn.email {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.faq-cta-btn.email:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.faq-cta-btn.suporte {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}
.faq-cta-btn.suporte:hover {
  background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .faq-main { padding-top: 80px; }
  .faq-hero-title { font-size: 24px; }
  .faq-hero-sub { font-size: 14px; }
  .faq-cats { gap: 6px; }
  .faq-cat { padding: 6px 12px; font-size: 12px; }
  .faq-q { padding: 14px 16px; font-size: 14px; }
  .faq-a { padding: 0 16px; }
  .faq-item.open .faq-a { padding: 0 16px 16px; }
  .faq-cta { padding: 24px 16px; }
}
