/* ================================================================
   Roomtec Central de Ajuda — Home (dashboard)
   ================================================================ */

/* ---------- Botões reutilizados ---------- */
.sv-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font); font-size: 15px; font-weight: 600; color: #fff;
    background: var(--blue-action); border: none; border-radius: var(--r-md);
    padding: 12px 20px; box-shadow: var(--shadow-blue); cursor: pointer; transition: background .15s;
}
.sv-btn-primary:hover { background: var(--blue-action-hover); }
.sv-btn-inline { padding: 10px 18px; font-size: 14.5px; }
.sv-btn-ghost {
    background: none; border: 1px solid var(--border-strong); border-radius: var(--r-md);
    color: var(--text-body); font-weight: 600; font-size: 14.5px; padding: 10px 18px; cursor: pointer;
}
.sv-btn-ghost:hover { background: var(--blue-wash); border-color: var(--blue-soft); color: var(--blue-brand); }
.sv-link-btn { background: none; border: none; color: var(--text-muted); font-size: 13.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.sv-link-btn:hover { color: var(--blue-action); }
.sv-state { color: var(--text-muted); padding: 24px 0; display: flex; align-items: center; gap: 8px; }

/* ---------- Hero ---------- */
.sv-hero { text-align: center; padding: 56px 0 36px; }
.sv-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700;
    color: var(--blue-brand); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    padding: 7px 16px; border-radius: var(--r-pill); margin-bottom: 18px;
}
.sv-hero-eyebrow .bi { color: var(--blue-action); }
.sv-hero-title { font-size: 38px; font-weight: 800; color: var(--blue-brand); letter-spacing: -0.02em; margin: 0 0 12px; }
.sv-hero-sub { font-size: 16px; color: var(--text-muted); max-width: 560px; margin: 0 auto 28px; }

.sv-search {
    position: relative; display: flex; align-items: center; max-width: 680px; margin: 0 auto;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill);
    box-shadow: var(--shadow-md); padding: 8px 8px 8px 22px;
}
.sv-search:focus-within { border-color: var(--blue-soft); box-shadow: 0 0 0 4px var(--blue-tint-12), var(--shadow-md); }
.sv-search-ic { color: var(--text-faint); font-size: 19px; }
.sv-search-input { flex: 1; border: none; outline: none; font-family: var(--font); font-size: 16px; color: var(--text-strong); padding: 10px 14px; background: transparent; }
.sv-search-input::placeholder { color: var(--text-faint); }
.sv-search-btn {
    background: var(--blue-action); color: #fff; border: none; border-radius: var(--r-pill);
    font-weight: 600; font-size: 15px; padding: 11px 26px; cursor: pointer; box-shadow: var(--shadow-blue);
}
.sv-search-btn:hover { background: var(--blue-action-hover); }

.sv-sugest { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.sv-sugest-label { font-size: 13.5px; color: var(--text-muted); }
.sv-sugest-chip {
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill);
    color: var(--blue-brand); font-weight: 600; font-size: 13.5px; padding: 8px 16px; cursor: pointer; transition: .15s;
}
.sv-sugest-chip:hover { border-color: var(--blue-soft); background: var(--blue-wash); }

/* ---------- Seções ---------- */
.sv-block { margin-bottom: 36px; }
.sv-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sv-h2 { font-size: 22px; font-weight: 800; color: var(--text-strong); margin: 0; }

/* ---------- Grade de categorias ---------- */
.sv-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.sv-cat-card {
    display: flex; flex-direction: column; gap: 4px; text-decoration: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm); padding: 22px; transition: border-color .15s, box-shadow .15s, transform .1s;
}
.sv-cat-card:hover { border-color: var(--blue-soft); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sv-cat-card-ic { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; margin-bottom: 10px; }
.sv-cat-card-nome { font-size: 17px; font-weight: 700; color: var(--text-strong); }
.sv-cat-card-desc { font-size: 14px; color: var(--text-muted); line-height: 1.45; }
.sv-cat-card-count { font-size: 12.5px; font-weight: 600; color: var(--blue-action); margin-top: 8px; }

/* ---------- Perguntas frequentes (accordion) ---------- */
.sv-faqcat { margin-top: 28px; }
.sv-h3 { font-size: 17px; font-weight: 700; color: var(--text-strong); margin: 0 0 14px; }
.sv-acc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sv-acc-item {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
    box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.sv-acc-item:hover { border-color: var(--blue-soft); }
.sv-acc-item.aberto { border-color: var(--blue-soft); box-shadow: var(--shadow-md); }
.sv-acc-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: none; border: none; cursor: pointer; text-align: left;
    font-family: var(--font); font-size: 15.5px; font-weight: 700; color: var(--text-strong); padding: 16px 18px;
}
.sv-acc-q-txt { min-width: 0; }
.sv-acc-chev { color: var(--text-muted); font-size: 15px; flex-shrink: 0; transition: transform .2s; }
.sv-acc-item.aberto .sv-acc-chev { transform: rotate(180deg); color: var(--blue-action); }
.sv-acc-a { padding: 0 18px 18px; }
.sv-acc-a-txt { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-body); white-space: pre-line; }

/* ---------- Novidades (teaser) ---------- */
.sv-section-sub { font-size: 13.5px; color: var(--text-muted); margin: 4px 0 0; }
.sv-news { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.sv-news-row {
    display: flex; align-items: center; gap: 14px; padding: 15px 20px;
    text-decoration: none; border-bottom: 1px solid var(--border); transition: background .14s;
}
.sv-news-row:last-child { border-bottom: 0; }
.sv-news-row:hover { background: var(--blue-wash); }
.sv-news-date { font-size: 12.5px; font-weight: 600; color: var(--text-muted); width: 92px; flex-shrink: 0; }
.sv-news-titulo { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text-strong); }
.sv-news-chev { color: var(--text-faint); flex-shrink: 0; }
.sv-news-row:hover .sv-news-chev { color: var(--blue-action); }

.sv-tag {
    display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
    letter-spacing: .02em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-pill); flex-shrink: 0;
}
.sv-tag-new  { background: #E6F6EE; color: var(--success); }
.sv-tag-fix  { background: #FBF3E3; color: var(--warning); }
.sv-tag-info { background: var(--blue-wash); color: var(--blue-action); }

/* Modal de novidade */
.sv-news-modal-head { align-items: flex-start; }
.sv-news-modal-info { min-width: 0; }
.sv-news-modal-meta { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.sv-news-modal-titulo { font-size: 21px; font-weight: 800; color: var(--text-strong); margin: 10px 0 0; }
.sv-news-conteudo { max-width: 680px; margin: 0 auto; overflow-x: auto; }
.sv-news-conteudo img { max-width: 100%; height: auto; }
.sv-news-saibamais { margin-top: 18px; text-decoration: none; }

/* ---------- Fale com a gente ---------- */
.sv-contact {
    background: linear-gradient(180deg, var(--surface), #FBFCFE);
    border: 1px solid var(--border); border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm); padding: 28px; margin-bottom: 48px;
}
.sv-contact-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.sv-contact-ic {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; font-size: 20px;
    background: var(--blue-wash); color: var(--blue-action);
    display: inline-flex; align-items: center; justify-content: center;
}
.sv-chan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sv-chan {
    display: flex; flex-direction: column; gap: 10px; text-decoration: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 20px; transition: border-color .16s, box-shadow .16s, transform .16s;
}
.sv-chan:hover { border-color: var(--blue-soft); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sv-chan-ic {
    width: 44px; height: 44px; border-radius: 12px; font-size: 20px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.sv-chan-ic-ai   { background: var(--blue-wash); color: var(--blue-action); }
.sv-chan-ic-wa   { background: #E4F8EC; color: #1FA855; }
.sv-chan-ic-mail { background: #EEEAFC; color: #6B4CE0; }
.sv-chan-titulo { font-size: 16.5px; font-weight: 700; color: var(--text-strong); margin: 0; }
.sv-chan-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; margin: 0; flex: 1; }
.sv-chan-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-faint); }
.sv-chan-cta { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--blue-action); margin-top: 2px; }
.sv-chan-cta .bi { transition: transform .16s; }
.sv-chan:hover .sv-chan-cta .bi { transform: translateX(3px); }
.sv-chan-wa .sv-chan-cta { color: #1FA855; }
.sv-chan-mail .sv-chan-cta { color: #6B4CE0; }
.sv-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(31, 157, 107, .16); }
.sv-off-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); box-shadow: 0 0 0 3px rgba(122, 134, 153, .16); }
.sv-wa-online { color: var(--success); }

/* Modal — WhatsApp fora do horário de atendimento */
.sv-waoff { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.sv-waoff-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 32px 28px; text-align: center; }
.sv-waoff-fechar { position: absolute; top: 16px; right: 16px; }
.sv-waoff-ic {
    width: 56px; height: 56px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; font-size: 24px;
    background: var(--blue-wash); color: var(--blue-action);
}
.sv-waoff-titulo { font-size: 19px; font-weight: 700; color: var(--text-strong); margin: 4px 0 0; }
.sv-waoff-texto { font-size: 14px; color: var(--text-body); line-height: 1.6; margin: 0; }
.sv-waoff-btn { width: 100%; justify-content: center; margin-top: 6px; }
.sv-waoff-link {
    background: none; border: 0; padding: 6px 0 0; font-size: 13.5px; font-weight: 600;
    color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.sv-waoff-link:hover { color: var(--text-body); text-decoration: underline; }
.sv-waoff-aviso { font-size: 12px; color: var(--text-faint); }

.sv-extra-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
.sv-extra {
    display: flex; align-items: center; gap: 14px; text-decoration: none;
    background: var(--blue-wash); border: 1px solid transparent; border-radius: var(--r-lg);
    padding: 16px 18px; transition: border-color .16s, background .16s;
}
.sv-extra:hover { border-color: var(--blue-soft); background: var(--surface); }
.sv-extra-ic {
    width: 42px; height: 42px; border-radius: 11px; font-size: 19px; flex-shrink: 0;
    background: var(--surface); color: var(--blue-action); box-shadow: var(--shadow-sm);
    display: inline-flex; align-items: center; justify-content: center;
}
.sv-extra-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sv-extra-titulo { font-size: 15px; font-weight: 700; color: var(--text-strong); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sv-extra-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
    font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: var(--r-pill);
}
.sv-extra-sub { font-size: 13px; color: var(--text-muted); }
.sv-extra-chev { color: var(--text-faint); flex-shrink: 0; }
.sv-extra:hover .sv-extra-chev { color: var(--blue-action); }

/* ---------- Lista de artigos ---------- */
.sv-artlist { display: flex; flex-direction: column; gap: 10px; }
.sv-artitem {
    display: flex; align-items: center; gap: 14px; text-decoration: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
    box-shadow: var(--shadow-sm); padding: 14px 16px; transition: border-color .15s, box-shadow .15s;
}
.sv-artitem:hover { border-color: var(--blue-soft); box-shadow: var(--shadow-md); }
.sv-artitem-ic { font-size: 20px; flex-shrink: 0; }
.sv-artitem-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sv-artitem-titulo { font-weight: 700; color: var(--text-strong); }
.sv-artitem-resumo { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-artitem-cat { font-size: 12.5px; color: var(--text-muted); flex-shrink: 0; }
.sv-artitem-views { font-size: 12.5px; color: var(--text-faint); flex-shrink: 0; }
.sv-artitem-chev { color: var(--text-faint); flex-shrink: 0; }

/* ---------- Estado vazio ---------- */
.sv-empty { text-align: center; padding: 48px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.sv-empty .bi { font-size: 40px; color: var(--text-faint); }
.sv-empty h3 { font-size: 19px; font-weight: 700; color: var(--text-strong); margin: 12px 0 6px; }
.sv-empty p { color: var(--text-muted); margin: 0 0 18px; }
.sv-empty-acoes { display: flex; gap: 10px; justify-content: center; }

/* ---------- Chip de categoria ---------- */
.sv-art-chip {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
    padding: 4px 11px; border-radius: 999px; background: #f3f5f9; border: 1px solid var(--border);
}

/* ---------- Modal de leitura ---------- */
.sv-ler-head { align-items: flex-start; }
.sv-ler-titulo { font-size: 22px; font-weight: 800; color: var(--text-strong); margin: 10px 0 6px; }
.sv-ler-meta { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.sv-ler-body { font-size: 16px; line-height: 1.75; color: var(--text-body); }
.sv-ler-body h2 { font-size: 20px; font-weight: 700; color: var(--text-strong); margin: 26px 0 10px; }
.sv-ler-body h3 { font-size: 17px; font-weight: 700; color: var(--text-strong); margin: 20px 0 8px; }
.sv-ler-body p { margin: 0 0 14px; }
.sv-ler-body ul, .sv-ler-body ol { margin: 0 0 14px; padding-left: 22px; }
.sv-ler-body li { margin-bottom: 6px; }
.sv-ler-body img { max-width: 100%; border-radius: var(--r-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.sv-ler-body a { color: var(--blue-action); }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
    .sv-hero-title { font-size: 30px; }
    .sv-search-btn { padding: 11px 18px; }
    .sv-chan-grid { grid-template-columns: 1fr; }
    .sv-contact { padding: 20px; }
}
@media (max-width: 560px) {
    .sv-news-date { display: none; }
}
