/* ============================================================
   Jessica Oliveira · Nutricionista — Design System
   Paleta turquesa + verde salada · Fraunces + Inter + JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --------------------------- CORES E MEDIDAS --------------------------- */
:root {
  --bg:           #f7fbfb;   /* off-white com sopro turquesa */
  --bg-2:         #ecf5f4;   /* card raised */
  --bg-3:         #ffffff;   /* pure white */
  --ink:          #0e2e33;   /* deep teal ink */
  --ink-2:        #2d4a4f;   /* body */
  --ink-3:        #5e7578;   /* muted */
  --ink-4:        #a7b8ba;   /* faint */
  --line:         #dde9e9;   /* hairline */
  --line-2:       #c4d4d4;   /* emphasis */

  --primary:      #1aa99a;   /* turquesa — da estante */
  --primary-2:    #2dc6b4;
  --primary-soft: #c6ebe6;
  --primary-glow: rgba(26,169,154,0.28);

  --accent:       #8fb85a;   /* verde salada */
  --accent-soft:  #dbebc4;
  --gold:         #c9a876;

  --success:      #5a8a5c;
  --danger:       #c15b5b;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm:  0 1px 2px rgba(26,38,32,0.04), 0 2px 6px rgba(26,38,32,0.04);
  --shadow:     0 4px 16px rgba(26,38,32,0.06), 0 12px 32px rgba(26,38,32,0.06);
  --shadow-lg:  0 12px 36px rgba(26,38,32,0.10), 0 32px 80px rgba(26,38,32,0.08);
  --shadow-glow: 0 20px 60px -20px var(--primary-glow);

  --ff-display: 'Fraunces', 'Times New Roman', serif;
  --ff-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* --------------------------- RESET --------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* --------------------------- TIPOGRAFIA --------------------------- */
.display {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.display-xl { font-size: clamp(44px, 8vw, 112px); }
.display-lg { font-size: clamp(36px, 6vw, 80px); }
.display-md { font-size: clamp(30px, 4.5vw, 56px); }
.display-sm { font-size: clamp(24px, 3vw, 36px); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.label-mono {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.num-mono { font-family: var(--ff-mono); font-feature-settings: "tnum" 1; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); }
p { margin: 0; }

/* --------------------------- LAYOUT --------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.section { padding: var(--s-9) 0; }
.section-sm { padding: var(--s-7) 0; }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Duas colunas que viram uma no celular */
.split { display: grid; gap: var(--s-7); align-items: center; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr !important; gap: var(--s-6); }
  .split-reverse > :first-child { order: 2; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }

/* --------------------------- MENU --------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
  min-width: 0;
}
.brand-mark {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-weight: 500;
  font-style: italic;
  font-size: 20px;
  box-shadow: 0 6px 18px -6px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-meta { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.brand-meta small {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--ink-2);
  transition: all 0.2s var(--ease);
  position: relative;
}
.nav-link:hover { color: var(--ink); background: color-mix(in oklab, var(--primary-soft) 50%, transparent); }
.nav-link.active { color: var(--primary); background: color-mix(in oklab, var(--primary-soft) 70%, transparent); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: var(--s-3) var(--s-5) var(--s-5);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open .nav-links { display: flex; }
  .nav-link { padding: 12px 14px; font-size: 16px; }
}
@media (max-width: 560px) {
  .nav .nav-cta { display: none; }
  .brand-meta small { display: none; }
  .brand { font-size: 18px; }
}

/* --------------------------- BOTÕES --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 6px 20px -6px rgba(26,38,32,0.3);
}
.btn-primary:hover {
  background: var(--primary);
  box-shadow: 0 10px 30px -8px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink-3); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px -6px rgba(143,184,90,0.5);
}
.btn-accent:hover { transform: translateY(-1px); filter: brightness(1.05); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15.5px; }
@media (max-width: 480px) {
  .btn-lg { padding: 14px 22px; font-size: 15px; white-space: normal; text-align: center; }
}

.btn .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* --------------------------- CARDS --------------------------- */
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-quiet { background: var(--bg-2); border-color: transparent; }
.card-lg { padding: var(--s-6); border-radius: var(--r-xl); }
@media (max-width: 560px) { .card-lg { padding: var(--s-5); } }

/* Artigo ainda não escrito */
.soon { pointer-events: none; }
.soon h3, .soon p { opacity: .7; }
.soon .soon-tag {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--bg-3); color: var(--ink-3);
  padding: 4px 10px; border-radius: var(--r-pill);
}

.glass {
  background: color-mix(in oklab, var(--bg-3) 60%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid color-mix(in oklab, var(--bg-3) 80%, transparent);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

/* Caixas grandes (depoimento, chamada final) — menos espaço no celular */
.pad-box { padding: var(--s-8) var(--s-7); }
@media (max-width: 640px) {
  .section { padding: var(--s-8) 0; }
  .pad-box { padding: var(--s-7) var(--s-5); }
}

/* --------------------------- CHIPS --------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 12px;
  font-family: var(--ff-mono);
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.chip-primary { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.chip-accent  { background: var(--accent-soft); border-color: transparent; color: #5d7f33; }

/* --------------------------- 3D --------------------------- */
.tilt {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}

.orb-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  perspective: 1400px;
  transform-style: preserve-3d;
}
.orb-core {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--bg-3);
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  box-shadow: 0 40px 80px -30px var(--primary-glow), 0 20px 40px -20px rgba(0,0,0,0.18);
  animation: orb-float 8s ease-in-out infinite;
}
.orb-core img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@keyframes orb-float {
  0%, 100% { transform: translateY(0) rotateZ(0deg); }
  50% { transform: translateY(-14px) rotateZ(2deg); }
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed color-mix(in oklab, var(--ink) 18%, transparent);
  animation: orb-rotate 24s linear infinite;
}
.orb-ring-2 {
  inset: 8%;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  animation-duration: 38s;
  animation-direction: reverse;
}
@keyframes orb-rotate {
  from { transform: rotateZ(0deg); }
  to   { transform: rotateZ(360deg); }
}

.orb-satellite {
  position: absolute;
  width: 12%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 600;
}
.orb-satellite.s1 { top: -2%;  left: 50%; transform: translateX(-50%); animation: sat-float 6s ease-in-out infinite; }
.orb-satellite.s2 { top: 50%;  right: -3%; transform: translateY(-50%); animation: sat-float 7s ease-in-out infinite 1s; background: var(--accent); color: #fff; border-color: transparent; }
.orb-satellite.s3 { bottom: 5%; left: 2%; animation: sat-float 9s ease-in-out infinite 0.5s; background: var(--ink); color: var(--bg); border-color: transparent; }
@keyframes sat-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
@media (max-width: 860px) {
  .orb-stage { max-width: 360px !important; margin: 0 auto !important; }
}

/* O site anima mesmo quando o Windows está com "efeitos de animação" desligados
   (escolha do usuário em 19/10/2026). Só o parallax de rolagem é desligado nesse caso (app.js). */

/* --------------------------- MOVIMENTO EXTRA --------------------------- */
/* Título do topo: palavras sobem em sequência */
.hero-title > span { display: inline-block; animation: word-rise 1s var(--ease) both; }
.hero-title > span:nth-child(1) { animation-delay: .15s; }
.hero-title > span:nth-child(2) { animation-delay: .35s; }
.hero-title > span:nth-child(4) { animation-delay: .55s; }
@keyframes word-rise { from { opacity: 0; transform: translateY(40px) rotate(2deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Faixa de especialidades rolando */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-3); padding: 18px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 40px; align-items: center; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--ff-display); font-size: clamp(22px, 3vw, 34px); font-style: italic; color: var(--ink); white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--primary); font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Bolhas do fundo seguem o mouse (app.js define --mx/--my) */
.blob { transition: translate 1.2s var(--ease); translate: calc(var(--mx, 0) * 40px) calc(var(--my, 0) * 40px); }
.blob.b2 { translate: calc(var(--mx, 0) * -60px) calc(var(--my, 0) * -60px); }

/* Satélites também giram ao redor da órbita */
.orb-ring::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 16px var(--primary); }
.orb-ring-2::after { background: var(--accent); box-shadow: 0 0 16px var(--accent); top: auto; bottom: -5px; }

/* Botões com brilho passando */
.btn-primary::after, .btn-accent::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); background-size: 250% 100%; background-position: 120% 0; pointer-events: none; }
.btn-primary:hover::after, .btn-accent:hover::after { animation: shine .9s var(--ease); }
@keyframes shine { to { background-position: -120% 0; } }

/* Ícones dos cards pulam no hover */
.card .flex-center svg { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.card:hover .flex-center svg { transform: scale(1.18) rotate(-6deg); }

/* --------------------------- FORMULÁRIO --------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input,
.field textarea,
.field select {
  padding: 12px 14px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font-size: 16px;
  transition: all 0.15s var(--ease);
  outline: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 15%, transparent);
}
.field.invalid input { border-color: var(--danger); }

/* --------------------------- UTILITÁRIOS --------------------------- */
.divider { height: 1px; background: var(--line); border: none; margin: var(--s-5) 0; }
.text-muted { color: var(--ink-3); }
.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }

/* --------------------------- RODAPÉ --------------------------- */
.footer {
  background: var(--ink);
  color: var(--ink-4);
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-9);
}
.footer .brand { color: var(--bg); }
.footer a { color: color-mix(in oklab, var(--bg) 80%, transparent); transition: color 0.15s; }
.footer a:hover { color: var(--bg); }
.footer .eyebrow { color: color-mix(in oklab, var(--bg) 50%, transparent); }
.footer hr { border: none; border-top: 1px solid color-mix(in oklab, var(--bg) 12%, transparent); margin: var(--s-5) 0; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-5); }
.footer-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; word-break: break-word; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }

/* --------------------------- WHATSAPP FLUTUANTE --------------------------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -8px rgba(18,140,126,0.6);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }

/* --------------------------- ANIMAÇÃO AO ROLAR --------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* --------------------------- AVATAR --------------------------- */
.avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  display: grid;
  place-items: center;
  color: var(--primary);
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  overflow: hidden;
  position: relative;
  flex: none;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --------------------------- IDIOMA --------------------------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg);
  font-family: var(--ff-mono);
  font-size: 11px;
}
.lang-toggle button {
  padding: 5px 10px;
  border-radius: var(--r-pill);
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: all 0.15s;
}
.lang-toggle button.active { background: var(--ink); color: var(--bg); }
