/* ════════════════════════════════════════════
   FAQ V2 — light companion to Hero V7
   Full-width accordion in the V2 family style:
   white items, neutral borders, and a plus chip
   that turns gradient and rotates to × when
   open. Scoped overrides on top of the base
   .scw-faq-item styles from base.css; powered
   by the shared scw-faq script.
   ════════════════════════════════════════════ */

.scw-faq-v2 {
    background: var(--scw-faq2-bg, #FFFFFF);
    font-family: var(--scw-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.scw-faq-v2 *,
.scw-faq-v2 *::before,
.scw-faq-v2 *::after {
    box-sizing: border-box;
}

/* ── Subtitle override — solid black, regular weight (matches Features V2) ── */
.scw-faq-v2 .scw-section-subtitle {
    color: #000000;
    font-weight: 400;
}

/* ── List ── */
.scw-faq-v2 .scw-faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--scw-faq2-gap, 12px);
}

/* ── Item ── */
.scw-faq-v2 .scw-faq-item {
    border: 1px solid var(--scw-faq2-border, #EAEAF0);
    border-radius: var(--scw-faq2-radius, 16px);
    background: var(--scw-faq2-item-bg, #FFFFFF);
    margin-bottom: 0; /* gap handles spacing */
    overflow: hidden;
    transition: border-color 0.2s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1));
    box-shadow: none;
}

.scw-faq-v2 .scw-faq-item:hover,
.scw-faq-v2 .scw-faq-item.is-open {
    border-color: var(--scw-faq2-border, #EAEAF0);
    box-shadow: none;
}

/* ── Question button ── */
.scw-faq-v2 .scw-faq-item__q {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--scw-faq2-q, #0F0F0F);
    line-height: 1.4;
    gap: 16px;
}

.scw-faq-v2 .scw-faq-item__q:hover {
    background: rgba(0, 0, 0, 0.015);
    color: var(--scw-faq2-q, #0F0F0F);
}

/* Neutralize the base yellow open-state background */
.scw-faq-v2 .scw-faq-item.is-open .scw-faq-item__q {
    background: transparent;
}

/* ── Plus chip — rotates to × and turns gradient when open ── */
.scw-faq-v2 .scw-faq2__chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #F4F4F6;
    color: #52525B;
    transition: transform 0.25s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1)),
                background 0.25s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1)),
                color 0.25s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.scw-faq-v2 .scw-faq2__chip svg {
    width: 14px;
    height: 14px;
}

.scw-faq-v2 .scw-faq-item.is-open .scw-faq2__chip {
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--scw-faq2-a1, #A855F7) 0%, var(--scw-faq2-a2, #EC4899) 100%);
    color: #FFFFFF;
}

/* ── Answer panel ── */
.scw-faq-v2 .scw-faq-item__a > div {
    padding: 0 24px 22px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--scw-faq2-a, #52525B);
}

.scw-faq-v2 .scw-faq-item__a p {
    margin: 0 0 12px;
}

.scw-faq-v2 .scw-faq-item__a p:last-child {
    margin-bottom: 0;
}

/* ════════════════════════════════════════════
   Responsive — Mobile (≤ 767px)
   ════════════════════════════════════════════ */
@media (max-width: 767px) {
    .scw-faq-v2 .scw-faq-item__q {
        padding: 16px 18px;
        font-size: 15px;
        gap: 12px;
    }

    .scw-faq-v2 .scw-faq-item__a > div {
        padding: 0 18px 18px;
        font-size: 14px;
    }

    .scw-faq-v2 .scw-faq2__chip {
        width: 26px;
        height: 26px;
    }
}

/* ── Elementor Editor Overrides ── */
.elementor-editor-active .scw-faq-v2 {
    min-height: 120px;
}
