/* ============================================================
   ELETRO SOLAR — Componentes & microinterações
   ============================================================ */

/* ---------- Botões ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 600; font-size: 14px; letter-spacing: .005em;
  padding: 14px 28px; border-radius: var(--radius-pill);
  border: 1px solid transparent; transition: .28s var(--ease-out); white-space: nowrap;
}
.btn span:not(.ripple) { transition: transform .28s var(--ease-out); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--grad-blue); color: #fff; box-shadow: 0 12px 34px -10px rgba(255,138,30,.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 46px -12px rgba(255,138,30,.75); }
.btn--primary:hover span:not(.ripple) { transform: translateX(3px); }
.btn--energy { background: var(--grad-energy); color: var(--ink); box-shadow: 0 12px 34px -10px rgba(255,94,46,.5); }
.btn--energy:hover { transform: translateY(-2px); box-shadow: 0 20px 46px -12px rgba(255,94,46,.65); }
.btn--ghost { border-color: var(--border-strong); color: var(--text-high); background: rgba(255,138,30,.05); }
.btn--ghost:hover { border-color: var(--blue); background: rgba(255,138,30,.12); transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 15px; }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--block { display: flex; width: 100%; }

.ripple { position: absolute; border-radius: 50%; transform: scale(0); pointer-events: none;
  background: rgba(255,255,255,.4); animation: ripple .65s var(--ease-out); }
.btn--ghost .ripple { background: rgba(255,178,77,.35); }
@keyframes ripple { to { transform: scale(2.4); opacity: 0; } }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-ui);
  font-weight: 600; font-size: 13.5px; color: var(--blue-bright); transition: .25s var(--ease-out); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .25s var(--ease-out); }
.link-arrow:hover { color: #fff; }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Badge ---------- */
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui);
  font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 8px 15px; border-radius: var(--radius-pill); }
.badge--glass { background: var(--glass-bg-2); border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text-high); }
.badge--solid { background: var(--blue); color: #fff; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,210,63,.18);
  animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(255,210,63,.18); } 50% { box-shadow: 0 0 0 7px rgba(255,210,63,.03); } }

/* ---------- Marca (emblema dourado + wordmark ao lado) ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { height: 50px; width: auto; display: block; transition: height .35s var(--ease);
  filter: drop-shadow(0 4px 14px rgba(255,138,30,.3)); }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: -.02em;
  color: var(--text-high); line-height: 1; white-space: nowrap; }
.brand__word b { font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Navbar ---------- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: .4s var(--ease); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.navbar.is-scrolled { background: rgba(6,10,20,.72); backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--hair-soft); }
.navbar.is-scrolled .navbar__inner { height: 66px; }
.navbar.is-scrolled .brand__logo { height: 42px; }
@media (max-width: 420px) { .brand__word { font-size: 19px; } .brand__logo { height: 44px; } }
.navbar__links { display: flex; align-items: center; gap: 30px; }
.navbar__links a { font-family: var(--font-ui); font-size: 14px; font-weight: 500; color: var(--text-mid);
  position: relative; transition: color .25s var(--ease); }
.navbar__links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  border-radius: 2px; background: var(--grad-ring); transition: width .3s var(--ease-out); }
.navbar__links a:not(.btn):hover { color: #fff; }
.navbar__links a:not(.btn):hover::after { width: 100%; }
.navbar__cta { color: #fff !important; }
.navbar__toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--hair-soft); }
.navbar__toggle span { width: 20px; height: 2px; background: var(--text-high); border-radius: 2px; transition: .3s var(--ease); }
.navbar__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Barra de progresso ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60;
  background: var(--grad-ring); box-shadow: 0 0 12px rgba(255,138,30,.6); transition: width .1s linear; }

/* ---------- Side ticks (navegação) ---------- */
.sidedots { position: fixed; right: clamp(14px, 2.2vw, 28px); top: 50%; transform: translateY(-50%);
  z-index: 45; display: flex; flex-direction: column; gap: 14px; }
.sidedots button { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.sidedots .lbl { font-family: var(--font-ui); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mid); opacity: 0; transform: translateX(8px); transition: .3s var(--ease-out); white-space: nowrap; }
.sidedots .dot { width: 22px; height: 3px; border-radius: 3px; background: var(--border-strong); transition: .3s var(--ease-out); }
.sidedots button:hover .lbl { opacity: 1; transform: none; }
.sidedots button:hover .dot { background: var(--blue-bright); width: 28px; }
.sidedots button.active .dot { background: var(--grad-ring); width: 34px; box-shadow: 0 0 10px rgba(255,138,30,.7); }
.sidedots button.active .lbl { opacity: 1; transform: none; color: var(--blue-bright); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 55; width: 56px; height: 56px;
  border-radius: 50%; display: grid; place-items: center; color: #fff; background: #25d366;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: .3s var(--ease-spring); }
.wa-float:hover { transform: scale(1.1) translateY(-2px); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: waPing 2.6s var(--ease) infinite; }
@keyframes waPing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(28px, 4vw, 58px); padding-right: clamp(28px, 4vw, 58px); }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-chip { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; font-size: clamp(15px, 1.6vw, 22px);
  color: var(--text-mid); white-space: nowrap; transition: color .3s var(--ease); display: inline-flex; align-items: center; gap: 10px; }
.logo-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-ring); }
.marquee:hover .logo-chip:hover { color: var(--text-high); }

/* ---------- Hub (capítulos) — mantido caso usado ---------- */
.hub { position: fixed; inset: 0; z-index: 70; background: rgba(4,7,14,.85);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: flex; flex-direction: column;
  padding: clamp(22px, 5vw, 60px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.hub.open { opacity: 1; visibility: visible; }

@media (max-width: 680px) {
  .navbar__links { position: fixed; inset: 66px 0 auto; flex-direction: column; gap: 4px; padding: 18px var(--pad-x) 28px;
    background: rgba(6,10,20,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--hair-soft);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s var(--ease); align-items: stretch; }
  .navbar__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .navbar__links a { padding: 12px 0; font-size: 16px; }
  .navbar__links a:not(.btn)::after { display: none; }
  .navbar__cta { margin-top: 8px; }
  .navbar__toggle { display: flex; }
  .sidedots { display: none; }
}
