/* =========================================================
   FAQ
========================================================= */

.faq-page {
    background: var(--background-light);
    color: var(--text-color);
}

.faq-page-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.faq-container {
    width: min(1100px, calc(100% - 40px));
    margin-inline: auto;
}

.faq-container--narrow {
    width: min(820px, calc(100% - 40px));
}

/* =========================================================
   HERO
========================================================= */

.faq-hero {
    padding: 72px 0 82px;
    background:
        linear-gradient(
            135deg,
            var(--primary-color),
            var(--secondary-color)
        );
    color: var(--text-light);
    text-align: center;
}

.faq-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.faq-eyebrow--light,
.faq-hero .faq-eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.faq-hero h1 {
    margin: 0;
    color: var(--text-light);
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.1;
}

.faq-hero__description {
    max-width: 680px;
    margin: 20px auto 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* =========================================================
   BUSCA
========================================================= */

.faq-search {
    position: relative;
    display: flex;
    max-width: 680px;
    margin: 32px auto 0;
}

.faq-search__input {
    width: 100%;
    height: 56px;
    padding: 0 105px 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-md);
    background: var(--background-light);
    color: var(--text-color);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.faq-search__input::placeholder {
    color: var(--text-muted);
}

.faq-search__input:focus {
    border-color: var(--background-light);
    outline: 3px solid rgba(255, 255, 255, 0.24);
    outline-offset: 2px;
}

.faq-search__clear {
    position: absolute;
    top: 50%;
    right: 10px;
    min-height: 38px;
    padding: 7px 14px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--background-gray);
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    transform: translateY(-50%);
}

.faq-search__clear:hover {
    background: var(--border-color);
    color: var(--text-color);
}

/* =========================================================
   DESTAQUES
========================================================= */

.faq-highlights {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: -38px;
}

.faq-highlight-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--background-light);
    color: var(--text-color);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.faq-highlight-card:hover {
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.faq-highlight-card__label {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faq-highlight-card strong {
    color: var(--text-color);
    font-size: 1.04rem;
    line-height: 1.4;
}

.faq-highlight-card small {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.87rem;
    line-height: 1.6;
}

/* =========================================================
   FILTROS
========================================================= */

.faq-tools {
    padding: 64px 0 30px;
}

.faq-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.faq-filter {
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    background: var(--background-light);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.faq-filter:hover {
    border-color: var(--primary-color);
    background-color: var(--background-light);
    color: var(--primary-color);
}

.faq-filter.is-active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--text-light);
}

.faq-results-count {
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    text-align: center;
}

/* =========================================================
   ACCORDION
========================================================= */

.faq-list {
    max-width: 900px;
    margin-inline: auto;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-light);
}

.faq-item + .faq-item {
    margin-top: 14px;
}

.faq-item[hidden] {
    display: none;
}

.faq-item__heading {
    margin: 0;
    font-size: inherit;
}

.faq-question {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: center;
    gap: 22px;
    width: 100%;
    min-height: 68px;
    padding: 20px 22px;
    border: 0;
    background: var(--background-light);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
    box-shadow: none;
}

.faq-question:hover {
    background: var(--background-gray);
    color: var(--primary-color);
}

.faq-question[aria-expanded="true"] {
    background: rgba(173, 51, 80, 0.05);
    color: var(--primary-color);
}

.faq-question:focus-visible {
    position: relative;
    z-index: 2;
    outline: 3px solid rgba(173, 51, 80, 0.22);
    outline-offset: -3px;
}

.faq-question__icon {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
}

.faq-question__icon::before,
.faq-question__icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.faq-question__icon::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

.faq-question[aria-expanded="true"]
.faq-question__icon::after {
    transform:
        translate(-50%, -50%)
        rotate(0);
}

.faq-answer {
    border-top: 1px solid var(--border-color);
}

.faq-answer__content {
    padding: 24px 22px 26px;
}

.faq-answer__content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.8;
}

.faq-answer__content p + p {
    margin-top: 16px;
}

.faq-answer__content ul {
    margin: 18px 0 0;
    padding-left: 22px;
}

.faq-answer__content li {
    color: var(--text-muted);
    line-height: 1.75;
}

.faq-answer__content li + li {
    margin-top: 7px;
}

.faq-address {
    margin: 18px 0;
    padding: 18px;
    border-left: 4px solid var(--primary-color);
    background: var(--background-gray);
    color: var(--text-muted);
    font-style: normal;
    line-height: 1.7;
}

/* =========================================================
   LINK INTERNO
========================================================= */

.faq-inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 22px;
    padding: 9px 17px;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-sm);
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.faq-inline-link:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* =========================================================
   SEM RESULTADOS
========================================================= */

.faq-empty {
    max-width: 700px;
    margin: 30px auto 0;
    padding: 42px 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--background-gray);
    text-align: center;
}

.faq-empty h2 {
    margin: 0;
    color: var(--text-color);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    line-height: 1.3;
}

.faq-empty p {
    margin: 14px 0 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-page .faq-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 24px;
    padding: 11px 20px;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: var(--text-light);
    font-weight: 700;
    box-shadow: none;
}

.faq-page .faq-reset-button:hover {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: var(--text-light);
}

/* =========================================================
   CONTATO
========================================================= */

.faq-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    margin-top: 72px;
    margin-bottom: 88px;
    padding: 38px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            135deg,
            var(--primary-color),
            var(--secondary-color)
        );
    color: var(--text-light);
}

.faq-contact h2 {
    margin: 0;
    color: var(--text-light);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
}

.faq-contact p {
    max-width: 650px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.faq-contact__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.faq-page .faq-contact__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
}

.faq-page .faq-contact__button--light {
    border-color: var(--background-light);
    background: var(--background-light);
    color: var(--primary-color);
}

.faq-page .faq-contact__button--light:hover {
    background: var(--background-gray);
    color: var(--secondary-color);
}

.faq-page .faq-contact__button--outline {
    border-color: rgba(255, 255, 255, 0.7);
    background: transparent;
    color: var(--text-light);
}

.faq-page .faq-contact__button--outline:hover {
    border-color: var(--background-light);
    background: var(--background-light);
    color: var(--primary-color);
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 900px) {
    .faq-highlights {
        grid-template-columns: 1fr;
        max-width: 760px;
        margin-inline: auto;
    }

    .faq-contact {
        grid-template-columns: 1fr;
    }

    .faq-contact__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 650px) {

    .faq-container,
    .faq-container--narrow {
        width: min(100% - 28px, 1100px);
    }

    .faq-hero {
        padding: 52px 0 64px;
        text-align: left;
    }

    .faq-hero__description {
        margin-left: 0;
    }

    .faq-search {
        margin-top: 26px;
    }

    .faq-search__input {
        height: 54px;
        padding-left: 16px;
        font-size: 0.94rem;
    }

    .faq-highlights {
        margin-top: -24px;
    }

    .faq-highlight-card {
        padding: 21px;
    }

    .faq-tools {
        padding-top: 48px;
    }

    .faq-filters {
        justify-content: flex-start;
    }

    .faq-filter {
        flex: 1 1 auto;
    }

    .faq-question {
        min-height: 64px;
        padding: 18px;
        font-size: 0.95rem;
    }

    .faq-answer__content {
        padding: 21px 18px 23px;
    }

    .faq-answer__content p,
    .faq-answer__content li {
        font-size: 0.93rem;
        line-height: 1.75;
    }

    .faq-inline-link {
        width: 100%;
        text-align: center;
    }

    .faq-empty {
        padding: 32px 20px;
        text-align: left;
    }

    .faq-page .faq-reset-button {
        width: 100%;
    }

    .faq-contact {
        gap: 26px;
        margin-top: 58px;
        margin-bottom: 64px;
        padding: 28px 22px;
    }

    .faq-contact__actions {
        flex-direction: column;
    }

    .faq-page .faq-contact__button {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}