/* Reset e fundamentos — L3 Energia */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: #000;
  color: var(--l3-mist);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  opacity: 1;
  /* Sem isso, uma string longa e sem espaços (e-mail, URL) força a
     página a estourar horizontalmente em vez de quebrar a linha. */
  overflow-wrap: break-word;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--l3-white);
  margin: 0 0 var(--space-4);
}

h1 {
  font-size: var(--fs-hero);
}
h2 {
  font-size: var(--fs-h1);
  color: var(--l3-solar);
}
h3 {
  font-size: var(--fs-h2);
  color: var(--l3-solar);
}
h4 {
  font-size: var(--fs-h3);
  color: var(--l3-solar);
}

p {
  margin: 0 0 var(--space-4);
  max-width: 62ch;
}

ul,
ol {
  padding-left: 1.2em;
}

button {
  font-family: inherit;
}

::selection {
  background: var(--l3-solar-glow);
  color: var(--l3-white);
}

/* Foco visível — obrigatório para acessibilidade de teclado */
:focus-visible {
  outline: 2px solid var(--l3-volt);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Layout --- */
.l3-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* O header precisa de mais fôlego que o resto do site: 6 itens de
   menu + logo centralizada + botões não cabem nos mesmos 1280px do
   conteúdo sem colidir. */
.l3-container--wide {
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.l3-section {
  padding-block: var(--space-24);
  position: relative;
}

.l3-section--alt {
  background: #000;
}

.l3-section-head {
  max-width: 46rem;
  margin-bottom: var(--space-12);
}

.l3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--l3-volt);
  margin-bottom: var(--space-4);
}

.l3-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--l3-volt);
  display: inline-block;
}

.l3-lede {
  font-size: var(--fs-body-lg);
  color: var(--l3-mist);
  max-width: 42rem;
}

.l3-text-solar {
  color: var(--l3-solar);
}
.l3-text-volt {
  color: var(--l3-volt);
}
.l3-text-muted {
  color: var(--l3-mist-dim);
}

.l3-mono {
  font-family: var(--font-mono);
}

/* Link inline com sublinhado que "varre" da esquerda pra direita no
   hover/foco — pra qualquer link dentro de texto corrido (LGPD, CTA
   secundário, etc.), sem depender de cor pra indicar interatividade. */
.l3-text-link {
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 1px;
  transition: background-size var(--dur-base) var(--ease-technical),
    color var(--dur-base) var(--ease-technical);
  padding-bottom: 0.05em;
}

.l3-text-link:hover,
.l3-text-link:focus-visible {
  color: var(--l3-solar);
  background-size: 100% 1px;
}

@media (prefers-reduced-motion: reduce) {
  .l3-text-link {
    transition: color var(--dur-fast) linear;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--l3-solar);
  color: var(--l3-solar-text, var(--l3-void));
  padding: var(--space-2) var(--space-4);
  z-index: var(--z-modal);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* Quebra o container para ocupar a largura total da viewport —
   usado por seções de imagem/vídeo full-bleed (a assinatura editorial
   deste site: mídia sem moldura, não "card com borda"). */
.l3-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* --- Revelação no scroll: propósito, não decoração --- */
.l3-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-technical), transform var(--dur-slow) var(--ease-technical);
}
.l3-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.l3-reveal[data-reveal-delay="1"] { transition-delay: 90ms; }
.l3-reveal[data-reveal-delay="2"] { transition-delay: 180ms; }
.l3-reveal[data-reveal-delay="3"] { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  .l3-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Grid utilitário simples usado nas seções */
.l3-grid {
  display: grid;
  gap: var(--space-8);
}

/* Sem isso, colunas "1fr" não encolhem abaixo da largura mínima do
   conteúdo (min-width: auto é o padrão do Grid) — um título longo
   dentro do card força a coluna, e a página inteira, a estourar
   horizontalmente logo no breakpoint onde o grid vira multi-coluna. */
.l3-grid > * {
  min-width: 0;
}

@media (min-width: 768px) {
  .l3-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .l3-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .l3-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
