/* =============================================
   PRESENÇA DIGITAL 4 ANOS — CSS RESET
   Modern reset based on Josh Comeau's approach
   ============================================= */

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

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@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;
        scroll-behavior: auto !important;
    }
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    line-height: var(--altura-linha);
    font-family: var(--fonte-principal);
    font-size: var(--tamanho-base);
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    line-height: var(--altura-linha-heading);
    font-weight: var(--peso-bold);
}

p {
    overflow-wrap: break-word;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Acessibilidade: skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--espaco-md);
    z-index: calc(var(--z-toast) + 1);
    padding: var(--espaco-sm) var(--espaco-md);
    background: var(--cor-primaria);
    color: var(--cor-primaria-texto);
    border-radius: var(--raio-md);
    font-weight: var(--peso-semi);
    transition: top var(--transicao-rapida);
}

.skip-link:focus {
    top: var(--espaco-md);
}

/* Acessibilidade: focus visible */
:focus-visible {
    outline: 3px solid var(--cor-primaria);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* 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-width: 0;
}
