/* ===========================================================================
   SECTION — FAQ
   Built on native <details>, so it works with JavaScript disabled.
   =========================================================================== */

.faq { background: var(--pale); }

.faq__grid {
    display: grid;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.faq__aside .h2 { margin-bottom: 1rem; max-width: 12ch; }

.faq__hand { color: var(--blue); }

.faq__aside-note { max-width: 32ch; margin-bottom: 1.5rem; }

/* ---------------------------------------------------------------------------
   List
   --------------------------------------------------------------------------- */
.faq__list { display: grid; gap: 0.75rem; }

.faq__item {
    position: relative;
    background: var(--white);
    border-radius: var(--r);
    box-shadow: 0 4px 16px rgba(9, 62, 98, 0.06);
    overflow: hidden;
    transition: box-shadow 0.4s var(--ease), transform 0.45s var(--ease);
}

/* Hover — the card lifts a touch, a turquoise rule grows down its left edge,
   the question nudges right and the plus turns, signalling it opens. */
.faq__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--turq);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s var(--ease);
}

.faq__item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.faq__item:hover::before,
.faq__item[open]::before { transform: scaleY(1); }

.faq__item[open] { box-shadow: var(--shadow); }

/* --- question --- */
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem clamp(1rem, 2.4vw, 1.75rem);
    cursor: pointer;
    list-style: none;
    transition: background 0.35s var(--ease);
}

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

.faq__q:hover { background: var(--pale); }

.faq__q-text { transition: transform 0.45s var(--ease), color 0.3s var(--ease); }
.faq__q:hover .faq__q-text { transform: translateX(6px); color: var(--blue-d); }

.faq__q:hover .faq__icon { background: rgba(56, 225, 197, 0.35); transform: rotate(90deg); }
.faq__item[open] .faq__q:hover .faq__icon { transform: rotate(180deg); }

.faq__q-text {
    font-family: var(--font-ui);
    font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--navy);
}

/* Circular plus that rotates to a minus */
.faq__icon {
    position: relative;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--pale-2);
    transition: background 0.4s var(--ease), transform 0.5s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.45s var(--ease), opacity 0.3s var(--ease), background 0.4s var(--ease);
}

.faq__icon::before {
    width: 13px; height: 2.5px;
    transform: translate(-50%, -50%);
}

.faq__icon::after {
    width: 2.5px; height: 13px;
    transform: translate(-50%, -50%);
}

.faq__item[open] .faq__icon { background: var(--turq); transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { opacity: 0; }

/* --- answer --- */
.faq__a {
    padding: 0 clamp(1rem, 2.4vw, 1.75rem) 1.375rem;
    max-width: 62ch;
    color: var(--grey);
}

/* Bold lead line inside an answer ("No guarantees. Just a good chance.") */
.faq__a-lead {
    display: block;
    margin-bottom: 0.375rem;
    font-family: var(--font-ui);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
}

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

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

@media (prefers-reduced-motion: reduce) {
    .faq__item[open] .faq__a { animation: none; }
    .faq__item:hover, .faq__q:hover .faq__q-text, .faq__q:hover .faq__icon { transform: none; }
}
