/* =========================================================================
   Inocoop.club — Base (reset + tipografia + layout skeleton)
   Importa tokens.css. BEM puro. Zero Tailwind.
   ========================================================================= */

@import url('./tokens.css');

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

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-md);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-primary-darker);
}

h1 { font-size: var(--font-size-3xl); font-weight: var(--font-weight-black); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-sm); text-transform: uppercase; letter-spacing: 0.05em; }

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

/* ---------- Acessibilidade ---------- */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

@media (min-width: 768px) {
    .container { padding-inline: var(--space-6); }
}

/* ---------- Scrollbar (regra Rally: NUNCA invisivel) ---------- */
/* Webkit */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-primary-soft);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}
/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-primary-soft);
}

/* ---------- Utilitarios minimos (restrito) ---------- */
.visually-hidden { position: absolute; clip: rect(0 0 0 0); overflow: hidden; width: 1px; height: 1px; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
