/* =============================================
   FAQ PAGE — Styles
   Extends styles.css (shared design system)
   ============================================= */

/* Active nav link */
.nav-active {
  color: var(--accent) !important;
}

/* ---- Page layout ---- */
#faq-page {
  min-height: calc(100vh - 64px);
  padding-top: 64px;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 80px;
}

/* ---- Header ---- */
.faq-header {
  text-align: center;
  padding: 64px 0 48px;
}

.faq-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 56px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}

.faq-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--muted);
  margin-top: 12px;
}

/* ---- FAQ list ---- */
.faq-list {
  border-top: 1px solid var(--border);
}

/* ---- Single FAQ item ---- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

/* ---- Question button ---- */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  flex-shrink: 0;
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
  user-select: none;
}

.faq-q-text {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  transition: color 0.2s;
  line-height: 1.4;
}

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

/* Open state */
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-item.open .faq-q-text {
  color: var(--accent);
}

/* ---- Answer panel ---- */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0 0 0 44px; /* indent to align with question text */
}

.faq-answer p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

.faq-answer p strong {
  color: var(--white);
  font-weight: 600;
}

/* Open state */
.faq-item.open .faq-answer {
  max-height: 400px;
  opacity: 1;
  padding: 0 0 24px 44px;
}

/* ---- CTA row ---- */
.faq-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  text-align: center;
}

.faq-cta-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--muted);
}

.faq-cta-link {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.faq-cta-link:hover { opacity: 0.75; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  #faq-page {
    padding-left: 24px;
    padding-right: 24px;
  }
  .faq-title { font-size: 40px; }
  .faq-header { padding: 48px 0 36px; }
  .faq-q-text { font-size: 15px; }
  .faq-answer { padding: 0 0 0 36px; }
  .faq-item.open .faq-answer { padding: 0 0 20px 36px; }
}
