@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-700.ttf') format('truetype');
}

.checklist-animada-container {
  --brand-color: #0959b8;
  --brand-light: rgba(9, 89, 184, 0.08);
  --text-color: #333b3e;
  --font-family: 'Barlow', sans-serif;

  font-family: var(--font-family);
  background-color: transparent;
  padding: 10px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  /* Garante que a animação vindo de fora não quebre o layout */
}

/* --- HEADER (Tagline, Título e Subtítulo) --- */
.checklist-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
}

.checklist-tagline {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-color);
  margin: 0 0 8px 0;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.checklist-title {
  font-family: var(--font-family);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 8px 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.checklist-subtitle {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  margin: 0;
  line-height: 1.5;
  opacity: 0.85;
}

.checklist-animada-list {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* --- ITEM DA LISTA --- */
.checklist-item {
  display: flex;
  align-items: flex-start;
  padding: 8px 12px;
  margin-left: -12px;
  margin-right: -12px;

  border-radius: 8px;
  transition: background-color 0.3s ease;

  cursor: default;
  border: 1px solid transparent;
  /* Estado inicial: invisível e fora da tela */
  opacity: 0;
  transform: translateX(-30px);
  /* Garante que a animação não seja executada até o scroll */
  animation: none;
}

/* Itens que devem aparecer inicialmente (mas só quando o scroll ativar) */
.checklist-item.visible-initially {
  /* Mantém invisível até o scroll trigger */
  opacity: 0;
  transform: translateX(-30px);
}

/* Classe adicionada pelo JS quando o container entra na viewport */
.checklist-item.animate-on-scroll {
  animation: slideInLeft 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

.checklist-item:hover {
  background-color: var(--brand-light);
}

/* Estados de Visibilidade */
.checklist-item.hidden-item {
  display: none;
  opacity: 0;
}

.checklist-item.revealed {
  display: flex;
  /* Mesma animação para quando clicar em ver mais */
  animation: slideInLeft 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}



/* --- CHECKBOX --- */
.custom-checkbox {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--brand-color), #064085);
  border-radius: 6px;
  margin-right: 15px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(9, 89, 184, 0.3);
  transition: transform 0.3s ease;
}

.checklist-item:hover .custom-checkbox {
  transform: scale(1.1);
}

.custom-checkbox svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: white;
  stroke-width: 2.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: drawCheck 0.8s 0.4s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

/* Texto */
.item-text {
  font-size: 15px;
  color: var(--text-color);
  font-weight: 500;
  line-height: 1.4;
}

/* --- BOTÃO VER MAIS --- */
.load-more-btn {
  background: transparent;
  border: 1px solid #d1d1d1;
  color: var(--brand-color);
  padding: 10px 22px;
  border-radius: 6px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 15px;
  align-self: flex-start;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* Animação de entrada do botão também */
  opacity: 0;
  animation: fadeInBtn 0.8s 0.5s forwards;
}

.load-more-btn:hover {
  background-color: var(--brand-color);
  border-color: var(--brand-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(9, 89, 184, 0.2);
}

.load-more-btn:hover svg {
  stroke: white;
}

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

.btn-arrow-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--brand-color);
  stroke-width: 2.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s ease, stroke 0.3s ease;
}

.load-more-btn.expanded .btn-arrow-icon {
  transform: rotate(180deg);
}

/* --- KEYFRAMES --- */

/* Entrada Lateral Suave */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Garante que itens não apareçam antes da animação */
.checklist-item:not(.animate-on-scroll):not(.revealed) {
  opacity: 0;
  transform: translateX(-30px);
}

/* Desenho do Check */
@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

/* Entrada do Botão */
@keyframes fadeInBtn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}