/**
 * FAQ Section - Perguntas Frequentes
 * Layout 2 colunas: intro à esquerda + accordion à direita
 *
 * @package Borboleta_Travel
 */

/* ==========================================================================
   Seção FAQ
   ========================================================================== */
.faq-section {
    background-color: var(--bt-color-cream);
    padding: var(--bt-space-24) 0 var(--bt-space-24);
    position: relative;
}

/* ==========================================================================
   Container em 2 Colunas
   ========================================================================== */
.faq-container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: var(--bt-space-16);
    align-items: start;
}

/* ==========================================================================
   Coluna Esquerda: Intro
   ========================================================================== */
.faq-intro {
    position: sticky;
    top: calc(var(--bt-header-height) + 32px);
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--bt-space-2);
    padding: 6px 14px;
    background: rgba(78, 113, 102, 0.1);
    color: var(--bt-color-sage);
    border-radius: var(--bt-radius-full);
    font-family: var(--bt-font-family-ui);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: var(--bt-space-5);
}

.faq-title {
    font-family: var(--bt-font-family-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--bt-color-teal);
    line-height: var(--bt-line-height-tight);
    margin: 0 0 var(--bt-space-4);
    letter-spacing: -0.02em;
}

.faq-intro-text {
    font-family: var(--bt-font-family-body);
    font-size: var(--bt-fs-base);
    color: var(--bt-color-gray-600);
    line-height: 1.65;
    margin: 0 0 var(--bt-space-8);
}

/* Botão "Fale Conosco" */
.faq-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--bt-space-2);
    padding: 14px 28px;
    font-family: var(--bt-font-family-ui);
    font-size: var(--bt-fs-sm);
    font-weight: 700;
    color: var(--bt-color-white);
    background: linear-gradient(135deg, var(--bt-color-sage) 0%, var(--bt-color-teal) 100%);
    border-radius: var(--bt-radius-full);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.3s ease,
        opacity 0.25s ease;
    box-shadow:
        0 6px 20px rgba(78, 113, 102, 0.3),
        0 2px 6px rgba(24, 62, 64, 0.08);
}

.faq-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 28px rgba(78, 113, 102, 0.4),
        0 4px 8px rgba(24, 62, 64, 0.1);
    color: var(--bt-color-white);
}

.faq-contact-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   Coluna Direita: Accordion
   ========================================================================== */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ==========================================================================
   Item do Accordion
   ========================================================================== */
.faq-item {
    border-bottom: 1px solid var(--bt-color-gray-200);
    overflow: hidden;
}

.faq-item:first-child {
    border-top: 1px solid var(--bt-color-gray-200);
}

/* ==========================================================================
   Botão da Pergunta
   ========================================================================== */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--bt-space-4);
    padding: 22px 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--bt-color-sage);
}

.faq-question-text {
    font-family: var(--bt-font-family-ui);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bt-color-charcoal);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.faq-question:hover .faq-question-text {
    color: var(--bt-color-teal);
}

/* Ícone +/- */
.faq-toggle-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bt-color-gray-100);
    flex-shrink: 0;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
    color: var(--bt-color-gray-600);
}

.faq-item.is-open .faq-toggle-icon {
    background: var(--bt-color-teal);
    color: var(--bt-color-white);
    transform: rotate(0);
}

.faq-icon-minus {
    display: none;
}

.faq-icon-plus {
    display: block;
}

.faq-item.is-open .faq-icon-plus {
    display: none;
}

.faq-item.is-open .faq-icon-minus {
    display: block;
}

/* ==========================================================================
   Painel de Resposta
   ========================================================================== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-answer {
    max-height: 400px;
}

.faq-answer-inner {
    padding: 0 4px 22px 4px;
}

.faq-answer-inner p {
    font-family: var(--bt-font-family-body);
    font-size: var(--bt-fs-sm);
    color: var(--bt-color-gray-600);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 992px) {
    .faq-container {
        grid-template-columns: 1fr;
        gap: var(--bt-space-10);
    }

    .faq-intro {
        position: static;
        text-align: center;
    }

    .faq-intro-text {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--bt-space-6);
    }
}

@media (max-width: 640px) {
    .faq-section {
        padding: var(--bt-space-16) 0 var(--bt-space-16);
    }

    .faq-question {
        padding: 18px 0;
    }

    .faq-question-text {
        font-size: 0.95rem;
    }

    .faq-answer-inner {
        padding: 0 0 18px 0;
    }

    .faq-contact-btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
        margin: 0 auto;
    }
}
