/* ==========================================================================
   BELMONT FILMS — Base: reset, tipografia, grid e utilitários
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100svh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

[hidden] {
  display: none !important;
}

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

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

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

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

h1,
h2,
h3,
h4 {
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

/* ---------- Foco acessível (visível só na navegação por teclado) ---------- */
:focus-visible {
  outline: 2px solid var(--c-text);
  outline-offset: 4px;
  border-radius: 2px;
}

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

/* Display: grotesca em caixa alta, apertada — a "voz" da marca */
.t-display {
  font-family: var(--f-sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.82;
}

/* Serifada itálica: o contraponto editorial, usada em palavras de destaque */
.t-serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  font-optical-sizing: auto;
  text-transform: none;
  letter-spacing: -0.02em;
}

/* Metadados: rótulos, números, legendas técnicas */
.t-meta {
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.t-muted {
  color: var(--c-text-muted);
}

.t-lead {
  font-size: var(--fs-lg);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ---------- Grid ---------- */

/* Container com margens laterais fluidas */
.wrap {
  padding-inline: var(--gutter);
}

/* Grid editorial: 4 colunas no celular, 12 no desktop */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
}

@media (min-width: 64em) {
  .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

/* Seções */
.section {
  padding-block: var(--space-section);
  position: relative;
}

/* Seção logo após outra: o espaço de cima é a metade, para a junção entre as duas
   não somar dois espaços inteiros (Projetos → Sobre → Serviços → Processo → Contato).
   Não afeta Projetos (vem depois do Brand Film) nem o espaço antes do rodapé. */
.section + .section {
  padding-top: calc(var(--space-section) * 0.5);
}

/* ---------- 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: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--c-text);
  color: var(--c-bg);
  font-size: var(--fs-sm);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Trava a rolagem quando o menu mobile está aberto */
.is-locked {
  overflow: hidden;
}
