/* ============================================================
   WIN LAB — FAQ Accordion Section
   ============================================================ */

.faq {
    background: #141414;
    padding: 6rem 0 5.5rem;
    position: relative;
    overflow: hidden;
}

/* Dot grid texture */
.faq::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* ── Inner ── */
.faq__inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Scroll reveal ── */
.faq__reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 600ms cubic-bezier(0.22, 1, 0.36, 1) var(--faq-delay, 0ms),
        transform 600ms cubic-bezier(0.22, 1, 0.36, 1) var(--faq-delay, 0ms);
}

.faq__reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Header ── */
.faq__header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.faq__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #E8761A;
    margin-bottom: 1rem;
}

.faq__badge-dot {
    width: 8px;
    height: 8px;
    background: #E8761A;
    border-radius: 1px;
    flex-shrink: 0;
}

.faq__heading {
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: #ffffff;
    margin: 0 0 1rem;
}

.faq__subtext {
    font-family: 'Barlow', sans-serif;
    font-size: 0.92rem;
    line-height: 1.72;
    color: rgba(255,255,255,0.45);
    margin: 0;
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
}

/* ── Accordion list ── */
.faq__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 3rem;
}

/* ── Each item ── */
.faq__item {
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: #1c1c1c;
    transition: background 250ms ease;
}

.faq__item:last-child {
    border-bottom: none;
}

.faq__item--open {
    background: #212121;
}

/* ── Question button ── */
.faq__question {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.4rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    position: relative;
    /* Left orange bar — hidden by default */
    border-left: 3px solid transparent;
    transition:
        border-color 250ms ease,
        background 250ms ease,
        padding-left 250ms ease;
}

.faq__question:hover {
    background: rgba(255,255,255,0.02);
}

.faq__item--open .faq__question {
    border-left-color: #E8761A;
    padding-left: 1.75rem;
}

/* Number */
.faq__question-num {
    font-family: 'Barlow Condensed', monospace;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #E8761A;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 250ms ease;
    min-width: 24px;
}

.faq__item--open .faq__question-num {
    opacity: 1;
}

/* Question text */
.faq__question-text {
    flex: 1;
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    line-height: 1.45;
    transition: color 250ms ease;
}

.faq__item--open .faq__question-text {
    color: #ffffff;
}

/* Chevron icon */
.faq__question-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    transition:
        transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
        background 250ms ease,
        border-color 250ms ease,
        color 250ms ease;
}

.faq__question-icon svg {
    width: 14px;
    height: 14px;
}

.faq__item--open .faq__question-icon {
    transform: rotate(180deg);
    background: #E8761A;
    border-color: #E8761A;
    color: #000;
}

/* ── Answer panel ── */
.faq__answer {
    overflow: hidden;
    /* JS controls max-height for smooth animation */
    max-height: 0;
    transition: max-height 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__answer[hidden] {
    display: block !important; /* override hidden so CSS transition works */
    max-height: 0;
    visibility: hidden;
}

.faq__answer:not([hidden]) {
    visibility: visible;
}

.faq__answer-inner {
    padding: 0 1.5rem 1.5rem 3.5rem;
}

.faq__answer-inner p {
    font-family: 'Barlow', sans-serif;
    font-size: 0.88rem;
    line-height: 1.78;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* ── Bottom CTA ── */
.faq__cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.faq__cta-text {
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

.faq__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1.75rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 5px;
    color: rgba(255,255,255,0.7);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        background 220ms ease,
        border-color 220ms ease,
        color 220ms ease,
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__cta svg {
    width: 16px;
    height: 16px;
}

.faq__cta:hover {
    background: #E8761A;
    border-color: #E8761A;
    color: #000;
    transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .faq__inner {
        padding: 0 1.25rem;
    }

    .faq__question {
        padding: 1.15rem 1rem;
        gap: 0.75rem;
    }

    .faq__answer-inner {
        padding: 0 1rem 1.25rem 1rem;
    }

    .faq__question-num {
        display: none;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .faq__reveal {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .faq__answer {
        transition: none !important;
    }

    .faq__question-icon {
        transition: none !important;
    }
}