/* ====================================
    FAQ FILTRO DE PISCINA - CSS
    Aquaflex Aquecedores
    Prefixo: ffp- (Faq Filtro Piscina)
    VERSÃO 1.0
==================================== */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

/* === VARIÁVEIS === */
.ffp-section {
    --ffp-primary:        #ff5500;
    --ffp-primary-light:  #ff7733;
    --ffp-primary-bg:     rgba(255, 85, 0, 0.06);
    --ffp-primary-border: rgba(255, 85, 0, 0.18);
    --ffp-green:          #28a745;
    --ffp-blue:           #2693FF;
    --ffp-heading:        #010f34;
    --ffp-body:           #4a5568;
    --ffp-body-light:     #788094;
    --ffp-white:          #ffffff;
    --ffp-bg:             #f5f7fa;
    --ffp-border:         #e8edf2;
    --ffp-font-heading:   "Outfit", sans-serif;
    --ffp-font-body:      "DM Sans", sans-serif;
    --ffp-transition:     all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === SEÇÃO === */
.ffp-section {
    background: var(--ffp-bg);
    padding: 90px 0 100px;
    font-family: var(--ffp-font-body);
    position: relative;
}



/* === HEADER === */
.ffp-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.ffp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ffp-primary-bg);
    border: 1px solid var(--ffp-primary-border);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 22px;
}

.ffp-badge i { color: var(--ffp-primary); font-size: 13px; }

.ffp-badge span {
    font-family: var(--ffp-font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--ffp-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ffp-title {
    font-family: var(--ffp-font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--ffp-heading);
    line-height: 1.2;
    margin-bottom: 16px;
}

.ffp-title-accent {
    color: var(--ffp-primary);
}

.ffp-subtitle {
    font-size: 16px;
    color: var(--ffp-body);
    line-height: 1.7;
}

/* === LISTA FAQ === */
.ffp-list {
    max-width: 860px;
    margin: 0 auto 60px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* === ITEM === */
.ffp-item {
    position: relative;
    border-bottom: 1px solid var(--ffp-border);
    transition: var(--ffp-transition);
}

.ffp-item:first-child {
    border-top: 1px solid var(--ffp-border);
}

/* === CABEÇALHO DO ITEM === */
.ffp-item-head {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* Número do índice */
.ffp-index {
    font-family: var(--ffp-font-heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--ffp-primary);
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    flex-shrink: 0;
    opacity: 0.5;
    transition: var(--ffp-transition);
}

.ffp-item.active .ffp-index {
    opacity: 1;
}

/* Linha vertical conectora */
.ffp-connector {
    width: 1px;
    background: var(--ffp-border);
    margin: 12px 20px;
    flex-shrink: 0;
    transition: var(--ffp-transition);
}

.ffp-item.active .ffp-connector {
    background: var(--ffp-primary);
}

/* Botão da pergunta */
.ffp-question {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: transparent;
    border: none;
    padding: 24px 0 24px 0;
    cursor: pointer;
    text-align: left;
    transition: var(--ffp-transition);
}

.ffp-question span {
    font-family: var(--ffp-font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--ffp-heading);
    line-height: 1.4;
    transition: var(--ffp-transition);
}

.ffp-item.active .ffp-question span,
.ffp-question:hover span {
    color: var(--ffp-primary);
}

/* Ícone toggle */
.ffp-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--ffp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--ffp-white);
    transition: var(--ffp-transition);
}

.ffp-toggle i {
    font-size: 12px;
    color: var(--ffp-body-light);
    transition: var(--ffp-transition);
}

.ffp-item.active .ffp-toggle {
    background: var(--ffp-primary);
    border-color: var(--ffp-primary);
    transform: rotate(180deg);
}

.ffp-item.active .ffp-toggle i {
    color: var(--ffp-white);
}

/* Linha de destaque no hover */
.ffp-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px;
    height: 100%;
    background: var(--ffp-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease;
}

.ffp-item.active::before {
    transform: scaleY(1);
}

/* === RESPOSTA === */
.ffp-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.ffp-item.active .ffp-answer {
    max-height: 300px;
}

.ffp-answer-inner {
    padding: 0 0 28px 88px;
}

.ffp-answer-inner p {
    font-size: 15px;
    color: var(--ffp-body);
    line-height: 1.8;
    margin: 0;
}

.ffp-answer-inner strong {
    color: var(--ffp-heading);
    font-weight: 600;
}

/* === CTA FINAL === */
.ffp-cta {
    background: var(--ffp-heading);
    border-radius: 20px;
    padding: 36px 44px;
    position: relative;
    overflow: hidden;
}

.ffp-cta::after {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(255,85,0,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.ffp-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.ffp-cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ffp-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,85,0,0.15);
    border: 1px solid rgba(255,85,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ffp-cta-icon i { font-size: 24px; color: var(--ffp-primary); }

.ffp-cta-left h3 {
    font-family: var(--ffp-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.ffp-cta-left p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.ffp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 12px;
    background: linear-gradient(135deg, #25d366, #128c4a);
    color: #fff;
    font-family: var(--ffp-font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ffp-transition);
    box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

.ffp-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37,211,102,0.45);
    color: #fff;
}

.ffp-cta-btn i { font-size: 18px; }

/* === RESPONSIVO === */
@media (max-width: 991px) {
    .ffp-title { font-size: 34px; }
    .ffp-cta { padding: 30px 28px; }
    .ffp-cta-inner { flex-wrap: wrap; }
    .ffp-cta-btn { width: 100%; justify-content: center; }
}

@media (max-width: 767px) {
    .ffp-section { padding: 60px 0 70px; }
    .ffp-title { font-size: 28px; }
    .ffp-subtitle { font-size: 15px; }
    .ffp-index { min-width: 36px; font-size: 11px; }
    .ffp-connector { margin: 12px 14px; }
    .ffp-question span { font-size: 14.5px; }
    .ffp-answer-inner { padding: 0 0 22px 64px; }
    .ffp-cta { padding: 24px 20px; border-radius: 16px; }
    .ffp-cta-left { flex-wrap: wrap; }
    .ffp-cta-left h3 { font-size: 17px; }
}

@media (max-width: 480px) {
    .ffp-section { padding: 50px 0 60px; }
    .ffp-title { font-size: 24px; }
    .ffp-answer-inner { padding: 0 0 18px 52px; }
    .ffp-toggle { width: 30px; height: 30px; }
}
