/* =========================================
   FAQ PAGE — inherits global.css
   (vars, reset, typography, .wrapper, btns)
   ========================================= */


/* ── HERO ──────────────────────────────────────────── */
section.faq_hero_section {
    background: var(--dark-bg);
    padding: 70px 30px 60px;
    text-align: center;

    .faq_hero_title {
        font-size: clamp(2.2rem, 1.2rem + 4vw, 4rem);
        font-weight: 800;
        line-height: 1.1;
        color: var(--text-light);
        margin: 16px auto 20px;
        max-width: 700px;
        width: auto;
    }

    .faq_hero_sub {
        font-size: 0.95rem;
        color: var(--text-muted);
        line-height: 1.75;
        max-width: 560px;
        margin: 0 auto 40px;
    }

    .faq_search_wrap {
        position: relative;
        max-width: 640px;
        margin: 0 auto;
        display: flex;
        align-items: center;

        .faq_search_icon {
            position: absolute;
            left: 18px;
            color: var(--text-muted);
            font-size: 1rem;
            pointer-events: none;
        }

        .faq_search_input {
            width: 100%;
            background: var(--dark-card);
            border: 1px solid var(--dark-border);
            border-radius: var(--radius-pill);
            padding: 14px 52px 14px 48px;
            font-size: 0.9rem;
            color: var(--text-light);
            font-family: var(--font-body);
            transition: border-color var(--transition), box-shadow var(--transition);

            &::placeholder { color: var(--text-dim); }

            &:focus {
                outline: none;
                border-color: var(--gold);
                box-shadow: 0 0 0 3px rgba(232, 200, 64, 0.1);
            }
        }

        .faq_search_kbd {
            position: absolute;
            right: 16px;
            font-size: 0.7rem;
            font-weight: 700;
            color: var(--text-dim);
            background: var(--dark-surface);
            border: 1px solid var(--dark-border);
            border-radius: 4px;
            padding: 2px 7px;
            letter-spacing: 0.05em;
            pointer-events: none;
        }
    }

    @media (max-width: 767px) {
        padding: 50px 20px 40px;
    }
}


/* ── FAQ BODY + SIDEBAR ────────────────────────────── */
section.faq_body_section {
    background: var(--dark-bg);
    padding: 60px 30px 80px;

    /* ── Category Group ──────────────────── */
    .faq_category_group {
        margin-bottom: 40px;

        &:last-child { margin-bottom: 0; }
    }

    .faq_cat_header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--dark-border);

        .bi {
            font-size: 1rem;
            color: var(--gold);
        }

        .faq_cat_title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-light);
            margin: 0;
        }
    }

    /* ── Accordion ───────────────────────── */
    .faq_accordion {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .faq_item {
        background: var(--dark-card);
        border: 1px solid var(--dark-border);
        border-radius: var(--radius-md);
        overflow: hidden;
        transition: border-color var(--transition);

        &.open {
            border-color: rgba(232, 200, 64, 0.3);

            .faq_question { color: var(--gold); }
            .faq_chevron  { transform: rotate(180deg); }
        }
    }

    .faq_question {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 18px 20px;
        background: none;
        border: none;
        cursor: pointer;
        text-align: left;
        color: var(--text-light);
        font-family: var(--font-body);
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.4;
        transition: color var(--transition);

        &:hover { color: var(--gold); }

        .faq_chevron {
            font-size: 0.85rem;
            color: var(--text-muted);
            flex-shrink: 0;
            transition: transform var(--transition), color var(--transition);
        }
    }

    .faq_answer {
        padding: 0 20px 20px;
        border-top: 1px solid var(--dark-border);

        &[hidden] { display: none; }
    }

    .faq_snippet {
        margin: 16px 0;
        padding: 14px 16px;
        background: rgba(232, 200, 64, 0.04);
        border-left: 3px solid var(--gold);
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0;

        .faq_snippet_label {
            display: block;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--gold);
            margin-bottom: 8px;
        }

        .faq_snippet_text {
            font-size: 0.88rem;
            font-style: italic;
            color: var(--text-muted);
            line-height: 1.7;
            margin: 0;
            padding: 0;
            border: none;
        }
    }

    /* Restore WP content rendering inside answers */
    .faq_content {
        margin-top: 12px;

        p {
            font-size: 0.88rem;
            color: var(--text-muted);
            line-height: 1.75;
            margin-bottom: 0.75rem;

            &:last-child { margin-bottom: 0; }
        }

        ul {
            list-style: disc;
            padding-left: 1.25rem;
            margin-bottom: 0.75rem;
        }

        ol {
            list-style: decimal;
            padding-left: 1.25rem;
            margin-bottom: 0.75rem;
        }

        li {
            font-size: 0.88rem;
            color: var(--text-muted);
            line-height: 1.7;
            margin-bottom: 0.3rem;
        }

        a {
            display: inline;
            color: var(--gold);
            text-decoration: underline;
            transition: color var(--transition);

            &:hover { color: var(--gold-hover); }
        }

        strong { color: var(--text-light); font-weight: 700; }
    }

    .faq_cta_link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--gold);
        margin-top: 14px;
        transition: gap var(--transition);

        &:hover { gap: 9px; }
    }

    /* No Results */
    .faq_no_results {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 48px 20px;
        color: var(--text-dim);

        .bi { font-size: 2rem; }

        p { color: var(--text-muted); margin: 0; }

        strong { color: var(--text-light); }
    }

    /* ── Sidebar ─────────────────────────── */
    .faq_sidebar {
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: sticky;
        top: 100px;
    }

    .faq_widget {
        background: var(--dark-card);
        border: 1px solid var(--dark-border);
        border-radius: var(--radius-md);
        padding: 24px;

        .faq_widget_heading {
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--gold);
            margin-bottom: 16px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--dark-border);
        }
    }

    /* Contact Widget */
    .faq_contact_widget {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        background: linear-gradient(135deg, var(--dark-card) 0%, rgba(26, 36, 16, 0.8) 100%);
        border-color: rgba(232, 200, 64, 0.2);

        .faq_contact_icon {
            width: 52px;
            height: 52px;
            background: rgba(232, 200, 64, 0.08);
            border: 1px solid rgba(232, 200, 64, 0.2);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;

            .bi {
                font-size: 1.4rem;
                color: var(--gold);
            }
        }

        .faq_contact_title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-light);
            margin: 0;
        }

        .faq_contact_desc {
            font-size: 0.82rem;
            color: var(--text-muted);
            line-height: 1.7;
            margin: 0;
        }

        .btn_gold {
            width: 100%;
            justify-content: center;
        }
    }

    /* Popular Resources */
    .faq_resource_list {
        display: flex;
        flex-direction: column;
        gap: 4px;

        li {
            border-bottom: 1px solid var(--dark-border);

            &:last-child { border-bottom: none; }
        }

        .faq_resource_link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 0;
            font-size: 0.83rem;
            color: var(--text-muted);
            transition: color var(--transition);

            .bi {
                font-size: 0.75rem;
                flex-shrink: 0;
                transition: transform var(--transition);
            }

            &:hover {
                color: var(--gold);

                .bi { transform: translate(2px, -2px); }
            }
        }
    }

    /* Grow Widget */
    .faq_grow_widget {
        border-color: rgba(112, 200, 64, 0.25);
        background: linear-gradient(135deg, rgba(112, 200, 64, 0.05) 0%, var(--dark-card) 100%);
        display: flex;
        flex-direction: column;
        gap: 8px;

        .faq_grow_eyebrow {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text-light);
            margin: 0;
        }

        .faq_grow_desc {
            font-size: 0.8rem;
            color: var(--text-muted);
            line-height: 1.65;
            margin: 0 0 4px;
        }

        .btn_outline_gold {
            width: 100%;
            justify-content: center;
        }
    }

    @media (max-width: 991px) {
        .faq_sidebar {
            position: static;
            flex-direction: row;
            flex-wrap: wrap;

            .faq_contact_widget { flex: 1 1 100%; }
            .faq_widget { flex: 1 1 260px; }
        }
    }

    @media (max-width: 767px) {
        padding: 50px 20px 60px;

        .faq_sidebar {
            flex-direction: column;

            .faq_widget { flex: none; }
        }
    }
}


/* ── BOTTOM CTA ────────────────────────────────────── */
section.faq_cta_section {
    background: var(--dark-surface);
    border-top: 1px solid var(--dark-border);
    padding: 80px 30px;
    text-align: center;

    .faq_cta_title {
        font-size: clamp(2rem, 1rem + 3vw, 3.2rem);
        font-weight: 800;
        color: var(--text-light);
        margin: 0 auto 20px;
        max-width: 700px;
        width: auto;
    }

    .faq_cta_sub {
        font-size: 0.95rem;
        color: var(--text-muted);
        line-height: 1.75;
        max-width: 520px;
        margin: 0 auto 36px;
    }

    .faq_cta_actions {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
        margin-bottom: 24px;
    }

    .faq_cta_note {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-size: 0.78rem;
        color: var(--text-dim);
        margin: 0;

        .bi { color: var(--gold); }
    }

    @media (max-width: 767px) {
        padding: 60px 20px;

        .faq_cta_actions {
            flex-direction: column;
            width: 100%;
        }
    }
}
