/* ============================================================
   Autolub — Base styles (reset + globals)
   Depende de tokens.css.
   ============================================================ */

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

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-loose);
    color: var(--color-text);
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

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

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

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--color-primary);
}

ul,
ol {
    list-style: none;
}

/* -------- Tipografia -------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: var(--lh-snug);
    margin: 0;
}

h1 {
    font-size: var(--fs-h1);
    font-weight: var(--fw-extrabold);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--fs-h3);
    font-weight: var(--fw-bold);
    line-height: var(--lh-base);
}

h4 {
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-relaxed);
}

h5 {
    font-size: var(--fs-h5);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-loose);
}

h6 {
    font-size: var(--fs-h6);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-loose);
    letter-spacing: 0.02em;
}

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: var(--fw-semibold);
}

/* -------- Container -------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding-x);
}

/* -------- Acessibilidade -------- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: var(--z-modal);
    background: var(--color-primary);
    color: var(--color-text-light);
    padding: var(--space-md) var(--space-lg);
    border-radius: 0 0 var(--radius-md) 0;
    font-weight: var(--fw-semibold);
}

.skip-link:focus {
    left: 0;
    color: var(--color-text-light);
}

:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Placeholders da Etapa 1 removidos na Etapa 2. */
