/* ==========================================================================
   OCKHAM DOBRA 04 — NOSSA FORMA DE TRABALHAR
   Inversão Visual em Azul Ockham Profundo + Sanfona de 3 Etapas Centralizada
   Padrão de Vidro Ockham, Border Beam Universal e Fechamento 100% Centralizado
   ========================================================================== */

.ock-process-section {
  --ock-p-bg: #09152e;
  --ock-p-card: #0c1a38;
  --ock-p-line: rgba(138, 184, 255, 0.22);
  --ock-p-text: #F5F7FB;
  --ock-p-muted: rgba(245, 247, 251, 0.84);
  --ock-p-blue: #367CDD;
  --ock-p-blue-light: #8AB8FF;

  position: relative;
  background: transparent;
  color: var(--ock-p-text);
  padding: clamp(56px, 6.5vw, 88px) 0;
  width: 100%;
}

/* Halo Principal de Transição (Dobra 03 ➔ Dobra 04 — sem cortes entre seções) */
.ock-process-section::before {
  content: '';
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  max-width: 1600px;
  height: 920px;
  background: radial-gradient(
    ellipse 68% 58% at 50% 42%,
    rgba(25, 65, 145, 0.52) 0%,
    rgba(17, 40, 92, 0.36) 35%,
    rgba(14, 22, 45, 0.16) 65%,
    transparent 92%
  );
  filter: blur(95px);
  pointer-events: none;
  z-index: 1;
}

/* Cauda Atmosférica Difusa (Dobra 04 ➔ Dobra 05 — dissolução orgânica no preto) */
.ock-process-section::after {
  content: '';
  position: absolute;
  top: 180px;
  bottom: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 1500px;
  background: radial-gradient(
    ellipse 65% 55% at 50% 35%,
    rgba(17, 38, 82, 0.34) 0%,
    rgba(12, 24, 52, 0.18) 45%,
    rgba(11, 18, 36, 0.06) 72%,
    transparent 95%
  );
  filter: blur(110px);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   CABEÇALHO DA DOBRA 04 (RIGOROSAMENTE CENTRALIZADO)
   ========================================================================== */
.ock-process-header {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: clamp(40px, 5vw, 56px);
  padding: 0 20px;
}

.ock-process-header .ock-badge-pill {
  margin-bottom: 20px;
  background: rgba(10, 24, 56, 0.75);
  border-color: rgba(138, 184, 255, 0.3);
}

.ock-process-title {
  font-family: var(--ock-heading);
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.ock-process-lead {
  font-family: var(--ock-body);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.68;
  color: var(--ock-p-muted);
  max-width: 62ch;
  margin-inline: auto;
}

/* ==========================================================================
   SANFONA DE 3 ETAPAS CENTRALIZADA (ACCORDION PERFEITAMENTE SIMÉTRICO)
   ========================================================================== */
.ock-season-rail {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 10px 20px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4;
}

.ock-season-track {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  /* Largura total: 560px (aberto) + 270px + 270px + 40px (gaps) = 1140px */
}

/* --------------------------------------------------------------------------
   CARTAZ INDIVIDUAL DE ETAPA (VIDRO ESCURO OCKHAM + BORDER BEAM)
   -------------------------------------------------------------------------- */
.ock-season-item {
  position: relative;
  flex: none;
  width: var(--ock-w, 270px);
  height: 385px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(12, 26, 56, 0.88);
  border: 1px solid var(--ock-p-line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 24px rgba(54, 124, 221, 0.08);
  transition: width 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cartaz Expandido (Aberto) */
.ock-season-item.is-open {
  --ock-w: 560px;
  border-color: rgba(138, 184, 255, 0.45);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75), 0 0 36px rgba(54, 124, 221, 0.28);
}

/* Ativação do Border Beam Universal no hover e no card ativo */
.ock-season-item .ock-border-beam {
  z-index: 10;
}

.ock-season-item:hover .ock-border-beam,
.ock-season-item.is-open .ock-border-beam {
  opacity: 1;
}

.ock-season-item:hover .ock-border-beam::before,
.ock-season-item.is-open .ock-border-beam::before {
  animation-play-state: running;
}

/* Pôster / Face Frontal do Cartaz (Sem Raio Cônico — Visual de Vidro Limpo Ockham) */
.ock-season-poster {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 270px;
  padding: 0;
  border: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  background:
    radial-gradient(100% 60% at 30% 0%, rgba(54, 124, 221, 0.22) 0%, transparent 65%),
    linear-gradient(180deg, rgba(20, 36, 72, 0.95) 0%, rgba(10, 20, 42, 0.98) 100%);
  transition: background 0.4s ease;
}

.ock-season-poster:focus-visible {
  outline: 2px solid var(--ock-p-blue-light);
  outline-offset: -4px;
  border-radius: 24px;
}

/* Número Gigante Vazado ao Fundo com Traço Tecnológico */
.ock-season-num {
  position: absolute;
  right: -8px;
  top: 18px;
  font-family: 'Bebas Neue', 'Manrope', Impact, sans-serif;
  font-size: 210px;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(138, 184, 255, 0.32);
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
  opacity: 0.85;
}

/* Label no Topo do Cartaz */
.ock-season-label {
  position: absolute;
  left: 24px;
  top: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ock-p-blue-light);
  font-family: var(--ock-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}

.ock-season-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ock-p-blue-light);
  box-shadow: 0 0 8px var(--ock-p-blue-light);
}

/* Conteúdo Inferior do Pôster */
.ock-season-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.ock-season-out {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(8, 18, 42, 0.7);
  box-shadow: inset 0 0 0 1px var(--ock-p-line);
  color: #FFFFFF;
  font-family: var(--ock-body);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ock-season-out svg {
  width: 13px;
  height: 13px;
  color: var(--ock-p-blue-light);
}

.ock-season-info h3 {
  margin: 0 0 8px;
  font-family: var(--ock-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ock-season-meta {
  display: block;
  color: #D6E0F0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.ock-season-bar {
  position: relative;
  height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ock-season-bar i {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(var(--ock-p, 0.65));
  background: linear-gradient(90deg, #367CDD, #8AB8FF);
}

/* --------------------------------------------------------------------------
   GAVETA LATERAL DE AÇÕES / ENTREGÁVEIS (REVELADA QUANDO ABERTO)
   -------------------------------------------------------------------------- */
.ock-season-eps {
  position: absolute;
  left: 270px;
  top: 0;
  bottom: 0;
  width: 290px;
  margin: 0;
  padding: 26px 24px 20px;
  list-style: none;
  counter-reset: ock-step;
  border-left: 1px solid var(--ock-p-line);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.35s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  overflow: hidden;
  background: rgba(8, 16, 36, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ock-season-item.is-open .ock-season-eps {
  opacity: 1;
  transform: none;
  transition-delay: 0.28s;
}

.ock-season-eps li {
  counter-increment: ock-step;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ock-p-line);
  font-size: 0.95rem;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.48;
}

.ock-season-eps li:last-child {
  border-bottom: none;
}

.ock-season-eps li::before {
  content: counter(ock-step, decimal-leading-zero);
  color: var(--ock-p-blue-light);
  font-family: var(--ock-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   RODAPÉ DA DOBRA 04 (RIGOROSAMENTE 100% CENTRALIZADO)
   ========================================================================== */
.ock-season-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 1140px;
  margin: 32px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 5;
  text-align: center;
}

.ock-season-statement-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: 16px 36px;
  border-radius: var(--ock-radius-pill);
  background: rgba(10, 24, 56, 0.75);
  border: 1px solid rgba(138, 184, 255, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(54, 124, 221, 0.12);
}

.ock-season-statement-text {
  font-family: var(--ock-heading);
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.015em;
  margin: 0;
}

.ock-season-statement-text strong {
  color: var(--ock-p-blue-light);
  font-weight: 700;
}

/* ==========================================================================
   RESPONSIVIDADE DA DOBRA 04
   ========================================================================== */
@media (max-width: 1180px) {
  .ock-season-track {
    max-width: 980px;
  }
  .ock-season-item {
    width: var(--ock-w, 230px);
  }
  .ock-season-item.is-open {
    --ock-w: 500px;
  }
  .ock-season-poster {
    width: 230px;
  }
  .ock-season-eps {
    left: 230px;
    width: 270px;
    padding: 22px 18px 18px;
  }
}

@media (max-width: 900px) {
  .ock-season-rail {
    overflow: visible;
    padding: 8px 16px 20px;
    justify-content: center;
  }

  /* Empilhamento vertical: 01 em cima, 02 no meio e 03 embaixo */
  .ock-season-track {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 600px;
    padding: 0;
    transform: none !important;
  }

  /* Altura fluida para nunca cortar o conteúdo interno */
  .ock-season-item,
  .ock-season-item.is-open {
    width: 100% !important;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .ock-season-poster {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
  }

  .ock-season-num {
    font-size: 136px;
    right: 10px;
    top: 12px;
    opacity: 0.6;
  }

  .ock-season-label {
    position: relative;
    left: auto;
    top: auto;
  }

  .ock-season-info,
  .ock-season-item.is-open .ock-season-info {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }

  /* Gaveta de fases: cresce verticalmente para baixo ao abrir */
  .ock-season-eps {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    max-height: 0;
    padding: 0 22px;
    border-left: 0;
    border-top: 1px solid transparent;
    background: rgba(8, 16, 36, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(-8px);
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
                padding 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
                opacity 0.35s ease,
                transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
                border-color 0.35s ease;
  }

  .ock-season-item.is-open .ock-season-eps {
    max-height: 520px;
    padding: 18px 22px 22px;
    border-top-color: var(--ock-p-line);
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .ock-season-statement-box {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--ock-radius-card);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ock-process-section *,
  .ock-process-section *::before {
    transition: none !important;
  }
}
