@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

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

@keyframes gentle-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.35);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(229, 57, 53, 0);
  }
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float-mark {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  from {
    background-position: -240px 0;
  }

  to {
    background-position: 240px 0;
  }
}

@keyframes ring-call {
  0%,
  100% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(10deg);
  }

  40% {
    transform: rotate(-8deg);
  }

  60% {
    transform: rotate(6deg);
  }

  80% {
    transform: rotate(-4deg);
  }
}

.hero__content > * {
  animation: fade-in-up 0.7s both;
}

.hero__content > *:nth-child(2) {
  animation-delay: 0.08s;
}

.hero__content > *:nth-child(3) {
  animation-delay: 0.16s;
}

.brand-panel,
.page-hero__card {
  animation: lift-in 0.8s both;
}

.sticky-actions__link--call {
  animation: gentle-pulse 2.3s infinite;
}

.sticky-actions__link--whatsapp {
  animation: fade-in-down 0.8s both;
}

.brand-panel__logo-shell,
.footer-brand__logo {
  position: relative;
  overflow: hidden;
}

.brand-panel__logo-shell::after,
.footer-brand__logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
  background-size: 240px 100%;
  animation: shimmer 4s linear infinite;
  pointer-events: none;
}

.brand-panel__fact img,
.program-card__icon,
.facility-card__icon,
.doctor-card__icon,
.contact-card__icon,
.aside-panel__mark,
.page-hero__card img,
.profile-stage__mark {
  animation: float-mark 5s ease-in-out infinite;
}

.callout-ring {
  display: inline-flex;
  animation: ring-call 1.6s ease-in-out infinite;
  transform-origin: center;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.45);
  animation: ripple-effect 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content > *,
  .brand-panel,
  .page-hero__card,
  .sticky-actions__link--call,
  .sticky-actions__link--whatsapp,
  .brand-panel__logo-shell::after,
  .footer-brand__logo::after,
  .brand-panel__fact img,
  .program-card__icon,
  .facility-card__icon,
  .doctor-card__icon,
  .contact-card__icon,
  .aside-panel__mark,
  .page-hero__card img,
  .profile-stage__mark,
  .callout-ring {
    animation: none !important;
  }
}
