/* ================================================================
   LISBOA CAR V4 — BASE.CSS
   Camada base: reset moderno + tipografia dos tokens + container + a11y.
   Carrega logo após variables.css. Só primitivos globais aqui —
   nada de componente específico (esses vivem em seus próprios arquivos).

   CONVENÇÃO DE NOMES (BEM + prefixo lc-):
     .lc-bloco                → bloco (componente)
     .lc-bloco__elemento      → parte interna do bloco
     .lc-bloco--modificador   → variação do bloco
     .is-estado               → estado dinâmico (ex.: .is-active, via JS)
   Toda classe começa com "lc-" → exclusiva do tema, zero colisão com plugin.
   ================================================================ */

/* ---------- Reset moderno e enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background-color: var(--cor-fundo); }
body {
    min-height: 100vh;
    font-family: var(--fonte-textos);
    font-size: var(--p-size);
    line-height: var(--leading-texto);
    color: var(--cor-grafite);
    background-color: var(--cor-fundo); /* escuro: sem flash BRANCO na transição entre páginas */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--fonte-titulos); line-height: var(--leading-titulo); font-weight: 800; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

/* ---------- Container: a largura-mãe centralizada de todo o site ---------- */
.lc-container {
    width: 100%;
    /* conteúdo trava em 1400px E ganha a margem lateral (160px) por fora —
       igual ao V2. Em telas < (1400+2*160) o conteúdo encolhe mantendo a margem. */
    max-width: calc(var(--largura-maxima-conteudo) + 2 * var(--margem-secao-lateral));
    margin-inline: auto;
    padding-inline: var(--margem-secao-lateral);
}

/* ---------- Acessibilidade ---------- */
.lc-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.lc-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: var(--z-index-toast);
    padding: var(--espacamento-2xs) var(--espacamento-md);
    background: var(--cor-primaria);
    color: var(--cor-preta);
    font-weight: 700;
    border-radius: 0 0 var(--borda-radius-md) 0;
}
.lc-skip-link:focus { left: 0; }

/* ---------- Respeita quem prefere menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
