/* ============================================
   FAQ ACF Widget
   All values overridable via Elementor.
============================================ */

/* ── Wrapper ── */
.faw-wrapper {
    border-top: 1px solid #e0dbd3;
}

/* ── Item ── */
.faw-item {
    border-bottom: 1px solid #e0dbd3;
    transition: background-color 0.2s ease;
}

/* ── Header (clickable row) ── */
.faw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.faw-header:focus {
    outline: 2px solid rgba(0,0,0,0.15);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Question ── */
.faw-question {
    flex: 1;
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

/* ── Answer body ── */
.faw-body {
    overflow: hidden;
    padding: 0 0 20px 0;
}

.faw-answer {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    margin: 0;
}

.faw-answer p { margin: 0 0 1em 0; }
.faw-answer p:last-child { margin-bottom: 0; }

/* ── Icon: Plus / Minus ── */
.faw-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
    color: #1a1a1a;
    transition: color 0.2s ease, transform 0.25s ease, border-color 0.2s ease;
    position: relative;
}

/* ── Plus icon (drawn with CSS) ── */
.faw-icon--plus::before,
.faw-icon--plus::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    border-radius: 1px;
    transition: opacity 0.2s ease, transform 0.25s ease;
}
.faw-icon--plus::before { width: 100%; height: 2px; }   /* horizontal bar */
.faw-icon--plus::after  { width: 2px; height: 100%; }  /* vertical bar */

/* Minus state */
.faw-item.faw-open .faw-icon--plus::after {
    transform: rotate(90deg);
    opacity: 0;
}

/* ── Arrow icon ── */
.faw-icon--arrow::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.25s ease;
}

.faw-item.faw-open .faw-icon--arrow::before {
    transform: rotate(-135deg) translate(-2px, -2px);
}

/* ── Bordered icon ── */
.faw-icon--bordered {
    border: 1px solid currentColor;
    border-radius: 50%;
    padding: 4px;
    width: 28px;
    height: 28px;
}

/* ── Slide animation ── */
.faw-body {
    animation: none;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .faw-question { font-size: 16px; }
    .faw-answer   { font-size: 14px; }
    .faw-header   { padding: 16px 0; }
}

@media (max-width: 480px) {
    .faw-question { font-size: 15px; }
    .faw-header   { padding: 14px 0; }
}
