/* ==========================================================================
   SEÇÃO HISTÓRIA — MARCOS DA NOSSA HISTÓRIA & PRESERVAÇÃO DA MEMÓRIA
   A.R.L.S. Estrela de Brasília n° 1484
   ========================================================================== */

/* ── Container Geral da Seção ── */
.marcos-historia-section {
  position: relative;
  background-color: #fbf9f5;
  color: #1a202c;
  overflow: hidden;
  padding: 0;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

/* ── Top Hero / Fachada e Título ── */
.marcos-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 60px 0 20px;
}

.marcos-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 65%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.marcos-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Máscaras e Gradientes para fundir com o fundo claro à esquerda e abaixo */
.marcos-hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, #fbf9f5 0%, #fbf9f5 15%, rgba(251, 249, 245, 0.85) 30%, rgba(251, 249, 245, 0.3) 50%, transparent 75%),
    linear-gradient(0deg, #fbf9f5 0%, rgba(251, 249, 245, 0.8) 12%, transparent 35%);
}

.marcos-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-xl, 1280px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Coluna de Texto à Esquerda */
.marcos-hero-content {
  max-width: 540px;
}

.marcos-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b8860b;
  margin-bottom: 14px;
}

.marcos-eyebrow::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: #c59b27;
}

.marcos-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  color: #0c1c38;
  margin: 0 0 18px 0;
  letter-spacing: -0.02em;
}

.marcos-title-gold {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  color: #b8860b;
  background: linear-gradient(135deg, #c59b27 0%, #b8860b 45%, #8f6716 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.marcos-desc {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4a5568;
  margin: 0 0 24px 0;
}

.marcos-sub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b8860b;
}

.marcos-sub-eyebrow::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: #c59b27;
}

/* Citação Flutuante no Céu / Direita */
.marcos-quote-box {
  max-width: 320px;
  padding: 16px 20px;
  background: rgba(12, 28, 56, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  border-left: 3px solid #c59b27;
  color: #ffffff;
  margin-top: 40px;
}

.marcos-quote-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.45;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* ── Timeline Grid (5 Marcos) ── */
.marcos-timeline-wrapper {
  position: relative;
  max-width: var(--container-xl, 1280px);
  margin: 0 auto;
  padding: 30px 24px 70px;
}

.marcos-timeline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Card Individual */
.timeline-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

/* Layout com texto em cima e foto embaixo (1957, 2000, 2026) */
.timeline-card--text-top {
  justify-content: space-between;
}

/* Layout com foto em cima e texto embaixo (1960, 1985) */
.timeline-card--photo-top {
  justify-content: space-between;
}

/* Bloco de Conteúdo Textual */
.timeline-card-content {
  margin-bottom: 20px;
}

.timeline-card--photo-top .timeline-card-content {
  margin-top: 20px;
  margin-bottom: 0;
}

.timeline-card-year {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: #0c1c38;
  line-height: 1;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.timeline-card-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
  color: #0c1c38;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.timeline-card-desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.55;
  color: #4a5568;
  margin: 0;
}

/* Bloco de Imagem com Moldura Offset Azul Escuro (Interativo: Zoom / PDF) */
.timeline-card-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 12px;
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  overflow: visible;
  transition: transform 0.25s ease;
}

.timeline-card-photo-wrap:focus-visible {
  outline: 2px solid #c59b27;
  outline-offset: 4px;
  border-radius: 4px;
}

.timeline-card--photo-top .timeline-card-photo-wrap {
  margin-top: 0;
  margin-bottom: 12px;
}

/* Fundo offset escuro que cria a profundidade elegante */
.timeline-photo-backdrop {
  position: absolute;
  inset: -6px 6px 6px -6px;
  background-color: #091a33;
  border-radius: 4px;
  z-index: 1;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover .timeline-photo-backdrop,
.timeline-card-photo-wrap:hover .timeline-photo-backdrop {
  transform: translate(-3px, 3px);
  background-color: #051329;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.timeline-photo-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.timeline-card-photo-wrap:hover .timeline-photo-img {
  transform: scale(1.025);
  filter: brightness(1.04);
}

/* Badges interativos sobre a imagem */
.timeline-photo-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(12, 28, 56, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f7eed7;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  opacity: 0.85;
  transition: all 0.25s ease;
  pointer-events: none;
}

.timeline-card-photo-wrap:hover .timeline-photo-badge {
  opacity: 1;
  background: #0c1c38;
  border-color: #d4af37;
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.timeline-photo-badge--pdf {
  background: rgba(12, 28, 56, 0.88);
  border-color: rgba(212, 175, 55, 0.5);
  color: #f7eed7;
}

.timeline-card-photo-wrap:hover .timeline-photo-badge--pdf {
  background: #0c1c38;
  border-color: #d4af37;
  color: #ffffff;
}


/* ── Linha Horizontal do Tempo com Nós e Seta ── */
.marcos-axis-container {
  position: relative;
  margin-top: 35px;
  padding-bottom: 10px;
}

.marcos-axis-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: #c59b27;
  display: flex;
  align-items: center;
}

/* Seta na ponta direita */
.marcos-axis-arrow {
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #c59b27;
}

/* Nós circulares em cada marco da linha */
.marcos-axis-dots {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  pointer-events: none;
}

.marcos-axis-dot-col {
  display: flex;
  align-items: center;
}

.marcos-axis-dot {
  width: 11px;
  height: 11px;
  background: #c59b27;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.25);
  transform: translateY(-4.5px);
}

/* ── Banner Inferior: Preservação da Memória ── */
.marcos-footer-banner {
  position: relative;
  background: #061528;
  color: #ffffff;
  padding: 34px 0;
  border-top: 1px solid rgba(197, 155, 39, 0.3);
  overflow: hidden;
}

/* Marca d'água arquitetônica clássica sutil à direita */
.marcos-footer-watermark {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 320px;
  opacity: 0.12;
  pointer-events: none;
  background: radial-gradient(circle at center right, #c59b27 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.marcos-footer-watermark svg {
  height: 130%;
  fill: none;
  stroke: #c59b27;
  stroke-width: 1.2;
}

.marcos-footer-container {
  position: relative;
  z-index: 2;
  max-width: var(--container-xl, 1280px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

/* Bloco Esquerda: Ícone + Título + Descrição */
.marcos-footer-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 440px;
}

.marcos-footer-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c59b27;
  margin-top: 2px;
}

.marcos-footer-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c59b27;
  margin-bottom: 4px;
}

.marcos-footer-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.marcos-footer-desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #a0aec0;
  margin: 0;
}

/* Bloco Central: Pílulas de Navegação */
.marcos-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.marcos-footer-nav-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.marcos-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 6px;
  background: rgba(14, 34, 61, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.marcos-pill-btn svg {
  color: #c59b27;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.marcos-pill-btn:hover {
  background: rgba(197, 155, 39, 0.15);
  border-color: #c59b27;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.marcos-pill-btn:hover svg {
  transform: scale(1.1);
}

/* Bloco Direita: Botão Dourado Principal */
.marcos-footer-cta {
  flex-shrink: 0;
}

.marcos-cta-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: linear-gradient(135deg, #d4af37 0%, #c59b27 60%, #b3882a 100%);
  color: #061528;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(197, 155, 39, 0.35);
  transition: all 0.25s ease;
}

.marcos-cta-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.5);
  background: linear-gradient(135deg, #e5be42 0%, #d4af37 60%, #c59b27 100%);
  color: #000000;
}

.marcos-cta-gold .arrow {
  transition: transform 0.2s ease;
}

.marcos-cta-gold:hover .arrow {
  transform: translateX(4px);
}

/* ── Responsividade ── */
@media (max-width: 1100px) {
  .marcos-timeline-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .marcos-axis-container {
    display: none; /* Linha única contínua esconde quando o grid quebra em 2 linhas */
  }

  .marcos-footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .marcos-footer-cta {
    align-self: flex-start;
    margin-top: 10px;
  }
}

@media (max-width: 820px) {
  .marcos-hero {
    min-height: auto;
    padding: 50px 0 20px;
  }

  .marcos-hero-bg {
    width: 100%;
    opacity: 0.25;
  }

  .marcos-hero-container {
    flex-direction: column;
    gap: 24px;
  }

  .marcos-quote-box {
    margin-top: 0;
    width: 100%;
    max-width: 100%;
  }

  .marcos-timeline-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .marcos-footer-banner {
    padding: 30px 0;
  }

  .marcos-footer-watermark {
    width: 100%;
    right: 0;
    left: 0;
    justify-content: center;
    opacity: 0.05;
  }

  .marcos-footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
  }

  .marcos-footer-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
  }

  .marcos-footer-nav {
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .marcos-footer-nav-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .marcos-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .marcos-footer-cta {
    align-self: center;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
  }
}

@media (max-width: 580px) {
  .marcos-timeline-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .timeline-card-photo-wrap {
    order: 2;
    margin-top: 14px !important;
    margin-bottom: 0 !important;
  }

  .timeline-card-content {
    order: 1;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .marcos-footer-container {
    padding: 0 16px;
    gap: 20px;
  }

  .marcos-footer-nav-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .marcos-pill-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .marcos-cta-gold {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    text-align: center;
  }
}

/* ══════════════════════════════════════════
   MODAL LIGHTBOX — MARCOS DA NOSSA HISTÓRIA
   ══════════════════════════════════════════ */
.marcos-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(2, 10, 22, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  padding: 16px 20px;
}

.marcos-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Topbar */
.marcos-lb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(197, 155, 39, 0.2);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.marcos-lb-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.marcos-lb-badge {
  background: linear-gradient(135deg, #c59b27 0%, #dfbd69 100%);
  color: #0c1c38;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.marcos-lb-counter {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  font-family: var(--font-sans);
  flex-shrink: 0;
}

.marcos-lb-title {
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.marcos-lb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.marcos-lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1;
}

.marcos-lb-btn:hover {
  background: rgba(197, 155, 39, 0.25);
  border-color: #c59b27;
  color: #ffffff;
}

.marcos-lb-btn--pdf {
  background: rgba(197, 155, 39, 0.2);
  border-color: #c59b27;
  color: #dfbd69;
  font-weight: 600;
}

.marcos-lb-btn--pdf:hover {
  background: #c59b27;
  color: #0c1c38;
}

.marcos-lb-btn--close {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.1rem;
}

.marcos-lb-btn--close:hover {
  background: rgba(220, 53, 69, 0.35);
  border-color: #dc3545;
}

/* Stage */
.marcos-lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 0;
  overflow: hidden;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.marcos-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(12, 28, 56, 0.75);
  border: 1px solid rgba(197, 155, 39, 0.4);
  color: #dfbd69;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.marcos-lb-nav:hover {
  background: #c59b27;
  color: #0c1c38;
  transform: translateY(-50%) scale(1.08);
}

.marcos-lb-nav--prev {
  left: 8px;
}

.marcos-lb-nav--next {
  right: 8px;
}

.marcos-lb-img-wrap {
  max-width: 88vw;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.marcos-lb-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 6px;
  border: 2px solid rgba(197, 155, 39, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Bottombar */
.marcos-lb-bottombar {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding-top: 10px;
  border-top: 1px solid rgba(197, 155, 39, 0.15);
  text-align: center;
}

.marcos-lb-desc {
  color: #e2e8f0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 auto 6px;
  max-width: 820px;
}

.marcos-lb-hints {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-family: var(--font-sans);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .marcos-lightbox {
    padding: 12px 14px;
  }

  .marcos-lb-title {
    font-size: 0.95rem;
  }

  .marcos-lb-img-wrap {
    max-height: 58vh;
  }

  .marcos-lb-img {
    max-height: 58vh;
  }

  .marcos-lb-desc {
    font-size: 0.8rem;
  }

  .marcos-lb-hints {
    display: none;
  }

  .marcos-lb-nav {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }
}
