/* =========================================================
   ENERSY — STYLE.CSS (REFATORADO / COESO)
   - Remove duplicidades e conflitos
   - Mantém o "fix definitivo" do menu mobile como base
   ========================================================= */

/* =======================
   1) TOKENS / BASE
   ======================= */
:root {
  /* Brand */
  --electric-blue: #0078ff;
  --lime-solar: #c5ff41;
  --orange-solar: #ffa600;
  --graphite: #1b2330;

  /* UI */
  --bg: #0f1622;
  --soft: #0b111b;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.62);

  --light: #f5f7fb;
  --light-text: #0c1220;
  --light-muted: #5b6476;

  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1120px;

  --title-font: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  --body-font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;

  /* FIX menu mobile (stacking / hit-test) */
  isolation: isolate;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* =======================
   2) SEÇÕES / TIPOGRAFIA
   ======================= */
.section {
  padding: 84px 0;
}

.section.dark {
  background: var(--bg);
}

.section.soft {
  background: var(--soft);
}

.section.light {
  background: var(--light);
  color: var(--light-text);
}

.muted {
  color: var(--muted);
}
.muted-2 {
  color: var(--muted-2);
}

.section.light .muted {
  color: var(--light-muted);
}

h2 {
  margin: 0 0 10px;
  font-family: var(--title-font);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.lead {
  margin: 0;
  max-width: 72ch;
}

/* =======================
   3) GRID / LAYOUT
   ======================= */
.grid {
  display: grid;
  gap: 22px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* =======================
   4) HEADER / NAV
   (mantém o comportamento “fix definitivo”)
   ======================= */
header {
  position: sticky;
  top: 0;
  z-index: 2000;

  background: rgba(15, 22, 34, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  /* FIX: backdrop-filter costuma dar bug de clique em mobile */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

header.is-solid {
  background: rgba(27, 35, 48, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

/* Brand (logo + ENERSY) */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-title {
  font-family: var(--title-font);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1;
}

/* Se você não usa brand-mark/brand-name no HTML, pode remover.
   Mantive aqui por compatibilidade com versões antigas. */
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    radial-gradient(
      90% 90% at 20% 20%,
      rgba(197, 255, 65, 0.55),
      transparent 55%
    ),
    radial-gradient(
      90% 90% at 80% 30%,
      rgba(0, 120, 255, 0.55),
      transparent 55%
    ),
    linear-gradient(135deg, rgba(255, 166, 0, 0.35), rgba(27, 35, 48, 0));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.16),
    transparent
  );
  transform: rotate(25deg);
  opacity: 0.65;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name span:first-child {
  font-size: 16px;
}
.brand-name span:last-child {
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Desktop nav */
.nav-desktop {
  display: block;
}

.nav-desktop ul {
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-desktop a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  padding: 10px 10px;
  border-radius: 12px;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.nav-desktop a:hover {
  background: rgba(0, 120, 255, 0.14);
  color: #fff;
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-cta-desktop {
  display: flex;
}

/* =======================
   5) BOTÕES
   ======================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition:
    transform 0.08s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--electric-blue), #2d97ff);
  border-color: transparent;
  box-shadow: 0 12px 34px rgba(0, 120, 255, 0.35);
}
.btn.primary:hover {
  box-shadow: 0 16px 44px rgba(0, 120, 255, 0.4);
}

.btn.lime {
  background: linear-gradient(135deg, var(--lime-solar), #e2ff8f);
  color: #0c1220;
  border-color: transparent;
  box-shadow: 0 12px 34px rgba(197, 255, 65, 0.22);
  font-weight: 750;
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Botões com ícone */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-icon__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon__icon svg {
  width: 100%;
  height: 100%;
}

/* =======================
   6) HERO
   ======================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 22, 34, 0.85), rgba(15, 22, 34, 0.92)),
    url("../img/herobanner-ev.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      700px 420px at 15% 20%,
      rgba(0, 120, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      700px 420px at 85% 30%,
      rgba(197, 255, 65, 0.14),
      transparent 60%
    );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 96px 0;
}

.hero-card {
  max-width: 820px;
  padding: 34px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 120, 255, 0.14);
  border: 1px solid rgba(0, 120, 255, 0.22);
}

.badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--lime-solar);
  box-shadow: 0 0 0 4px rgba(197, 255, 65, 0.18);
}

.h1 {
  margin: 14px 0 10px;
  font-family: var(--title-font);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.8px;
  color: #fff;
}

.hero-sub {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 68ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

/* =======================
   7) COMPONENTES (CARDS / PILLS / ICONS)
   ======================= */
.card {
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.section.light .card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.08);
}

.card h3 {
  margin: 14px 0 6px;
  font-family: var(--title-font);
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.section.light .card p {
  color: var(--light-muted);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #0c1220;
  background: linear-gradient(135deg, var(--lime-solar), #e6ff9f);
  border: 1px solid rgba(197, 255, 65, 0.35);
  box-shadow: 0 14px 30px rgba(197, 255, 65, 0.14);
}

.icon.blue {
  color: #fff;
  background: linear-gradient(135deg, var(--electric-blue), #2d97ff);
  border-color: rgba(0, 120, 255, 0.35);
  box-shadow: 0 14px 30px rgba(0, 120, 255, 0.18);
}

.icon.orange {
  color: #0c1220;
  background: linear-gradient(135deg, var(--orange-solar), #ffcc66);
  border-color: rgba(255, 166, 0, 0.35);
  box-shadow: 0 14px 30px rgba(255, 166, 0, 0.12);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
}

.section.light .pill {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--light-text);
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.06);
}

.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--electric-blue);
  box-shadow: 0 0 0 4px rgba(0, 120, 255, 0.15);
}

/* =======================
   8) FEATURE / PANEL
   ======================= */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;

  /* Regra única (sem duplicidade): */
  align-items: stretch;
}

.panel {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(
      900px 420px at 15% 25%,
      rgba(0, 120, 255, 0.25),
      transparent 55%
    ),
    radial-gradient(
      800px 420px at 85% 40%,
      rgba(197, 255, 65, 0.16),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.02)
    ),
    url("https://images.unsplash.com/photo-1616995931771-388c4a7ab57a?auto=format&fit=crop&w=1600&q=70");
  background-size: cover;
  background-position: center;
  min-height: 360px;
}

/* Painel com FOTO na seção de carregamento */
.panel.panel-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  align-self: stretch;
  min-height: 520px;
}

.panel.panel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  filter: saturate(1.04) contrast(1.05);
}

.panel.panel-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 22, 34, 0.1), rgba(15, 22, 34, 0.58)),
    radial-gradient(
      650px 320px at 18% 18%,
      rgba(0, 120, 255, 0.16),
      transparent 60%
    ),
    radial-gradient(
      650px 320px at 82% 82%,
      rgba(197, 255, 65, 0.12),
      transparent 60%
    );
  pointer-events: none;
}

.cta-row {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =======================
   9) STEPS
   ======================= */
.steps {
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.section.light .step {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.06);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--electric-blue), #2d97ff);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(0, 120, 255, 0.18);
}

.step h3 {
  margin: 2px 0 4px;
  font-family: var(--title-font);
  font-size: 16px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.section.light .step p {
  color: var(--light-muted);
}

/* =======================
   10) CTA FINAL
   ======================= */
.cta {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(
      900px 380px at 20% 10%,
      rgba(0, 120, 255, 0.22),
      transparent 60%
    ),
    radial-gradient(
      900px 380px at 85% 30%,
      rgba(197, 255, 65, 0.14),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.03)
    );
  padding: 36px;
  box-shadow: var(--shadow);
}

.cta-phrase {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.2px;
}

/* =======================
   11) FOOTER (usa .footer do HTML)
   ======================= */
.footer {
  padding: 44px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 18, 32, 0.72);
  color: rgba(255, 255, 255, 0.72);
}

.footer a {
  color: rgba(255, 255, 255, 0.74);
}

.footer a:hover {
  color: #fff;
}

.foot {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.15fr 0.9fr auto;
  gap: 22px;
  align-items: start;
}

.foot-brand {
  max-width: 340px;
}

.foot-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.foot-logo strong {
  color: #fff;
  font-family: var(--title-font);
  font-weight: 800;
  letter-spacing: 0.4px;
}

.foot-tagline {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.foot-col {
  display: grid;
  gap: 10px;
}

.foot-title {
  font-family: var(--title-font);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.foot-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.foot-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.foot-ico svg {
  width: 100%;
  height: 100%;
}

.foot-small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  margin-top: 2px;
}

.foot-top {
  display: flex;
  justify-content: flex-end;
  align-items: start;
}

.back-top {
  border: 1px solid rgba(0, 120, 255, 0.45);
  background: rgba(0, 120, 255, 0.1);
  padding: 10px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.88) !important;
}

.back-top:hover {
  background: rgba(0, 120, 255, 0.16);
  color: #fff !important;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.foot-mini {
  color: rgba(255, 255, 255, 0.46);
}

/* =======================
   12) MENU MOBILE (overlay + drawer)
   (versão única, sem duplicidade)
   ======================= */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0, 120, 255, 0.45);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;

  position: relative;
  z-index: 2100;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 18px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.hamburger:hover {
  background: rgba(0, 120, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(0, 120, 255, 0.18);
  border-color: rgba(0, 120, 255, 0.65);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 3000;
  pointer-events: auto;
}

.mobile-overlay[hidden] {
  display: none !important;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(84vw, 360px);
  background: rgba(27, 35, 48, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
  z-index: 3100;

  /* Estado fechado */
  transform: translateX(120%);
  visibility: hidden;
  opacity: 0;

  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    visibility 0.2s ease;

  will-change: transform;
  pointer-events: auto;
  padding: 16px;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}

.mobile-title {
  font-family: var(--title-font);
  font-weight: 800;
  color: #fff;
}

.mobile-close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.mobile-nav {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.mobile-nav a {
  padding: 12px 12px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-nav a:hover {
  background: rgba(0, 120, 255, 0.14);
  border-color: rgba(0, 120, 255, 0.25);
  color: #fff;
}

.mobile-cta {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

/* Lock body scroll when menu open */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* =======================
   13) RESPONSIVO
   ======================= */
@media (max-width: 980px) {
  .section {
    padding: 64px 0;
  }

  .hero-inner {
    padding: 72px 0;
  }

  .hero-card {
    padding: 26px;
  }

  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }

  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .feature {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: 260px;
  }

  .panel.panel-photo {
    min-height: 280px;
  }

  /* Mobile header minimal */
  .nav-desktop,
  .nav-cta-desktop {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .nav {
    padding: 10px 0;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  /* Footer */
  .foot {
    grid-template-columns: 1fr 1fr;
  }

  .foot-top {
    justify-content: flex-start;
  }

  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .nav-cta {
    width: 100%;
  }

  .nav {
    flex-wrap: wrap;
  }

  .badge {
    font-size: 11px;
    padding: 8px 12px;
  }

  .foot {
    grid-template-columns: 1fr;
  }
}
