/* ============================================================
   P23 FAQ v1.0 — Premium dark accordion, responsive
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ── Elementor wrapper reset ── */
.elementor-widget-p23_faq > .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* ── SECTION ── */
.p23faq {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

.p23faq-inner {
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
}

/* ── HEADER ── */
.p23faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.p23faq-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--faq-accent, #e6641e);
    margin-bottom: 16px;
}
.p23faq-eyebrow-line {
    width: 28px;
    height: 1px;
    background: var(--faq-accent, #e6641e);
    opacity: 0.6;
}

.p23faq-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f0ede8;
    line-height: 1.05;
    margin: 0 0 14px;
}

.p23faq-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(240,237,232,0.5);
    max-width: 560px;
    margin: 0 auto;
}

/* ── SEARCH ── */
.p23faq-search {
    position: relative;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}
.p23faq-search-ico {
    position: absolute;
    left: 18px;
    color: rgba(255,255,255,0.35);
    pointer-events: none;
}
.p23faq-search-input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px 46px 15px 46px;
    color: #f0ede8;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14.5px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}
.p23faq-search-input::placeholder { color: rgba(255,255,255,0.3); }
.p23faq-search-input:focus {
    border-color: var(--faq-accent, #e6641e);
    background: rgba(255,255,255,0.05);
}
.p23faq-search-clear {
    position: absolute;
    right: 14px;
    width: 26px; height: 26px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.p23faq-search-clear:hover { background: rgba(255,255,255,0.15); color: #fff; }
.p23faq-search.has-value .p23faq-search-clear { display: flex; }

.p23faq-noresults {
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.4);
    padding: 32px 0;
}

/* ── GROUP (categories) ── */
.p23faq-group { margin-bottom: 32px; }
.p23faq-group:last-child { margin-bottom: 0; }

.p23faq-cat-title {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--faq-accent, #e6641e);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ── LIST ── */
.p23faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Two columns on desktop */
.p23faq-layout-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
}

/* ── ITEM ── */
.p23faq-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.p23faq-item.is-open {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.14);
}

/* ── QUESTION ── */
.p23faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.p23faq-q-text {
    font-size: 15.5px;
    font-weight: 500;
    color: #f0ede8;
    line-height: 1.4;
    transition: color 0.2s;
}
.p23faq-item.is-open .p23faq-q-text { color: #fff; }

/* ── PLUS/MINUS ICON ── */
.p23faq-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.p23faq-icon-h,
.p23faq-icon-v {
    position: absolute;
    top: 50%; left: 50%;
    background: var(--faq-accent, #e6641e);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(.16,1,.3,1), opacity 0.3s ease;
}
.p23faq-icon-h {
    width: 14px; height: 1.8px;
    transform: translate(-50%, -50%);
}
.p23faq-icon-v {
    width: 1.8px; height: 14px;
    transform: translate(-50%, -50%);
}
.p23faq-item.is-open .p23faq-icon-v { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.p23faq-item.is-open .p23faq-icon-h { transform: translate(-50%, -50%) rotate(180deg); }

/* ── ANSWER ── */
.p23faq-a {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(.16,1,.3,1);
}
.p23faq-a-inner {
    padding: 0 22px 22px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(240,237,232,0.62);
}
.p23faq-a-inner strong { color: rgba(240,237,232,0.9); font-weight: 600; }
.p23faq-a-inner a { color: var(--faq-accent, #e6641e); text-decoration: none; border-bottom: 1px solid currentColor; }
.p23faq-a-inner p { margin: 0 0 10px; }
.p23faq-a-inner p:last-child { margin-bottom: 0; }

/* hidden by search */
.p23faq-item.is-hidden { display: none; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
    .p23faq-header { margin-bottom: 28px; }

    /* Two-column layout collapses to single on mobile */
    .p23faq-layout-two {
        grid-template-columns: 1fr;
    }

    .p23faq-q {
        padding: 17px 18px;
        gap: 12px;
    }
    .p23faq-q-text { font-size: 14.5px; }
    .p23faq-a-inner { padding: 0 18px 18px; font-size: 13.5px; }

    .p23faq-search-input { padding: 14px 44px; font-size: 14px; }
}

@media (max-width: 420px) {
    .p23faq-q { padding: 15px 16px; }
    .p23faq-q-text { font-size: 14px; }
    .p23faq-a-inner { padding: 0 16px 16px; }
}
