/* ============================================================
   ENGSOLAR — Base / Reset / Tipografia
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-mid);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Brilho ambiente de fundo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(245, 166, 35, .10), transparent 60%),
    radial-gradient(50% 40% at 0% 30%, rgba(91, 141, 239, .08), transparent 60%);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-high);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.02em;
}

h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

::selection { background: var(--primary); color: #0A1124; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--section-pad); position: relative; }

.section__head { max-width: 680px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__head p { margin-top: .9rem; color: var(--text-mid); font-size: 1.075rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .9rem;
}

.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Acessibilidade / motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Reveal base (controlado por IntersectionObserver), no estilo Solaris.
   Só esconde quando há JS (html.js); sem JS, o conteúdo fica visível.
   Direções: padrão (sobe), [data-reveal="left|right|zoom"]; stagger via --reveal-delay. */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.js .reveal[data-reveal="left"]  { transform: translateX(-34px); }
.js .reveal[data-reveal="right"] { transform: translateX(34px); }
.js .reveal[data-reveal="zoom"]  { transform: scale(.94); }
.js .reveal.is-visible { opacity: 1; transform: none; }
