/**
 * ============================================================
 * ROSCOE IMÓVEIS - DESIGN SYSTEM & ESTILOS DO ROSCOE FAQ
 * ============================================================
 * Design editorial sóbrio de altíssimo padrão, refinado,
 * não intrusivo e focado em experiência de luxo.
 */

:root {
    --rf-wine: #820000;
    --rf-wine-hover: #6a0000;
    --rf-wine-subtle: rgba(130, 0, 0, 0.04);
    --rf-wine-border: rgba(130, 0, 0, 0.18);
    --rf-bg: #ffffff;
    --rf-card-bg: #fdfdfd;
    --rf-card-open-bg: #ffffff;
    --rf-text-primary: #1e293b;
    --rf-text-secondary: #475569;
    --rf-text-muted: #64748b;
    --rf-border: #e2e8f0;
    --rf-border-hover: #cbd5e1;
    --rf-radius: 10px;
    --rf-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03);
    --rf-shadow-open: 0 4px 14px rgba(0, 0, 0, 0.05);
    --rf-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------
 * SEÇÃO PRINCIPAL
 * ------------------------------------------------------------ */
.roscoe-faq-section {
    width: 100%;
    background-color: var(--rf-bg);
    padding: 50px 0 40px 0;
    clear: both;
    font-family: inherit;
    box-sizing: border-box;
}

.roscoe-faq-section *,
.roscoe-faq-section *::before,
.roscoe-faq-section *::after {
    box-sizing: border-box;
}

.roscoe-faq-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------------------------------
 * CABEÇALHO EDITORIAL
 * ------------------------------------------------------------ */
.roscoe-faq-header {
    margin-bottom: 32px;
    text-align: left;
}

.roscoe-faq-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rf-wine);
    background-color: var(--rf-wine-subtle);
    border: 1px solid var(--rf-wine-border);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.roscoe-faq-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--rf-text-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.roscoe-faq-subtitle {
    font-size: 14px;
    color: var(--rf-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ------------------------------------------------------------
 * LISTA ACORDEÃO
 * ------------------------------------------------------------ */
.roscoe-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.roscoe-faq-item {
    background-color: var(--rf-card-bg);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    transition: var(--rf-transition);
    overflow: hidden;
}

.roscoe-faq-item:hover {
    border-color: var(--rf-border-hover);
    box-shadow: var(--rf-shadow-sm);
}

.roscoe-faq-item.is-open {
    background-color: var(--rf-card-open-bg);
    border-color: var(--rf-wine-border);
    box-shadow: var(--rf-shadow-open);
}

/* ------------------------------------------------------------
 * GATILHO DA PERGUNTA (BUTTON)
 * ------------------------------------------------------------ */
.roscoe-faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: var(--rf-transition);
}

.roscoe-faq-trigger:focus-visible {
    outline: 2px solid var(--rf-wine);
    outline-offset: -2px;
}

.roscoe-faq-question-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--rf-text-primary);
    line-height: 1.45;
    flex: 1;
    transition: color 0.2s ease;
}

.roscoe-faq-item.is-open .roscoe-faq-question-text {
    color: var(--rf-wine);
}

/* Ícone de Morfismo (+ para −) */
.roscoe-faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rf-text-secondary);
    transition: var(--rf-transition);
}

.roscoe-faq-trigger:hover .roscoe-faq-icon {
    background-color: var(--rf-wine-subtle);
    color: var(--rf-wine);
}

.roscoe-faq-item.is-open .roscoe-faq-icon {
    background-color: var(--rf-wine);
    color: #ffffff;
}

.roscoe-faq-svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.roscoe-faq-line-v {
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

.roscoe-faq-item.is-open .roscoe-faq-line-v {
    opacity: 0;
    transform: scaleY(0);
}

/* ------------------------------------------------------------
 * PAINEL DE RESPOSTA
 * ------------------------------------------------------------ */
.roscoe-faq-panel {
    display: none;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.roscoe-faq-item.is-open .roscoe-faq-panel {
    display: block;
    animation: roscoeFaqFadeIn 0.3s ease-out forwards;
}

.roscoe-faq-answer-inner {
    padding: 16px 22px 22px 22px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--rf-text-secondary);
}

.roscoe-faq-answer-inner p {
    margin: 0 0 12px 0;
}

.roscoe-faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.roscoe-faq-answer-inner strong {
    color: var(--rf-text-primary);
    font-weight: 600;
}

.roscoe-faq-answer-inner a {
    color: var(--rf-wine);
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.2s;
}

.roscoe-faq-answer-inner a:hover {
    opacity: 0.8;
}

@keyframes roscoeFaqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------------------------------------
 * MICRO-CTA CONCIERGE WHATSAPP
 * ------------------------------------------------------------ */
.roscoe-faq-cta {
    margin-top: 28px;
    padding: 18px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--rf-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.roscoe-faq-cta-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.roscoe-faq-cta-icon {
    color: #25D366; /* Verde WhatsApp */
    display: flex;
    align-items: center;
}

.roscoe-faq-cta-text {
    margin: 0;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--rf-text-secondary);
    line-height: 1.4;
}

.roscoe-faq-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 10px 20px;
    background-color: var(--rf-wine);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 6px;
    transition: var(--rf-transition);
    cursor: pointer;
}

.roscoe-faq-cta-btn:hover {
    background-color: var(--rf-wine-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(130, 0, 0, 0.2);
}

/* ------------------------------------------------------------
 * RESPONSIVIDADE MOBILE
 * ------------------------------------------------------------ */
@media (max-width: 768px) {
    .roscoe-faq-section {
        padding: 35px 0 25px 0;
    }

    .roscoe-faq-title {
        font-size: 21px;
    }

    .roscoe-faq-trigger {
        padding: 15px 18px;
    }

    .roscoe-faq-question-text {
        font-size: 15px;
    }

    .roscoe-faq-answer-inner {
        padding: 14px 18px 18px 18px;
        font-size: 14px;
    }

    .roscoe-faq-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 14px;
        padding: 16px;
    }

    .roscoe-faq-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .roscoe-faq-cta-btn {
        width: 100%;
        padding: 12px;
    }
}
