/**
 * FAQ Component
 * Centered header, accordion items, bottom CTA
 */

.faq-section {
    padding: var(--section-padding) 0;
    background-color: #F9FAFB;
}

.faq-section .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header: Centered */
.faq-section__header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.faq-section__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-text-secondary);
    line-height: var(--line-height-tight);
    margin: 0 0 var(--spacing-md) 0;
}

.faq-section__subtitle {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Content */
.faq-section__content {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-section__item:last-child {
    border-bottom: 1px solid var(--color-border);
}

/* Question Button */
.faq-section__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--spacing-lg) 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: var(--spacing-lg);
}

.faq-section__question-text {
    font-family: var(--font-body-bold);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-secondary);
    line-height: var(--line-height-normal);
}

/* Chevron Icon */
.faq-section__chevron {
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-section__item.is-open .faq-section__chevron {
    transform: rotate(180deg);
}

/* Answer */
.faq-section__answer {
    max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
        padding-bottom: 0;
}

.faq-section__item.is-open .faq-section__answer {
    max-height: 500px;
        padding-bottom: var(--spacing-lg);
        transition: max-height 0.4s ease-in, padding 0.3s ease-in;
}

.faq-section__answer p {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

/* Bottom CTA */
.faq-section__cta-wrapper {
    text-align: center;
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-2xl);
}

.faq-section__cta-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-secondary);
    line-height: var(--line-height-tight);
    margin: 0 0 var(--spacing-sm) 0;
}

.faq-section__cta-subtitle {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin: 0 0 var(--spacing-xl) 0;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: var(--section-padding-mobile) 0;
    }

    .faq-section__title {
        font-size: var(--font-size-2xl);
    }

    .faq-section__cta-title {
        font-size: var(--font-size-xl);
    }
}
