/* ================================================
   Banco Sofisa — LP Estágio 2026
   CSS Residual (animações, estados JS)
   ================================================ */

/* Scroll offset para header fixo */
html {
  scroll-padding-top: 80px;
}

/* Seleção de texto */
::selection {
  background-color: #00b398;
  color: #ffffff;
}

/* ================================================
   HEADER — estado ao scroll
   ================================================ */

#header {
  background: transparent;
}

#header.is-scrolled {
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Links nav: brancos no topo → verde-escuro ao scroll */
#header .nav-link {
  color: rgba(255, 255, 255, 0.92);
}

#header.is-scrolled .nav-link {
  color: #006157;
}

#header.is-scrolled .nav-link:hover {
  color: #00b398;
}

/* Logo: invisível no topo, visível ao scroll */
#header-logo,
#header-logo-text {
  opacity: 0;
}

#header.is-scrolled #header-logo,
#header.is-scrolled #header-logo-text {
  opacity: 1;
}

/* CTA no header: sempre sólido amarelo */
#header .btn-cta {
  background-color: #faae29;
  color: #006157;
}

/* Hamburguer: linhas brancas no topo → grafite ao scroll */
#header .hamburger-line {
  background-color: #ffffff;
}

#header.is-scrolled .hamburger-line {
  background-color: #006157;
}

/* ================================================
   MOBILE NAV
   ================================================ */

#mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburguer animado → X */
#hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ================================================
   REVEAL — animação de entrada ao scroll
   Progressive enhancement: só esconde se JS carregou (.js-ready)
   ================================================ */

.reveal {
  opacity: 1;
  transform: none;
}

/* Delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ================================================
   BOTÃO CTA
   ================================================ */

.btn-cta {
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-cta:hover {
  transform: translateY(-2px);
}

.btn-cta:active {
  transform: translateY(0);
}

/* ================================================
   COUNTER
   ================================================ */

.counter {
  font-variant-numeric: tabular-nums;
}

/* ================================================
   KEYFRAMES
   ================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes glowRotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ================================================
   BENEFÍCIOS — glassmorphism cards
   ================================================ */

.beneficio-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(17px);
  -webkit-backdrop-filter: blur(17px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 22px 11px rgba(255, 255, 255, 0.11);
  position: relative;
  overflow: visible;
}

.beneficio-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
}

.beneficio-glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8),
    transparent,
    rgba(255, 255, 255, 0.3)
  );
}

/* ================================================
   BORDER PERSONALIZADO (Tailwind não gera border-3 por padrão)
   ================================================ */

.border-3 {
  border-width: 3px;
}

/* ================================================
   ROUNDED PILL
   ================================================ */

.rounded-pill {
  border-radius: 45px;
}

/* ================================================
   ETAPAS — Timeline Horizontal
   ================================================ */

.etapas-timeline-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding-top: 16px;
  padding-bottom: 8px;
}

.etapas-timeline-wrap::-webkit-scrollbar {
  height: 4px;
}

.etapas-timeline-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.etapas-timeline-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
}

#etapas-timeline {
  min-width: 860px;
}

.etapas-row {
  display: flex;
}

.etapa-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 6px 28px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.etapa-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.etapa-icon-circle svg {
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.4s ease;
}

.etapa-num {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 7px;
  transition: color 0.4s ease;
}

.etapa-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
  max-width: 140px;
  transition: color 0.4s ease;
}

/* — Estado ativo — */
.etapa-step.is-active {
  transform: translateY(-8px);
}

.etapa-step.is-active .etapa-icon-circle {
  background: #faae29;
  border-color: #faae29;
  box-shadow: 0 6px 20px rgba(250, 174, 41, 0.45);
}

.etapa-step.is-active .etapa-icon-circle svg {
  color: #006157;
}

.etapa-step.is-active .etapa-num {
  color: #faae29;
}

.etapa-step.is-active .etapa-label {
  color: #ffffff;
}

/* — Linha de progresso — */
.etapas-line-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  position: relative;
}

.etapas-line-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: #faae29;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(250, 174, 41, 0.5);
}

