/* =========================================================
   N-FLUX — FAQ
========================================================= */

.faq-section {

    position: relative;

    padding:
        var(--section-space-lg)
        0;

    overflow: hidden;

    background:
        var(--bg);

}


/* =========================================================
   BACKGROUND
========================================================= */

.faq-section::before {

    content: "";

    position: absolute;

    width: 420px;

    height: 420px;

    top: -250px;

    right: -180px;

    border-radius: 50%;

    background:
        rgba(22,141,226,.035);

    pointer-events: none;

}


.faq-section::after {

    content: "";

    position: absolute;

    width: 280px;

    height: 280px;

    bottom: -170px;

    left: -140px;

    border-radius: 50%;

    background:
        rgba(53,168,83,.025);

    pointer-events: none;

}


/* =========================================================
   HEADER
========================================================= */

.faq-header {

    position: relative;

    z-index: 2;

    max-width: 700px;

    margin:
        0 auto 42px;

    text-align: center;

}


.faq-header .section-eyebrow {

    justify-content: center;

}


.faq-description {

    max-width: 570px;

    margin:
        0 auto;

    color:
        var(--text-muted);

    font-size: .88rem;

    line-height: 1.75;

}


/* =========================================================
   FAQ WRAPPER
========================================================= */

.faq-wrapper {

    position: relative;

    z-index: 2;

    max-width: 820px;

    margin:
        0 auto;

}


/* =========================================================
   FAQ ITEM
========================================================= */

.faq-item {

    position: relative;

    margin-bottom: 10px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    background:
        var(--surface);

    overflow: hidden;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);

}


.faq-item:hover {

    border-color:
        rgba(22,141,226,.18);

}


.faq-item.is-open {

    border-color:
        rgba(22,141,226,.22);

    box-shadow:
        var(--shadow-sm);

}


/* =========================================================
   QUESTION BUTTON
========================================================= */

.faq-question {

    width: 100%;

    display: grid;

    grid-template-columns:
        34px 1fr 34px;

    align-items: center;

    gap: 13px;

    padding:
        18px 19px;

    border: 0;

    background: transparent;

    color:
        var(--text);

    text-align: left;

    font-family: inherit;

    font-size: .85rem;

    font-weight: 800;

    line-height: 1.45;

    cursor: pointer;

}


/* =========================================================
   NUMBER
========================================================= */

.faq-number {

    display: grid;

    place-items: center;

    width: 30px;

    height: 30px;

    border-radius: 10px;

    background:
        var(--primary-light);

    color:
        var(--primary);

    font-size: .85rem;

    font-weight: 850;

}


/* =========================================================
   ICON
========================================================= */

.faq-toggle {

    display: grid;

    place-items: center;

    width: 30px;

    height: 30px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        var(--surface-soft);

    color:
        var(--text-muted);

    font-size: .95rem;

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition);

}


.faq-item.is-open
.faq-toggle {

    transform:
        rotate(45deg);

    background:
        var(--primary);

    border-color:
        var(--primary);

    color:
        #fff;

}


/* =========================================================
   ANSWER
========================================================= */

.faq-answer {

    display: grid;

    grid-template-rows: 0fr;

    transition:
        grid-template-rows .35s ease;

}


.faq-answer-inner {

    min-height: 0;

    overflow: hidden;

}


.faq-answer-content {

    padding:
        0 66px 19px;

    color:
        var(--text-muted);

    font-size: .68rem;

    line-height: 1.75;

}


.faq-item.is-open
.faq-answer {

    grid-template-rows: 1fr;

}


/* =========================================================
   CTA
========================================================= */

.faq-cta {

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: center;

    margin-top:
        35px;

    text-align: center;

}


.faq-cta-text {

    margin:
        0 0 13px;

    color:
        var(--text-muted);

    font-size: .67rem;

    font-weight: 650;

}


.faq-cta .btn-primary {

    display: inline-flex;

    align-items: center;

    gap: 8px;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .faq-section {

        padding:
            var(--section-space)
            0;

    }


    .faq-header {

        margin-bottom:
            28px;

    }


    .faq-description {

        font-size: .82rem;

        line-height: 1.7;

    }


    .faq-wrapper {

        width: 100%;

    }


    .faq-item {

        margin-bottom: 8px;

        border-radius:
            15px;

    }


    .faq-question {

        grid-template-columns:
            30px 1fr 30px;

        gap: 10px;

        padding:
            15px 14px;

        font-size: .8rem;

    }


    .faq-number {

        width: 27px;

        height: 27px;

        border-radius: 8px;

        font-size: .8rem;

    }


    .faq-toggle {

        width: 27px;

        height: 27px;

        border-radius: 8px;

        font-size: .8rem;

    }


    .faq-answer-content {

        padding:
            0 51px 17px;

        font-size: .64rem;

        line-height: 1.7;

    }


    .faq-cta {

        margin-top:
            27px;

    }


    .faq-cta-text {

        font-size: .62rem;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .faq-answer,
    .faq-toggle {

        transition: none;

    }

}