/* ============================================================
   FAQ PAGE STYLES
   Standalone FAQ page with sections and grouped items.
   Shares accordion behavior with pricing FAQ (is-expanded).
   ============================================================ */

.faq-hero {
  padding-top: calc(var(--navbar-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
}

.faq-hero__title {
  margin-bottom: var(--space-md);
}

.faq-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* FAQ content area */
.faq-content {
  padding: var(--space-2xl) 0 var(--space-section);
}

.faq-content__inner {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

/* Section groups */
.faq-section {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
}

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

.faq-section__heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--brand-light);
  margin-bottom: var(--space-lg);
}

.faq-section__intro {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

/* Individual FAQ items (shared with pricing, uses is-expanded) */
.faq-content .faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition:
    border-color var(--duration-normal),
    background var(--duration-normal);
}

.faq-content .faq-item.is-expanded {
  border-color: var(--border-brand);
  border-left: 3px solid var(--brand);
  background: var(--bg-card-hover);
}

.faq-content .faq-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  gap: var(--space-md);
}

.faq-content .faq-item__question {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.faq-content .faq-item__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--duration-normal) var(--ease-out);
}

.faq-content .faq-item.is-expanded .faq-item__chevron {
  transform: rotate(180deg);
  color: var(--brand);
}

.faq-content .faq-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

.faq-content .faq-item.is-expanded .faq-item__content {
  max-height: 500px;
}

.faq-content .faq-item__answer {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}


/* ----- Mobile breakpoint ----- */
@media (max-width: 768px) {
  .faq-hero {
    padding-top: calc(var(--navbar-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
  }

  .faq-content .faq-item__header {
    padding: var(--space-md) var(--space-lg);
  }

  .faq-content .faq-item__answer {
    padding: 0 var(--space-lg) var(--space-md);
  }
}
