/* ==========================================================================
   ProArqui | Base
   Kaivor Studios . Direcao de arte e desenvolvimento
   --------------------------------------------------------------------------
   Reset enxuto, tipografia raiz, utilitarios de layout e primitivas de
   acessibilidade. Sem estilo de componente aqui.
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* o scroll suave e controlado por JS (Lenis) */
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: var(--lead-normal);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Trava o scroll durante o preloader e com o menu aberto. */
body.is-locked { overflow: hidden; }

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

img { height: auto; }

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

button { cursor: pointer; }

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

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

::selection {
  background: var(--pa-cyan);
  color: var(--ink-1000);
}

/* --- Tipografia ---------------------------------------------------------- */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lead-snug);
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}

p { text-wrap: pretty; }

.display-xl { font-size: var(--t-4xl); line-height: var(--lead-tight); font-weight: 800; }
.display-lg { font-size: var(--t-3xl); line-height: var(--lead-tight); font-weight: 800; }
.display-md { font-size: var(--t-2xl); }
.display-sm { font-size: var(--t-xl); }

.lead {
  font-size: var(--t-md);
  color: var(--fg-muted);
  line-height: 1.68;
  max-width: 62ch;
}

.muted { color: var(--fg-muted); }
.subtle { color: var(--fg-subtle); }

/* Rotulo tecnico monoespacado. Referencia direta a linguagem de prancha. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--fg-subtle);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--plain::before { display: none; }

/* --- Layout -------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: var(--shell-narrow); }

.section {
  position: relative;
  padding-block: var(--sp-section);
  background: var(--bg);
  color: var(--fg);
}

.section--flush { padding-block: 0; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }

.section__head {
  display: grid;
  gap: var(--sp-5);
  margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

@media (min-width: 900px) {
  .section__head--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: end;
    gap: var(--sp-7);
  }
}

.stack { display: grid; align-content: start; }
.stack--2 { gap: var(--sp-2); }
.stack--3 { gap: var(--sp-3); }
.stack--4 { gap: var(--sp-4); }
.stack--5 { gap: var(--sp-5); }
.stack--6 { gap: var(--sp-6); }
.stack--7 { gap: var(--sp-7); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}

/* --- Acessibilidade ------------------------------------------------------ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: var(--z-loader);
  padding: var(--sp-3) var(--sp-5);
  background: var(--ink-1000);
  color: var(--ink-000);
  border-radius: var(--r-pill);
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus-visible { transform: translateY(0); }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--pa-cyan-ui);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* --- Preferencia por menos movimento -------------------------------------
   Quem pediu para reduzir animacao recebe o site inteiro, so que estatico.
   Nada de conteudo escondido esperando um scroll que nunca vai animar. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  [data-reveal-item] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
