/* ==========================================================================
   Império Tecnologia — Base: fontes locais, reset, tipografia, utilitários
   ========================================================================== */

/* ---------- Fontes locais (Manrope 500–800 · Inter 400–700) ---------- */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/manrope-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--s-2));
}
body {
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
::selection { background: var(--teal); color: var(--bg-hero); }

/* Foco visível (AA) */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text-head); }
h1, h2 { font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h4); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: var(--text-lg); font-weight: 700; line-height: 1.3; }
p { max-width: 68ch; }
strong, b { color: var(--text-head); font-weight: 600; }

.display {
  font-size: var(--text-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hl { color: var(--teal); }                 /* palavra-destaque nos títulos */
.lead { font-size: var(--text-lg); line-height: 1.65; color: var(--text-body); }
.text-soft { color: var(--text-soft); }

/* Eyebrow — "—— QUEM SOMOS" (traço teal 32×3 antes do texto) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  flex: 0 0 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--teal);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(var(--s-10), 10vw, var(--s-15)); }
.section--panel { background: var(--bg-panel); }
.section--tight { padding-block: var(--s-8); }
.section-head { display: grid; gap: var(--s-2); margin-bottom: var(--s-6); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* Cabeçalho split: H2 à esquerda, parágrafo com borda à direita */
.section-head--split { max-width: none; align-items: end; }
.section-head--split .section-head__aside {
  padding-left: var(--s-3);
  border-left: 2px solid var(--border-teal);
  color: var(--text-soft);
}
@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: 1.15fr 1fr; gap: var(--s-8); }
}

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

/* ---------- Utilitários ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: var(--s-1); left: var(--s-1);
  z-index: 1000;
  padding: 12px 18px;
  border-radius: var(--r-btn);
  background: var(--teal);
  color: var(--bg-hero);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: none; }
.no-scroll { overflow: hidden; }

/* Ícones SVG inline (estilo Lucide) */
.icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 28px; height: 28px; }

/* ---------- Reveal on scroll (ativado pelo JS) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
