/* =============================================================
   GRIFFON TECH — base.css
   Reset, design tokens, tipografia e utilitários
   ============================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto; /* Lenis controla o scroll */
  overflow-x: clip;      /* evita qualquer vazamento horizontal */
}

body {
  min-height: 100%;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

/* Foco visível para navegação por teclado (acessibilidade) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- Design Tokens ---------- */
:root {
  /* Cores — marca Griffon Tech (#000/#1E90FF/#212121/#FFF) em tratamento escuro */
  --bg: #04070d;            /* quase preto, leve tom frio */
  --bg-2: #070b13;
  --surface: #0b1018;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(120, 170, 255, 0.22);

  --text: #f3f6fb;
  --text-dim: #b2bccd;
  --text-mute: #8b97ab;

  --brand-black: #000000;

  --accent: #1e90ff;        /* azul tecnologia Griffon */
  --accent-2: #5cb0ff;
  --accent-deep: #0b62c4;
  --accent-btn: #0f6fd6;    /* azul do botão (contraste AA com branco) */
  --accent-glow: rgba(30, 144, 255, 0.38);
  --danger: #ff5d6a;        /* estados de erro */

  /* Tipografia — Poppins (marca); pesos altos = display */
  --font-display: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;

  /* Escala fluida (clamp) */
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.88rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 4.8rem);
  --step-5: clamp(3.4rem, 2.2rem + 6vw, 8rem);
  --step-6: clamp(4rem, 2rem + 10vw, 12rem);

  /* Espaçamento / layout */
  --gutter: clamp(1.25rem, 1rem + 2vw, 3rem);
  --maxw: 1440px;
  --radius: 14px;
  --radius-lg: 24px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --dur: 0.6s;

  --header-h: 84px;
}

/* ---------- Base type ---------- */
body {
  font-size: var(--step-0);
}

p {
  color: var(--text-dim);
  max-width: 60ch;
}

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(5rem, 3rem + 8vw, 11rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  opacity: 0.8;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
}

.text-accent { color: var(--accent); }
.text-dim { color: var(--text-dim); }
.text-mute { color: var(--text-mute); }

/* ---------- Screen reader only ---------- */
.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;
}

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