/* ESSENZA - CSS Reset
   ============================================
   Normalização e reset de estilos padrão
   ============================================ */

/* Prevent font size adjustments on landscape */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

/* Reset margins and padding */
body,
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
dl, dt, dd, ol, ul, li,
figure, figcaption,
form, fieldset, legend,
table, caption, tbody, thead, tfoot, tr, th, td,
article, aside, details, dialog, main, nav, section {
    margin: 0;
    padding: 0;
}

/* Body */
body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-snug);
    color: var(--color-text-primary);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form elements */
input,
textarea,
select,
button {
    font: inherit;
    color: inherit;
    background-color: transparent;
    border: none;
    padding: 0;
}

/* Button */
button {
    cursor: pointer;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

/* Lists */
ol, ul {
    list-style: none;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Video/Iframe */
video,
iframe {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Accessibility */
.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;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible (keyboard navigation) */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
    
    img {
        max-width: 100%;
    }
    
    @page {
        margin: 2cm;
    }
}
