.animated {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated.fade-up {
  transform: translateY(28px);
}

.animated.fade-in {
  transform: scale(0.97);
}

/* Directional variants for sobre section */
.animated.fade-left {
  transform: translateX(-32px);
}

.animated.fade-right {
  transform: translateX(32px);
}

/* Badge pop */
.animated.badge-pop {
  transform: scale(0.88) translateY(8px);
}

/* Triggered state — JS adds .is-visible */
.animated.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays for hero children */
.hero-eyebrow.animated    { transition-delay: 0.05s; }
.hero-title.animated      { transition-delay: 0.15s; }
.hero-subtitle.animated   { transition-delay: 0.26s; }
.hero-actions.animated    { transition-delay: 0.36s; }
.hero-quote.animated      { transition-delay: 0.46s; }
.hero-visual.animated     { transition-delay: 0.12s; }

/* Stagger for sobre badges */
.sobre-badges .badge:nth-child(1) { transition-delay: 0.55s; }
.sobre-badges .badge:nth-child(2) { transition-delay: 0.65s; }
.sobre-badges .badge:nth-child(3) { transition-delay: 0.75s; }

/* Section headers */
.section-header.animated  { transition-delay: 0.05s; }

/* TCC steps stagger */
.tcc-step:nth-child(1).animated { transition-delay: 0.08s; }
.tcc-step:nth-child(2).animated { transition-delay: 0.16s; }
.tcc-step:nth-child(3).animated { transition-delay: 0.24s; }
.tcc-step:nth-child(4).animated { transition-delay: 0.32s; }

/* Timeline items stagger */
.timeline-item:nth-child(1).animated { transition-delay: 0.06s; }
.timeline-item:nth-child(2).animated { transition-delay: 0.14s; }
.timeline-item:nth-child(3).animated { transition-delay: 0.22s; }
.timeline-item:nth-child(4).animated { transition-delay: 0.30s; }

/* FAQ items stagger */
.accordion-item:nth-child(1).animated { transition-delay: 0.04s; }
.accordion-item:nth-child(2).animated { transition-delay: 0.08s; }
.accordion-item:nth-child(3).animated { transition-delay: 0.12s; }
.accordion-item:nth-child(4).animated { transition-delay: 0.16s; }
.accordion-item:nth-child(5).animated { transition-delay: 0.20s; }
.accordion-item:nth-child(6).animated { transition-delay: 0.24s; }

/* Contato blocks */
.contato-text.animated  { transition-delay: 0.06s; }
.contato-info.animated  { transition-delay: 0.18s; }

/* Sobre columns */
.sobre-photo-col.animated { transition-delay: 0.06s; }
.sobre-text-col.animated  { transition-delay: 0.18s; }

/* ─── BUTTON MICROINTERACTIONS ───────────────────────────── */
/* .btn-animated adds richer press feedback */
.btn-animated {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Ripple effect on click */
.btn-animated::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.btn-animated:active::after {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.1s ease, transform 0.1s ease;
}

/* Shimmer pass on hover for primary btn */
.btn-primary.btn-animated::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0s;
  pointer-events: none;
}

.btn-primary.btn-animated:hover::before {
  left: 125%;
  transition: left 0.55s ease;
}

/* ─── NAV LINK ANIMATED UNDERLINE ────────────────────────── */
.nav-link-animated {
  position: relative;
}

/* Already handled by nav-link::after in style.css — this enhances it */
.nav-link-animated::after {
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
}

/* ─── CARD HOVER GLOW ────────────────────────────────────── */
/* Adds a subtle pink glow on symptom card hover */
.symptom-card {
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.32s ease,
              border-color 0.32s ease,
              background 0.32s ease;
}

/* Touch feedback for mobile (active state) */
.symptom-card:active {
  transform: scale(0.97) translateY(2px);
  box-shadow: var(--shadow-sm);
}

/* ─── BENEFIT CARD HOVER ─────────────────────────────────── */
.benefit-card {
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.32s ease,
              border-color 0.32s ease;
}

.benefit-card:active {
  transform: scale(0.97);
}

/* ─── ACCORDION ITEM ENTRY ───────────────────────────────── */

.accordion-trigger {
  transition: color var(--transition-fast),
              background 0.2s ease;
}

.accordion-trigger:hover {
  background: var(--color-surface-2);
}

/* ─── TIMELINE MARKER PULSE ON HOVER ─────────────────────── */
.timeline-item:hover .timeline-marker {
  animation: marker-pulse 0.6s ease forwards;
}

@keyframes marker-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(214, 51, 132, 0.25); }
  60%  { box-shadow: 0 0 0 8px rgba(214, 51, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 51, 132, 0); }
}

/* ─── INFO ITEM HOVER ────────────────────────────────────── */
.info-item {
  transition: transform var(--transition-base);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  margin: calc(-1 * var(--space-2));
}

.info-item:hover {
  transform: translateX(4px);
}

/* ─── BADGE HOVER ────────────────────────────────────────── */
.badge {
  transition: all var(--transition-base);
}

.badge:hover {
  background: var(--color-primary-muted);
  border-color: var(--color-primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 12px rgba(214, 51, 132, 0.15);
}

/* ─── TCC STEP ICON HOVER ────────────────────────────────── */
.tcc-step:hover .step-icon {
  background: var(--color-primary-muted);
  border-color: var(--color-primary);
  transform: scale(1.08);
  transition: all var(--transition-base);
}

.step-icon {
  transition: all var(--transition-base);
}

/* ─── WHATSAPP FLOAT: ENTER ANIMATION ────────────────────── */
.whatsapp-float {
  animation:
    wpp-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both,
    pulse-wpp 3s ease-in-out infinite 4s,
    bounce-wpp 6s ease-in-out infinite 5s;
}

@keyframes wpp-enter {
  from {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ─── SECTION EYEBROW REVEAL ─────────────────────────────── */
.section-eyebrow {
  position: relative;
  display: inline-block;
}

/* ─── SCROLL PROGRESS LINE (timeline) ───────────────────── */
/* Visual indicator line grows as timeline items become visible */
.timeline::after {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  width: 1px;
  height: 0%;
  background: var(--color-primary);
  opacity: 0.4;
  transition: height 0.8s ease;
  pointer-events: none;
}

.timeline.is-in-view::after {
  height: 100%;
}

/* ─── REDUCED MOTION OVERRIDES ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .animated {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-animated::before,
  .btn-animated::after {
    display: none;
  }

  .badge:hover,
  .info-item:hover,
  .tcc-step:hover .step-icon {
    transform: none;
  }

  .timeline-item:hover .timeline-marker {
    animation: none;
  }

  .whatsapp-float {
    animation: none;
    opacity: 1;
  }

  .timeline::after {
    transition: none;
  }
}