/* =========================================================
   Thaís Nunes · Nutricionista — versão imersiva
   Paleta e tons do manual da marca
   ========================================================= */
:root {
  --creme: #f4efe9;
  --creme-2: #ebe3d9;
  --areia: #aea294;
  --ameixa: #68506b;
  --ameixa-2: #4a374d;
  --noite: #261c28;
  --salvia: #878f79;
  --salvia-2: #5d644f;
  --ouro: #dfb954;
  --ouro-2: #9b6a1e;
  --tinta: #33283a;
  --tinta-suave: #6e6270;

  --fundo: var(--creme);
  --texto: var(--tinta);
  --texto-suave: var(--tinta-suave);
  --linha: rgba(104, 80, 107, .22);

  --display: "Italiana", "Didot", serif;
  --acento: "Bodoni Moda", "Didot", serif;
  --corpo: "Jost", "Futura", "Century Gothic", sans-serif;

  --margem: clamp(20px, 5vw, 88px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--corpo);
  font-weight: 300;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 1s var(--ease), color 1s var(--ease);
}
body.escuro {
  --fundo: var(--noite);
  --texto: var(--creme);
  --texto-suave: rgba(244, 239, 233, .66);
  --linha: rgba(244, 239, 233, .18);
}
body.carregando { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-family: var(--acento); font-style: italic; font-weight: 400; color: var(--ameixa); letter-spacing: -.01em; }
body.escuro em { color: var(--ouro); }
::selection { background: var(--ameixa); color: var(--creme); }

/* ---------- abertura ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--creme);
}
.intro__mark { width: min(62vw, 420px); }
.intro__mark svg { width: 100%; height: auto; overflow: visible; }
.intro__mark path { fill-opacity: 0; stroke-width: .5; }
.intro__mark path[data-part="plum"] { stroke: var(--ameixa); }
.intro__mark path[data-part="sage"] { stroke: var(--salvia); }
.intro__mark path[data-part="gold"] { stroke: var(--ouro); }
.intro__count {
  position: absolute; right: var(--margem); bottom: 32px;
  font-family: var(--display); font-size: 64px; line-height: 1; color: var(--ameixa);
}

/* ---------- cena 3D ---------- */
#cena {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}
.cena-fallback { display: none; }
.sem-webgl #cena { display: none; }
.sem-webgl .cena-fallback {
  display: block; position: absolute; top: 18vh; left: 50%;
  width: min(70vw, 460px); transform: translateX(-50%); z-index: 0; opacity: .9;
}

/* ---------- topo ---------- */
.topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--margem);
  transition: transform .6s var(--ease), background-color .6s var(--ease);
}
.topo.recolhido { transform: translateY(-110%); }
.topo.solido { background: color-mix(in srgb, var(--fundo) 82%, transparent); backdrop-filter: blur(10px); }
.topo__logo img { height: 54px; width: auto; transition: filter .6s; }
body.escuro .topo__logo img { filter: brightness(0) invert(.94) sepia(.12); }
.topo__nav { display: flex; gap: clamp(18px, 3vw, 44px); }
.topo__nav a, .rotulo, .capitulo, .btn, .item__link, .hero__rodape, figcaption, .credenciais dt, .rodape span {
  font-family: var(--corpo); font-weight: 500; font-size: 11px;
  letter-spacing: .26em; text-transform: uppercase;
}
.topo__nav a { text-decoration: none; position: relative; padding: 6px 0; }
.topo__nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.topo__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- botões ---------- */
.btn {
  --cor: var(--ameixa);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 28px; text-decoration: none; overflow: hidden; isolation: isolate;
  border-radius: 999px;
}
.btn span { position: relative; z-index: 1; }
.btn--cheio { background: var(--ameixa); color: var(--creme); }
.btn--cheio::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(223, 185, 84, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn--cheio:hover::after { transform: translateX(120%); }
.btn--cheio::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ouro); order: 2; position: relative; z-index: 1;
}
.btn--linha { border: 1px solid var(--linha); padding: 12px 22px; }
.btn--linha:hover { border-color: currentColor; }
.btn--texto { padding-left: 4px; }
.btn--texto span { border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.btn--grande { padding: 22px 38px; font-size: 12px; }
body.escuro .btn--cheio { background: var(--creme); color: var(--noite); }

/* ---------- rótulos e capítulos ---------- */
.rotulo { display: flex; align-items: center; gap: 14px; color: var(--texto-suave); margin: 0 0 28px; }
.rotulo--centro { justify-content: center; }
.rotulo__linha { width: 42px; height: 1px; background: currentColor; display: inline-block; }
.capitulo { display: flex; align-items: center; gap: 16px; color: var(--texto-suave); margin-bottom: clamp(32px, 5vw, 64px); }
.capitulo span:first-child { font-family: var(--display); font-size: 20px; letter-spacing: 0; color: var(--ameixa); }
body.escuro .capitulo span:first-child { color: var(--ouro); }
.capitulo__linha { flex: 0 0 64px; height: 1px; background: var(--linha); }

.titulo {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 108px); line-height: .98; letter-spacing: -.01em;
  margin: 0 0 32px;
}
.titulo em { font-size: .92em; }

/* ---------- secções gerais ---------- */
main { position: relative; z-index: 1; }
section { position: relative; padding: clamp(96px, 14vw, 200px) var(--margem); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px; padding-bottom: 28px; text-align: center;
}
.hero__marca { flex: 1 1 auto; min-height: 22vh; width: min(100%, 760px); margin: 0 auto 2vh; }
.convite__marca { flex: 1 1 auto; min-height: 36vh; width: min(100%, 760px); margin-bottom: 3vh; }
.sem-webgl .hero__marca { background: url("../img/monograma.svg") center / contain no-repeat; }
.sem-webgl .cena-fallback { display: none !important; }
.hero__texto { max-width: 1100px; margin: 0 auto; }
.hero .rotulo { justify-content: center; }
.hero__titulo {
  font-family: var(--display); font-weight: 400; margin: 0 0 28px;
  font-size: clamp(52px, 8.6vw, 150px); line-height: .92; letter-spacing: -.015em;
}
.mask { display: block; overflow: hidden; padding-bottom: .06em; }
.mask > span { display: inline-block; }
.hero__sub { max-width: 520px; margin: 0 auto 36px; color: var(--texto-suave); }
.hero__acoes { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; align-items: center; }
.hero__rodape {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: clamp(40px, 7vh, 90px); padding-top: 18px; border-top: 1px solid var(--linha);
  color: var(--texto-suave); font-size: 10px;
}
.rolar { display: inline-flex; align-items: center; gap: 12px; }
.rolar i { width: 1px; height: 28px; background: var(--linha); position: relative; overflow: hidden; }
.rolar i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ameixa);
  animation: desce 2.2s var(--ease) infinite;
}
@keyframes desce { to { top: 100%; } }

/* ---------- manifesto ---------- */
.manifesto { min-height: 110vh; }
.manifesto__texto {
  font-family: var(--display); font-size: clamp(34px, 4.6vw, 76px); line-height: 1.08;
  max-width: 11.5em; margin: 0;
}
.manifesto__texto .palavra { opacity: .14; transition: opacity .2s linear; }
.linha-vida { width: 100%; height: clamp(140px, 20vw, 260px); margin-top: clamp(40px, 7vw, 100px); overflow: visible; }
.linha-vida__traco { fill: none; stroke: var(--ameixa); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.linha-vida__folha path { fill: var(--salvia); }
.linha-vida__dna path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.linha-vida__dna .fita-a { stroke: var(--ameixa); }
.linha-vida__dna .fita-b { stroke: var(--ouro); }
.linha-vida__dna line { stroke: var(--ameixa); stroke-width: 1; opacity: .7; vector-effect: non-scaling-stroke; }

/* ---------- faixa ---------- */
.faixa {
  position: relative; z-index: 1; overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha);
  padding: clamp(14px, 2vw, 26px) 0;
}
.faixa__trilho { display: inline-flex; align-items: center; gap: clamp(26px, 4vw, 60px); will-change: transform; }
.faixa span { font-family: var(--display); font-size: clamp(40px, 6vw, 96px); line-height: 1; }
.faixa span:nth-of-type(even) { font-family: var(--acento); font-style: italic; color: var(--ameixa); }
.faixa i {
  width: clamp(26px, 3vw, 44px); height: clamp(26px, 3vw, 44px); flex: 0 0 auto;
  background: url("../img/folha.svg") center / contain no-repeat;
}

/* ---------- cuidado ---------- */
.cuidado .titulo, .cuidado .intro-texto { max-width: 760px; }
.intro-texto { color: var(--texto-suave); max-width: 520px; margin: 0 0 clamp(56px, 8vw, 110px); }
.lista-cuidado { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linha); max-width: 1180px; }
.item {
  display: grid; grid-template-columns: 70px 170px 1fr auto; gap: clamp(18px, 3vw, 48px); align-items: center;
  padding: clamp(28px, 3.4vw, 46px) 0; border-bottom: 1px solid var(--linha);
  position: relative;
}
.item::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--ameixa); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.item:hover::before { transform: scaleX(1); }
.item__num { font-family: var(--display); font-size: 34px; color: var(--ameixa); }
.item h3 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.5vw, 40px); line-height: 1.1; margin: 0 0 8px; }
.item p { margin: 0; color: var(--texto-suave); max-width: 470px; }
.item__link { text-decoration: none; white-space: nowrap; display: inline-flex; gap: 10px; align-items: center; }
.item__link::after { content: "→"; letter-spacing: 0; transition: transform .4s var(--ease); }
.item__link:hover::after { transform: translateX(6px); }

.ico { width: 100%; height: auto; overflow: visible; }
.ico__grade { stroke: var(--linha); stroke-width: 1; fill: none; }
.ico__traco { fill: none; stroke: var(--ameixa); stroke-width: 1.6; }
.ico__ponto { fill: var(--ouro); }
.ico__aro { fill: none; stroke: var(--linha); stroke-width: 1; }
.ico__arco { fill: none; stroke-width: 1.6; stroke-linecap: round; transform-origin: 80px 55px; }
.ico__arco--1 { stroke: var(--ameixa); stroke-dasharray: 60 191; animation: gira 9s linear infinite; }
.ico__arco--2 { stroke: var(--salvia); stroke-dasharray: 46 142; animation: gira 6s linear infinite reverse; }
.ico__arco--3 { stroke: var(--ouro); stroke-dasharray: 30 96; animation: gira 4s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.ico--dna path { fill: none; stroke-width: 1.6; }
.ico--dna .fita-a { stroke: var(--ameixa); }
.ico--dna .fita-b { stroke: var(--ouro); }
.ico--dna line { stroke: var(--ameixa); stroke-width: 1; opacity: .55; }

/* ---------- sobre ---------- */
.sobre__grade {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 110px);
  align-items: start; position: relative;
}
.foto { margin: 0; }
.foto__moldura { position: relative; overflow: hidden; clip-path: inset(0 0 0 0); }
.foto__moldura img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.foto figcaption { display: flex; gap: 14px; margin-top: 14px; color: var(--texto-suave); font-size: 10px; }
.foto figcaption span { color: var(--ameixa); }
.foto--alta .foto__moldura { aspect-ratio: 3 / 4.3; }
.foto--pequena { grid-column: 2; width: min(340px, 70%); justify-self: end; margin-top: -10vw; }
.foto--pequena .foto__moldura { aspect-ratio: 4 / 5; }
.sobre__texto { padding-top: clamp(0px, 6vw, 110px); }
.destaque { font-family: var(--display); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.35; margin: 0 0 24px; }
.sobre__texto p { max-width: 560px; }
.sobre__texto > p:not(.destaque) { color: var(--texto-suave); }
.credenciais { margin: 48px 0 0; border-top: 1px solid var(--linha); max-width: 560px; }
.credenciais div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--linha); align-items: baseline; }
.credenciais dt { color: var(--texto-suave); font-size: 10px; }
.credenciais dd { margin: 0; font-family: var(--display); font-size: 22px; }

.servicos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 90px); margin-top: clamp(80px, 10vw, 150px); max-width: 1180px; }
.servico { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding-top: 26px; border-top: 1px solid var(--ameixa); }
.servico__sigla { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--ameixa); }
.servico h3 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 0 0 8px; }
.servico p { margin: 0; color: var(--texto-suave); }

/* ---------- galeria horizontal ---------- */
.galeria { padding: 0; }
.galeria__pin { height: 100vh; overflow: hidden; display: flex; align-items: center; }
.galeria__trilho { display: flex; align-items: center; gap: clamp(40px, 6vw, 110px); padding: 0 var(--margem); will-change: transform; }
.galeria__abertura { flex: 0 0 min(560px, 80vw); }
.galeria__abertura .titulo { font-size: clamp(44px, 5.4vw, 92px); }
.quadro { flex: 0 0 auto; margin: 0; width: min(26vw, 46vh, 420px); min-width: 220px; }
.quadro:not(.quadro--baixo) { margin-bottom: 10vh; }
.quadro--baixo { margin-top: 10vh; }
.quadro__img { overflow: hidden; aspect-ratio: 3 / 4; }
.quadro__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.quadro figcaption { margin-top: 16px; display: grid; gap: 6px; color: var(--texto); font-size: 11px; }
.quadro figcaption b { font-family: var(--acento); font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 18px; color: var(--ameixa); }
.quadro figcaption span { font-family: var(--corpo); font-weight: 300; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--texto-suave); max-width: 300px; }

/* ---------- método (escuro) ---------- */
.metodo { min-height: 120vh; }
.metodo .titulo { margin-left: auto; max-width: 900px; text-align: right; }
.metodo .capitulo { justify-content: flex-end; }
.passos { position: relative; max-width: 720px; margin: clamp(60px, 8vw, 120px) 0 0 auto; padding-left: 64px; }
.passos__linha { position: absolute; left: 0; top: 0; width: 4px; height: 100%; overflow: visible; }
.passos__linha path { stroke: var(--ouro); stroke-width: 1.2; fill: none; vector-effect: non-scaling-stroke; }
.passo { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 0 0 clamp(48px, 6vw, 84px); position: relative; }
.passo::before {
  content: ""; position: absolute; left: -68px; top: 22px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--noite); border: 1px solid var(--ouro); transition: background .5s;
}
.passo.ativo::before { background: var(--ouro); }
.passo__num { font-family: var(--display); font-size: clamp(64px, 7vw, 110px); line-height: .8; color: var(--ouro); }
.passo h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.6vw, 40px); margin: 0 0 8px; }
.passo p { margin: 0; color: var(--texto-suave); }

/* ---------- dúvidas ---------- */
.duvidas { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); }
.duvidas__cab p { color: var(--texto-suave); max-width: 360px; }
.acordeao { border-top: 1px solid var(--linha); align-self: end; }
.acordeao details { border-bottom: 1px solid var(--linha); }
.acordeao summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; font-family: var(--display); font-size: clamp(22px, 2vw, 30px); line-height: 1.2;
}
.acordeao summary::-webkit-details-marker { display: none; }
.acordeao summary i { position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.acordeao summary i::before, .acordeao summary i::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--ameixa); transition: transform .5s var(--ease);
}
.acordeao summary i::after { transform: rotate(90deg); }
.acordeao details[open] summary i::after { transform: rotate(0); }
.acordeao details p { margin: 0 0 26px; color: var(--texto-suave); max-width: 600px; }

/* ---------- convite ---------- */
.convite { min-height: 110vh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding-bottom: 14vh; }
.convite__titulo { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6.6vw, 112px); line-height: .98; max-width: 14em; margin: 0 0 28px; }
.convite__sub { color: var(--texto-suave); max-width: 520px; margin: 0 0 40px; }

/* ---------- rodapé ---------- */
.rodape { position: relative; z-index: 1; background: var(--ameixa-2); color: var(--creme); padding: clamp(70px, 9vw, 130px) var(--margem) 36px; }
.rodape__logo { width: min(360px, 70vw); }
.rodape__frase { font-family: var(--acento); font-style: italic; font-size: clamp(22px, 2.2vw, 32px); margin: 36px 0 60px; color: var(--ouro); }
.rodape__colunas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid rgba(244, 239, 233, .2); padding-top: 32px; }
.rodape__colunas > * { display: flex; flex-direction: column; gap: 8px; }
.rodape__colunas span { color: rgba(244, 239, 233, .55); font-size: 10px; margin-bottom: 6px; }
.rodape__colunas a { text-decoration: none; width: fit-content; }
.rodape__colunas a:hover { color: var(--ouro); }
.rodape__colunas p { margin: 0; }
.rodape__copy { margin: 56px 0 0; font-size: 12px; color: rgba(244, 239, 233, .5); }

/* ---------- botão flutuante ---------- */
.flutuante {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .35);
  transform: scale(0); transition: transform .6s var(--ease), background .4s;
}
.flutuante svg { width: 34px; height: 34px; }
.flutuante .wa-balao { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; }
.flutuante .wa-fone { fill: #fff; }
.flutuante.visivel { transform: scale(1); }
.flutuante:hover { background: #1ebe5b; }
.flutuante::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid #25d366; opacity: .35;
  animation: pulsa 2.8s var(--ease) infinite;
}
@keyframes pulsa { from { transform: scale(.9); opacity: .5; } to { transform: scale(1.25); opacity: 0; } }

/* prévia de estúdio do 3D (?foco=1) */
.foco main, .foco .topo, .foco .rodape, .foco .flutuante, .foco .intro { visibility: hidden; }

/* ---------- revelações ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js .hero__titulo .mask > span { transform: translateY(110%); }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .topo__nav { display: none; }
  .topo__logo img { height: 44px; }
  .item { grid-template-columns: 48px 1fr; row-gap: 14px; }
  .item__icone { grid-column: 2; width: 150px; }
  .item__texto, .item__link { grid-column: 2; }
  .sobre__grade, .duvidas, .servicos { grid-template-columns: 1fr; }
  .foto--pequena { grid-column: 1; margin-top: 0; }
  .metodo .titulo { text-align: left; margin-left: 0; }
  .metodo .capitulo { justify-content: flex-start; }
  .passos { margin-left: 0; padding-left: 40px; }
  .passo { grid-template-columns: 1fr; gap: 10px; }
  .passo::before { left: -44px; }
  .rodape__colunas { grid-template-columns: 1fr; }
  .hero__rodape > span:first-child, .hero__rodape > span:last-child { display: none; }
  .hero__rodape { justify-content: center; }
}
@media (max-width: 600px) {
  .galeria__pin { height: auto; display: block; padding: 96px 0; }
  .galeria__trilho { flex-direction: column; align-items: stretch; gap: 56px; }
  .galeria__abertura, .quadro { width: 100%; flex: none; }
  .quadro--baixo { margin-top: 0; }
  .flutuante { width: 58px; height: 58px; right: 16px; bottom: 16px; }
  .btn--grande { padding: 18px 26px; font-size: 10px; letter-spacing: .16em; white-space: nowrap; }
  .servico { grid-template-columns: 1fr; }
  .credenciais div { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__titulo .mask > span { transform: none; }
}
