/* ===================================================================
   Inteligência Emocional — Clínica e Escola
   Apresentação — Mariana Jungles
   =================================================================== */

/* -------------------------------------------------------------
   Fontes (self-hosted)
   Recoleta é uma fonte comercial (Recoleta Alt, usada no site da
   Mariana). Como não há o arquivo licenciado disponível neste projeto,
   a família "Recoleta" abaixo carrega a Fraunces (Google Fonts, livre)
   como substituta visual — mesma sensação serifada/orgânica. Quando o
   arquivo real da Recoleta estiver disponível, basta trocar os arquivos
   em assets/fonts/ e tudo no resto do CSS continua funcionando.
   ------------------------------------------------------------- */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Recoleta";
  src: url("../fonts/Fraunces-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Recoleta";
  src: url("../fonts/Fraunces-Variable-Italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

/* -------------------------------------------------------------
   Tokens
   ------------------------------------------------------------- */
:root {
  --petroleo: #1b4d4e;
  --petroleo-600: #163f40;
  --petroleo-900: #0f2c2d;
  --coral: #e08e79;
  --coral-600: #d87a62;
  --coral-900: #b85c46;
  --offwhite: #f8f5f0;
  --offwhite-dim: #efe9e0;
  --grafite: #1f1f1f;
  --branco: #ffffff;

  --ink: var(--grafite);
  --ink-soft: #4a4a47;
  --surface: var(--offwhite);

  --font-display: "Recoleta", "Fraunces", Georgia, serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;

  --stage-w: 1280px;
  --stage-h: 720px;
  --pad: 88px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0.001s; }
}

/* -------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--grafite);
  color: var(--ink);
  transition: background-color 0.6s var(--ease);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.theme-dark { background: var(--petroleo-900); }

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

svg.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button {
  font-family: var(--font-body);
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* -------------------------------------------------------------
   Stage — canvas fixo 1280x720, escalado via JS para caber na tela
   ------------------------------------------------------------- */
#viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--stage-w);
  height: var(--stage-h);
  margin: calc(var(--stage-h) / -2) 0 0 calc(var(--stage-w) / -2);
  transform-origin: center center;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
}

#deck {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
}

/* -------------------------------------------------------------
   Slides — mecânica de transição
   ------------------------------------------------------------- */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--surface);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  transform: translateX(0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.slide.is-incoming {
  transition: none !important;
  opacity: 0;
  z-index: 3;
  transform: translateX(56px);
}
#deck.dir-prev .slide.is-incoming { transform: translateX(-56px); }

.slide.is-leaving {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: translateX(-56px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
#deck.dir-prev .slide.is-leaving { transform: translateX(56px); }

.slide--dark { background: var(--petroleo); color: var(--offwhite); }

/* Conteúdo interno padrão */
.slide__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--pad);
  width: 100%;
  height: 100%;
}

/* -------------------------------------------------------------
   Reveal — animação de entrada dos elementos de cada slide
   ------------------------------------------------------------- */
.reveal { opacity: 0; }

.slide.is-active .reveal {
  animation: revealUp 0.85s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal--fade {
  animation-name: revealFade !important;
}
@keyframes revealFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal--scale.slide.is-active .reveal,
.slide.is-active .reveal--scale {
  animation-name: revealScale;
}
@keyframes revealScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* -------------------------------------------------------------
   Tipografia
   ------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
}
.slide--dark .eyebrow { color: var(--coral); }

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.display-1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 88px;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--petroleo);
}
.slide--dark .display-1 { color: var(--offwhite); }

.display-2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 60px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--petroleo);
}
.slide--dark .display-2 { color: var(--offwhite); }

.display-3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.22;
  color: var(--petroleo);
}
.slide--dark .display-3 { color: var(--offwhite); }

.lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 25px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 680px;
}
.slide--dark .lede { color: rgba(248, 245, 240, 0.78); }

.body-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.slide--dark .body-text { color: rgba(248, 245, 240, 0.82); }

.accent { color: var(--coral); }
.accent-petroleo { color: var(--petroleo); }
em.accent {
  font-style: italic;
  font-family: var(--font-display);
}

.caption-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--petroleo);
  opacity: 0.65;
}
.slide--dark .caption-label { color: var(--offwhite); opacity: 0.55; }

/* -------------------------------------------------------------
   Chrome — marca, navegação, progresso
   ------------------------------------------------------------- */
.chrome {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }

.brandmark {
  position: absolute;
  top: 40px;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.85;
}
.brandmark__icon { width: 20px; height: auto; display: block; }
.brandmark__icon--light { display: none; }
body.theme-dark .brandmark__icon--dark { display: none; }
body.theme-dark .brandmark__icon--light { display: block; }
.brandmark span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--petroleo);
}
body.theme-dark .brandmark span { color: var(--offwhite); }

.nav-chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
}

.nav-counter {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--petroleo);
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}
body.theme-dark .nav-counter { color: var(--offwhite); }

.progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(27, 77, 78, 0.12);
}
body.theme-dark .progress-track { background: rgba(248, 245, 240, 0.14); }
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--coral);
  transition: width 0.5s var(--ease);
}

.nav-arrows { display: flex; gap: 12px; }
.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 77, 78, 0.08);
  color: var(--petroleo);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}
body.theme-dark .nav-btn {
  background: rgba(248, 245, 240, 0.12);
  color: var(--offwhite);
}
.nav-btn:hover { background: var(--coral); color: var(--offwhite); transform: translateY(-2px); }
.nav-btn:disabled { opacity: 0.3; pointer-events: none; }
.nav-btn svg { width: 18px; height: 18px; }

.fullscreen-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--petroleo);
  opacity: 0.55;
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease);
}
body.theme-dark .fullscreen-btn { color: var(--offwhite); }
.fullscreen-btn:hover { opacity: 1; background: rgba(27, 77, 78, 0.08); }
body.theme-dark .fullscreen-btn:hover { background: rgba(248, 245, 240, 0.12); }
.fullscreen-btn svg { width: 16px; height: 16px; }

.nav-meta { display: flex; align-items: center; gap: 16px; }

/* -------------------------------------------------------------
   Blobs decorativos (ambiente orgânico, sutil, contínuo)
   ------------------------------------------------------------- */
.blob-field { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  animation: float 16s ease-in-out infinite;
  will-change: transform;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, -3%) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

/* -------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------- */
.center-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
}

.top-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  max-width: 980px;
}

.split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.illustration-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.divider {
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--coral);
}

/* -------------------------------------------------------------
   Components: chips, mapping rows, tables, grids, cards
   ------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.chip--petroleo { background: rgba(27, 77, 78, 0.1); color: var(--petroleo); }
.chip--coral { background: rgba(224, 142, 121, 0.18); color: var(--coral-900); }

.mapping-rows { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 760px; }
.mapping-row {
  display: grid;
  grid-template-columns: 184px 32px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: var(--branco);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(27, 77, 78, 0.08);
}
.mapping-row__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--petroleo);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mapping-row__label .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mapping-row__arrow { color: var(--coral); }
.mapping-row__text { font-size: 17px; color: var(--ink-soft); text-align: left; }

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.case-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-block p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  width: 100%;
}
.plan-col { display: flex; flex-direction: column; gap: 18px; }
.plan-col__head { display: flex; align-items: center; gap: 12px; }
.plan-col__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 77, 78, 0.1);
  color: var(--petroleo);
}
.plan-col__icon svg { width: 20px; height: 20px; }
.plan-col__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--petroleo);
}
.plan-list { display: flex; flex-direction: column; gap: 12px; }
.plan-item {
  display: flex;
  gap: 12px;
  padding: 15px 18px;
  background: var(--branco);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(27, 77, 78, 0.06);
}
.plan-item strong { color: var(--petroleo); font-weight: 600; font-size: 16.5px; }
.plan-item span { color: var(--ink-soft); font-size: 16px; }
.plan-item__bullet {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--coral);
}

/* Worksheet table */
.worksheet {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(27, 77, 78, 0.1);
  background: var(--branco);
}
.worksheet th, .worksheet td {
  padding: 4px 16px;
  text-align: left;
  border-bottom: 1px solid var(--offwhite-dim);
}
.worksheet thead th {
  background: var(--petroleo);
  color: var(--offwhite);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.worksheet tbody td:first-child {
  font-weight: 600;
  color: var(--petroleo);
  font-size: 14.5px;
  white-space: nowrap;
}
.worksheet tbody td { font-size: 13.5px; color: var(--ink-soft); }
.worksheet tbody td:first-child { width: 130px; }
.worksheet tbody tr:last-child td { border-bottom: none; }
.worksheet tbody tr:nth-child(even) { background: rgba(248, 245, 240, 0.6); }
.worksheet .col-pts { width: 64px; text-align: center; }

/* Icon grid (rotina visual / economia de fichas) */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  background: var(--branco);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(27, 77, 78, 0.08);
}
.icon-tile__badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--branco);
}
.icon-tile__badge svg { width: 26px; height: 26px; }
.icon-tile span {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--petroleo);
  text-align: center;
  letter-spacing: 0.01em;
}

/* Resource card (livros, ilustrações centrais) */
.resource-card {
  background: var(--branco);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(27, 77, 78, 0.12);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-frame {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--petroleo) 0%, #246668 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 70px rgba(27, 77, 78, 0.25);
  overflow: hidden;
}
.media-frame--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: var(--grafite);
}

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
}
.photo-frame {
  border-radius: 22px;
  aspect-ratio: 4 / 3.1;
  background: var(--offwhite-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(27, 77, 78, 0.1);
  position: relative;
  overflow: hidden;
}
.photo-frame__tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--petroleo);
  background: rgba(248, 245, 240, 0.85);
  padding: 6px 12px;
  border-radius: 999px;
}

.equation-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.equation-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 26px;
  background: var(--branco);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(27, 77, 78, 0.08);
  width: 190px;
}
.equation-card svg { width: 38px; height: 38px; color: var(--petroleo); }
.equation-card span { font-size: 15px; font-weight: 600; color: var(--petroleo); text-align: center; }
.equation-sign { font-family: var(--font-display); font-size: 34px; color: var(--coral); }

.kicker-num {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--coral);
  opacity: 0.8;
}
