/* Paleta tirada do perfil @lm_nutricao: sálvia dos posts, oliva dos traços. */
:root {
  --salvia: #d6d9b1;
  --salvia-clara: #e6e8cc;
  --creme: #f4f3e6;
  --oliva: #6b7449;
  --oliva-escura: #48502f;
  --oliva-profunda: #343a21;
  --folha: #8a9361;

  --fonte-logo: "Cinzel", Georgia, serif;
  --fonte-titulo: "Cormorant Garamond", Georgia, serif;
  --fonte-texto: "Josefin Sans", system-ui, sans-serif;

  --raio: 22px;
  --largura-max: 1180px;
  --respiro: clamp(16px, 5vw, 48px);
  --suave: cubic-bezier(.22, .8, .24, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--oliva-escura);
  font-family: var(--fonte-texto);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--oliva-profunda);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.6rem; font-weight: 500; }
h1 em, h2 em { font-style: italic; color: var(--oliva); }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { display: block; }
.oculto { position: absolute; width: 0; height: 0; overflow: hidden; }

.sobretitulo {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oliva);
  margin-bottom: 1rem;
}

.secao {
  max-width: var(--largura-max);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) var(--respiro);
}

.titulo-secao { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-family: var(--fonte-texto);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--oliva-escura);
  transition: transform .35s var(--suave), background .35s, color .35s, box-shadow .35s;
}
.botao:hover { transform: translateY(-3px); }
.botao:focus-visible { outline: 2px solid var(--oliva); outline-offset: 4px; }
.botao-cheio { background: var(--oliva-escura); color: var(--creme); }
.botao-cheio:hover { background: var(--oliva-profunda); box-shadow: 0 14px 30px -12px rgba(52, 58, 33, .55); }
.botao-contorno { background: transparent; color: var(--oliva-escura); }
.botao-contorno:hover { background: var(--oliva-escura); color: var(--creme); }
.botao-claro { background: var(--creme); color: var(--oliva-profunda); border-color: var(--creme); }
.botao-claro:hover { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4); }
.botao-contorno-claro { background: transparent; color: var(--creme); border-color: var(--salvia); }
.botao-contorno-claro:hover { background: var(--salvia); color: var(--oliva-profunda); }
.botao-pequeno { padding: .7rem 1.2rem; font-size: .72rem; }

.acoes { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.acoes-centro { justify-content: center; }

/* ---------- Cabeçalho ---------- */
.cabecalho {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--respiro);
  transition: background .4s, box-shadow .4s, padding .4s;
}
.cabecalho.rolado {
  background: rgba(244, 243, 230, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(72, 80, 47, .12);
  padding-block: .7rem;
}

.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.logo-titulo { font-family: var(--fonte-logo); font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; }
.logo-nome { font-family: var(--fonte-logo); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; margin-top: .25rem; }

.menu { display: flex; align-items: center; gap: 2rem; }
.menu > a:not(.botao) {
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--oliva-profunda);
  position: relative;
}
.menu > a:not(.botao)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--suave);
}
.menu > a:not(.botao):hover::after { transform: scaleX(1); transform-origin: left; }

.menu-botao { display: none; }

@media (max-width: 860px) {
  .menu-botao {
    display: grid;
    gap: 7px;
    width: 44px; height: 44px;
    place-content: center;
    background: none;
    border: 0;
    cursor: pointer;
    z-index: 2;
  }
  .menu-botao span { width: 26px; height: 1.5px; background: var(--oliva-escura); transition: transform .35s var(--suave); }
  .menu-botao[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-botao[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
    background: var(--salvia);
    clip-path: circle(0 at calc(100% - 40px) 40px);
    transition: clip-path .7s var(--suave);
  }
  .menu.aberto { clip-path: circle(150% at calc(100% - 40px) 40px); }
  .menu > a:not(.botao) { font-size: 1.1rem; }
}

/* ---------- Rodapé ---------- */
.rodape {
  background: var(--salvia);
  text-align: center;
  padding: 4rem var(--respiro) 6rem;
}
.logo-rodape { margin-bottom: 1.2rem; }
.logo-rodape .logo-titulo { font-size: 1.6rem; }
.rodape-frase { font-family: var(--fonte-titulo); font-style: italic; font-size: 1.3rem; }
.rodape-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; margin: 1.5rem 0; }
.rodape-links a { font-size: .85rem; letter-spacing: .08em; text-underline-offset: 4px; }
.rodape-legal { font-size: .78rem; opacity: .75; margin: 0; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-flutuante {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 15;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--oliva-escura);
  color: var(--creme);
  box-shadow: 0 12px 28px -10px rgba(52, 58, 33, .6);
  animation: pulsar 2.8s ease-in-out infinite;
  transition: transform .3s var(--suave);
}
.whatsapp-flutuante:hover { transform: scale(1.08); }
.whatsapp-flutuante svg { width: 28px; height: 28px; fill: currentColor; }
