/* ============================================
   GLOBAL — Delícias da Jó
   Reset, variáveis e base tipográfica
   ============================================ */

:root {
    /* ===== Cores oficiais da marca ===== */
    --rosa-principal: #B82848;
    --rosa-escuro: #981838;
    --rosa-claro: #F8D8D8;
    --rosa-fundo: #F8E8E8;
    --marrom: #481808;

    /* Aliases usados nos componentes */
    --cor-fundo: #F5EFEA;
    --cor-fundo-alt: #FFFFFF;
    --cor-texto: var(--marrom);
    --cor-texto-suave: #7A5A55;
    --cor-primaria: var(--rosa-principal);
    --cor-primaria-escura: var(--rosa-escuro);
    --cor-destaque: var(--rosa-claro);
    --cor-whatsapp: #25D366;
    --cor-borda: rgba(72, 24, 8, 0.10);
    --cor-sombra: rgba(72, 24, 8, 0.12);

    /* Tipografia */
    --fonte-titulo: 'Playfair Display', Georgia, serif;
    --fonte-texto: 'Poppins', system-ui, -apple-system, sans-serif;

    /* Raios */
    --raio-p: 12px;
    --raio-m: 20px;
    --raio-g: 32px;
    --raio-pill: 999px;

    /* Container */
    --container-max: 1200px;
    --container-pad: clamp(16px, 4vw, 32px);

    /* Transições */
    --transicao: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset enxuto ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Fundo bege no html — evita "branco" atrás da scrollbar */
    background-color: var(--cor-fundo);
    /* Firefox — barra discreta e sem trilho sólido */
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 40, 72, 0.72) transparent;
}

body {
    font-family: var(--fonte-texto);
    font-size: 16px;
    line-height: 1.6;
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ============================================
   SCROLLBAR — thumb rosa, track bege
   O track combina com o fundo do site → sem branco
   ============================================ */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: rgba(72, 24, 8, 0.08);
    border: 3px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb {
    background: rgba(184, 40, 72, 0.72);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    min-height: 40px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rosa-escuro);
    border-color: transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* ============================================
   IMPORTANTE: [hidden] sempre vence
   ============================================ */
[hidden] {
    display: none !important;
}

body.jo-no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ---------- Container utilitário ---------- */
.jo-container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* ---------- Acessibilidade ---------- */
.jo-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;
}

:focus-visible {
    outline: 2px solid var(--cor-primaria);
    outline-offset: 3px;
    border-radius: 4px;
}
