/* =========================================================================
   LAVACASCADE — css/components/accordion.css
   FAQ built on native <details name="faq">: keyboard and screen-reader
   friendly with zero JS, and the shared name makes it open one at a time.
   ========================================================================= */

/* =========================================
   LIST
   ========================================= */
.faq {
    border-top: 1px solid var(--line);
}

.faq__item {
    border-bottom: 1px solid var(--line);
}

/* =========================================
   QUESTION ROW
   ========================================= */
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding: var(--space-5) 0;
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    font-weight: 600;
    color: var(--text-strong);
    cursor: pointer;
    list-style: none;
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__q:hover {
    color: var(--lava-300);
}

/* plus that turns into a minus */
.faq__icon {
    position: relative;
    width: 28px;
    height: 28px;
    flex: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
}

.faq__icon::before,
.faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 2px;
    background: var(--lava-400);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform var(--dur) var(--ease);
}

.faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open] .faq__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

/* =========================================
   ANSWER
   ========================================= */
.faq__a {
    max-width: var(--maxw-text);
    padding-bottom: var(--space-5);
    color: var(--text-soft);
}

.faq__a p + p {
    margin-top: var(--space-3);
}

.faq__item[open] .faq__a {
    animation: faq-open var(--dur) var(--ease);
}

@keyframes faq-open {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}
