/* Secoes especiais, componentes visuais e animacoes */

/* ================================================================
   SEÇÃO PROCESSO — PILL CARDS EM 2 COLUNAS
   Layout horizontal em cápsula com barra lateral colorida
   + Efeito 3D tilt que segue o mouse em todas as direções
   ================================================================ */
.pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  max-width: 1100px;
  margin-inline: auto;
  /* Perspective para o efeito 3D dos cards filhos */
  perspective: 1000px;
}

/* Wrapper do card — só para animação de entrada; não interfere no tilt 3D */
.pill-wrap {
  display: block
}

/* Card 5 (ímpar) centralizado na última linha — agora no wrapper */
.pill-wrap:has(.pill-center),
.pill-grid>.pill-center {
  grid-column: 1 / -1;
  max-width: calc(50% - 13px);
  margin-inline: auto;
  width: 100%;
}

/* Card 5 dentro do wrapper — centering tratado pelo .pill-wrap:has(.pill-center) */

.pill-card {
  position: relative;
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 110px;
  padding: 18px 20px 18px 28px;
  background: #ffffff;
  border-radius: 60px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.07);
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
}

.pill-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.14);
}

.pill-card:hover .pill-icon {
  transform: scale(1.12)
}

.pill-card:hover .pill-bar {
  transform: scaleX(1.18)
}

/* Número + label ETAPA */
.pill-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding-right: 4px;
}

.pill-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: #0D1B12;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pill-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.12em;
  margin-top: 6px;
}

/* Divisória vertical */
.pill-divider {
  width: 1px;
  height: 56px;
  background: #e5e5e5;
  flex-shrink: 0;
}

/* Ícone */
.pill-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.pill-icon svg {
  width: 24px;
  height: 24px;
  color: #555
}

.pill-card:hover .pill-icon {
  transform: scale(1.12)
}

/* Conteúdo */
.pill-content {
  min-width: 0;
  padding-right: 8px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pill-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #0D1B12;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.3;
}

.pill-text {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: #777;
  line-height: 1.55;
  margin: 0;
}

/* Barra lateral colorida — DENTRO da cápsula, na borda direita */
.pill-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 28px;
  border-radius: 0 60px 60px 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: right center;
  pointer-events: none;
}

.pill-card:hover .pill-bar {
  transform: scaleX(1.15)
}

/* Cores por card */
.pill-01 .pill-bar {
  background: linear-gradient(180deg, #ffd54f, #ffc107)
}

.pill-02 .pill-bar {
  background: linear-gradient(180deg, #7986cb, #5c6bc0)
}

.pill-03 .pill-bar {
  background: linear-gradient(180deg, #81c784, #66bb6a)
}

.pill-04 .pill-bar {
  background: linear-gradient(180deg, #4dd0e1, #26c6da)
}

.pill-05 .pill-bar {
  background: linear-gradient(180deg, #64b5f6, #42a5f5)
}

/* Ícone ganha cor do card */
.pill-01 .pill-icon svg {
  color: #f59e0b
}

.pill-02 .pill-icon svg {
  color: #5c6bc0
}

.pill-03 .pill-icon svg {
  color: #66bb6a
}

.pill-04 .pill-icon svg {
  color: #26c6da
}

.pill-05 .pill-icon svg {
  color: #42a5f5
}

/* ============ RESPONSIVO — mantém 2 colunas até mobile pequeno ============ */
@media (max-width: 1024px) {
  .pill-grid {
    gap: 18px 18px
  }

  .pill-card {
    padding: 16px 36px 16px 22px;
    gap: 14px
  }

  .pill-num {
    font-size: 26px
  }

  .pill-title {
    font-size: 14px
  }

  .pill-text {
    font-size: 12px
  }

  .pill-divider {
    height: 50px
  }
}

/* Em 800px ainda mantém 2 colunas, mas mais compacto */
@media (max-width: 800px) {
  .pill-grid {
    gap: 16px 20px
  }

  .pill-card {
    grid-template-columns: auto auto 1fr;
    padding: 14px 22px 14px 18px;
    gap: 12px;
    min-height: 96px;
    border-radius: 40px;
  }

  .pill-icon {
    display: none
  }

  .pill-number {
    min-width: 40px
  }

  .pill-num {
    font-size: 22px
  }

  .pill-label {
    font-size: 9px;
    margin-top: 3px
  }

  .pill-divider {
    height: 44px
  }

  .pill-title {
    font-size: 13.5px
  }

  .pill-text {
    font-size: 11.5px
  }

  .pill-bar {
    width: 18px;
    border-radius: 0 40px 40px 0
  }

  .pill-wrap:has(.pill-center),
  .pill-grid>.pill-center {
    max-width: calc(50% - 10px)
  }
}

/* 1 coluna só em telas muito pequenas */
@media (max-width: 560px) {
  .pill-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 16px
  }

  .pill-wrap:has(.pill-center),
  .pill-grid>.pill-center {
    grid-column: auto;
    max-width: 100%;
    margin-inline: 0
  }

  .pill-card {
    padding: 16px 26px 16px 22px;
    min-height: 90px;
    border-radius: 32px;
  }

  .pill-num {
    font-size: 24px
  }

  .pill-title {
    font-size: 14px
  }

  .pill-text {
    font-size: 12px
  }

  .pill-bar {
    border-radius: 0 32px 32px 0;
    width: 20px
  }
}

@media (max-width: 380px) {
  .pill-card {
    padding: 14px 26px 14px 18px;
    gap: 10px
  }

  .pill-num {
    font-size: 20px
  }

  .pill-title {
    font-size: 13px
  }

  .pill-text {
    font-size: 11.5px
  }

  .pill-divider {
    height: 40px
  }
}

/* Toque — mesmo efeito visual do hover para dispositivos touch */
@media (hover: none) {
  .pill-card:active {
    filter: drop-shadow(0 22px 50px rgba(0, 0, 0, 0.15));
  }
  .pill-card:active .pill-icon {
    transform: scale(1.12);
  }
  .pill-card:active .pill-bar {
    transform: scaleX(1.18);
  }
}

/* ================================================================
   SEÇÃO SERVIÇOS — PANO DE FUNDO VIA <img> NO HTML
   Imagem posicionada absolutamente + overlay branco fraco
   ================================================================ */
.section-services-bg {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-0);
}

.svc-bg-overlay {
  display: none;
}

/* Conteúdo acima */
.section-services-bg>.container {
  position: relative;
  z-index: 1;
}

@media (max-width: 960px) {
  .section-services-bg {
    background-image: url('../img/svc-bg-2.png');
    background-image: -webkit-image-set(
      url('../img/svc-bg-2.webp') type('image/webp'),
      url('../img/svc-bg-2.png') type('image/png')
    );
    background-image: image-set(
      url('../img/svc-bg-2.webp') type('image/webp'),
      url('../img/svc-bg-2.png') type('image/png')
    );
  }
}

@media (max-width: 560px) {
  .section-services-bg {
    background-image: url('../img/svc-bg-3.png');
    background-image: -webkit-image-set(
      url('../img/svc-bg-3.webp') type('image/webp'),
      url('../img/svc-bg-3.png') type('image/png')
    );
    background-image: image-set(
      url('../img/svc-bg-3.webp') type('image/webp'),
      url('../img/svc-bg-3.png') type('image/png')
    );
  }
}

/* ================================================================
   SEÇÃO SERVIÇOS — LAYOUT SPLIT 2 COLUNAS
   Texto + CTA à esquerda | Bento grid à direita
   ================================================================ */
.services-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

/* --- Coluna esquerda (texto) --- */
.services-intro {
  position: sticky;
  top: 100px;
  align-self: start;
}

.services-intro h2 {
  letter-spacing: -0.025em
}

.services-intro>p {
  color: var(--text-3);
  max-width: 42ch;
  font-size: 0.98rem;
}

.services-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.services-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.5;
}

.services-bullets li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.services-intro-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- Coluna direita (grid) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* === NOVO LAYOUT: cabeçalho + grid 3 colunas === */
.svc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.svc-em {
  font-style: italic;
  color: var(--accent-2);
}

.svc-cards-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Link "Saiba mais" no rodapé de cada card */
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  padding-top: var(--space-sm);
  transition: gap 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.svc-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #F5A623;
  transition: transform 0.2s ease, color 0.2s ease;
}

.svc-link:hover {
  gap: 10px;
  color: var(--accent-mid);
}

.svc-link:hover svg {
  transform: translateX(2px);
  color: #d4870f;
}

.svc-accent .svc-link,
.svc-ink .svc-link {
  color: rgba(255, 255, 255, 0.85);
}

.svc-accent .svc-link:hover,
.svc-ink .svc-link:hover {
  color: #fff;
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 20px 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13, 27, 18, 0.07), 0 1px 3px rgba(13, 27, 18, 0.05);
  will-change: transform, box-shadow;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
  min-height: 180px;
}

.svc-card:hover,
.svc-card:active {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13, 27, 18, 0.13), 0 2px 8px rgba(13, 27, 18, 0.07);
  border-color: var(--line-mid);
}

/* Card em destaque (verde) */
.svc-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.svc-accent .svc-title,
.svc-accent .svc-desc {
  color: #fff
}

.svc-accent .svc-desc {
  color: rgba(255, 255, 255, 0.9)
}

.svc-accent .svc-num {
  color: rgba(255, 255, 255, 0.25)
}

/* Card ink (grafite) */
.svc-ink {
  background: var(--bg-ink);
  border-color: var(--bg-ink);
  color: #fff;
}

.svc-ink .svc-title,
.svc-ink .svc-desc {
  color: #fff
}

.svc-ink .svc-desc {
  color: rgba(255, 255, 255, 0.75)
}

.svc-ink .svc-num {
  color: rgba(255, 255, 255, 0.15)
}

/* Card wide (5º — ocupa as 2 colunas) */
.svc-wide {
  grid-column: span 2
}

/* Ícone */
.svc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}

.svc-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent)
}

.svc-accent .svc-icon {
  background: rgba(255, 255, 255, 0.2);
}

.svc-accent .svc-icon svg {
  color: #fff
}

.svc-ink .svc-icon {
  background: rgba(255, 255, 255, 0.12);
}

.svc-ink .svc-icon svg {
  color: rgba(255, 255, 255, 0.85);
}

.svc-03 .svc-icon {
  background: var(--accent-2-light);
}

.svc-03 .svc-icon svg {
  color: var(--accent-2);
}

.svc-05 .svc-icon {
  background: var(--accent-2-light);
}

.svc-05 .svc-icon svg {
  color: var(--accent-2);
}

.svc-card:hover .svc-icon,
.svc-card:active .svc-icon {
  transform: scale(1.08)
}

.svc-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 6px;
}

.svc-desc {
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--text-3);
  line-height: 1.55;
  margin: 0;
}

/* ============ RESPONSIVO ============ */
@media (max-width: 960px) {
  .svc-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .svc-cards-new {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-split {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .services-intro {
    position: static;
    max-width: 640px;
    text-align: center;
    align-items: center;
    margin-inline: auto;
  }

  .services-intro > p {
    margin-inline: auto;
  }

  .services-intro-cta {
    justify-content: center;
  }

  .services-bullets {
    text-align: left;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 560px) {
  .svc-cards-new {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .svc-wide {
    grid-column: auto
  }

  .svc-card {
    min-height: auto;
    padding: 18px 16px
  }

  .services-intro-cta .btn {
    flex: 1;
    justify-content: center
  }
}

@media (max-width: 380px) {
  .svc-title {
    font-size: 0.95rem
  }

  .svc-desc {
    font-size: 0.8rem
  }

  .svc-icon {
    width: 36px;
    height: 36px
  }

  .svc-icon svg {
    width: 20px;
    height: 20px
  }
}

/* ================================================================
   CARROSSEL DE DEPOIMENTOS — Design pixel-perfect
   Inspiração: card com aspas amarelas, avatar no topo, nota em pílula
   ================================================================ */
.tm-carousel {
  position: relative;
  margin-top: var(--space-lg);
  padding: 20px 50px;
}

.tm-viewport {
  overflow: hidden;
  padding: 20px;
  margin: -8px -20px;
}

.tm-track {
  display: flex;
  gap: 24px;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  align-items: stretch;
}

/* ====== CARD ====== */
.tm-card {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3);
  background: #ffffff;
  border-radius: 22px;
  padding: 22px 26px 28px;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 12px 24px rgba(45,55,72,0.07));
  will-change: transform, filter;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  min-height: 420px;
}

.tm-card:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 20px 40px rgba(45,55,72,0.13));
}

/* ====== HEADER: avatar + nome ====== */
.tm-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.tm-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), #c5daf5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px #ffffff, 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tm-header-info {
  min-width: 0;
  flex: 1
}

.tm-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-1);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tm-role {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 3px;
  font-weight: 500;
}

/* ====== ASPAS (as duas decorativas, amarelas) ====== */
.tm-quote-top,
.tm-quote-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.tm-quote-top svg,
.tm-quote-bottom svg {
  width: 28px;
  height: 28px;
  fill: #f59e0b;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.tm-quote-top {
  margin: 4px 0 10px
}

.tm-quote-bottom {
  margin: 10px 0 6px;
  justify-content: flex-end
}

/* ====== TEXTO ====== */
.tm-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
  flex: 1;
  font-weight: 400;
}

/* ====== DIVIDER ====== */
.tm-divider {
  height: 1px;
  width: 60%;
  margin: 18px auto 14px;
  background: linear-gradient(90deg, transparent, var(--line-mid), transparent);
}

/* ====== FOOTER: nota em cápsula amarela ====== */
.tm-footer {
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.tm-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}

.tm-rating-pill svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}

/* ====== SETAS ====== */
.tm-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line-mid);
  color: var(--text-1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.tm-btn svg {
  width: 18px;
  height: 18px
}

.tm-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(27, 58, 42, 0.30);
  transform: translateY(-50%) scale(1.08);
}

.tm-btn:active {
  transform: translateY(-50%) scale(0.95)
}

.tm-prev {
  left: 0
}

.tm-next {
  right: 0
}

/* ====== DOTS ====== */
.tm-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.tm-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--line-strong);
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  transform-origin: left center;
  padding: 0;
}

.tm-dot:hover {
  background: var(--text-3)
}

.tm-dot.active {
  background: var(--accent);
  transform: scaleX(3.25);
}

/* ================================================================
   RESPONSIVO
   ================================================================ */
@media (max-width: 960px) {
  .tm-card {
    flex: 0 0 calc((100% - 24px) / 2);
    padding: 20px 22px 24px;
    min-height: 400px;
  }
}

@media (max-width: 640px) {
  .tm-carousel {
    padding: 16px 14px 12px
  }

  .tm-card {
    flex: 0 0 100%;
    padding: 20px 22px 24px;
    min-height: 380px;
    border-radius: 18px;
  }

  .tm-avatar {
    width: 44px;
    height: 44px;
    font-size: 0.85rem
  }

  .tm-name {
    font-size: 0.95rem
  }

  .tm-text {
    font-size: 0.9rem
  }

  .tm-quote-top svg,
  .tm-quote-bottom svg {
    width: 24px;
    height: 24px
  }

  .tm-btn {
    width: 38px;
    height: 38px
  }

  .tm-btn svg {
    width: 16px;
    height: 16px
  }

  .tm-prev {
    left: -2px
  }

  .tm-next {
    right: -2px
  }

  .tm-divider {
    width: 70%
  }

  .tm-rating-pill {
    padding: 6px 14px;
    font-size: 0.85rem
  }
}

@media (max-width: 380px) {
  .tm-carousel {
    padding: 14px 8px 12px
  }

  .tm-card {
    padding: 18px 18px 22px;
    min-height: auto
  }

  .tm-text {
    font-size: 0.86rem;
    line-height: 1.6
  }

  .tm-prev {
    left: -6px
  }

  .tm-next {
    right: -6px
  }
}

/* ================================================================
   SISTEMA DE ANIMAÇÕES — SUAVES E DELICADAS
   Curva: ease-out natural · Duração: 1.2s · Movimento curto
   Triggered via IntersectionObserver (classe .animate-visible)
   ================================================================ */

/* Base suave — duração maior + curva ease-out natural */
[data-animate] {
  opacity: 0;
  will-change: opacity, transform, filter;
  transition:
    opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- FADE UP — movimento reduzido ---- */
[data-animate="fade-up"] {
  transform: translateY(24px)
}

[data-animate="fade-up-sm"] {
  transform: translateY(12px)
}

[data-animate="fade-up-lg"] {
  transform: translateY(36px)
}

/* ---- FADE DOWN ---- */
[data-animate="fade-down"] {
  transform: translateY(-24px)
}

[data-animate="fade-down-sm"] {
  transform: translateY(-12px)
}

/* ---- FADE LEFT ---- */
[data-animate="fade-left"] {
  transform: translateX(-30px)
}

[data-animate="fade-left-sm"] {
  transform: translateX(-15px)
}

[data-animate="fade-left-lg"] {
  transform: translateX(-50px)
}

/* ---- FADE RIGHT ---- */
[data-animate="fade-right"] {
  transform: translateX(30px)
}

[data-animate="fade-right-sm"] {
  transform: translateX(15px)
}

[data-animate="fade-right-lg"] {
  transform: translateX(50px)
}

/* ---- FADE simples ---- */
[data-animate="fade"] {
  transform: none
}

/* ---- ZOOM IN / OUT — bem sutis ---- */
[data-animate="zoom-in"] {
  transform: scale(0.94)
}

[data-animate="zoom-in-sm"] {
  transform: scale(0.97)
}

[data-animate="zoom-out"] {
  transform: scale(1.06)
}

/* ---- FLIP — ângulo reduzido ---- */
[data-animate="flip-up"] {
  transform: perspective(1200px) rotateX(12deg);
  transform-origin: center bottom
}

[data-animate="flip-down"] {
  transform: perspective(1200px) rotateX(-12deg);
  transform-origin: center top
}

/* ---- BLUR IN ---- */
[data-animate="blur-in"] {
  filter: blur(8px);
  transform: scale(1.01)
}

/* ---- ROTATE SLIGHT ---- */
[data-animate="rotate-in"] {
  transform: rotate(-2deg) translateY(12px)
}

/* ---- Estado ativo ---- */
[data-animate].animate-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ===== DELAYS mais espaçados e suaves ===== */
[data-animate][data-delay="1"] {
  transition-delay: 120ms
}

[data-animate][data-delay="2"] {
  transition-delay: 240ms
}

[data-animate][data-delay="3"] {
  transition-delay: 360ms
}

[data-animate][data-delay="4"] {
  transition-delay: 480ms
}

[data-animate][data-delay="5"] {
  transition-delay: 600ms
}

[data-animate][data-delay="6"] {
  transition-delay: 720ms
}

[data-animate][data-delay="7"] {
  transition-delay: 840ms
}

[data-animate][data-delay="8"] {
  transition-delay: 960ms
}

/* ===== STAGGER automático — mais lento e espaçado ===== */
[data-stagger]>* {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-stagger].animate-visible>*:nth-child(1) {
  transition-delay: 100ms;
  opacity: 1;
  transform: none
}

[data-stagger].animate-visible>*:nth-child(2) {
  transition-delay: 220ms;
  opacity: 1;
  transform: none
}

[data-stagger].animate-visible>*:nth-child(3) {
  transition-delay: 340ms;
  opacity: 1;
  transform: none
}

[data-stagger].animate-visible>*:nth-child(4) {
  transition-delay: 460ms;
  opacity: 1;
  transform: none
}

[data-stagger].animate-visible>*:nth-child(5) {
  transition-delay: 580ms;
  opacity: 1;
  transform: none
}

[data-stagger].animate-visible>*:nth-child(6) {
  transition-delay: 700ms;
  opacity: 1;
  transform: none
}

[data-stagger].animate-visible>*:nth-child(7) {
  transition-delay: 820ms;
  opacity: 1;
  transform: none
}

[data-stagger].animate-visible>*:nth-child(8) {
  transition-delay: 940ms;
  opacity: 1;
  transform: none
}

[data-stagger].animate-visible>*:nth-child(9) {
  transition-delay: 1060ms;
  opacity: 1;
  transform: none
}

[data-stagger].animate-visible>*:nth-child(10) {
  transition-delay: 1180ms;
  opacity: 1;
  transform: none
}

/* ===== Duração customizada ===== */
[data-animate][data-duration="fast"] {
  transition-duration: 0.8s
}

[data-animate][data-duration="slow"] {
  transition-duration: 1.6s
}

[data-animate][data-duration="extra-slow"] {
  transition-duration: 2s
}

/* Acessibilidade — respeita prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

  [data-animate],
  [data-stagger]>* {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* Mobile — movimento ainda mais sutil para evitar qualquer "lag" visual */
@media (max-width: 640px) {
  [data-animate="fade-up"] {
    transform: translateY(16px)
  }

  [data-animate="fade-up-lg"] {
    transform: translateY(20px)
  }

  [data-animate="fade-left"] {
    transform: translateX(-16px)
  }

  [data-animate="fade-right"] {
    transform: translateX(16px)
  }

  [data-animate="fade-left-lg"] {
    transform: translateX(-24px)
  }

  [data-animate="fade-right-lg"] {
    transform: translateX(24px)
  }

  /* Leve redução da duração em mobile para não cansar */
  [data-animate] {
    transition-duration: 1s
  }

  [data-stagger]>* {
    transition-duration: 0.9s
  }
}

/* ================================================================
   HERO — CLIENT SUCCESS DASHBOARD
   Painel com fundo geométrico de losangos, 3 métricas animadas,
   gráfico de barras, partículas flutuantes, parallax interativo
   ================================================================ */

/* Grade geométrica ATRÁS do painel (preenche toda a hero-visual) */
.hero-geo-grid {
  position: absolute;
  inset: -40px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  animation: geoGridFloat 12s ease-in-out infinite;
}

.hero-geo-svg {
  width: 100%;
  height: 100%;
}

@keyframes geoGridFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.5
  }

  33% {
    transform: translate(6px, -4px) rotate(0.5deg);
    opacity: 0.8
  }

  66% {
    transform: translate(-4px, 6px) rotate(-0.3deg);
    opacity: 0.6
  }
}

/* Hero visual precisa de position relative para a grade ficar atrás */
.hero-visual {
  position: relative;
}

/* Painel branco */
.dashboard-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 32px 28px 28px;
  box-shadow:
    0 24px 80px rgba(45, 55, 72, 0.08),
    0 6px 20px rgba(45, 55, 72, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  overflow: hidden;
  animation: dashFloat 6s ease-in-out infinite;
}

@keyframes dashFloat {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

/* Grid sutil dentro do painel */
.dashboard-grid-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
}

/* Título */
.dashboard-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  font-style: normal;
}

/* Grid das 3 métricas */
.dashboard-metrics {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* Cada métrica */
.dash-metric {
  text-align: left;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Divisória vertical entre métricas */
.dash-metric:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 8%;
  right: -10px;
  width: 1px;
  height: 84%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.06), transparent);
}

/* Ícone */
.dash-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f2f5f4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  animation: iconBounce 3s ease-in-out infinite;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.dash-icon svg {
  width: 20px;
  height: 20px;
  color: #7a8696;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-3px)
  }
}

.dash-m2 .dash-icon {
  animation-delay: 0.4s
}

.dash-m3 .dash-icon {
  animation-delay: 0.8s
}

/* Label antes do número ("Entregue em") */
.dash-pre-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}

/* Número grande */
.dash-number {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 2px;
}

.dash-x {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0;
}

.dash-unit {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Labels */
.dash-label-bold {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
}

.dash-sublabel {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 3px;
}

.dash-sublabel-italic {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-3);
  font-style: italic;
  margin-top: 4px;
}

/* Barra de progresso */
.dash-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  height: 5px;
}

.dash-bar-fill {
  height: 100%;
  border-radius: 999px;
  animation: dashBarGrow 2.5s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}

.dash-bar-1 {
  background: linear-gradient(90deg, #3aaa7a, #2d9068);
  width: 65%;
  flex-shrink: 0;
}

.dash-bar-2 {
  background: linear-gradient(90deg, #3aaa7a, #26c6da);
  width: 40%;
  flex-shrink: 0;
}

.dash-bar-short {
  width: 70%;
}

@keyframes dashBarGrow {
  from {
    width: 0
  }
}

/* Dots inline na barra */
.dash-dot-inline {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-dot-accent {
  background: #3aaa7a;
  animation: dotPulse 2.5s ease-in-out infinite;
}

.dash-dot-gray {
  background: #ccc
}

@keyframes dotPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5
  }
}

/* Mini gráfico de barras (métrica 2) */
.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 56px;
  margin-bottom: 12px;
  position: relative;
  padding-right: 20px;
}

.dash-chart-bar {
  width: 14px;
  border-radius: 3px 3px 0 0;
  background: #e4e4e4;
  animation: chartBarGrow 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: bottom;
}

.bar-h1 {
  height: 28%;
  animation-delay: 0.3s
}

.bar-h2 {
  height: 42%;
  animation-delay: 0.45s
}

.bar-h3 {
  height: 34%;
  animation-delay: 0.6s
}

.bar-h4 {
  height: 52%;
  animation-delay: 0.75s
}

.bar-h5 {
  height: 68%;
  animation-delay: 0.9s
}

.bar-h6 {
  height: 95%;
  animation-delay: 1.05s
}

.bar-accent {
  background: linear-gradient(to top, #2d9068, #3aaa7a);
  box-shadow: 0 -2px 8px rgba(27, 58, 42, 0.20);
}

@keyframes chartBarGrow {
  from {
    transform: scaleY(0)
  }

  to {
    transform: scaleY(1)
  }
}

/* Seta curva do gráfico — mais grossa */
.dash-chart-arrow {
  position: absolute;
  top: -4px;
  right: -6px;
  width: 70px;
  height: 45px;
  opacity: 0;
  animation: arrowAppear 0.7s ease 1.8s both;
}

@keyframes arrowAppear {
  from {
    opacity: 0;
    transform: translate(-8px, 8px)
  }

  to {
    opacity: 1;
    transform: translate(0, 0)
  }
}

/* ====== PARTÍCULAS FLUTUANTES ====== */
.dash-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.p1 {
  width: 6px;
  height: 6px;
  background: #F5A623;
  top: 16%;
  right: 10%;
  animation: particleFloat 7s ease-in-out infinite
}

.p2 {
  width: 4px;
  height: 4px;
  background: #f59e0b;
  top: 62%;
  right: 6%;
  animation: particleFloat 5s ease-in-out infinite 1s
}

.p3 {
  width: 9px;
  height: 9px;
  background: #F5A623;
  top: 78%;
  left: 12%;
  animation: particleFloat 9s ease-in-out infinite 2s;
  opacity: 0.15
}

.p4 {
  width: 5px;
  height: 5px;
  background: #1B3A2A;
  top: 22%;
  left: 28%;
  animation: particleFloat 6s ease-in-out infinite 0.5s
}

.p5 {
  width: 3px;
  height: 3px;
  background: #1B3A2A;
  bottom: 28%;
  right: 22%;
  animation: particleFloat 8s ease-in-out infinite 3s
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translate(0, 0)
  }

  25% {
    transform: translate(10px, -14px)
  }

  50% {
    transform: translate(-5px, -20px)
  }

  75% {
    transform: translate(14px, -8px)
  }
}

/* ====== RESPONSIVO ====== */
@media (max-width: 768px) {
  .hero-geo-grid {
    inset: -20px
  }

  .dashboard-panel {
    padding: 24px 20px;
    border-radius: 18px
  }

  .dashboard-title {
    font-size: 1rem;
    margin-bottom: 16px
  }

  .dashboard-metrics {
    gap: 14px
  }

  .dash-number {
    font-size: 1.6rem
  }

  .dash-unit {
    font-size: 0.9rem
  }

  .dash-label-bold {
    font-size: 0.75rem
  }

  .dash-chart {
    height: 42px
  }

  .dash-chart-bar {
    width: 10px
  }

  .dash-icon {
    width: 32px;
    height: 32px
  }

  .dash-icon svg {
    width: 17px;
    height: 17px
  }
}

@media (max-width: 480px) {
  .dashboard-metrics {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .dash-metric:not(:last-child)::after {
    display: none
  }

  .dash-metric {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 18px
  }

  .dash-metric:last-child {
    border-bottom: none;
    padding-bottom: 0
  }

  .dash-number {
    font-size: 1.9rem
  }

  .dash-chart {
    height: 50px;
    gap: 6px
  }

  .dash-chart-bar {
    width: 16px
  }

  .hero-geo-grid {
    display: none
  }
}

/* ================================================================
   BLOG PREVIEW — CARROSSEL NA HOME
   ================================================================ */
.blog-preview-carousel {
  position: relative;
  margin-top: var(--space-lg);
  padding: 0 50px;
}

.blog-preview-viewport {
  overflow: hidden;
}

.blog-preview-track {
  display: flex;
  gap: 24px;
  align-items: stretch;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Skeleton shimmer */
.bp-skeleton {
  flex: 0 0 calc((100% - 48px) / 3);
  height: 340px;
  border-radius: 16px;
  background: linear-gradient(90deg, #ececec 25%, #e0e0e0 50%, #ececec 75%);
  background-size: 200% 100%;
  animation: bpShimmer 1.5s infinite;
}

@keyframes bpShimmer {
  0%   { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}

/* Card */
.bp-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  text-decoration: none;
}

.bp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.11);
}

/* Imagem */
.bp-img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--accent-light), #d8eaf8);
  flex-shrink: 0;
  text-decoration: none;
}

.bp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.bp-card:hover .bp-img {
  transform: scale(1.05);
}

.bp-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-img-placeholder svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
  opacity: 0.35;
}

.bp-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Body */
.bp-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bp-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-title a {
  color: inherit;
  text-decoration: none;
}

.bp-title a:hover {
  color: var(--accent);
}

.bp-excerpt {
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--text-3);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.bp-date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-3);
}

.bp-read {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 3px;
  transition: gap 0.2s ease;
}

.bp-card:hover .bp-read { gap: 7px; }

/* Setas */
.bp-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-mid);
  color: var(--text-1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.bp-btn svg { width: 18px; height: 18px; }

.bp-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(82,173,246,0.28);
  transform: translateY(-50%) scale(1.08);
}

.bp-prev { left: 0; }
.bp-next { right: 0; }

/* Dots */
.bp-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.bp-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--line-strong);
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  transform-origin: left center;
  padding: 0;
}

.bp-dot:hover { background: var(--text-3); }

.bp-dot.active {
  background: var(--accent);
  transform: scaleX(3.25);
}

/* CTA inferior */
.blog-preview-footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}

/* Estado vazio/erro */
.bp-empty {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--text-3);
  font-size: 0.9rem;
  width: 100%;
}

/* Responsivo */
@media (max-width: 960px) {
  .bp-card,
  .bp-skeleton { flex: 0 0 calc((100% - 24px) / 2); }
}

@media (max-width: 640px) {
  .blog-preview-carousel { padding: 0 14px; }
  .bp-card,
  .bp-skeleton { flex: 0 0 100%; }
  .bp-skeleton { height: 300px; }
  .bp-btn { width: 38px; height: 38px; }
  .bp-prev { left: -2px; }
  .bp-next { right: -2px; }
}
