/* ==========================================================================
   ESTOICISMO CONTEMPORÂNEO - DESIGN SYSTEM (MOBILE-FIRST)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  /* Cores Base */
  --c-dark: #141413;       /* Grafite quente escuro */
  --c-dark-surface: #1E1E1C;
  --c-light: #F7F5F0;      /* Marfim / Off-white */
  --c-gray: #A3A099;       /* Cinza quente para textos secundários */
  --c-border: #E0DDD3;     /* Bordas sutis no claro */
  --c-border-dark: #2F2F2D;/* Bordas sutis no escuro */
  
  /* Acento */
  --c-accent: #B0926A;     /* Bronze envelhecido */
  --c-accent-hover: #9E825D;

  /* Tipografia */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;

  /* Espaçamentos e Layout */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 6rem;
  
  --container-px: 24px;
  --container-max: 1000px;
}

/* ==========================================================================
   RESETS E BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--c-light);
  color: var(--c-dark);
}

body {
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==========================================================================
   UTILITÁRIOS GLOBAIS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.theme-dark {
  background-color: var(--c-dark);
  color: var(--c-light);
}

.theme-dark .text-muted { color: var(--c-gray); }
.text-muted { color: #6B685E; }

.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

.text-center { text-align: center; }

/* Tipografia Escalável (Mobile First) */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.15;
}

.h-display {
  font-size: 2.25rem; /* 36px no mobile */
  letter-spacing: -0.02em;
}

.h-headline {
  font-size: 1.75rem; /* 28px no mobile */
}

.h-sub {
  font-size: 1.25rem; /* 20px no mobile */
  line-height: 1.4;
}

.text-body {
  font-size: 1rem;
  line-height: 1.6;
}

.text-small {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ==========================================================================
   COMPONENTES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 24px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  background-color: var(--c-dark);
  color: var(--c-light);
  border: none;
  border-radius: 4px; /* Mais contemporâneo/sóbrio que bordas muito redondas */
  transition: transform 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.theme-dark .btn {
  background-color: var(--c-light);
  color: var(--c-dark);
}

.btn:active {
  transform: scale(0.98);
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 40px;
  margin-bottom: 1rem;
}

/* ==========================================================================
   SEÇÕES DA PÁGINA
   ========================================================================== */
section {
  padding: var(--sp-xl) 0;
  position: relative;
}

/* Dobra 1: Hero */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 20vh;
  padding-bottom: var(--sp-xl);
}

.hero .h-display {
  margin-bottom: var(--sp-md);
}

.hero .text-body {
  margin-bottom: var(--sp-lg);
  max-width: 500px;
}

/* Dobra 2: Mecanismo (Fato -> Controle -> Resposta) */
.mechanism-timeline {
  position: relative;
  margin-top: var(--sp-md);
  padding-left: 24px;
}

.mechanism-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--c-border);
}

.mechanism-step {
  position: relative;
  margin-bottom: var(--sp-lg);
  opacity: 0.3;
  transition: opacity 0.6s ease;
}

.mechanism-step.active {
  opacity: 1;
}

.mechanism-step::before {
  content: '';
  position: absolute;
  left: -27.5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--c-dark);
  transition: background-color 0.6s ease, transform 0.6s ease;
}

.mechanism-step.active::before {
  transform: scale(1.5);
  background-color: var(--c-accent);
}

/* Dobra 3: Identificação (Scroll storytelling) */
.ident-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  margin-top: var(--sp-md);
}

.ident-card {
  border-left: 2px solid var(--c-accent);
  padding-left: 16px;
}

.ident-final-words {
  margin-top: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ident-word {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--c-accent);
}

/* Dobra 5: Cronograma */
.schedule-list {
  margin-top: var(--sp-md);
}

.schedule-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
}

.schedule-time {
  font-family: var(--font-sans);
  font-weight: 500;
  min-width: 60px;
  color: var(--c-accent);
}

.schedule-desc {
  font-weight: 400;
}

/* Dobra 6: Prova (Carrossel Horizontal) */
.proof-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: var(--sp-md);
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--c-accent);
  margin-bottom: 4px;
}

.carousel {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 24px;
  scroll-snap-type: x mandatory;
  /* Esconder barra de rolagem mas permitir scroll */
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.carousel-item {
  min-width: 85%;
  background: var(--c-light);
  padding: 24px;
  scroll-snap-align: center;
  border: 1px solid var(--c-border);
  border-radius: 4px;
}

.theme-dark .carousel-item {
  background: var(--c-dark-surface);
  border-color: var(--c-border-dark);
}

/* Acordeões (FAQ) */
.faq-item {
  border-bottom: 1px solid var(--c-border-dark);
}

.faq-q {
  padding: 24px 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-a-content {
  padding-bottom: 24px;
  color: var(--c-gray);
}

/* ==========================================================================
   MOTION & REVEAL EFFECTS (Leves com Transform/Opacity)
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* ==========================================================================
   DESKTOP ADAPTATION (MOBILE FIRST)
   ========================================================================== */
@media (min-width: 768px) {
  .h-display { font-size: 4rem; }
  .h-headline { font-size: 2.5rem; }
  .h-sub { font-size: 1.5rem; }
  
  .btn { width: auto; padding: 18px 48px; }

  section { padding: 6rem 0; }
  
  .mechanism-timeline, .ident-cards {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .carousel-item { min-width: 40%; }
  
  .hero .text-body { max-width: 600px; }
  
  .schedule-list, .faq-list {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}
