/* ============================================
   STAR RECICLAGEM - CSS Reset/Normalize
   Reset moderno e acessível
   ============================================ */

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

/* Remove margens e paddings padrão */
* {
    margin: 0;
    padding: 0;
}

/* Previne overflow horizontal */
html,
body {
    overflow-x: hidden;
}

/* Configurações base do HTML */
html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Configurações base do body */
body {
    min-height: 100vh;
    line-height: var(--leading-normal);
    font-family: var(--font-corpo);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    color: var(--cinza-texto);
    background-color: var(--azul-principal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

/* Remove estilos de lista */
ul,
ol {
    list-style: none;
}

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

/* Botões e inputs herdam fonte */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* Remove aparência padrão de inputs */
input,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Botões */
button {
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

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

/* Citações */
blockquote,
q {
    quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: '';
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titulo);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--azul-principal);
}

/* Parágrafos */
p {
    line-height: var(--leading-relaxed);
}

/* Foco acessível */
:focus-visible {
    outline: 2px solid var(--verde-principal);
    outline-offset: 2px;
}

/* Remove outline em clique de mouse */
:focus:not(:focus-visible) {
    outline: none;
}

/* Seleção de texto */
::selection {
    background-color: var(--verde-claro);
    color: var(--branco);
}

/* Placeholder */
::placeholder {
    color: var(--cinza-medio);
    opacity: 1;
}

/* Scrollbar personalizada (Webkit) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cinza-claro);
}

::-webkit-scrollbar-thumb {
    background: var(--cinza-medio);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cinza-texto);
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--verde-principal);
    color: var(--branco);
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius-md);
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--spacing-4);
}

/* Reduced motion */
@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;
    }
}
