/* HB Telecom · página "Todas as dúvidas" (duvidas.php) */
:root {
  --hbd-red: #9E0000;
  --hbd-red-2: #e01b1b;
  --hbd-red-luz: #ff4b45;
  --hbd-bg: #070203;
  --hbd-card: rgba(255, 255, 255, .035);
  --hbd-borda: rgba(255, 255, 255, .09);
  --hbd-txt: #f6eeee;
  --hbd-sub: rgba(246, 238, 238, .66);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hbd {
  margin: 0; min-height: 100vh; background: var(--hbd-bg); color: var(--hbd-txt);
  -webkit-font-smoothing: antialiased; overflow-x: clip !important; overflow-y: visible !important;
}
.hbd-hero, .hbd-corpo { font-family: Figtree, Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
/* "clip" no lugar de "hidden": não quebra a faixa de categorias presa no topo */
html:has(body.hbd) { overflow-x: clip !important; overflow-y: visible !important; }
/* o site.css põe overflow:hidden no <main>; aqui ele precisa ficar livre para a faixa presa funcionar */
body.hbd > main { overflow: visible !important; }
.hbd a { color: inherit; text-decoration: none; }
/* só nos ícones da parte de dúvidas: topo do site, autoatendimento, rodapé e WhatsApp ficam como na home */
:is(.hbd-hero, .hbd-corpo) svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hbd-wrap { width: min(920px, 100% - 32px); margin: 0 auto; }
.hbd-cta-wrap { width: min(1180px, 100% - 32px); }
.hbd-brilho {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 100% 30%, rgba(120, 0, 10, .25), transparent 70%),
    radial-gradient(40% 35% at 0% 70%, rgba(120, 0, 10, .18), transparent 70%);
}

/* topo */
.hbd-topo { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(7, 2, 3, .6); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.hbd-topo-in { width: min(1180px, 100% - 32px); height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hbd-marca img { height: 40px; width: auto; display: block; }
.hbd-marca b { font-size: 22px; }
.hbd-acoes { display: flex; align-items: center; gap: 10px; }
.hbd-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--hbd-sub) !important; transition: color .2s, background .2s; }
.hbd-link:hover { color: #fff !important; background: rgba(255, 255, 255, .06); }
.hbd-link svg { width: 18px; height: 18px; }
.hbd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.hbd-btn svg { width: 18px; height: 18px; }
.hbd-btn-red { background: linear-gradient(180deg, #b70707, var(--hbd-red)); color: #fff !important; box-shadow: 0 10px 26px rgba(158, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .18); }
.hbd-btn-red:hover { background: linear-gradient(180deg, #cc1010, #ad0000); transform: translateY(-1px); }
.hbd-btn-ghost { border: 1px solid rgba(255, 255, 255, .18); color: #fff !important; background: rgba(255, 255, 255, .03); }
.hbd-btn-ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .07); }

/* abertura */
/* topo "Central de ajuda": faixa vermelha da HB de ponta a ponta (o menu do site fica por cima) */
.hbd-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 150px 0 72px; margin-bottom: 40px;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(255, 70, 50, .35), transparent 60%),
    linear-gradient(115deg, #d10f0f 0%, #b00606 45%, #8a0000 100%);
}
.hbd-hero .hbd-wrap { position: relative; z-index: 2; }
.hbd-hero h1 { margin: 0; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; color: #fff; }
.hbd-sub { margin: 12px auto 0; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; color: #fff; }
.hbd-busca { position: relative; display: block; max-width: 566px; margin: 34px auto 0; }
.hbd-busca input {
  width: 100%; height: 56px; padding: 0 58px 0 24px; border: 0; border-radius: 8px;
  background: #fff; color: #1d1515; font: inherit; font-size: 16px; outline: none;
  box-shadow: 0 10px 30px rgba(60, 0, 0, .28); -webkit-appearance: none; appearance: none;
}
.hbd-busca input::-webkit-search-cancel-button { display: none; }
.hbd-busca input::placeholder { color: #6f6262; }
.hbd-busca input:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 10px 30px rgba(60, 0, 0, .28); }
.hbd-busca svg { position: absolute; right: 18px; top: 50%; width: 24px; height: 24px; margin-top: -12px; fill: none; stroke: #2a2020; stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.hbd-hero-btns { display: flex; justify-content: center; margin: 16px auto 0; }
.hbd-hero-btns .hbd-hbtn { width: min(275px, 100%); }
/* no PC o botão do WhatsApp do topo fica escondido (o flutuante já existe); aparece só no celular/tablet */
@media (min-width: 981px) { .hbd-hero-btns { display: none; } .hbd-hero { padding-bottom: 80px; } }
.hbd-hbtn svg.hbd-wa-ico { fill: currentColor; stroke: none; width: 21px; height: 21px; }
.hbd-hbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 18px;
  border-radius: 8px; font-weight: 700; font-size: 16px; text-decoration: none !important; transition: background .2s, color .2s, transform .2s;
}
.hbd-hbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hbd-hbtn-borda { border: 1.5px solid #fff; color: #fff !important; background: transparent; }
.hbd-hbtn-borda:hover { background: rgba(255, 255, 255, .12); }
.hbd-hbtn-cheio { background: #fff; color: #b00606 !important; }
.hbd-hbtn-cheio:hover { background: #ffecec; }
.hbd-hbtn:active { transform: scale(.98); }
/* desenhos claros de fundo */
.hbd-hero-deco { position: absolute; z-index: 1; pointer-events: none; opacity: .09; }
.hbd-hero-deco path { fill: #fff !important; stroke: none !important; }
.hbd-hero-deco circle { fill: #8a0000 !important; stroke: none !important; }
.hbd-eng1 { width: 96px; left: 23%; top: 34%; }
.hbd-eng2 { width: 180px; left: 17%; bottom: -46px; }
.hbd-hero-arte { position: absolute; z-index: 1; right: 9%; bottom: 18px; width: 230px; pointer-events: none; }
.hbd-arte-aro { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; stroke-dasharray: 3 7; }
.hbd-arte-aro2 { stroke: rgba(255, 255, 255, .18); stroke-dasharray: none; }
.hbd-arte-fone { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; }
.hbd-arte-conc { fill: #fff; }
.hbd-arte-mic { fill: #fff; }
.hbd-arte-balao path { fill: #fff; }
.hbd-arte-balao circle { fill: #b00606; }
.hbd-arte-balao { transform-origin: 160px 100px; animation: hbdBalao 3.2s ease-in-out infinite; }
@keyframes hbdBalao { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .hbd-arte-balao { animation: none; } }
@media (max-width: 1200px) { .hbd-hero-arte { right: 3%; width: 190px; } .hbd-eng1 { left: 10%; } .hbd-eng2 { left: 4%; } }
@media (max-width: 1000px) { .hbd-hero-arte { display: none; } }
.hbd-conta { margin: 16px 0 0; font-size: 14px; color: rgba(255, 255, 255, .45); }

/* lista */
/* corpo: categorias à esquerda, dúvidas à direita */
.hbd-corpo { width: min(1180px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.hbd-cats { position: sticky; top: 92px; }
.hbd-cats nav { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--hbd-borda); background: rgba(255, 255, 255, .03); }
.hbd-cats a {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 18px;
  font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .78) !important;
  border-top: 1px solid rgba(255, 255, 255, .07); transition: background .2s, color .2s;
}
.hbd-cats a:first-child { border-top: 0; }
.hbd-cats a svg { flex: none; width: 24px; height: 24px; color: inherit; stroke-width: 1.6; transition: color .25s; }
.hbd-cats a span { flex: 1; }
.hbd-cats a em { font-style: normal; font-size: 12px; font-weight: 700; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .6); }
.hbd-cats a:hover { background: rgba(255, 255, 255, .05); color: #fff !important; }
.hbd-cats a.is-on { background: linear-gradient(90deg, rgba(158, 0, 0, .35), rgba(158, 0, 0, .08)); color: #fff !important; }
.hbd-cats a.is-on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--hbd-red-luz); box-shadow: 0 0 12px rgba(255, 75, 69, .8); }
.hbd-cats a.is-on em { background: var(--hbd-red); color: #fff; }
.hbd-lista { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; min-width: 0; }
.hbd-cat-tit { margin: 4px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.hbd-tag { display: inline-block; margin: -8px 0 22px 22px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--hbd-red-luz); background: rgba(224, 27, 27, .1); }
.hbd-item.is-saindo { display: none; }
.hbd-item {
  border-radius: 18px; border: 1px solid var(--hbd-borda); background: var(--hbd-card);
  transition: border-color .3s, background .3s, box-shadow .3s;
  animation: hbd-sobe .6s cubic-bezier(.2, .8, .2, 1) both;
}
.hbd-item:nth-child(2) { animation-delay: .04s; } .hbd-item:nth-child(3) { animation-delay: .08s; }
.hbd-item:nth-child(4) { animation-delay: .12s; } .hbd-item:nth-child(5) { animation-delay: .16s; }
.hbd-item:nth-child(n+6) { animation-delay: .2s; }
@keyframes hbd-sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hbd-item:hover { border-color: rgba(255, 255, 255, .16); }
.hbd-item.is-open {
  border-color: rgba(255, 75, 69, .55);
  background: linear-gradient(180deg, rgba(158, 0, 0, .14), rgba(255, 255, 255, .03));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 75, 69, .12);
}
.hbd-item h3 { margin: 0; }
.hbd-item button {
  width: 100%; display: flex; align-items: center; gap: 18px; padding: 22px 22px; text-align: left;
  border: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-radius: 18px;
}
.hbd-item button:focus-visible { outline: 2px solid var(--hbd-red-luz); outline-offset: 2px; }
.hbd-num {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: var(--hbd-red-luz);
  background: rgba(224, 27, 27, .1); border: 1px solid rgba(255, 75, 69, .25);
  transition: background .3s, color .3s;
}
.hbd-item.is-open .hbd-num { background: var(--hbd-red); color: #fff; border-color: transparent; }
.hbd-p { flex: 1; font-size: 18px; font-weight: 700; line-height: 1.35; }
.hbd-ico { flex: none; position: relative; width: 20px; height: 20px; }
.hbd-ico::before, .hbd-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; border-radius: 2px; background: #fff; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.hbd-ico::after { transform: rotate(90deg); }
.hbd-item.is-open .hbd-ico::before, .hbd-item.is-open .hbd-ico::after { transform: rotate(180deg); }
.hbd-r { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1); }
.hbd-r > div { overflow: hidden; }
.hbd-item.is-open .hbd-r { grid-template-rows: 1fr; }
.hbd-r p { margin: 0; padding: 0 22px 24px 22px; font-size: 16px; line-height: 1.7; color: var(--hbd-sub); }
.hbd-item[hidden] { display: none; }
.hbd-vazio { margin: 8px 0; padding: 28px; text-align: center; border-radius: 18px; border: 1px dashed rgba(255, 255, 255, .16); color: var(--hbd-sub); }
mark.hbd-m { background: rgba(255, 75, 69, .28); color: #fff; border-radius: 4px; padding: 0 2px; }

/* ---- estilo do exemplo, nas cores da HB ----
   fechada: cartão cinza, pergunta em vermelho, linha vermelha embaixo
   aberta: faixa da pergunta em vermelho com texto branco, resposta em branco */
.hbd-item {
  border: 0; border-radius: 14px; border-bottom: 1px solid var(--hbd-red-2);
  background: #1c1a1a; box-shadow: none; overflow: hidden; isolation: isolate;
}
.hbd-item:hover { background: #221f1f; }
.hbd-item.is-open { background: #1c1a1a; border-color: var(--hbd-red-2); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.hbd-item button { border-radius: 14px; padding: 24px 26px; transition: background .3s, border-radius .3s; }
.hbd-item button:focus-visible { outline-offset: -2px; }
.hbd-p { color: #fff; transition: color .3s; }
.hbd-ico { color: var(--hbd-red-luz); transition: color .3s; }
.hbd-ico::before, .hbd-ico::after { background: currentColor; }
.hbd-item.is-open button { background: linear-gradient(180deg, #b00606, var(--hbd-red)); border-radius: 14px; }
.hbd-item.is-open .hbd-p, .hbd-item.is-open .hbd-ico { color: #fff; }
.hbd-r p { padding: 22px 26px 26px; color: #fff; font-weight: 500; }
.hbd-tag { display: none; }
.hbd-cat-tit { font-size: 22px; font-weight: 700; }

/* categorias no mesmo tom: cinza, texto vermelho; a escolhida em branco com barrinha */
.hbd-cats nav { background: #1c1a1a; border-color: rgba(255, 255, 255, .08); }
.hbd-cats a { color: rgba(255, 255, 255, .86) !important; border-top-color: rgba(255, 255, 255, .08); }
.hbd-cats a:hover { color: #fff !important; background: #221f1f; }
.hbd-cats a.is-on { color: #fff !important; background: #252121; }
.hbd-cats a.is-on svg { color: #fff; stroke-width: 1.9; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35)); }
.hbd-cats a.is-on::before { background: #fff; box-shadow: none; }

/* chamada final */
.hbd-cta {
  margin: 40px 0 70px; padding: 34px 36px; border-radius: 24px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border: 1px solid rgba(255, 75, 69, .3);
  background: radial-gradient(80% 140% at 0% 0%, rgba(158, 0, 0, .45), transparent 60%), linear-gradient(135deg, #1a0405, #0d0203);
}
.hbd-cta h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hbd-cta p { margin: 6px 0 0; color: var(--hbd-sub); font-size: 16px; }
.hbd-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hbd-rodape { padding: 26px 0 34px; border-top: 1px solid rgba(255, 255, 255, .06); text-align: center; font-size: 13px; color: rgba(255, 255, 255, .4); }

@media (max-width: 1000px) and (min-width: 701px) { .hbd-corpo { grid-template-columns: 230px minmax(0, 1fr); gap: 20px; } .hbd-cats a em { display: none; } }

/* celular */
@media (max-width: 700px) {
  .hbd-topo-in { height: 62px; }
  .hbd-marca img { height: 32px; }
  .hbd-link span { display: none; }
  .hbd-link { padding: 10px; }
  .hbd-acoes .hbd-btn { height: 40px; padding: 0 16px; font-size: 14px; }
  .hbd-hero { padding: 162px 0 44px; margin-bottom: 26px; }
  .hbd-hero-btns .hbd-hbtn { width: 100%; }
  .hbd-eng1 { display: none; }
  .hbd-eng2 { width: 130px; left: -40px; bottom: -40px; }
  .hbd-sub { font-size: 16px; }
  .hbd-busca input { height: 54px; font-size: 16px; }
  .hbd-item button { gap: 12px; padding: 18px 16px; }
  .hbd-num { width: 36px; height: 36px; font-size: 13px; border-radius: 10px; }
  .hbd-p { font-size: 16px; }
  .hbd-r p { padding: 18px 18px 20px; font-size: 15px; }
  .hbd-item button { padding: 18px 18px; }
  .hbd-tag { margin: -6px 0 18px 18px; }
  .hbd-corpo { display: block; }
  .hbd-cats { position: sticky; top: 70px; z-index: 5; margin: 0 -16px 14px; padding: 10px 16px; background: rgba(7, 2, 3, .88); backdrop-filter: blur(10px); }
  .hbd-cats nav { flex-direction: row; gap: 8px; overflow-x: auto; border: 0; border-radius: 0; background: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hbd-cats nav::-webkit-scrollbar { display: none; }
  .hbd-cats nav { background: none; }
  .hbd-cats a { flex: none; padding: 10px 14px; background: #1c1a1a !important; gap: 8px; border: 1px solid var(--hbd-borda) !important; border-radius: 999px; font-size: 14px; background: rgba(255, 255, 255, .04); }
  .hbd-cats a svg { width: 22px; height: 22px; padding: 0; background: none !important; box-shadow: none !important; }
  .hbd-cats a em { display: none; }
  .hbd-cats a.is-on { background: var(--hbd-red) !important; color: #fff !important; border-color: transparent !important; }
  .hbd-cats a.is-on svg { color: #fff; }
  .hbd-cats a.is-on::before { display: none; }
  .hbd-cat-tit { font-size: 20px; }
  .hbd-cta { padding: 26px 22px; margin-bottom: 48px; }
  .hbd-cta h2 { font-size: 22px; }
  .hbd-cta-btns, .hbd-cta-btns .hbd-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hbd-item, .hbd-r, .hbd-ico, .hbd-ico::before, .hbd-ico::after { animation: none; transition: none; }
}

/* botão verde do WhatsApp: no celular, escondido durante a rolagem e aparece quando ela para (no PC fica sempre visível) */
@media (max-width: 980px) {
  body.hbd .hb-floating-wa { transition: opacity .3s ease, transform .3s ease, visibility 0s linear 0s !important; }
  body.hbd.hbd-rolando .hb-floating-wa { opacity: 0 !important; visibility: hidden !important; transform: translateY(14px) scale(.92) !important; pointer-events: none !important;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s !important; }
}
