/* =====================================================
   PALESTRA FUNCEF — GB ADVOCACIA
   Dark Elegante | Preto + Creme | Investigação Defensiva
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-black: #0a0a0a;
  --bg-black-alt: #141414;
  --bg-cream: #f5f2e8;
  --bg-cream-alt: #ebe6d5;
  --text-light: #f5f2e8;
  --text-light-dim: #a8a298;
  --text-dark: #0a0a0a;
  --text-dark-dim: #4a4a4a;
  --line: #2a2a2a;
  --line-cream: #d4cdb8;
  --accent-red: #8b0000;
  --accent-subtle: #b8a878;
  --mono: 'JetBrains Mono', 'Consolas', monospace;
  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

/* ---------- Reveal base overrides ---------- */
.reveal {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.005em;
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  padding: 38px 60px;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.reveal .slides section.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ---------- Backgrounds ---------- */
.reveal section[data-background-color="black"],
.reveal .slide-dark {
  background: var(--bg-black);
  color: var(--text-light);
}

.reveal section[data-background-color="cream"],
.reveal .slide-cream {
  background: var(--bg-cream);
  color: var(--text-dark);
}

/* ---------- Typography ---------- */
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: inherit;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.45em 0;
}

.reveal h1 {
  font-size: 1.5em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.reveal h2 {
  font-size: 1.1em;
  font-weight: 500;
}

.reveal h3 {
  font-size: 0.92em;
  font-weight: 500;
  font-style: italic;
  color: var(--accent-subtle);
}

.reveal h4 {
  font-size: 0.65em;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-subtle);
}

.reveal p {
  font-size: 0.54em;
  line-height: 1.45;
  margin: 0 0 0.45em 0;
  font-weight: 300;
}

.reveal em {
  font-style: italic;
  color: var(--accent-subtle);
}

.reveal strong {
  font-weight: 600;
  color: var(--text-light);
}

.slide-cream strong { color: var(--text-dark); }

.reveal ul, .reveal ol {
  font-size: 0.54em;
  line-height: 1.45;
  margin: 0.25em 0 0.25em 1em;
}

.reveal li {
  margin-bottom: 0.22em;
  font-weight: 300;
}

.reveal li strong {
  font-weight: 600;
}

.reveal code {
  font-family: var(--mono);
  background: var(--line);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--accent-subtle);
}

.reveal blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.72em;
  font-weight: 400;
  line-height: 1.35;
  border-left: 2px solid var(--accent-subtle);
  padding: 0.15em 0 0.15em 0.8em;
  margin: 0.4em 0;
  color: var(--text-light-dim);
}

.slide-cream blockquote { color: var(--text-dark-dim); }

/* ---------- Logos ---------- */
.logo-mark {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 38px;
  height: 38px;
  opacity: 0.35;
  z-index: 5;
}

.logo-mark img { width: 100%; height: 100%; object-fit: contain; }

.slide-cream .logo-mark { filter: invert(1); }

.logo-center {
  display: block;
  margin: 0 auto 1.2em auto;
  max-width: 520px;
  width: 60%;
}

/* ---------- Slide-number discreto ---------- */
.reveal .slide-number {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-light-dim);
  background: transparent;
  right: 30px;
  bottom: 20px;
  letter-spacing: 0.1em;
}

.slide-cream + .slide-number { color: var(--text-dark-dim); }

/* ---------- Elementos compositores ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.48em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent-subtle);
  margin-bottom: 0.9em;
  display: block;
}

.subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92em;
  font-weight: 400;
  color: var(--text-light-dim);
  margin-top: 0.25em;
  line-height: 1.3;
}

.slide-cream .subtitle { color: var(--text-dark-dim); }

/* --- Capa dedicada --- */
.reveal section.capa {
  padding: 45px 70px 40px 70px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}

.capa-logo {
  height: 40px !important;
  width: 40px !important;
  max-width: 40px !important;
  object-fit: contain;
  opacity: 0.9;
  margin-bottom: 18px;
  display: block;
  border: none;
  box-shadow: none;
}

.capa-eyebrow {
  margin-bottom: 28px !important;
}

.capa-title {
  font-family: var(--serif);
  font-size: 1.75em !important;
  line-height: 1.02 !important;
  font-weight: 600;
  margin: 0 0 14px 0 !important;
  letter-spacing: -0.02em;
  color: var(--text-light);
}

.capa-title em {
  font-style: italic;
  color: var(--accent-subtle);
}

.capa-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.72em !important;
  line-height: 1.4 !important;
  color: var(--text-light-dim);
  max-width: 1000px;
  margin: 0 !important;
  font-weight: 400;
}

.capa-subtitle em {
  color: var(--accent-subtle);
}

.capa-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 30px;
  gap: 40px;
}

.capa-autor {
  font-family: var(--sans);
  font-size: 0.62em;
  font-weight: 400;
  color: var(--text-light-dim);
  letter-spacing: 0.04em;
  line-height: 1.5;
  max-width: 640px;
}

.capa-autor strong {
  display: block;
  font-size: 1.15em;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
  margin-bottom: 0.2em;
}

.capa-evento {
  font-family: var(--mono);
  font-size: 0.5em;
  text-align: right;
  color: var(--text-light-dim);
  letter-spacing: 0.15em;
  line-height: 1.7;
  white-space: nowrap;
}

.divider-line {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--accent-subtle);
  margin: 0.6em 0;
  border: none;
}

.slide-cream .divider-line { background: var(--text-dark-dim); }

/* Numbered sections (capítulos) */
.chapter-number {
  font-family: var(--mono);
  font-size: 0.6em;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--accent-subtle);
  margin-bottom: 0.8em;
  display: block;
}

.chapter-title {
  font-family: var(--serif);
  font-size: 2.2em;
  font-weight: 600;
  line-height: 1.05;
  margin: 0.15em 0;
  letter-spacing: -0.02em;
}

.chapter-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95em;
  color: var(--text-light-dim);
  font-weight: 400;
  margin-top: 0.4em;
}

/* Two columns */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  align-items: start;
}

/* Card / box com borda elegante */
.card {
  border: 1px solid var(--line);
  padding: 14px 18px;
  background: rgba(255,255,255,0.02);
}

.slide-cream .card {
  border-color: var(--line-cream);
  background: rgba(0,0,0,0.015);
}

.card h4 { margin-top: 0; margin-bottom: 0.6em; }
.card p:last-child { margin-bottom: 0; }

/* Stat big number */
.stat {
  font-family: var(--serif);
  font-size: 1.6em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.15em;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.55em;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-light-dim);
}

.slide-cream .stat-label { color: var(--text-dark-dim); }

.stat-red {
  color: var(--accent-red);
}

.slide-cream .stat-red {
  color: var(--accent-red);
}

/* Quote / destaque */
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25em;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 900px;
}

.pull-quote-attrib {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.35em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light-dim);
  margin-top: 1.5em;
  display: block;
}

.slide-cream .pull-quote-attrib { color: var(--text-dark-dim); }

/* Timeline / fases */
.phase {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.slide-cream .phase { border-bottom-color: var(--line-cream); }

.phase-num {
  font-family: var(--mono);
  font-size: 0.65em;
  letter-spacing: 0.15em;
  color: var(--accent-subtle);
}

.phase-title {
  font-family: var(--serif);
  font-size: 0.78em;
  font-weight: 500;
  margin-bottom: 0.1em;
}

.phase-desc {
  font-size: 0.52em;
  color: var(--text-light-dim);
  font-weight: 300;
  margin: 0;
  line-height: 1.4;
}

.slide-cream .phase-desc { color: var(--text-dark-dim); }

/* Demo placeholder / terminal */
.demo-frame {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #050505;
  font-family: var(--mono);
  font-size: 0.48em;
  padding: 11px 15px;
  color: var(--accent-subtle);
  max-width: 100%;
  line-height: 1.4;
}

.demo-frame-header {
  color: var(--text-light-dim);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.demo-frame-line { line-height: 1.5; }

.demo-frame-prompt { color: #5ec4ff; }

/* Case study marker */
.case-marker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.5em;
  letter-spacing: 0.3em;
  background: var(--accent-red);
  color: var(--text-light);
  padding: 3px 10px;
  text-transform: uppercase;
  margin-bottom: 0.9em;
}

/* Fragment tweaks */
.reveal .fragment.fade-in-then-semi-out {
  opacity: 1;
}

.reveal .fragment.highlight-subtle.visible {
  color: var(--accent-subtle);
}

/* Sources / footnote */
.footnote {
  position: absolute;
  bottom: 22px;
  left: 70px;
  right: 70px;
  font-family: var(--mono);
  font-size: 0.45em;
  color: var(--text-light-dim);
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.slide-cream .footnote { color: var(--text-dark-dim); }

/* TOC */
.toc-item {
  display: grid;
  grid-template-columns: 50px 1fr 55px;
  gap: 20px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.slide-cream .toc-item { border-bottom-color: var(--line-cream); }

.toc-num {
  font-family: var(--mono);
  font-size: 0.65em;
  color: var(--accent-subtle);
  letter-spacing: 0.15em;
}

.toc-title {
  font-family: var(--serif);
  font-size: 0.72em;
  font-weight: 500;
  line-height: 1.25;
}

.toc-duration {
  font-family: var(--mono);
  font-size: 0.55em;
  color: var(--text-light-dim);
  letter-spacing: 0.1em;
  text-align: right;
}

.slide-cream .toc-duration { color: var(--text-dark-dim); }

/* Progress bar custom */
.reveal .progress {
  color: var(--accent-subtle);
  height: 2px;
}

/* Transitions */
.reveal .slides section {
  transition: opacity 0.4s ease;
}
