/* ===========================================================================
   Nutrisaude / base.css
   Tokens da marca, reset e tipografia. Vale para todas as LPs de /lps.
   Os tokens de cor são os mesmos usados em site/materiais/assets/css/base.css:
   ao mudar uma cor aqui, replique lá.
   =========================================================================== */

/* --- Tipografia auto-hospedada (subset latin, cobre o português) ----------- */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url('../fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
    /* Marca */
    --verde-ink: #092d23;
    --verde-ink-topo: #0c3527;
    --verde-rodape: #041610;
    --verde-medio: #0f5532;
    --verde: #00a564;
    --verde-claro: #32e6a0;

    /* Neutros e cremes */
    --branco: #ffffff;
    --creme-100: #f4f5e2;
    --creme-200: #ebedd7;
    --creme-300: #e9ebe3;
    --creme-card: rgba(228, 229, 213, 0.5);
    --cinza: #5c6a63;
    --cinza-placeholder: #8a968f;
    --verde-apagado: #8fa79b;
    --borda-campo: rgba(37, 40, 40, 0.35);
    --linha: rgba(102, 102, 102, 0.3);
    --erro: #c1362a;

    /* Tipografia */
    --fonte-titulo: 'usual', 'Schibsted Grotesk', system-ui, sans-serif;
    --fonte-texto: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --fonte-botao: 'Manrope', 'Inter', system-ui, sans-serif;

    /* Formas */
    --raio-card: 16px;
    --raio-bloco: 12px;
    --raio-campo: 8.3px;
    --raio-pill: 130px;
    --sombra-card: 0 3px 40px rgba(0, 0, 0, 0.28);
    --sombra-card-desk: 0 3px 63px rgba(0, 0, 0, 0.25);
    --sombra-foto: 0 3px 40px rgba(0, 0, 0, 0.22);

    /* Grade */
    --largura-max: 1440px;
    --largura-max-larga: 1568px;
    --gutter: 20px;
}

@media (min-width: 1024px) {
    :root {
        --gutter: 64px;
    }
}

/* --- Reset ---------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--branco);
    color: var(--verde-ink);
    font-family: var(--fonte-texto);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
    margin: 0;
    text-wrap: pretty;
}

h1,
h2,
h3 {
    font-family: var(--fonte-titulo);
    font-weight: 600;
    letter-spacing: -0.03em;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--verde);
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(50, 230, 160, 0.25);
}

a:hover {
    color: var(--verde-medio);
}

button {
    font: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--verde);
    outline-offset: 2px;
}

/* --- Utilitários ---------------------------------------------------------- */

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

.container {
    width: 100%;
    max-width: var(--largura-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Botão pill da marca, em <a> e <button> */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 18px 28px;
    border: none;
    border-radius: var(--raio-pill);
    font-family: var(--fonte-botao);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn--primario {
    background: var(--verde);
    color: var(--branco);
}

.btn--primario:hover,
.btn--primario:focus-visible {
    background: var(--verde-medio);
    color: var(--branco);
}

.btn--claro {
    background: var(--branco);
    color: var(--verde-ink);
}

.btn--claro:hover,
.btn--claro:focus-visible {
    background: var(--creme-100);
    color: var(--verde-ink);
}

.btn--bloco {
    width: 100%;
}

.btn:active {
    transform: translateY(1px);
}

.btn[disabled],
.btn[aria-disabled='true'] {
    opacity: 0.65;
    cursor: progress;
    transform: none;
}

@media (min-width: 1024px) {
    .btn {
        min-height: 64px;
        padding: 22px 56px;
        font-size: 20px;
    }
}
