/* ============================================
   Elétrica HN — Design tokens & base reset
   Único CSS "global" do projeto: carregado por
   todas as páginas antes do CSS de qualquer
   componente. Não contém regras de componente
   próprias — os @import abaixo trazem apenas os
   primitivos de ui/ reaproveitados em várias
   páginas (botão, campos de formulário, badge,
   card, toast). Cada primitivo continua isolado
   na sua própria pasta em components/ui/.
   ============================================ */

@import url("/components/ui/button/styles.css");
@import url("/components/ui/input/styles.css");
@import url("/components/ui/textarea/styles.css");
@import url("/components/ui/select/styles.css");
@import url("/components/ui/badge/styles.css");
@import url("/components/ui/card/styles.css");
@import url("/components/ui/toast/styles.css");

@font-face {
  font-family: "Space Grotesk";
  src: local("Space Grotesk");
  font-display: swap;
}

:root {
  /* Superfícies */
  --color-bg: #0a0f1c;
  --color-surface: #0f172a;
  --color-surface-alt: rgba(15, 23, 42, 0.5);
  --color-border: rgba(30, 41, 59, 0.6);
  --color-border-strong: #1e293b;

  /* Marca / destaque */
  --color-amber-300: #fcd34d;
  --color-amber-400: #fbbf24;
  --color-amber-500: #f59e0b;
  --color-amber-600: #d97706;

  /* Texto */
  --color-white: #ffffff;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;

  /* Estados */
  --color-red-400: #f87171;
  --color-red-500: #ef4444;
  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;

  /* Tipografia */
  --font-heading: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;

  /* Espaçamento / raio */
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1rem;
  --max-width: 80rem; /* 1280px, equivalente ao max-w-7xl */

  /* Transições */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 300ms;
  --duration-standard: 500ms;
  --duration-slow: 700ms;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-heading);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Ícone inline padrão — sobrescrito por width/height em cada uso */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Utilitário de fade/slide-up usado por shared/in-view.js.
   Cada componente decide o deslocamento inicial via --iv-x/--iv-y. */
[data-inview] {
  --iv-x: 0px;
  --iv-y: 1.5rem;
  opacity: 0;
  transform: translate(var(--iv-x), var(--iv-y));
  transition: opacity var(--duration-slow) var(--ease-standard),
    transform var(--duration-slow) var(--ease-standard);
}

[data-inview].in-view {
  opacity: 1;
  transform: translate(0, 0);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
}

.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;
}
