/* =========================================================
   1/5 · BASE — variáveis, reset, tipografia, utilitários, botões
   CSSNUTRI · Cristina Selicani Sundfeld, Nutricionista
   Para trocar cores, edite só as variáveis em :root.
   ========================================================= */

/* ---------- Fontes hospedadas no próprio site (sem Google Fonts) ---------- */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-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: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-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: "Nunito Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/nunito-sans-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;
}

:root {
  /* Cores tiradas da logo */
  --verde-escuro: #264234;   /* títulos, botões, rodapé (texto da logo) */
  --verde-escuro-2: #1B3226; /* hover dos botões */
  --verde-oliva: #667F3B;    /* o "S" da logo: ícones, linhas, decoração */
  --oliva-texto: #56692F;    /* oliva escurecido p/ texto pequeno (AA 5,6:1 sobre creme) */
  --oliva-claro: #C9D1A3;    /* bordas e detalhes */
  --salvia: #DEE4E0;         /* fundo da logo: seções alternadas */
  --creme: #F7F5EE;          /* fundo principal */
  --branco: #FFFFFF;
  --texto: #26302A;
  --texto-suave: #55605A;
  --placeholder: #FFF3B0;    /* destaque dos [PREENCHER] */

  --fonte-titulo: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --fonte-texto: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --raio-sm: 10px;
  --raio: 18px;
  --raio-lg: 28px;
  --sombra-sm: 0 2px 10px rgba(38, 66, 52, .06);
  --sombra: 0 14px 40px rgba(38, 66, 52, .10);
  --header-h: 68px;

  /* Curvas de movimento (usadas em animations.css) */
  --ease: cubic-bezier(.22, 1, .36, 1);          /* suave, desacelera no fim */
  --ease-cine: cubic-bezier(.77, 0, .175, 1);    /* entrada/saída de cena */
  --ease-organico: cubic-bezier(.45, .05, .25, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fonte-texto);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  line-height: 1.15;
  color: var(--verde-escuro);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 7vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.95rem, 5vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--verde-oliva); outline-offset: 3px; border-radius: 4px; }

/* ---------- Utilitários ---------- */
.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;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 400;
  background: var(--verde-escuro); color: var(--branco);
  padding: 10px 18px; border-radius: var(--raio-sm); font-weight: 700;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* Placeholder de conteúdo pendente: bem visível de propósito */
.preencher {
  background: var(--placeholder);
  color: #5A4500;
  padding: .05em .35em;
  border-radius: 4px;
  font-family: var(--fonte-texto);
  font-size: .92em;
  font-weight: 700;
  font-style: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--oliva-texto);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; transform-origin: left; }
.lead { font-size: 1.1rem; color: var(--texto-suave); }

/* ---------- Botões ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .98rem; text-decoration: none; line-height: 1.2; text-align: center;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary { background: var(--verde-escuro); color: var(--branco); box-shadow: var(--sombra-sm); }
.btn-primary:hover { background: var(--verde-escuro-2); transform: translateY(-2px); box-shadow: var(--sombra); }
.btn-outline { border-color: var(--verde-escuro); color: var(--verde-escuro); background: transparent; }
.btn-outline:hover { color: var(--branco); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.02rem; }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(0) scale(.98); }
