:root {
  color-scheme: light;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: rgba(47, 158, 65, 0.05);
  color: #0f172a;
  accent-color: #2f9e41;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #2f9e41;
}

.presentation {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.toc {
  position: sticky;
  top: 0;
  padding: 16px 24px;
  background: linear-gradient(135deg, #8b1a1a 0%, #660000 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  color: #ffffff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 4px 20px rgba(201, 42, 42, 0.2);
  z-index: 100;
}

.toc-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logo {
  max-width: 56px;
  height: auto;
}

.brand-text span {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.toc-brand small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.toc nav {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 4px;
}

.toc a {
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  transition: all 0.25s ease;
}

.toc a.active,
.toc a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toc-note {
  display: none;
}

main {
  padding: 32px 42px;
}

.slide {
  background: #ffffff;
  border-radius: 28px;
  padding: 36px 40px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
  margin-bottom: 24px;
}

.slide:last-child {
  margin-bottom: 0;
}

.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.page-nav-prev {
  color: #2f9e41;
  background: rgba(47, 158, 65, 0.1);
  border: 1px solid rgba(47, 158, 65, 0.18);
}

.page-nav-next {
  color: #ffffff;
  background: #2f9e41;
}

.page-nav-button:hover {
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .page-nav {
    flex-direction: column;
  }
}

.hero {
  background: #2f9e41;
  color: #ffffff;
  padding: 60px 48px;
  border-radius: 32px;
  box-shadow: 0 32px 100px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-logo {
  max-width: 220px;
  height: auto;
}

.hero-logo.ceia-logo {
  max-width: 160px;
}

.hero .hero-team {
  margin-top: 14px;
  color: #ffffff;
  font-size: 1.02rem;
  max-width: 720px;
  line-height: 1.75;
}

.hero .eyebrow {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.02;
}

.hero h2 {
  margin: 22px auto 16px;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  color: #ffffff;
  max-width: 810px;
}

.subheading,
.section-description {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.9;
}

.hero .subheading,
.hero .section-description {
  margin: 0 auto;
}

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  color: #ffffff;
  font-size: 0.95rem;
}

.section-label {
  display: none;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
}

p,
li {
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
}

.highlight-section {
  background: rgba(47, 158, 65, 0.05);
}

.highlight-card {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(47, 158, 65, 0.1) 100%);
  border: 1px solid rgba(47, 158, 65, 0.18);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.highlight-card h3 {
  margin: 0 0 10px;
  color: #2f9e41;
}

.highlight-card p {
  margin: 0;
  color: #0f172a;
}

.feature-grid,
.info-grid,
.result-grid,
.metric-grid,
.highlight-grid,
.closing-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.feature-grid,
.info-grid,
.result-grid,
.highlight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.highlight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.result-card,
.metric-card,
.timeline-item {
  background: rgba(47, 158, 65, 0.05);
  border: 1px solid rgba(47, 158, 65, 0.12);
  border-radius: 24px;
  padding: 24px;
}

.feature-card {
  text-align: center;
  transition: all 0.35s ease;
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(47, 158, 65, 0.12);
  color: #2f9e41;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 16px auto;
  transition: all 0.3s ease;
}

.feature-card:hover .card-number {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.feature-card:hover {
  background: #2f9e41 !important;
  color: #ffffff !important;
}

.feature-card:hover * {
  color: #ffffff !important;
}

.feature-card h3 {
  transition: transform 0.3s ease, color 0.3s ease;
}

.feature-card:hover h3 {
  color: #ffffff !important;
  transform: scale(1.05);
}

.feature-card:hover p,
.feature-card:hover li {
  color: #ffffff !important;
}

.feature-card h3,
.result-card h3 {
  margin: 0 0 10px;
  color: #2f9e41;
}

.metric-card {
  display: grid;
  gap: 12px;
  text-align: center;
}

.metric-card strong {
  font-size: 3.5rem;
  font-weight: 800;
  color: #2f9e41;
  display: block;
  line-height: 1.1;
  margin-bottom: 5px;
  text-shadow: 0 4px 12px rgba(47, 158, 65, 0.15);
}

.metric-card span {
  font-size: 1rem;
  color: #334155;
  font-weight: 700;
  line-height: 1.4;
}

.timeline {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.timeline-item {
  padding: 22px;
  border-radius: 24px;
  background: rgba(47, 158, 65, 0.05);
  border: 1px solid rgba(47, 158, 65, 0.16);
}

.timeline-item span {
  display: inline-flex;
  margin-bottom: 10px;
  font-weight: 700;
  color: #2f9e41;
}

.bullet-list {
  margin: 0;
  padding-left: 1.35rem;
  list-style: disc;
  display: grid;
  gap: 14px;
}

.closing {
  min-height: auto;
}

.closing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.closing-grid strong {
  display: block;
  margin-bottom: 10px;
  color: #2f9e41;
}

@media (max-width: 1100px) {
  .toc {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
  }
  .toc nav {
    width: 100%;
    overflow-x: auto;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .presentation {
    display: block;
  }

  .toc {
    display: none;
  }

  main {
    padding: 0;
  }

  .slide {
    page-break-after: always;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin: 0;
    page-break-inside: avoid;
  }

  .hero {
    border-radius: 0;
    box-shadow: none;
    padding: 48px 36px;
  }
}

@media (max-width: 820px) {
  main {
    padding: 24px 20px;
  }

  .feature-grid,
  .info-grid,
  .result-grid,
  .metric-grid,
  .closing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 28px;
  }
}

/* === Fluxo de fases (methodology) === */
.phase-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

.phase-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 150px;
  max-width: 195px;
  position: relative;
}

.phase-circle {
  background: #2f9e41;
  color: #fff;
  border: 2px solid transparent;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(47, 158, 65, 0.35);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
  position: relative;
}

.phase-circle:hover {
  transform: scale(1.45) translateY(-10px);
  box-shadow: 0 20px 45px rgba(47, 158, 65, 0.65);
  background: #ffffff;
  color: #2f9e41;
  border-color: #2f9e41;
}

.phase-card {
  margin-top: 18px;
  background: rgba(47, 158, 65, 0.07);
  border: 1px solid rgba(47, 158, 65, 0.18);
  border-radius: 20px;
  padding: 20px 14px;
  text-align: center;
  width: 100%;
  transition: all 0.4s ease;
}

.phase-step:hover .phase-card {
  box-shadow: 0 12px 30px rgba(47, 158, 65, 0.25);
  border-color: #2f9e41;
  background: #ffffff;
  transform: translateY(5px);
}

.phase-card h3 {
  color: #2f9e41;
  font-size: 1rem;
  margin: 0 0 10px;
}

.phase-card p {
  font-size: 0.9rem;
  margin: 0;
  color: #334155;
}

.phase-connector {
  display: flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 22px;
  padding: 0 4px;
  flex-shrink: 0;
}

.phase-connector::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: #2f9e41;
  opacity: 0.4;
}

.phase-connector::after {
  content: '›';
  color: #2f9e41;
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 2px;
}

