/* Visual styling for hs/faq block.
   Plugin CSS provides structural baseline (layout, accordion mechanics). */

body .hs-faq__title {
  color: var(--color-text, #2c3e50);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

body .hs-faq__intro {
  color: var(--color-text-muted, #666);
  font-size: 1.125rem;
  line-height: 1.6;
}

body .hs-faq__container {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

body .hs-faq .hs-faq__item {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

body .hs-faq .hs-faq__item:last-child {
  border-bottom: none;
}

body .hs-faq .hs-faq__item:hover {
  background: rgba(102, 126, 234, 0.02);
}

body .hs-faq .hs-faq__item__question {
  background: transparent;
  border-bottom: 1px solid transparent;
  color: var(--color-text, #2c3e50);
  transition: all 0.2s ease;
}

body .hs-faq .hs-faq__item__question:hover {
  background: rgba(102, 126, 234, 0.05);
}

body .hs-faq .hs-faq__item__question:focus {
  outline: 2px solid #667eea;
  outline-offset: -2px;
}

body .hs-faq--accordion .hs-faq .hs-faq__item__question {
  border-bottom: 1px solid #f1f5f9;
}

body .hs-faq .hs-faq__item__number {
  background: rgba(102, 126, 234, 0.1);
  border-radius: 6px;
  color: #667eea;
  font-size: 0.875rem;
  font-weight: 700;
}

body .hs-faq .hs-faq__item__question-text {
  color: var(--color-text, #2c3e50);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

body .hs-faq .hs-faq__item__toggle {
  color: #667eea;
  transition: transform 0.3s ease;
}

body .hs-faq .hs-faq__item__answer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body .hs-faq .hs-faq__item__answer-content {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.7;
}

body .hs-faq .hs-faq__item__answer-content a {
  color: #667eea;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

body .hs-faq .hs-faq__item__answer-content a:hover {
  color: #5a6fd8;
  text-decoration: underline;
}

@media (min-width: 768px) {
  body .hs-faq .hs-faq__item {
    transition: all 0.2s ease;
  }

  body .hs-faq .hs-faq__item:hover {
    background: rgba(102, 126, 234, 0.02);
  }

  body .hs-faq .hs-faq__item:hover .hs-faq__item__answer,
  body .hs-faq .hs-faq__item:hover .hs-faq__item__question {
    background: transparent;
  }

  body .hs-faq .hs-faq__item.is-expanded {
    background: rgba(102, 126, 234, 0.03);
  }

  body .hs-faq .hs-faq__item.is-expanded .hs-faq__item__answer,
  body .hs-faq .hs-faq__item.is-expanded .hs-faq__item__question {
    background: transparent;
  }

  body .hs-faq--expanded .hs-faq__item__answer {
    background: transparent;
    border-top: 1px solid #e2e8f0;
  }

  body .hs-faq--expanded .hs-faq__item.is-expanded,
  body .hs-faq--expanded .hs-faq__item:hover {
    background: transparent;
  }

  body .hs-faq--accordion .hs-faq__item__answer {
    background: transparent;
    border-top: 1px solid #e2e8f0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .hs-faq .hs-faq__item__answer,
  body .hs-faq .hs-faq__item__toggle {
    transition: none;
  }
}

/* FAQ container has its own white background regardless of section preset,
   so re-assert dark text inside it — undoes the white-on-dark inheritance
   that dark section presets apply to li/p/headings. */
:is(
  .theme-preset--contentor-blue,
  .theme-preset--contentor-blue-light,
  .theme-preset--contentor-green,
  .theme-preset--contentor-gradient,
  .theme-preset--contentor-dark
) .hs-faq__container :is(h1, h2, h3, h4, h5, h6, p, li, blockquote) {
  color: #1e293b;
}
