/* ==========================================================================
   FAQ Page Styles
   ========================================================================== */

.faq-page {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ Navigation */
.faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.faq-nav__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.faq-nav__item:hover {
  color: var(--color-primary);
  background-color: rgba(45, 90, 39, 0.1);
}

.faq-nav__title {
  white-space: nowrap;
}

/* FAQ Content */
.faq-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* FAQ Section */
.faq-section {
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

.faq-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-200);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  background-color: var(--bg-primary);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.faq-item__question:hover {
  background-color: var(--bg-secondary);
}

.faq-item__question span {
  flex: 1;
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition-base);
}

/* Active state */
.faq-item__question[aria-expanded="true"] {
  background-color: var(--bg-secondary);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
  transform: rotate(180deg);
}

/* Answer */
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item__answer p {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}

.faq-item__question[aria-expanded="true"] + .faq-item__answer {
  max-height: 500px;
}

/* FAQ Contact CTA */
.faq-contact {
  margin-top: 3rem;
  padding: 2.5rem;
  text-align: center;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.faq-contact h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.faq-contact p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.faq-contact__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .faq-nav {
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .faq-nav__item {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
  }

  .faq-content {
    gap: 2rem;
  }

  .faq-section__title {
    font-size: 1.25rem;
  }

  .faq-item__question {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .faq-item__answer p {
    padding: 0 1.25rem 1rem 1.25rem;
    font-size: 0.9rem;
  }

  .faq-contact {
    padding: 2rem 1.5rem;
  }

  .faq-contact h2 {
    font-size: 1.25rem;
  }

  .faq-contact__actions {
    flex-direction: column;
  }

  .faq-contact__actions .btn {
    width: 100%;
  }
}
