/* ================================================================
   FAQ SECTION — Tabbed categories, accordion items
   Mobile-first. Uses var(--vc-*) tokens exclusively.
   ================================================================ */

/* ----------------------------------------------------------------
   1. SECTION CONTAINER
   ---------------------------------------------------------------- */

.faq-section {
  padding: var(--sp-24) 0;
}

/* ----------------------------------------------------------------
   2. FAQ TABS
   ---------------------------------------------------------------- */

.faq-tabs {
  display: flex;
  gap: var(--sp-1);
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid var(--vc-border-subtle);
  margin-bottom: var(--sp-10);
  padding-bottom: var(--sp-1);
}

.faq-tab {
  background: none;
  border: none;
  padding: var(--sp-3) var(--sp-4);
  font-size: 13px;
  color: var(--vc-text-tertiary);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-fast);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.faq-tab:hover {
  color: var(--vc-text-secondary);
}

.faq-tab.active {
  color: var(--vc-text-primary);
  position: relative;
}

.faq-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--vc-accent);
}

/* ----------------------------------------------------------------
   3. FAQ PANELS
   ---------------------------------------------------------------- */

.faq-panel {
  display: none;
  max-width: 800px;
  margin: 0 auto;
}

.faq-panel.active {
  display: block;
}

.faq-panel h3 {
  font-size: 20px;
  color: var(--vc-text-primary);
  margin-bottom: var(--sp-6);
}

/* ----------------------------------------------------------------
   4. FAQ ITEMS (Accordion)
   ---------------------------------------------------------------- */

.faq-item {
  border-bottom: 1px solid var(--vc-border-subtle);
  padding: var(--sp-5) 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 16px;
  color: var(--vc-text-primary);
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: 0;
  font-family: var(--font-body);
}

.faq-question:hover {
  color: var(--vc-accent);
}

.faq-question:focus-visible {
  outline: 2px solid var(--vc-accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--vc-text-tertiary);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

/* ----------------------------------------------------------------
   5. FAQ ANSWERS
   ---------------------------------------------------------------- */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 1000px;
}

.faq-answer p {
  padding-top: var(--sp-4);
  font-size: 15px;
  color: var(--vc-text-secondary);
  line-height: 1.7;
}

/* ----------------------------------------------------------------
   6. FAQ PRODUCT CARDS (inside answers)
   ---------------------------------------------------------------- */

.faq-product {
  background: var(--vc-bg-surface);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin-top: var(--sp-4);
}

.faq-product-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

/* ----------------------------------------------------------------
   7. FAQ CTA
   ---------------------------------------------------------------- */

.faq-cta {
  text-align: center;
  margin-top: var(--sp-16);
  padding-top: var(--sp-10);
  border-top: 1px solid var(--vc-border-subtle);
}

.faq-cta h3 {
  font-size: 24px;
  color: var(--vc-text-primary);
  margin-bottom: var(--sp-3);
}

.faq-cta p {
  font-size: 16px;
  color: var(--vc-text-secondary);
  margin-bottom: var(--sp-6);
}
