/* ============================================================
   PAGE TRAJETÓRIA, timeline editorial em zigue-zague
   ============================================================
   Cada marco é um bloco assimétrico: foto/placeholder de um lado,
   ano em italic gigante no centro como elemento visual, conteúdo
   (título + descrição) do outro lado. Linha vertical fina conecta
   tudo no meio. Em mobile, vira coluna única lado a lado com a
   linha vertical à esquerda.
   ============================================================ */


/* HERO ---------------------------------------------------- */
.traj-hero {
  padding: clamp(72px, 9vw, 128px) 0 clamp(48px, 6vw, 80px);
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.traj-hero::before {
  content: "1981 a 2026";
  position: absolute;
  top: 24px;
  right: clamp(20px, 4vw, 64px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-deep);
  opacity: 0.6;
}
.traj-hero .container {
  max-width: 980px;
  position: relative;
}
.traj-hero .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-deep);
}
.traj-hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 20px 0 0;
  max-width: 18ch;
  font-weight: 400;
}
.traj-hero h1 em { color: var(--clay); font-style: italic; }
.traj-hero .lede {
  margin-top: 32px;
  max-width: 60ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.45;
  color: var(--ink-2);
}


/* SEÇÃO TIMELINE, wrapper com linha vertical contínua ---- */
.traj-timeline {
  padding: clamp(64px, 8vw, 120px) 0 clamp(80px, 9vw, 140px);
  background: var(--paper);
  position: relative;
}
.traj-timeline > .container {
  max-width: 1180px;
  position: relative;
}

/* Linha vertical contínua atrás dos marcos */
.traj-timeline > .container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0,
    var(--rule-2) 80px,
    var(--rule-2) calc(100% - 80px),
    transparent 100%);
  z-index: 0;
}

@media (max-width: 880px) {
  .traj-timeline > .container::before {
    left: 24px;
  }
}


/* CADA LINHA (MARCO) -------------------------------------- */
.traj-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(48px, 6vw, 80px) 0;
  position: relative;
  align-items: center;
  z-index: 1;
}

.traj-row + .traj-row {
  padding-top: clamp(20px, 3vw, 40px);
}

/* PONTO no meio da linha vertical (entre as duas colunas) */
.traj-row::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--clay);
  border: 4px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--rule-2);
  z-index: 2;
}


/* ZIGUE-ZAGUE, alterna lado da foto/conteúdo em desktop --- */

/* Linha PAR (1ª, 3ª, 5ª...): foto à esquerda, conteúdo à direita */
.traj-row.even .traj-photo {
  grid-column: 1;
  grid-row: 1;
}
.traj-row.even .traj-content {
  grid-column: 2;
  grid-row: 1;
}
.traj-row.even .traj-marker {
  grid-column: 2;
  grid-row: 1;
}

/* Linha ÍMPAR (2ª, 4ª, 6ª...): conteúdo à esquerda, foto à direita */
.traj-row.odd .traj-photo {
  grid-column: 2;
  grid-row: 1;
}
.traj-row.odd .traj-content {
  grid-column: 1;
  grid-row: 1;
}
.traj-row.odd .traj-marker {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}


/* FOTO / PLACEHOLDER -------------------------------------- */
.traj-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 380px;
  background: var(--cream);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.traj-row.even .traj-photo { justify-self: end; margin-right: 24px; }
.traj-row.odd  .traj-photo { justify-self: start; margin-left: 24px; }

.traj-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
}

/* Placeholder: ano gigante em italic clay */
.traj-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--paper) 100%);
  position: relative;
}
.traj-photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed var(--rule-2);
  pointer-events: none;
}
.traj-photo-placeholder::after {
  content: "📷";
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  opacity: 0.3;
  filter: grayscale(1);
}
.traj-photo-placeholder span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(72px, 9vw, 120px);
  color: var(--clay);
  opacity: 0.85;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 1px 0 var(--paper);
}


/* CONTEÚDO (título + descrição) --------------------------- */
.traj-content {
  position: relative;
  padding: 0 8px;
}
.traj-row.even .traj-content { padding-left: 24px; }
.traj-row.odd  .traj-content { padding-right: 24px; text-align: right; }

.traj-content h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 18px;
  font-weight: 400;
  max-width: 22ch;
}
.traj-row.odd .traj-content h3 { margin-left: auto; }

.traj-content p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
  max-width: 48ch;
}
.traj-row.odd .traj-content p { margin-left: auto; }


/* MARCADOR de ano grande sobreposto --------------------------- */
/* O ano fica como elemento decorativo: italic enorme num canto.
   No design final é tipo selo editorial. */
.traj-marker {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.traj-row.even .traj-marker {
  top: -16px;
  left: 24px;
  text-align: left;
}
.traj-row.odd .traj-marker {
  top: -16px;
  right: 24px;
  text-align: right;
}
.traj-year {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(72px, 11vw, 160px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--clay);
  opacity: 0.10;
  font-weight: 400;
  user-select: none;
}

/* Esconde o "dot" do marcador (a bolinha já é renderizada pelo
   ::before da .traj-row, não precisa de outra). */
.traj-marker .traj-dot { display: none; }


/* ============================================================
   MOBILE: empilha tudo numa coluna só, com a linha vertical
   à esquerda e marco como card editorial vertical.
   ============================================================ */

@media (max-width: 880px) {
  .traj-row,
  .traj-row.even,
  .traj-row.odd {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 0 40px 56px;
    align-items: start;
    text-align: left;
  }

  /* Ponto encostado na linha vertical à esquerda */
  .traj-row::before {
    left: 24px;
    top: 56px;
    transform: translate(-50%, 0);
    width: 14px;
    height: 14px;
    border-width: 3px;
  }

  /* Ordem mobile: foto pequena no topo, conteúdo embaixo */
  .traj-row.even .traj-photo,
  .traj-row.odd .traj-photo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin: 0;
    max-width: 200px;
    aspect-ratio: 4 / 5;
  }
  .traj-row.even .traj-content,
  .traj-row.odd .traj-content {
    grid-column: 1;
    grid-row: 2;
    padding: 0;
    text-align: left;
  }
  .traj-row.odd .traj-content h3,
  .traj-row.odd .traj-content p {
    margin-left: 0;
  }

  /* Ano decorativo: menor e dentro do bloco em mobile */
  .traj-row.even .traj-marker,
  .traj-row.odd .traj-marker {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    text-align: left;
    margin-bottom: 0;
  }
  .traj-year {
    font-size: 56px;
    opacity: 0.18;
    position: absolute;
    top: -12px;
    left: -12px;
  }

  .traj-photo-placeholder span { font-size: 56px; }
  .traj-content h3 { font-size: 22px; max-width: none; }
  .traj-content p { font-size: 15px; max-width: none; }
}


/* ============================================================
   CTA INFERIOR, bloco "Cada marco prepara o próximo passo"
   ============================================================ */
.cta-bottom {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(72px, 9vw, 120px) 0;
  text-align: center;
}
.cta-bottom .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}
.cta-bottom h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 18px auto 36px;
  max-width: 22ch;
  font-weight: 400;
}
.cta-bottom h2 em { color: var(--clay); font-style: italic; }
.cta-bottom .actions {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-bottom .btn-primary {
  background: var(--clay);
  color: var(--cream);
  border: 1px solid var(--clay);
  padding: 16px 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s;
}
.cta-bottom .btn-primary:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.cta-bottom .btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244, 239, 230, 0.3);
  padding: 16px 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.cta-bottom .btn-ghost:hover { border-color: var(--cream); background: rgba(244, 239, 230, 0.06); }
.cta-bottom .arrow { display: inline-block; margin-left: 6px; }
