/* =========================================================
   FAQ — mobile first
   ========================================================= */

/* =========================================================
   Seção 1: Hero
   ========================================================= */

.faq-hero {
    width: 100%;
    height: calc(200px + var(--header-height-mobile));
    background-color: var(--color-primary-dark);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url('/assets/img/faq/faq-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* =========================================================
   Seção 2: Intro
   ========================================================= */

.faq-intro {
    background-color: var(--color-accent);
    padding-block: var(--space-12);
}

.faq-intro__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.faq-intro__title {
    font-size: var(--text-hero);
    font-weight: var(--fw-bold);
    color: var(--color-white);
    line-height: var(--line-tight);
}

.faq-intro__subtitle {
    font-size: var(--text-md);
    font-weight: var(--fw-light);
    color: var(--color-white);
    line-height: var(--line-loose);
    margin-bottom: 0;
}

/* =========================================================
   Seção 3: Accordion por categoria
   ========================================================= */

.faq-content {
    background-color: var(--color-white);
    padding-block: var(--space-12);
}

.faq-wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-cat-item {
    background-color: var(--color-border-light);
    border-radius: 20px;
    overflow: hidden;
}

.faq-cat-item__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: 20px 26px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-cat-item__title {
    font-size: 1.125rem;
    font-weight: var(--fw-bold);
    color: #000000;
    line-height: var(--line-tight);
}

.faq-cat-item__chevron {
    flex-shrink: 0;
    color: #008DFB;
    transition: transform var(--transition-normal);
}

.faq-cat-item.is-open .faq-cat-item__chevron {
    transform: rotate(180deg);
}

.faq-cat-item__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-cat-item__body-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: 0 26px 24px;
}

.faq-qa__question {
    font-size: 1rem;
    font-weight: var(--fw-bold);
    color: #008DFB;
    line-height: var(--line-tight);
    margin-bottom: var(--space-2);
}

.faq-qa__answer {
    font-size: 1rem;
    font-weight: var(--fw-regular);
    color: var(--color-black);
    line-height: var(--line-loose);
}

/* =========================================================
   Breakpoints
   ========================================================= */

@media (min-width: 1024px) {

    .faq-hero {
        height: calc(360px + var(--header-height-desktop));
    }

    .faq-intro {
        padding-block: var(--space-20);
    }

    .faq-intro__inner {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .faq-intro__left {
        flex: 0 0 368px;
        text-align: right;
    }

    .faq-intro__right {
        flex: 1;
    }

    .faq-intro__title {
        font-size: var(--text-hero);
    }

    .faq-intro__subtitle {
        font-size: var(--text-md);
    }

    .faq-content {
        padding-block: var(--space-20);
    }

    .faq-wrap {
        max-width: 1318px;
        margin-inline: auto;
        gap: 15px;
    }

    .faq-cat-item__header {
        padding: 24px 36px;
    }

    .faq-cat-item__title {
        font-size: 1.375rem;
    }

    .faq-cat-item__body-inner {
        padding: 0 36px 32px;
        gap: var(--space-8);
    }
}
