/*
Theme Name: 77Net HotSpot
Theme URI: https://77net.invexus.com.br/
Author: INVEXUS CAPITAL PARTICIPAÇÕES E INVESTIMENTOS LTDA
Description: Tema sob medida que reproduz o site 77Net (venda de vouchers de internet HotSpot) em WordPress. Leve, responsivo, acessível e preparado para LGPD.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietário
Text Domain: n77
*/

/* ==========================================================================
   1. Tokens de design
   As cores ficam em variáveis para casar com a paleta da logomarca 77Net.
   Ajuste em Aparência > Personalizar > Cores 77Net (sem mexer no código).
   ========================================================================== */
:root {
  --n77-primaria: #0a4da2;      /* azul da marca */
  --n77-primaria-escura: #072f63;
  --n77-destaque: #f7941d;      /* laranja de chamada (CTA) */
  --n77-whats: #128c4a;         /* verde WhatsApp com contraste AA para texto branco */
  --n77-texto: #1c2333;
  --n77-texto-suave: #4a5568;
  --n77-fundo: #ffffff;
  --n77-fundo-alt: #f3f6fb;
  --n77-borda: #dde3ee;
  --n77-raio: 14px;
  --n77-sombra: 0 6px 24px rgba(10, 30, 70, .08);
  --n77-fonte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --n77-largura: 1180px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--n77-fonte); color: var(--n77-texto); background: var(--n77-fundo); line-height: 1.6; font-size: 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--n77-primaria); }
a:hover { color: var(--n77-primaria-escura); }
:focus-visible { outline: 3px solid var(--n77-destaque); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--n77-primaria-escura); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
.n77-container { width: min(100% - 32px, var(--n77-largura)); margin-inline: auto; }
.n77-secao { padding: clamp(48px, 8vw, 88px) 0; }
.n77-secao--alt { background: var(--n77-fundo-alt); }
.n77-secao__titulo { text-align: center; margin-bottom: 1.6em; }
.n77-secao__titulo p { color: var(--n77-texto-suave); max-width: 640px; margin: 0 auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.n77-pular { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 1000; }
.n77-pular:focus { left: 16px; }

/* Botões */
.n77-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .15s, background .15s; }
.n77-btn:hover { transform: translateY(-1px); }
.n77-btn svg { width: 22px; height: 22px; flex: none; }
.n77-btn--cta { background: var(--n77-destaque); color: #1b1200; }
.n77-btn--cta:hover { background: #e6840c; color: #1b1200; }
.n77-btn--primaria { background: var(--n77-primaria); color: #fff; }
.n77-btn--primaria:hover { background: var(--n77-primaria-escura); color: #fff; }
.n77-btn--whats { background: var(--n77-whats); color: #fff; }
.n77-btn--whats:hover { background: #0e6e3a; color: #fff; }
.n77-btn--contorno { border-color: currentColor; color: var(--n77-primaria); background: transparent; }

/* ==========================================================================
   3. Cabeçalho
   ========================================================================== */
.n77-topo { background: var(--n77-primaria-escura); color: #fff; font-size: .9rem; }
.n77-topo .n77-container { display: flex; justify-content: flex-end; gap: 16px; padding: 6px 0; }
.n77-topo a { color: #fff; text-decoration: none; }
.n77-cabecalho { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--n77-borda); }
.n77-cabecalho .n77-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.n77-logo img { max-height: 52px; width: auto; }
.n77-logo__texto { font-weight: 800; font-size: 1.6rem; color: var(--n77-primaria); text-decoration: none; }
.n77-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.n77-nav a { text-decoration: none; color: var(--n77-texto); font-weight: 600; }
.n77-nav a:hover, .n77-nav .current-menu-item > a { color: var(--n77-primaria); }
.n77-cabecalho__acoes { display: flex; gap: 10px; }
.n77-cabecalho__acoes .n77-btn { padding: .6em 1.1em; font-size: .95rem; }
.n77-menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.n77-menu-toggle span { display: block; width: 26px; height: 3px; background: var(--n77-texto); margin: 5px 0; border-radius: 2px; }
@media (max-width: 960px) {
  .n77-menu-toggle { display: block; }
  .n77-nav, .n77-cabecalho__acoes { display: none; }
  .n77-cabecalho.is-aberto .n77-nav, .n77-cabecalho.is-aberto .n77-cabecalho__acoes { display: flex; }
  .n77-cabecalho .n77-container { flex-wrap: wrap; }
  .n77-cabecalho.is-aberto .n77-nav { width: 100%; order: 3; }
  .n77-cabecalho.is-aberto .n77-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .n77-nav li a { display: block; padding: 12px 0; border-top: 1px solid var(--n77-borda); }
  .n77-cabecalho.is-aberto .n77-cabecalho__acoes { width: 100%; order: 4; padding-bottom: 16px; }
  .n77-cabecalho__acoes .n77-btn { flex: 1; }
}

/* ==========================================================================
   4. Hero / slider (imagens vindas do Portal ADM)
   ========================================================================== */
.n77-hero { position: relative; background: var(--n77-primaria-escura); color: #fff; overflow: hidden; }
.n77-slider { position: relative; }
.n77-slide { display: none; }
.n77-slide.is-ativo { display: block; }
.n77-slide img { width: 100%; object-fit: cover; }
.n77-slider__pontos { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.n77-slider__pontos button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.n77-slider__pontos button[aria-current="true"] { background: #fff; }
.n77-hero__faixa { background: var(--n77-primaria); padding: 28px 0; }
.n77-hero__faixa h1 { color: #fff; margin: 0; text-align: center; }

/* Atalhos rápidos */
.n77-atalhos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -1px; }
.n77-atalho { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 14px; background: #fff; border: 1px solid var(--n77-borda); border-radius: var(--n77-raio); text-decoration: none; color: var(--n77-texto); font-weight: 700; text-align: center; box-shadow: var(--n77-sombra); }
.n77-atalho:hover { border-color: var(--n77-primaria); color: var(--n77-primaria); }
.n77-atalho svg { width: 34px; height: 34px; color: var(--n77-primaria); }
@media (max-width: 760px) { .n77-atalhos { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   5. Planos
   ========================================================================== */
.n77-planos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.n77-plano { background: #fff; border: 1px solid var(--n77-borda); border-radius: var(--n77-raio); padding: 28px 24px; display: flex; flex-direction: column; box-shadow: var(--n77-sombra); position: relative; }
.n77-plano--destaque { border: 2px solid var(--n77-destaque); }
.n77-plano__selo { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--n77-destaque); color: #1b1200; font-size: .8rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.n77-plano__tipo { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--n77-texto-suave); font-weight: 700; }
.n77-plano h3 { font-size: 1.35rem; margin: .2em 0 .4em; }
.n77-plano__preco { font-size: 2.4rem; font-weight: 800; color: var(--n77-primaria); line-height: 1; margin-bottom: 14px; }
.n77-plano__preco small { font-size: 1rem; font-weight: 600; }
.n77-plano ul { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.n77-plano li { padding: 6px 0 6px 26px; position: relative; }
.n77-plano li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 8px; border-left: 3px solid var(--n77-whats); border-bottom: 3px solid var(--n77-whats); transform: rotate(-45deg); }
.n77-plano__nota { font-size: .82rem; color: var(--n77-texto-suave); margin: 0 0 14px; }
.n77-mais { text-align: center; margin-top: 36px; }

/* CTA */
.n77-cta { background: linear-gradient(120deg, var(--n77-primaria), var(--n77-primaria-escura)); color: #fff; text-align: center; }
.n77-cta h2 { color: #fff; }
.n77-cta__botoes { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.n77-cta .n77-btn--contorno { color: #fff; }

/* Depoimentos */
.n77-depoimentos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.n77-depoimentos img { border-radius: var(--n77-raio); width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ==========================================================================
   6. FAQ (details/summary: acessível sem JavaScript)
   ========================================================================== */
.n77-faq { max-width: 820px; margin: 0 auto; }
.n77-faq details { background: #fff; border: 1px solid var(--n77-borda); border-radius: var(--n77-raio); margin-bottom: 12px; }
.n77-faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.n77-faq summary::-webkit-details-marker { display: none; }
.n77-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--n77-primaria); }
.n77-faq details[open] summary::after { content: "−"; }
.n77-faq__resposta { padding: 0 22px 18px; color: var(--n77-texto-suave); }

/* Suporte */
.n77-suporte { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.n77-suporte a { display: block; padding: 20px; border-radius: var(--n77-raio); background: #fff; border: 1px solid var(--n77-borda); text-decoration: none; color: var(--n77-texto); font-weight: 600; }
.n77-suporte a:hover { border-color: var(--n77-primaria); }

/* Contato */
.n77-contato { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .n77-contato { grid-template-columns: 1fr; } }
.n77-form label { display: block; font-weight: 600; margin: 12px 0 4px; }
.n77-form input, .n77-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--n77-borda); border-radius: 10px; font: inherit; }
.n77-form .n77-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.n77-form .n77-consent input { width: auto; margin-top: 4px; }
.n77-hp { position: absolute; left: -9999px; }
.n77-aviso { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; }
.n77-aviso--ok { background: #e6f6ec; color: #0b5a2c; }
.n77-aviso--erro { background: #fdecec; color: #8a1c1c; }

/* ==========================================================================
   7. Rodapé
   ========================================================================== */
.n77-rodape { background: #0b1a33; color: #d5dcea; padding: 56px 0 24px; font-size: .95rem; }
.n77-rodape a { color: #fff; text-decoration: none; }
.n77-rodape a:hover { text-decoration: underline; }
.n77-rodape__grade { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .n77-rodape__grade { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .n77-rodape__grade { grid-template-columns: 1fr; } }
.n77-rodape h2 { color: #fff; font-size: 1.05rem; }
.n77-rodape ul { list-style: none; padding: 0; margin: 0; }
.n77-rodape li { margin-bottom: 8px; }
.n77-redes { display: flex; flex-wrap: wrap; gap: 10px; }
.n77-redes a { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); align-items: center; justify-content: center; }
.n77-redes svg { width: 20px; height: 20px; fill: #fff; }
.n77-rodape__legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.n77-anatel img { max-height: 48px; width: auto; background: #fff; border-radius: 6px; padding: 4px; }

/* Botão flutuante WhatsApp */
.n77-whats-flutuante { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--n77-whats); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.n77-whats-flutuante svg { width: 30px; height: 30px; fill: #fff; }

/* Páginas internas */
.n77-conteudo { max-width: 820px; margin: 0 auto; }
.n77-conteudo h2 { margin-top: 1.6em; }
