/* ===========================
   FAQ Page — The ADR Initiative
   =========================== */

/* ── Hero ─────────────────────────────────────────────────── */

.faq-hero {
    background-color: var(--color-white);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -60px;
    width: 320px;
    height: 320px;
    background-image: radial-gradient(circle, rgba(87, 7, 102, 0.40) 3px, transparent 3px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 32% 34%, black 26%, rgba(0,0,0,0.30) 52%, transparent 74%);
    mask-image:         radial-gradient(ellipse 60% 60% at 32% 34%, black 26%, rgba(0,0,0,0.30) 52%, transparent 74%);
    pointer-events: none;
    z-index: 0;
}

.faq-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px dashed rgba(87, 7, 102, 0.15);
    pointer-events: none;
    z-index: 0;
    animation: deco-spin-slow 22s linear infinite;
}

.faq-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 500;
    color: var(--color-black);
    line-height: 1.2;
    margin: 0 0 20px;
}

.faq-hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(15px, 2vw, 17px);
    color: var(--color-text);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto;
}

/* ── FAQ Section ──────────────────────────────────────────── */

.faq-section {
    background-color: var(--color-bg-light);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(87, 7, 102, 0.06) 0%, rgba(87, 7, 102, 0.02) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    background: var(--color-white);
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    overflow: hidden;
}

/* ── Accordion Item ───────────────────────────────────────── */

.faq-item {
    border-bottom: 1px solid #e4e4e4;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
    line-height: 1.4;
}

/* ── +/× Icon ─────────────────────────────────────────────── */

.faq-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    position: relative;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Horizontal bar */
.faq-icon::before {
    width: 10px;
    height: 1.5px;
}

/* Vertical bar — rotates to 0 when open */
.faq-icon::after {
    width: 1.5px;
    height: 10px;
}

.faq-item--open .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* ── Answer Panel ─────────────────────────────────────────── */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer p {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.8;
    padding: 0 28px 24px;
    margin: 0;
}

.faq-item--open .faq-answer {
    max-height: 600px;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
    .faq-hero {
        padding: 60px 0 48px;
    }

    .faq-section {
        padding: 60px 0;
    }

    .faq-question {
        padding: 18px 20px;
        font-size: 17px;
    }

    .faq-answer p {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .faq-hero {
        padding: 48px 0 36px;
    }

    .faq-section {
        padding: 48px 0;
    }

    .faq-question {
        padding: 16px 16px;
        font-size: 15px;
    }

    .faq-answer p {
        padding: 0 16px 18px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .faq-hero::before,    .faq-hero::after,
    .faq-section::before {
        display: none;
    }
}
