/* ============================================================
   FAQ / Central de Ajuda — skin nautico-novo
   Layout claro, cartões arredondados, acordeão animado e busca
   instantânea com auto-expansão. Tudo escopado em .nn-faq para
   não vazar para outras telas (este CSS é carregado global).
   ============================================================ */

.nn-faq {
    --faq-red:      #ED3237;
    --faq-red-dark: #B22D30;
    /* era #111827 (cinza quase preto) — alinhado ao $nn-ink do skin */
    --faq-ink:      #B22D30;
    --faq-muted:    #6b7280;
    --faq-line:     #eceef1;
    --faq-bg:       #f9fafb;
    --faq-card:     #ffffff;

    max-width: 940px;
    margin: 0 auto;
    padding: clamp(30px, 5vw, 60px) 20px 24px;
    font-family: 'Inter', 'Open Sans', sans-serif;
    color: var(--faq-ink);
}

/* ---------- Cabeçalho ---------- */
.nn-faq__head {
    text-align: center;
    margin-bottom: 26px;
}

.nn-faq__tag {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--faq-red);
    background: rgba(214, 0, 0, .08);
    border: 1px solid rgba(214, 0, 0, .16);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 16px;
}

.nn-faq__head h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.1;
    color: var(--faq-ink);
    margin: 0 0 12px;
}

.nn-faq__head .nn-ink-accent { color: var(--faq-red); }

.nn-faq__lead {
    max-width: 560px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
    color: var(--faq-muted);
}

/* ---------- Busca (fixa ao rolar) ---------- */
.nn-faq__search {
    position: sticky;
    top: 66px;
    z-index: 20;
    margin: 0 0 18px;
    padding: 10px 0;
    background: linear-gradient(var(--faq-bg) 72%, rgba(249, 250, 251, 0));
}

.nn-faq__search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.nn-faq__search-box .nn-faq__search-icon {
    position: absolute;
    left: 20px;
    color: var(--faq-red);
    font-size: 16px;
    pointer-events: none;
}

.nn-faq__search input {
    width: 100%;
    /* !important vence a regra genérica input:not(...) do style.css (0,3,1) */
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 52px 0 50px !important;
    font-size: 16px;
    font-family: inherit;
    color: var(--faq-ink) !important;
    background: var(--faq-card);
    border: 1.5px solid var(--faq-line) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.nn-faq__search input::placeholder { color: #9ca3af; }

.nn-faq__search input:focus {
    outline: none;
    border-color: var(--faq-red);
    box-shadow: 0 8px 26px rgba(214, 0, 0, .14);
}

.nn-faq__search-clear {
    position: absolute;
    right: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f0f1f3;
    color: var(--faq-muted);
    font-size: 13px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.nn-faq__search-clear:hover { background: var(--faq-red); color: #fff; }
.nn-faq__search.has-value .nn-faq__search-clear { display: inline-flex; }

/* ---------- Chips de categoria ---------- */
.nn-faq__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 26px;
}

.nn-faq__chip {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--faq-red-dark);
    background: #fff;
    border: 1.5px solid var(--faq-line);
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
}

.nn-faq__chip:hover {
    border-color: rgba(214, 0, 0, .4);
    background: rgba(214, 0, 0, .04);
}

.nn-faq__chip.is-active {
    color: #fff;
    background: var(--faq-red);
    border-color: var(--faq-red);
    box-shadow: 0 6px 16px rgba(214, 0, 0, .28);
}

/* ---------- Cartão de categoria ---------- */
.nn-faq .faq__container {
    display: block;
    justify-content: initial;
    margin: 0 0 14px;
    scroll-margin-top: 140px;
}

.nn-faq .faq__categoria {
    width: 100% !important;
    display: block;
    box-sizing: border-box;
    margin: 0;
    background: var(--faq-card);
    border: 1px solid var(--faq-line);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .05);
    overflow: hidden;
    transition: box-shadow .25s ease, border-color .25s ease;
}

.nn-faq .faq__categoria:hover {
    box-shadow: 0 10px 30px rgba(15, 23, 42, .09);
    border-color: rgba(214, 0, 0, .18);
}

.nn-faq .faq__categoria-header {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 0;
    padding: 20px 24px;
    border: 0;
    cursor: pointer;
    background: transparent;
    transition: background .2s ease;
}

.nn-faq .faq__categoria-header:hover { background: #fbfbfc; }

.nn-faq .faq__categoria-title {
    flex: 1;
    display: block;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--faq-ink);
    user-select: none;
}

/* ---------- Pergunta ---------- */
.nn-faq .faq__categoria-data {
    display: none;
    padding: 0 24px !important;
}

.nn-faq .faq__categoria-data[data-close="false"] {
    display: block;
    animation: nn-faq-reveal .3s ease;
}

.nn-faq .faq__pergunta {
    display: block;
    border-top: 1px solid var(--faq-line);
}

.nn-faq .faq__container > .faq__categoria > .faq__categoria-data:first-of-type .faq__pergunta:first-child,
.nn-faq .faq__categoria-data + .faq__categoria-data .faq__pergunta { border-top: 1px solid var(--faq-line); }

.nn-faq .faq__pergunta-header {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 0;
    padding: 16px 2px;
    cursor: pointer;
}

.nn-faq .faq__pergunta-title {
    flex: 1;
    display: block;
    text-align: left;
    font-family: 'Inter', 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--faq-ink);
    user-select: none;
    transition: color .2s ease;
}

.nn-faq .faq__pergunta-header:hover .faq__pergunta-title { color: var(--faq-red); }
.nn-faq .faq__pergunta-title a { color: var(--faq-red); font-weight: 700; }

.nn-faq .faq__pergunta-data {
    display: none;
    padding: 0 2px;
}

.nn-faq .faq__pergunta-data[data-close="false"] {
    display: block;
    animation: nn-faq-reveal .26s ease;
}

.nn-faq .faq__pergunta-data span {
    display: block;
    text-align: left;
    padding: 0 0 18px;
    margin: 0;
    overflow: visible;
    color: #4b5563;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
}

/* ---------- Ícone +/− ---------- */
.nn-faq .faq__categoria-icon {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border: 0 !important;
    transform: none !important;
}

.nn-faq .faq__categoria-icon::before,
.nn-faq .faq__categoria-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 2.2px;
    border-radius: 2px;
    background: var(--faq-red);
    transform: translate(-50%, -50%);
    transition: transform .25s ease, opacity .25s ease;
}

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

.nn-faq .faq__pergunta-header .faq__categoria-icon { flex-basis: 18px; width: 18px; height: 18px; }
.nn-faq .faq__pergunta-header .faq__categoria-icon::before,
.nn-faq .faq__pergunta-header .faq__categoria-icon::after { width: 11px; }

/* ---------- Estado vazio ---------- */
.nn-faq__empty {
    display: none;
    text-align: center;
    padding: 48px 20px;
    color: var(--faq-muted);
}

.nn-faq__empty i { font-size: 34px; color: #d1d5db; margin-bottom: 14px; display: block; }
.nn-faq__empty strong { display: block; font-size: 18px; color: var(--faq-ink); margin-bottom: 6px; font-family: 'Outfit', sans-serif; }

/* ---------- Bloco de atendimento ---------- */
.nn-faq-contact {
    max-width: 940px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.nn-faq-contact__card {
    /* vinho sólido (#B22D30), sem degradê — retorno de QA */
    background: #B22D30;
    border-radius: 22px;
    padding: clamp(30px, 4vw, 46px);
    color: #fff;
    text-align: center;
}

.nn-faq-contact__card h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 3.4vw, 30px);
    margin: 0 0 6px;
    color: #fff;
}

.nn-faq-contact__card p.nn-faq-contact__lead {
    margin: 0 auto 28px;
    max-width: 480px;
    color: rgba(255, 255, 255, .88);
    font-size: 15.5px;
    line-height: 1.6;
}

.nn-faq-contact__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.nn-faq-contact__item {
    flex: 1 1 220px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 18px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

a.nn-faq-contact__item:hover {
    background: rgba(255, 255, 255, .2);
    transform: translateY(-3px);
    color: #fff;
    text-decoration: none;
}

.nn-faq-contact__item i {
    font-size: 24px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}

.nn-faq-contact__item .nn-faq-contact__label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
}

.nn-faq-contact__item .nn-faq-contact__value {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}

@keyframes nn-faq-reveal {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .nn-faq__search { top: 58px; }
    .nn-faq .faq__categoria-header { padding: 16px 18px; }
    .nn-faq .faq__categoria-title { font-size: 16px; }
    .nn-faq .faq__categoria-data { padding: 0 18px !important; }
    .nn-faq .faq__pergunta-title { font-size: 14.5px; }
}
